blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0de2600bd1e07a39f42bbe91fae645d210e66f7 | e489172f6e49e1239db56c047a78a29a6ffc0b36 | /via_account_taxform/account_tax.py | b1245ef236db95e377f0531f854b5c0588e892e0 | [] | no_license | eksotama/prln-via-custom-addons | f05d0059353ae1de89ccc8d1625a896c0215cfc7 | f2b44a8af0e7bee87d52d258fca012bf44ca876f | refs/heads/master | 2020-03-25T19:49:08.117628 | 2015-12-01T07:29:43 | 2015-12-01T07:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (c) 2011 - 2013 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | [
"aero@aero.(none)"
] | aero@aero.(none) |
a2514f32e71a028a6e1421e5456b756a92898f22 | ccfc0566cd646cbe1837affef08baec8cd245d3b | /src/robot/model/control.py | bafd41a03b8be08ca4906403ab2cae40e68f9a71 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | bmalhi/robotframework | 9f395d3197cdd7925b8def3aeb50b14fc31e83e2 | eaadffabc98b587c108cc904e0e54ce368020dd7 | refs/heads/master | 2023-03-01T14:30:23.110935 | 2021-02-05T16:01:30 | 2021-02-05T16:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | [
"peke@iki.fi"
] | peke@iki.fi |
c253c273fb8c240f6eda595e492a460e88fd798c | ebdb33a86794a779714318f8a0b8397c3d6002b5 | /processing/state_processing_dataframe.py | 04a3eff325b03a22706837096af11c0d1c700efc | [] | no_license | ShabbirHasan1/interactive-corporate-report | b52c6c404a3b2f96f27b3770b7086a59400fb74a | ce0d81ab775ded84334ce599950dae9adaa978c5 | refs/heads/master | 2023-05-16T17:15:52.651033 | 2020-02-20T05:32:46 | 2020-02-20T05:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,326 | py | import plotly.plotly as py
import pandas as pd
import numpy as np
import os
import _pickle as pickle
# rd = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/2011_us_ag_exports.csv')
my_path = os.path.abspath(os.path.dirname('__file__'))
path_in_file = os.path.join(my_path, "../data/google/addres... | [
"islashires@gmail.com"
] | islashires@gmail.com |
062ad9dc571345a7f470daa1d624c95fab71381b | 8f21513b8ba9e583246908006cac98e5e473e245 | /2_date_time.py | 4e845b6d46313ee7c1aa2f575d6f4ed98c8d58b0 | [] | no_license | MatsakB/Lesson3 | 6335bdeb86e3216e4576c170096d7bcf57ec4b2d | 69493f147720ac7d975421d7400e6964ecfac3a2 | refs/heads/master | 2020-04-10T06:35:22.069664 | 2018-12-08T08:45:20 | 2018-12-08T08:45:20 | 160,859,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from datetime import datetime, timedelta
date_today = datetime.now()
delta_days = timedelta(days=1)
delta_months = timedelta(days=30)
date_yesterday = date_today-delta_days
date_month_before = date_today-delta_months
print(date_today.strftime('%d.%m.%y'))
print(date_yesterday.strftime('%d.%m.%y'))
print(date_month_be... | [
"you@example.com"
] | you@example.com |
dc768c5a2982a554ecbde52148df68d05e357efd | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/test/test_transformer.py | eb8ef8ab031ce6e160d63f4fdf244baf063d4060 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 1,146 | py | import unittest
from test import test_support
# Silence Py3k warning
test_support.import_module('compiler', deprecated=True)
from compiler import transformer, ast
from compiler import compile
class Tests(unittest.TestCase):
def testMultipleLHS(self):
""" Test multiple targets on the left hand ... | [
"278688386@qq.com"
] | 278688386@qq.com |
f144fec17ff955f0806f4a5f976eb5a2072ff5dc | 92ae735d5dc6f6a094daedbd32614e714d0b8c4a | /newsletter/settings.py | 9ab91d32d35e7f7387b06c550e337e75ac0022a6 | [
"MIT"
] | permissive | Williano/Final-Senior-Year-Project- | 3b01ac9fd85753720b01c2245cf9b71648aad35d | 4bd988575537b37b5cf852b616d3db5666c95e7f | refs/heads/master | 2023-08-07T16:11:42.778492 | 2023-06-05T04:59:06 | 2023-06-05T04:59:06 | 121,346,340 | 173 | 60 | MIT | 2023-06-05T04:59:07 | 2018-02-13T06:17:16 | Python | UTF-8 | Python | false | false | 3,167 | py | from importlib import import_module
from django.conf import settings as django_settings
from django.core.exceptions import ImproperlyConfigured
from .utils import Singleton
class Settings(object):
"""
A settings object that proxies settings and handles defaults, inspired
by `django-appconf` and the way ... | [
"paawilly17@gmail.com"
] | paawilly17@gmail.com |
ff3771b5c0f1674a5c668a6a8e2b5f78017cab70 | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/auth/exceptions.py | b07bd1f9d71b922ba849cb4dc2a0eac9562fdd33 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 1,206 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
a2859f4ac719600fa16c18391c0265afda7857f5 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/scripts/test/test_scripts.py | 8705a90f7287a1f2a71871bea4ec36b22d67d56a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 6,855 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for the command-line scripts in the top-level I{bin/} directory.
Tests for actual functionality belong elsewhere, written in a way that doesn't
involve launching child processes.
"""
from os import devnull, getcwd, chdir
fro... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
70bc331f3ab7dcdf0904d00a928becf959b12a5e | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_wf_correlation1.py | 946851bae269b8bc3790a4acf9f9905235827943 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | from xcp2k.inputsection import InputSection
from _mp2_info1 import _mp2_info1
from _direct_canonical1 import _direct_canonical1
from _wfc_gpw1 import _wfc_gpw1
from _ri_mp21 import _ri_mp21
from _opt_ri_basis1 import _opt_ri_basis1
from _ri_rpa1 import _ri_rpa1
from _ri_laplace1 import _ri_laplace1
from _cphf1 import _... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7588e0b50d82ff81490c180db39e55febd0d85ab | f8bdc46409c9f5eaf3d85ef157260589462d941a | /demos/instance_occlsegm/examples/synthetic2d/legacy/view_arc2017_occlusion.py | 408b6b042140818b8b6f50d4e6382df6fedf1f5c | [
"MIT",
"BSD-3-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 1,604 | py | #!/usr/bin/env python
import chainer_mask_rcnn
import instance_occlsegm_lib
import contrib
if __name__ == '__main__':
dataset = contrib.datasets.ARC2017OcclusionDataset(
split='train', do_aug=True)
def visualize_func(dataset, index):
img, bboxes, labels, lbls = dataset[index]
class_... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
3e7af994a6235be22aa1a34320c806ffcc69e7cd | 0ca1d8363439e0e34d7eaa54f021ff0b2940cac7 | /facturacion/migrations/0016_auto_20181130_1741.py | 8521ce266772004f3ca7a4e556672f389672ca4b | [] | no_license | geovanniberdugo/medhis | d6b606ef2c391738ee5fa4209712b6c0eb01ae40 | b8f8df111432bfab537853ed8e8dbd4603e9707d | refs/heads/main | 2023-02-13T19:44:33.699689 | 2021-01-15T22:08:35 | 2021-01-15T22:08:35 | 330,032,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-30 22:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facturacion', '0015_auto_20181120_1824'),
]
operations = [
migrations.Alte... | [
"geovanni.berdugo@gmail.com"
] | geovanni.berdugo@gmail.com |
00f502880899ebc4ff3c56f1b131f1ba2ae7846c | 0e25538b2f24f1bc002b19a61391017c17667d3d | /xsharepoint/win_xspmanagedpath.py | 527691433ba4407838d8a7cd0c78122a6cfd4090 | [] | no_license | trondhindenes/Ansible-Auto-Generated-Modules | 725fae6ba9b0eef00c9fdc21179e2500dfd6725f | efa6ac8cd2b545116f24c1929936eb8cc5c8d337 | refs/heads/master | 2020-04-06T09:21:00.756651 | 2016-10-07T07:08:29 | 2016-10-07T07:08:29 | 36,883,816 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"trond@hindenes.com"
] | trond@hindenes.com |
d454ee79742bbf7b555240e05ae0700d83559c75 | 29fad6273eb43fcbaff7460b2b68fea66d9ebc8c | /custom-vpc/custom_vpc/custom_vpc_stack.py | 99ef9dd2bd53bf2c57edf14bd1ebc1b98829cff7 | [] | no_license | satishbr/cdk-demos | a3b2c7ca32551eb1c0264f8125f2ffc9413d00ff | 14568c885322f561d548de0d1175f3b60ee87df0 | refs/heads/master | 2022-11-10T16:58:38.105403 | 2020-04-15T10:20:19 | 2020-04-15T10:20:19 | 275,331,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from aws_cdk import (
aws_ec2 as ec2,
core
)
class CustomVpcStack(core.Stack):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kwargs)
# The code that defines your stack goes here
# https://docs.aws.amazon.com/cdk/api/latest/py... | [
"13oct08@quantumfoam.uni.cc"
] | 13oct08@quantumfoam.uni.cc |
258c7e7730f7dcfc58404705362466c414aa2af4 | 8b865eca2facf190369df4303fd6550c31614f72 | /project04/bagInterface.py | 49ca757766fdb7a64aa4d786bbe30b5e0f3d4fe9 | [] | no_license | Yamase31/cs112 | 16ba1732441e70065f2aded7542907ccb35e048e | 199c5731b0bcbd475d8a8d2c9429eaebfbc1d180 | refs/heads/main | 2023-06-30T13:34:43.086674 | 2021-08-10T03:14:45 | 2021-08-10T03:14:45 | 394,503,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | """
Author: James Lawson, Harry Pinkerton, Laurie Jones
File: baginterface.py
Speficitactions of the methods for all bag classes. Running this code will
not produce any results, but it shows the headers and docstrings of the methods
that MUST be included or supported in any bag class.
"""
class BagInterface(object):... | [
"noreply@github.com"
] | Yamase31.noreply@github.com |
0681e4919822450a149df6a9ebf09f9bd101b37f | 2d837bca6989f61996e4e8e96635d722c97241c3 | /core/gtk_table.py | eaae443c2d7d162408c56f74d7190bb125d20de0 | [] | no_license | gsy/gmusic | 1485e11f4d63241f012b9e2ee27bbdb1ef563ce5 | 277e70c83a0ffcc00f2fc93933668dc16add11a8 | refs/heads/master | 2020-03-26T20:48:54.145376 | 2013-05-03T07:28:37 | 2013-05-03T07:28:37 | 9,724,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | #!/usr/bin/env python
# -*- coding: utf-8
import pygtk
pygtk.require('2.0')
import gtk
class albumViewer:
def __init__(self):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.connect("destroy", lambda w:gtk.main_quit())
self.table = gtk.Table(1, 2, False)
self.table.set_ro... | [
"gtcxg@hotmail.com"
] | gtcxg@hotmail.com |
2407745c75d7ca85e8683e02f858075f868b447a | 9b639327ffb1ee18e88904bc2e158d55205acc0b | /plot_multifreq_lic.py | cc2727d74c10908c58cfef293ca806223c30a714 | [] | no_license | guanyilun/gc_plots | 6aebfef07013a2d7feb3975a7b76cf3dfc5fbd22 | f4c1c68a3364fe77f949c6121c38448374314c9e | refs/heads/master | 2023-06-25T06:04:17.530867 | 2021-07-19T21:55:17 | 2021-07-19T21:55:17 | 339,585,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | """This script produces LIC plot based on multifrequency temperature
plot
"""
import argparse, os, os.path as op
import numpy as np
import matplotlib.pyplot as plt
from pixell import enmap, enplot, utils as u
from matplotlib import colors
from common import *
import lib
import plotstyle
# parser defined in common
p... | [
"zoom.aaron@gmail.com"
] | zoom.aaron@gmail.com |
6a61f6445c74967d9422d6b4739e394a79e11568 | 6eae4a2f7326238820bca29f9a2d99fb054f91e4 | /src/blog/settings.py | 5348a0f815fe878e1bf8eb108d2fa5a1e15a2eb0 | [
"MIT"
] | permissive | jach58/api-blog | 88e69f80378be4ecfc110aa54363556eb3053c78 | 5e668289856669537f2d6dc7236ec4f1e566e765 | refs/heads/master | 2021-04-03T09:47:39.386947 | 2018-03-11T04:58:56 | 2018-03-11T04:58:56 | 124,724,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# Buil... | [
"jach58@hotmail.com"
] | jach58@hotmail.com |
7d3b0358b02431cb03dbd79b5b445f66d3ffe27c | 8e6e70f3c6e5aed96960a6de8983e72eafae1862 | /wheelcms_valve/tests/conftest.py | 5591a16354335efcbb43f8c77d1a730b58f56e24 | [] | no_license | wheelcms/wheelcms_valve | c7988c2fe89f85e978272ed319e7057553dd24e9 | 8ea19cb8eb0081857b120c0f9bf55c128ee5d471 | refs/heads/master | 2021-01-19T08:01:43.063297 | 2015-04-04T18:28:20 | 2015-04-04T18:28:20 | 9,416,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from twotest.fixtures import client, django_client
from wheelcms_axle.tests.fixtures import root, localtyperegistry, localtemplateregistry
| [
"github@in.m3r.nl"
] | github@in.m3r.nl |
7a1a17f7d564853eb7d0e2b10e90489f14279b8a | 0c4b33d04cf7fb73b3752b03af89eeaf76b8a0d2 | /第14章-网络编程/1.py | 699170cf14d9fa720ccd1731412ecb2f52e1ece3 | [] | no_license | kingflyfly/python_study | 3b3ab427d23174b61b8f14c223059cfa9f303219 | 8a63a7c11b408bbc11a2b636517beaa424b37725 | refs/heads/master | 2020-06-11T01:39:52.655730 | 2020-03-24T16:09:39 | 2020-03-24T16:09:39 | 193,817,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | a,b = {"yanzhe1":"yanzhe","shanshan":"shanshan1"}.items()
print(type(a))
if a == "yanzhe1":
print("ok")
else:print("fial")
print(a)
print(b) | [
"542001608@qq.com"
] | 542001608@qq.com |
ecb1c8c9b5ecc3253e822b5e31639049244ed39d | 0ad7476f82d662249d13527219c45916cc6fb063 | /bayesian_AB/client_server_practice/server_starter.py | 3687225b896a5015fb7e697403d26b5ee12a7524 | [] | no_license | duilee/ab_testing | 87d40edb0836cd78bf0e75f41947510c3f598316 | d4bb900da4cf84cd28e5fcb8d37a2b6481eb94d8 | refs/heads/master | 2023-07-19T04:46:32.052780 | 2023-07-06T11:30:12 | 2023-07-06T11:30:12 | 331,349,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | # From the course: Bayesin Machine Learning in Python: A/B Testing
# https://deeplearningcourses.com/c/bayesian-machine-learning-in-python-ab-testing
# https://www.udemy.com/bayesian-machine-learning-in-python-ab-testing
from __future__ import print_function, division
from builtins import range
# Note: you may need to ... | [
"duilee@berkeley.edu"
] | duilee@berkeley.edu |
83bd32474d5fdd7943df61a2f550898f0e745c32 | 5b9035dbfe0750e9933728f9631ad7a183dd3429 | /17/00/weakref.ref.callback.py | 1e2d84ae969b05e9575767bcd18a17d0192a8745 | [
"CC0-1.0"
] | permissive | pylangstudy/201709 | 271efbd4f337d912d0ca958a621eb2a040091528 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | refs/heads/master | 2021-01-21T12:16:21.950493 | 2017-09-30T00:02:34 | 2017-09-30T00:02:34 | 102,058,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import weakref
class ExpensiveObject(object):
def __del__(self): print('Deleting ... %s' % self)
def callback(reference): print('callback(', reference, ')')
obj = ExpensiveObject()
r = weakref.ref(obj, callback)
print('obj:', obj) # <__main__.ExpensiveObject object at 0xb710adac>
print('ref:', r) # <weakref ... | [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
447309d3a7c5cd11e434e9eebbca587f1745d7b5 | 04f5b7913f5802813ed5b9b894d9723a96893d29 | /xonsh2/prompt/__init__.py | a6524670600a5456eef8be8b014b0213eefb254b | [
"BSD-2-Clause"
] | permissive | anki-code/xonsh2 | b0e52f01119622b383b37a27658c3615507ef6e7 | bd96fcdce9319ab6b90c7d9ac47d2249b61144d0 | refs/heads/master | 2023-01-04T09:19:43.857637 | 2020-11-01T17:10:44 | 2020-11-01T17:10:44 | 309,102,477 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | # amalgamate exclude
import os as _os
if _os.getenv("XONSH_DEBUG", ""):
pass
else:
import sys as _sys
try:
from xonsh2.prompt import __amalgam__
cwd = __amalgam__
_sys.modules["xonsh2.prompt.cwd"] = __amalgam__
env = __amalgam__
_sys.modules["xonsh2.prompt.env"] = ... | [
"a"
] | a |
938319c0ec9bf23932b135e6b736177504f56448 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/LearningToSeeInTheDark/src/unet_parts.py | 98222051e28a37247b798b96c9df9180649f7d6c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,576 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
4d5abe700c5d48838af29b5be52a1e7aa59eee03 | ba5c4c07d11e6f529ba7184ef3fe1ab0d61a19e6 | /examples/btn_start.py | 6b1c2aec64fb2f2ea08c9cf654e1fd702b12c056 | [] | no_license | slightlynybbled/tkmats | 920033adef46f41b67e99f3e7ba1b13a1c7ff4c5 | 73e03e519287b09436f547a532fbd33c1ce05cca | refs/heads/master | 2020-04-30T17:58:19.036996 | 2020-02-19T03:44:33 | 2020-02-19T03:44:33 | 176,996,416 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | import logging
from random import random, choice
from time import sleep
import tkinter as tk
from mats import Test
from mats import TestSequence
from tkmats import TkMatsFrame
# The CommunicationTest class shows the minimum test structure that might
# be reasonably be implemented. Only the `execute()` method is imp... | [
"slightlynybbled@gmail.com"
] | slightlynybbled@gmail.com |
ab061fb9bc9e9a17133655c37bf8f7f9b529bc18 | 076dd40fcb9283a8e3d66dd3fa3745826b887378 | /kashgari/embeddings/__init__.py | 066291c4f5f8347689c72990be315e70c02a4db2 | [
"MIT"
] | permissive | gongqingyi-github/Kashgari | 54bb53bb618b9791433a61a7fd5e73f4951873f1 | efc9510ed53f5bb78183e66d96d57a55cc290a91 | refs/heads/master | 2020-04-18T16:51:22.609685 | 2019-01-26T02:26:54 | 2019-01-26T02:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # encoding: utf-8
"""
@author: BrikerMan
@contact: eliyar917@gmail.com
@blog: https://eliyar.biz
@version: 1.0
@license: Apache Licence
@file: __init__.py.py
@time: 2019-01-19 09:57
"""
from .embeddings import BERTEmbedding
from .embeddings import BaseEmbedding
from .embeddings import CustomEmbedding
from .embeddings... | [
"eliyar917@gmail.com"
] | eliyar917@gmail.com |
98b29e78f354f896f27d9785a107e5bae46cb53a | 8f70ad12af7eba07efa52eb29b8f99ed3900dbb9 | /AGTGA data/AGTGA/posifon/posifon 2/TestSuite/TestSuite/TestCase01.py | 038064c093137ade8a3097f9ca295bbb0ed13f50 | [] | no_license | Georgesarkis/AGTGARowData | 768952dc03dc342bcbe0902bf2fb1720853d0e14 | e1faa7dc820b051a73b0844eac545e597a97da16 | refs/heads/master | 2022-10-01T17:06:04.758751 | 2020-06-05T07:25:41 | 2020-06-05T07:25:41 | 267,772,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from TestSuite.TestSuiteHelper import ElementFinder
port = 'http://localhost:4723/wd/hub'
driver = webdriver.Remote(command_executor=port, desired_capabilities={'automationName' : 'UiAutomator2','deviceName':... | [
"32592901+Georgesarkis@users.noreply.github.com"
] | 32592901+Georgesarkis@users.noreply.github.com |
2b7e4631b4f29246d007524d058aaac3d67a8629 | 4c91879e3bb3ef24cd4d1d2c79eedecc7030c2e8 | /python/191_number_of_1_bits.py | 131d0670c4972e14a4560d586b35fe92f7a62424 | [
"MIT"
] | permissive | PepSalehi/leetcode-soln | a47d827c2973ad06d22d0b8b83f2fadfb5b283d1 | cbf2db0d81d5ef98f48c8d1df486559f89142bfd | refs/heads/master | 2020-09-15T14:14:11.422791 | 2018-04-19T15:27:38 | 2018-04-19T15:27:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | """
Write a function that takes an unsigned integer and returns the number of ’1'
bits it has (also known as the Hamming weight).
For example, the 32-bit integer ’11' has binary representation
00000000000000000000000000001011, so the function should return 3.
Credits:
Special thanks to @ts for adding this problem... | [
"ufjfeng@users.noreply.github.com"
] | ufjfeng@users.noreply.github.com |
4b25a66c3105bc9c257188f19dd63ec0e14d457a | af7050b659e48a979809a705066baf7cd1a84255 | /350_intersection-of-two-arrays-ii.py | 72c4b527f143261a9739c1272e905024c6f6b4b7 | [] | no_license | zyk930/leetcode | b9547cbbeaf0202c2bb3e1a22d30f1ecddd4244e | 27c9da844550080c41fae60906274347f9e62919 | refs/heads/master | 2020-04-10T15:13:45.886717 | 2019-06-04T01:37:10 | 2019-06-04T01:37:10 | 161,101,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/12/21 10:10
# @Author : zyk
'''
给定两个数组,编写一个函数来计算它们的交集。
示例 1:
输入: nums1 = [1,2,2,1], nums2 = [2,2]
输出: [2,2]
示例 2:
输入: nums1 = [4,9,5], nums2 = [9,4,9,8,4]
输出: [4,9]
说明:
输出结果中每个元素出现的次数,应与元素在两个数组中出现的次数一致。
我们可以不考虑输出结果的顺序。
进阶:
如果给定的数组已经排好序呢?你将如何优化你的算法?
... | [
"zhouyk@buaa.edu.cn"
] | zhouyk@buaa.edu.cn |
0c8c29ae00b620614383c24a6b9db48d3c488117 | 27a8692c6bed25bd92868a519d95e9570ea204cd | /bot/handlers/stickers/remove.py | d477b5721bf292f79c74e4fc29fa806ac467e504 | [
"MIT"
] | permissive | metti61680/sticker-thief | f3d7fc49a3337eaead84d4d682fac98cd367fc5a | 3006b8367f8e09aab1e60428338021b95e5d0b13 | refs/heads/master | 2020-12-14T02:23:41.684888 | 2019-12-04T11:27:28 | 2019-12-04T11:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | import logging
# noinspection PyPackageRequirements
from telegram.ext import (
CommandHandler,
MessageHandler,
ConversationHandler,
CallbackContext,
Filters
)
# noinspection PyPackageRequirements
from telegram import ChatAction, Update
from bot import stickersbot
from bot.strings import Strings
fr... | [
"numeralzeroone@gmail.com"
] | numeralzeroone@gmail.com |
672321ebf82e31c14af3274cd5b61a7650715780 | baf3736092f9aecf79fc717b6d5efc19c5ac3ba9 | /ArticleSpider_splash/pipelines.py | 74a77623ba5d113d94d8f288a8a4a0d1124ad2ac | [] | no_license | tang1323/ArticleSpider_splash | 6215224cd5c36a243b950590faf7da2671c4014a | 992e50f93ba705ffbf3d8282f0c47cd3c9f638f2 | refs/heads/master | 2023-04-08T13:07:26.526856 | 2021-04-15T01:55:13 | 2021-04-15T01:55:13 | 358,095,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,016 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import codecs # 可以避免编码的繁锁的工作
import json
from scrapy.pipelines.images import ImagesPipeline
from scrapy.exporters import Jso... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
d0db4dd53fc928a47070993d812e526112a25bb3 | 4a0f8c5c0e8324fa614da776f2a704b5c369ccbb | /Contact_maps/dealFile.py | 5816c559c07cbd917443fb8e7f1b4a6c81f4de53 | [] | no_license | magic2du/contact_matrix | 9f8ae868d71e7e5c8088bf22a9407ea3eb073be6 | 957e2ead76fabc0299e36c1435162edd574f4fd5 | refs/heads/master | 2021-01-18T21:15:07.341341 | 2015-09-16T02:14:53 | 2015-09-16T02:14:53 | 24,237,641 | 0 | 0 | null | 2015-09-10T19:58:24 | 2014-09-19T16:48:37 | null | UTF-8 | Python | false | false | 2,197 | py | import os
def readListFile(filename):#read file:filename lines into list
data_file = open(filename)
data = []
for line in data_file.readlines():
line = line.strip()
#print line
data.append(line)
data_file.close()
print "number of lines in %s:" %filename +str(len(data))
return data
def readGrepFile(filenam... | [
"magic2du@gmail.com"
] | magic2du@gmail.com |
9be4c0cfe1528de5ee29c120480cb7e74ee1c110 | b3ad6d480873ac91fc284efc6341568649898684 | /cohort/week6/cs1.py | b50661dfbe30716c9a6b8392c7f7626cd65dd870 | [
"MIT"
] | permissive | jamestiotio/DW2020 | e88af5f84f477e911b8414c02893da039fff9cf0 | 1639ccbcf77b64719bdc29bf2a373d19296fbd75 | refs/heads/master | 2022-10-30T12:48:39.147705 | 2022-08-14T12:16:35 | 2022-08-14T12:16:35 | 269,898,881 | 0 | 1 | MIT | 2021-11-04T16:30:20 | 2020-06-06T07:03:23 | Jupyter Notebook | UTF-8 | Python | false | false | 142 | py | def reverse(string):
new_string = ""
for char in range(1, len(string) + 1):
new_string += string[-char]
return new_string | [
"jamestiotio@gmail.com"
] | jamestiotio@gmail.com |
975de9975a9a39cbe4c0d7727322685bc5762de1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03645/s702030481.py | 0676433bb304179255b0f58e28e7315e9f4ba85a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from sys import stdin
def input():
return stdin.readline().strip()
n, m = map(int, input().split())
edge = [[] for _ in range(n)]
for _ in range(m):
i, j = map(int, input().split())
i -= 1
j -= 1
edge[i].append(j)
edge[j].append(i)
for i in edge[0]:
if n - 1 in edge[i]:
print('POSS... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a89f7551c6e7110c925d5c588dffb97eee504470 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/_api/v1/strings/__init__.py | ce1ec660353ce6c9b3396ee91e02d9336d97ded8 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:99d3d433550637101bcb96e96fa3ad768bd4fcf5d594eb911c360868a4a5bf1f
size 2083
| [
"github@cuba12345"
] | github@cuba12345 |
c2e523ab1ff7e56a1209026225b6a1f5d1049f9a | d62863d049c0206bfa744ca4c9e886030bfce1ab | /apps/sw_shop/sw_order/filters.py | 8fbf2cab68517611516c4be1eb8e79e99f52ae1a | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 142 | py | from admin_auto_filters.filters import AutocompleteSelect
class TagsFilter(AutocompleteSelect):
title = 'тег'
field_name = 'tags'
| [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
d1548533bbd4772134b1eb35f4625917f8311929 | 4c2c1775b6b319ae07155f46e70a6726ab0980c2 | /algo/algo_code/personal/cvr_space/model_train_exp/script/model_predict.py | d83956c20f098ea44510c425f8fc4512584682ff | [] | no_license | kiminh/util | 8e4b204849a57941120e37c9330772f03c8892d0 | 763a71031d9c0ef207b87dc03ebc55208a2dd5ad | refs/heads/master | 2022-06-09T06:09:13.221754 | 2020-04-27T04:23:00 | 2020-04-27T04:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import sys
import math
model_dict = {}
for raw in open(sys.argv[1]):
felds = raw.strip("\n\r").split(" ")
if len(felds) < 2:
continue
model_dict[felds[0]] = float(felds[1])
for raw in open(sys.argv[2]):
s = 0
for sp in raw.strip().split()[1:]:
w = model_dict.get(sp, 0)
s +... | [
"ling@lingdeMacBook-Air.local"
] | ling@lingdeMacBook-Air.local |
6d72c628644e2d398d8db125a9bc5a7d8ef0a069 | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/sdk/deviceupdate/controlplane/operations/__init__.py | fcfbd4b1f52e9fbba906f0b37ee993a23e66a0b3 | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 1,443 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
3d556d8e0c6be1368b829f2f9e0d84e4eea75160 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/h2o/schemas/metadata.py | 9582a1aaee3cc62f7c74ffa2f0fa2e14384a9fc0 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,142 | py | # -*- encoding: utf-8 -*-
#
# Copyright 2016 H2O.ai; Apache License Version 2.0 (see LICENSE for details)
#
# noinspection PyUnresolvedReferences
from h2o.utils.compatibility import * # NOQA
class H2OMetadataV3(object):
@classmethod
def make(cls, json_kv_pairs):
return cls(json_kv_pairs)
def _... | [
"noreply@github.com"
] | h2oai.noreply@github.com |
734bf8211cf76d87497a9023f0a6036d2c89b55b | 6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f | /python/euler88.py | 438947a9585065bb73e52c6e4fe46d5db173dc3c | [] | no_license | vochong/project-euler | 836321cc8e7d2e7cdf22b3b136d44dcba74a8701 | 6a0c7103861ff825bf84800b6e2e62819a41e36d | refs/heads/master | 2020-04-29T10:41:48.487159 | 2018-09-19T00:13:34 | 2018-09-19T00:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | def prodsum(prod, sm, facs, curfac, mins):
k = prod - sm + facs
if k < 12000:
mins[k] = min(mins[k], prod)
for fac in range(curfac, 24000/prod):
prodsum(prod*fac, sm+fac, facs+1, fac, mins)
def euler88():
mins = [24000]*12000
prodsum(1, 1, 1, 2, mins)
return su... | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
0de714e49f871d8ef0eaad488040bcbabbacca73 | f3cdb2bae2ca6cbd045941ae0c2f4052e52de622 | /p2p/dataset.py | 04e28cc0ef5d167401736ee3081182e3dbb724bd | [
"Apache-2.0"
] | permissive | IQTLabs/3-D_DataAugmentation | bab6aead07235cccb2056b0ce25179e5bb871a82 | 3eb7fe156906df46151de5c4472274a1ccdcfbed | refs/heads/master | 2023-01-21T15:57:39.173956 | 2020-12-03T20:23:18 | 2020-12-03T20:23:18 | 298,663,332 | 0 | 0 | Apache-2.0 | 2023-01-23T13:56:28 | 2020-09-25T19:32:59 | Jupyter Notebook | UTF-8 | Python | false | false | 2,028 | py | import numpy as np
from PIL import Image
from torch.utils.data import Dataset
from torchvision import transforms
__all__ = ['P2PDataset']
class P2PDataset(Dataset):
""" Pose to Pose dataset definition loads two frame/pose pairs
"""
def __init__(self, df=None, transform=None, data_path=''):
""... | [
"mllomnitz@gmail.com"
] | mllomnitz@gmail.com |
c2615df1c73b8edf1406f870f6e2f819b8bd4f9f | 25d4c31d5ebe470118b14beb84f3cd1e53d99c15 | /01_Tutorials/Udemy Kurs Ehical Hacking/06_Praxisprojekt_Firefox_Daten_auslesen/48_Profilordner_Firefox_Alle_OS_Call_function.py | a59ecffd3590e860a7e464367aafb21873f9b8a1 | [] | no_license | daltdoerfer/Python_Templates-1 | ea4b59489feb7b7617e81b7c94d4375dbf25def3 | c2471cebeaf20bbfdfd3fd263d458e5a67ad8d1e | refs/heads/master | 2023-05-10T15:07:10.109280 | 2021-06-08T06:45:53 | 2021-06-08T06:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # Doku places.sqlite https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Database
# z.B: Bookmarks in moz_boookmarks
import os
import sqlite3 # Datenbankspaket zum auslesen der Datenbank
import pandas as pd
from get_firefox_path import get_firefox_path
# Alternativ: import get_firefox_path as gfp # -> Hier nüs... | [
"daltdoerfer@yahoo.com"
] | daltdoerfer@yahoo.com |
4f442defc3e20cd08d0d0bd1c7cfecc372987eaf | f52997ac7e1b41f34018c3a0028ced8638072b2b | /src/feedback/migrations/0002_migrate_search_feedback.py | 99e69225ca6320d0a38a794a12ad8bb49a371897 | [
"MIT"
] | permissive | uktrade/digital-workspace-v2 | 49fae1fca819b625c6f6949fb5ce51b89fbcab96 | 7e328d0d55c9aa73be61f476823a743d96e792d0 | refs/heads/main | 2023-09-03T12:03:47.016608 | 2023-09-01T12:07:55 | 2023-09-01T12:07:55 | 232,302,840 | 6 | 0 | MIT | 2023-09-13T15:50:24 | 2020-01-07T10:41:18 | Python | UTF-8 | Python | false | false | 999 | py | # Generated by Django 4.1.10 on 2023-08-08 14:35
from django.db import migrations
def migrate_search_feedback(apps, schema_editor):
Feedback = apps.get_model("django_feedback_govuk", "Feedback")
SearchFeedbackV1 = apps.get_model("feedback", "SearchFeedbackV1")
for feedback in Feedback.objects.all():
... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
965bc7e325875ed234ebf3d269bc9a012f110885 | c987e888b0ccd9051e26335b3641cbd80aa14e2a | /tests/circular/template/test_context.py | 5db0e9c17d97674ab5b8c8d6f013bfc57113b782 | [
"MIT"
] | permissive | jonathanverner/circular | fa47eef5f2914da8540d0c0c50f3fe5d2d87d598 | e29bb9cc846566943febd8ba85104d796943819c | refs/heads/master | 2020-12-04T11:49:48.587539 | 2017-08-17T11:12:58 | 2017-08-17T11:12:58 | 66,577,154 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import asyncio
import pytest
from src.circular.template.context import Context
def test_extension():
base = Context()
base.a = 10
base.c = 30
child = Context(base=base)
# Child should have access to parent
assert child.a == 10
# The _get method should work for accessing parent
asse... | [
"jonathan.verner@matfyz.cz"
] | jonathan.verner@matfyz.cz |
d9a7f7e7bc166bb6f1556dbcbf9c4e875c736b66 | e4dd3e5d76073b2ba2c8a06a713582a7b8fd6983 | /eveauth/models/role.py | 2bf7e073cbbce0bddcd8bc43d7af18ff587e8483 | [] | no_license | extraquoo/avrse-auth | 792f1f217c682dfdace1467d81f2225976078750 | 5c94ac5e61954e37cc52dda0e884977b01eeff2a | refs/heads/master | 2020-05-20T00:24:58.466016 | 2018-10-17T22:40:53 | 2018-10-17T22:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from django.db import models
from .character import Character
class Role(models.Model):
character = models.ForeignKey(Character, related_name="roles")
name = models.CharField(max_length=128, db_index=True)
def __str__(self):
return "%s on %s" % (self.name, self.character.name) | [
"skylinerspeeder@gmail.com"
] | skylinerspeeder@gmail.com |
bdc3df8f4e675387177e4c1e95dbfe2ce8ad0c84 | a46b064486b703b5424a5e59fb6d567a0c08d480 | /scripts/pushmsg | fed86e723478dbd82c088dc2756750e5c891a332 | [
"MIT"
] | permissive | nick-youngblut/pushmsg | 1dd3ca23dbfa8277f92b7261c5eabeb6ea5bd3c6 | 389cd22476077198593bd4b4af3900fd1644da65 | refs/heads/master | 2022-07-23T14:52:46.886835 | 2020-05-23T19:21:22 | 2020-05-23T19:21:22 | 71,820,460 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | #!/usr/bin/env python
import sys
import argparse
import pushmsg
parser = argparse.ArgumentParser(
description='Send messages with Pushbullet',
epilog='For all options, see the line magic help'
)
parser.add_argument('msg', help='Message to send via Pushbullet')
parser.add_argument('--version', action='version'... | [
"nicholas.youngblut@tuebingen.mpg.de"
] | nicholas.youngblut@tuebingen.mpg.de | |
64811b756a4e41173c5e5898912f0448a3f966dc | 1a3e6ff7b86fa34e4ef88f3e0fe7e1472f7f6821 | /vortex-methods/vel_integration.py | 7700104a2b37c85b4b1ae011fe0449ca7db1b4e2 | [] | no_license | rbonvall/tesis | 0c901746c1b93aa300c928104455e23ef93bcf87 | a93a07965387fc5a944a39eb734cfc34d0c09404 | refs/heads/master | 2020-05-30T22:09:38.621467 | 2011-07-04T14:47:33 | 2011-07-04T14:47:33 | 213,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | #!/usr/bin/env python
from numpy import zeros_like
import functools
import vm
def euler(x, y, circ, dt, squared_blob_size):
u, v = vm.eval_velocity(x, y, circ=circ,
squared_blob_size=squared_blob_size)
return u, v
def runge_kutta(x, y, circ, dt, squared_blob_size):
u, v = ze... | [
"rbonvall@gmail.com"
] | rbonvall@gmail.com |
821fd4f3941c3016fc767da9f978015d7ee9d854 | 416e303e3c64fbc3571f204c3b3b281b4ce642be | /examples/1.3/special_batch_compo/list_dataset.py | 4d37a894ac6da61939269cd7c3d88ef00cef73b7 | [
"Apache-2.0"
] | permissive | fastestimator-util/fastestimator-misc | 6cba0f25ee5e9ace30bef392adc8081777db510f | c46e901d84745f35b7b49bdbb7b7121d39759b3f | refs/heads/master | 2023-08-09T13:58:27.846807 | 2023-07-27T01:27:32 | 2023-07-27T01:27:32 | 208,510,459 | 8 | 9 | Apache-2.0 | 2023-07-27T01:27:41 | 2019-09-14T22:14:56 | Python | UTF-8 | Python | false | false | 1,455 | py | import pdb
from os import pipe
from torch.utils.data import Dataset
import fastestimator as fe
from fastestimator.architecture.tensorflow import LeNet
from fastestimator.dataset import BatchDataset
from fastestimator.dataset.data import mnist
from fastestimator.op.numpyop.univariate import ExpandDims, Minmax
from fas... | [
"shawnmengdong@gmail.com"
] | shawnmengdong@gmail.com |
698bdeeb48ab9e92ecab93669f2d8d302bc0673a | abd7504f6562babf79fb4e86af7529b2cb40fb54 | /tests/pyre.pkg/descriptors/dataDescriptor_set.py | 7d7a5fd65cabe1f2c11b54febcf9ac6f7623788f | [] | no_license | aivazis/p2 | 266c1728554b3f7a89e72f09ba2d9e5ff8d4447d | fd9a82d7dafa815dd68f679eb2b4b1a6287d02ea | refs/heads/main | 2022-01-08T12:45:16.646028 | 2022-01-01T17:31:10 | 2022-01-01T17:31:10 | 225,452,981 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2022 all rights reserved
def test():
"""
Verify that the {__set__} method behaves as expected
"""
# get the descriptor class
from p2.descriptors.DataDescriptor import DataDescriptor ... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
57e3464578970c186bbf72034ecffedcb4f1e8e3 | 2b6ca87b32c18a1e48ffb64675abc97fda3bc6f6 | /src/onecontainer_api/routers/ai.py | c017be766571aee37b503baa3b212c8fb8a5d995 | [
"BSD-3-Clause"
] | permissive | gabrielbriones/oneContainer-API | 7882b86ff1c0b4fb4461de09deb96633e7fbed51 | ea81ed31b921711d38d352ee3a9e56bd4231bf43 | refs/heads/main | 2023-01-22T17:45:20.345662 | 2020-12-04T20:50:18 | 2020-12-04T20:50:18 | 318,630,019 | 0 | 0 | null | 2020-12-04T20:39:23 | 2020-12-04T20:39:23 | null | UTF-8 | Python | false | false | 2,008 | py | """AI vertical entrypoint."""
from typing import List
from fastapi import APIRouter, Depends, File, UploadFile
import databases
from onecontainer_api import models, schemas, errors
from onecontainer_api.routers import services, drivers
import re
router = APIRouter()
@router.get("/ai/{service_id}/usage",
desc... | [
"gabriel.briones.sayeg@intel.com"
] | gabriel.briones.sayeg@intel.com |
487a6cba227881b051690e18f580cda7c3918873 | e77cbe31ed7eb052571a41cd7d68d110d3ca20ad | /procurement_request/wizard/procurement_request_wizard.py | b6a19b8f2dcd61f67039a71e4d929959d90cfdde | [] | no_license | lopin123/falinwa_branch | 237fa59d934e0672d1c55b95e619a7f4c97eb3b4 | 051821ec3d2691338953a38a5aed64a60c35113e | refs/heads/master | 2021-01-02T22:34:36.390758 | 2015-04-08T07:58:27 | 2015-04-08T07:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | # -*- coding: utf-8 -*-
from openerp.osv import fields, orm
from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
from dateutil.relativedelta import relativedelta
from datetime import date
class procurement_request_wizard(orm.TransientModel):
_name = "procurement.request.wizard"
_... | [
"hans.yonathan@falinwa.com"
] | hans.yonathan@falinwa.com |
6cf1014ce60dbc8ae7505b3d9a75e4852b1a3698 | 8f1c3c76bf8514818b733ba29fe575d8a5243add | /eduerp_attendance/models/__init__.py | e27612b75f471c9162dd01c4529d7609eddb4edc | [
"Apache-2.0"
] | permissive | westlyou/eduerp | 27f1c7dcd0d2badf50cb6c69f5e761d7f0c6a898 | 968d79b5adc729bc81192604f1fc223517d38ccf | refs/heads/master | 2021-06-04T05:11:13.858246 | 2016-09-12T07:21:17 | 2016-09-12T07:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # -*- coding: utf-8 -*-
###############################################################################
#
###############################################################################
from . import attendance_line
from . import attendance_register
from . import attendance_sheet
# vim:expandtab:smartindent:tabstop=... | [
"huysamdua@yahoo.com"
] | huysamdua@yahoo.com |
f9a52da70f400cadaddf780a7db144d291e1f193 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/iotcentral/_inputs.py | 037588016bbe804fa5963d69b4ae4f963d2bd3ef | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
894b65e24be5bbe3bb8ae5de43cf5a4301381c52 | 7cc141beb2948f64e1b187862108b883f09bf71c | /NotasCorretagens/chromedriver.py | 66a8495368cc630687cbb1b08c9fedc457e3a6c0 | [
"MIT"
] | permissive | felipemaion/scraping_xpi | 5829a83d67da398cccd4d91c096108fe6f3cf0a7 | 522a5955c05a7da1e70055f7668f0e5e3593cf72 | refs/heads/master | 2020-05-02T15:39:59.604808 | 2019-04-01T07:58:05 | 2019-04-01T07:58:05 | 178,048,850 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait, Select
from selenium.webdriver.support.expected_conditions import presence_of_element_located
class Scraper:
def __init__(self, *args... | [
"felipe.maion@gmail.com"
] | felipe.maion@gmail.com |
e3a292441f1962e474bd358f71425ba3ac374a99 | 8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f | /1500_1999/1910.py | 05f3524ffd5384049fc271225340944a7db37961 | [] | no_license | renjieliu/leetcode | e1caf13c18a8107ed9252588b339fb76bcb1b246 | 4668b64fcb9320b6c316d8608fc61911ce43b6c7 | refs/heads/master | 2023-03-18T18:16:06.187741 | 2023-03-14T20:31:59 | 2023-03-14T20:31:59 | 128,823,819 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | class Solution:
def removeOccurrences(self, s: str, part: str) -> str:
output = ""
for c in s:
output += c
while len(output) >= len(part) and output[-len(part):] == part:
output = output[:-len(part)]
return output
# previous approach
# class Solution:... | [
"anlrj@qq.com"
] | anlrj@qq.com |
54902efb2e961b3c0e80bfdb0b26efaa72d60f79 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_313/ch54_2020_03_31_00_22_57_884915.py | d4a200b530199c65a717529b916d673f8331f920 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | def calcula_fibonacci(n):
fibonacci = [0]*100
fibonacci[1] = 1
fibonacci[0] = 1
n=2
while(n<100):
fibonacci[n] = fibonacci[n-1]+fibonacci[n-2]
n = n + 1 | [
"you@example.com"
] | you@example.com |
81f2858581aeddee8d0342e21d1ce3c9479530e8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02262/s141204203.py | 4d4e0e7ed1cedd407f0385ff3cc2d2558a5c8cde | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | cnt = 0
m = 0
g = []
def insertion_sort(a, n, g):
# cnt+=1 のときにローカルスコープの外を見にいくようにするため
global cnt
for i in range(g, n):
v = a[i]
k = i - g
while k >= 0 and a[k] > v:
a[k+g] = a[k]
k -= g
cnt += 1
a[k+g] = v
def shell_sort(a, n):
global m, ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
537ea782435fb47f81c6431c0278bb50ccfe0c70 | d8afb2e678d9da745a114e8feffee930218716b4 | /backend/adv_test_3_23538/settings.py | ae68df3785b6f69fbc2d8f0ca426a63043c5a8f4 | [] | no_license | crowdbotics-apps/adv-test-3-23538 | fd03929a6a4d8e984c2daad895d0c20fd80b4df5 | e2af927fa78de374384d9d6b59a74207f4209bba | refs/heads/master | 2023-02-12T15:18:53.318287 | 2020-12-24T19:38:53 | 2020-12-24T19:38:53 | 324,224,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,035 | py | """
Django settings for adv_test_3_23538 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
4016835924c889c2ef390dd8f82ba30088442636 | 0cd799684098c374ec6d0806410f2077814b2e9e | /advisor/migrations/0002_booking.py | 7e9a8232b8d404a10fdf566e1ecff43de219c083 | [
"MIT"
] | permissive | diyajaiswal11/User_Advisor | bc2e6828f899e08dcf3a1ef0fbe041a8013c43b4 | 332001e874add115b19cccd2fb0b6622321f32c2 | refs/heads/main | 2023-04-17T07:48:24.801798 | 2021-04-25T11:25:30 | 2021-04-25T11:25:30 | 361,345,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # Generated by Django 3.2 on 2021-04-25 09:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('advisor', '0001_initial'),... | [
"shubhijaiswal2000@gmail.com"
] | shubhijaiswal2000@gmail.com |
23495c8203860fae627a8100b1b8e2e9ba365996 | e58b3b41505eea2848624c69282327b8531c5a9d | /apps/operations/adminx.py | 10c0907278f8e6753f7998be043e6b8374d71df9 | [] | no_license | GoYMS/mxonline | 9d4a9624921a389308896ddba9a817282e910532 | 3b9e27aaaf8f47a89083806cb8f885a5b8c31c36 | refs/heads/master | 2022-12-13T11:50:24.218015 | 2020-02-21T07:25:34 | 2020-02-21T07:25:34 | 242,054,819 | 1 | 0 | null | 2022-12-08T06:19:00 | 2020-02-21T04:34:42 | JavaScript | UTF-8 | Python | false | false | 1,608 | py | import xadmin
from apps.operations.models import UserAsk,CourseComments,UserCourse,UserFavorite,UserMessage,Banner
class BannerAdmin(object):
list_display = ['title', 'image', 'url', 'datetime','index']
search_fields = ['title', 'image', 'url','index']
list_filter = ['title', 'image', 'url', 'datetime','... | [
"1789353033@qq.com"
] | 1789353033@qq.com |
a8c9f7cf950293dcc4cd6b1a2029129783a07270 | 41bee87d712a9460ab2d79a7439cd9f98e861d63 | /TgwlDataCenter/TgwlDataCenter/main/views.py | a4ea7f9d3fa2fca724acbb0daa9c2a22beb5e1aa | [] | no_license | liulixiang1988/iis_flask_demo | e72e209281441521b2b952dbf3547a5dc6507ec1 | f1d77f363b64fc52859c83fbffb6da563df561c4 | refs/heads/master | 2021-01-10T08:12:20.164278 | 2015-11-27T01:59:45 | 2015-11-27T01:59:45 | 46,954,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # -*- coding:utf-8 -*-
from datetime import datetime
from flask import render_template
from TgwlDataCenter import db
from TgwlDataCenter.models import Fruit
from TgwlDataCenter.main import main
@main.route('/')
@main.route('/home')
def home():
"""Renders the home page."""
fruit = Fruit(fruit=u"苹果")
db.s... | [
"liulixiang1988@gmail.com"
] | liulixiang1988@gmail.com |
2c896f2e371789e95671bb85e89272c49208ec25 | 52f00638c8773b001da5a341e16abc05934457f8 | /rlpyt/agents/pg/mujoco.py | 0ac8ff5e3dad5ea0dc9f92de401c713934064014 | [
"MIT"
] | permissive | abagaria/rlpyt | 8e72dde5f3750c72da1fd8a97badf2c9691ea633 | 9d35217f2ecec60891753cf313d482d7887c16e1 | refs/heads/master | 2020-09-04T00:16:35.320779 | 2019-11-21T19:21:49 | 2019-11-21T19:21:49 | 219,614,849 | 0 | 1 | MIT | 2019-11-04T23:17:11 | 2019-11-04T23:17:10 | null | UTF-8 | Python | false | false | 1,049 | py |
from rlpyt.agents.pg.gaussian import (GaussianPgAgent,
RecurrentGaussianPgAgent, AlternatingRecurrentGaussianPgAgent)
from rlpyt.models.pg.mujoco_ff_model import MujocoFfModel
from rlpyt.models.pg.mujoco_lstm_model import MujocoLstmModel
class MujocoMixin:
def make_env_to_model_kwargs(self, env_spaces):
... | [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
72dc80d819fcaab11a208c849483dcbb988c9a1f | 4a31308430d06cc3743e0dcc52501c0addd19008 | /nodeA/p2p/core_node_list.py | a6782b3f7f3b6d28e02543a5bfab7d3c94796956 | [] | no_license | hyo07/bc2odpt-dev | b22ad08139c311164cabce63b547dd076df52c08 | 2f11ae5b4dad410ba66179c7701b2e25ceeff371 | refs/heads/master | 2022-12-12T18:16:23.250608 | 2020-11-06T07:23:06 | 2020-11-06T07:23:06 | 247,711,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | import threading
class CoreNodeList:
def __init__(self):
self.lock = threading.Lock()
self.list = set()
def add(self, peer):
"""
Coreノードをリストに追加する。
param:
peer : Coreノードとして格納されるノードの接続情報(IPアドレスとポート番号)
"""
with self.lock:
print('A... | [
"yutaka727kato@gmail.com"
] | yutaka727kato@gmail.com |
084e4cf81257ae12d846254bbff0055434fc7d89 | e97e727972149063b3a1e56b38961d0f2f30ed95 | /test/test_double_operation_resource.py | 31eb32a0b4acb0777dcf050bca89159001193ac1 | [] | no_license | knetikmedia/knetikcloud-python-client | f3a485f21c6f3e733a864194c9acf048943dece7 | 834a24415385c906732437970db105e1bc71bde4 | refs/heads/master | 2021-01-12T10:23:35.307479 | 2018-03-14T16:04:24 | 2018-03-14T16:04:24 | 76,418,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # coding: utf-8
"""
Knetik Platform API Documentation latest
This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
OpenAPI spec version: latest
Contact: support@knetik.com
Generated by: https://github.com/swagger-api/swagger-codeg... | [
"shawn.stout@knetik.com"
] | shawn.stout@knetik.com |
c5e3cf8ccaee00baf6e761221f47c8375c551c50 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /enterpriseknowledgegraph/search/lookup_sample_test.py | 14bb48921ebb2818291664e810db90c14a1145eb | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,013 | py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
d7c11080139ed0bff1800582fef010d1bedb96c7 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1514.py | 0f27373d40ddcd82cb07423f15c79eea3f3c6422 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | from math import floor, ceil
def get_result(num, k):
if num == k:
return 0, 0
if num == 2:
return 1, 0
if k == 1:
if num % 2 == 0:
return (num / 2), (num / 2) - 1
else:
return (num - 1) / 2, (num - 1) / 2
num_1 = ceil((num - 1) /... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
615a7ce2809c9bdded6aa8d12c3fb35fe9b1ec63 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/share/doc/networkx-2.2/examples/drawing/plot_four_grids.py | 9123bb27725a34a30be61f73d9402afefc496e05 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 838 | py | #!/usr/bin/env python
"""
==========
Four Grids
==========
Draw a graph with matplotlib.
You must have matplotlib for this to work.
"""
# Author: Aric Hagberg (hagberg@lanl.gov)
# Copyright (C) 2004-2018
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
#... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
2fcd265f4cfb612be33f39b9c2a640b0e8ebb430 | fd18ce27b66746f932a65488aad04494202e2e0d | /d11_spider/codes/Adv_Spider/Adv_Spider/spiders/baidu_request.py | 2700834d6cf9b738aef84a4995acbedad18f4c50 | [] | no_license | daofeng123/ClassCodes | 1acbd843836e550c9cebf67ef21dfca9f6b9fc87 | fbcd1f24d79b8bb56ad0669b07ad118064609612 | refs/heads/master | 2020-06-24T12:34:28.148197 | 2019-08-15T03:56:40 | 2019-08-15T03:56:40 | 198,963,469 | 3 | 0 | null | 2019-07-26T06:53:45 | 2019-07-26T06:53:44 | null | UTF-8 | Python | false | false | 1,268 | py | # -*- coding: utf-8 -*-
import json
import scrapy
import scrapy.http
class BaiduRequestSpider(scrapy.Spider):
name = 'baidu_request'
allowed_domains = ['fanyi.baidu.com']
start_urls = ['https://fanyi.baidu.com/sug']
def start_requests(self):
# Request
headers = {
'content... | [
"38395870@qq.com"
] | 38395870@qq.com |
703e62e2db63fdf7b1f11b8d7276719c0d544cd9 | 3f9e960174cfc5c8bd6827ce5362124c467a3952 | /python/data_structure/api_fields_values_histogram.py | 09fed45101551344fdd765d4719736c3bf9bb234 | [] | no_license | monobinab/python | f3ec6d462d7149c007ac9e14e72132eae73b4acd | 265621b045969c819eb86fa7ba2a3bdfad34ecb6 | refs/heads/master | 2020-12-03T00:04:29.185880 | 2017-07-01T18:53:11 | 2017-07-01T20:06:16 | 95,982,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | #!/usr/bin/env python
#this script parses storm log files and creates pipe delilited storm log files
import sys
from datetime import date, timedelta, datetime
#from dateutil import parser
counts = dict()
tmp_lst = list()
# input comes from STDIN (standard input)
for line in sys.stdin:
client = ""
try:
... | [
"monobina.saha@searshc.com"
] | monobina.saha@searshc.com |
7bd38216ab778e3afaf00fe52d4e142572267d0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03862/s008273879.py | 920a1b732a14199ec1f52a59849810aee0710dc2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | n, x = map(int, input().split())
A = list(map(int, input().split()))
ans = 0
for i in range(n - 1):
if A[i] + A[i + 1] > x:
ans += A[i] + A[i + 1] - x
A[i + 1] = max(x - A[i], 0)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
246f7e3ba7f6dd25ba307531bd7af5a603be58c7 | 802c002ecd90be6b489e0250ec4454a11c17ed1d | /src/homework/homework13/main_homework7.py | 301a2f393bbefdf4b2ea9b60e17fa62bb2949b97 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-EricScotty | 3a088285ae853a9ff5d747f2301f755c5e3749b3 | 80c0249a583dc178cfc7bb95b851d7f3240dc3e9 | refs/heads/master | 2021-09-14T05:54:02.132705 | 2018-05-08T23:27:04 | 2018-05-08T23:27:04 | 118,071,042 | 0 | 0 | MIT | 2018-04-23T02:51:05 | 2018-01-19T03:22:13 | Python | UTF-8 | Python | false | false | 969 | py | from src.homework.homework7 import get_p_distance_matrix, print_get_p_distance_matrix
'''
Write a main function to...
Read p_distance.dat file
From the file data, create a two-dimensional list like the following example:
[
['T','T','T','C','C','A','T','T','T','A'],
['G','A','T','T','C','A','T','T','T','C'],
... | [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
1dbb1088e45851aaa83d57c2a6646e4158d3da5a | d746f9f262961fd4c65eb332d8325f7fdacf3757 | /dingureu/settings.py | f9c67e688925e9835faf2ffc1592a29418a4d0d6 | [] | no_license | Ganodab-Brothers/dingureu-django-backend | c69c84e48c64874bb283fec07dee2c203fca6b08 | 2aa37bbdd5c8b003b0e73854c2eca23a3deccb06 | refs/heads/master | 2023-04-20T21:10:26.686591 | 2021-04-28T00:33:39 | 2021-04-28T00:33:39 | 359,873,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,866 | py | """
Django settings for dingureu project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"code.yeon.gyu@gmail.com"
] | code.yeon.gyu@gmail.com |
651237ce3104a4d44722f7c75a12ee6769a94487 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03937/s470682175.py | 1480749348da6cfb1296018b442d2120f2ab5b1e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | H,W=map(int,input().split())
field=[]
for i in range(H):
s=input()
a=[]
for j in range(W):
a.append(s[j])
field.append(a)
def dfs(x,y):
field[x][y]='.'
dx=[0,1]
dy=[1,0]
for i in range(2):
nx=x+dx[i]
ny=y+dy[i]
if 0<=nx and nx<H and 0<=ny and ny<W and fie... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d6b97e765f3a7f16caed9f39bd488474adf650e | b0dbd2e4dd83fe012cde29c8474bae5e33c23e2a | /harbor_client/model/robot_create_v1.py | 2f99d134e25272b617002f74eb94bb0b6fce1cd4 | [] | no_license | DevotionZhu/harbor-python-client-api | 0ba3999e5af126dbe97f0234c4a9601660a97dbb | f0cc6c453b488d5f456eff94000156182eb3a468 | refs/heads/master | 2023-04-17T22:06:06.024871 | 2021-04-11T22:20:28 | 2021-04-11T22:20:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,200 | py | """
Harbor API
These APIs provide services for manipulating Harbor project. # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from harbor_client.model_utils import ( # noqa: F401
ApiTypeError... | [
"vb@container-registry.com"
] | vb@container-registry.com |
80acd454dc42c8718c69d967d6cb1d86e6ac4d21 | a9e81c87022fdde86d47a4ec1e74791da8aa0e30 | /tensorflow-learning/base/loss-function/03-sigmoid.py | 0f8dabd13b8e2db95a38496a8efb6bcc08f2cfd1 | [
"Apache-2.0"
] | permissive | ymli1997/deeplearning-notes | c5c6926431b7efc1c6823d85e3eb470f3c986494 | f2317d80cd998305814f988e5000241797205b63 | refs/heads/master | 2020-07-29T11:15:43.689307 | 2018-05-05T10:58:18 | 2018-05-05T10:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # -*- coding:utf-8 -*-
import numpy as np
import tensorflow as tf
a = tf.constant([[1.0,2.0],[1.0,2.0],[1.0,2.0]])
res = tf.nn.sigmoid(a)
init_opt = tf.global_variables_initializer()
with tf.Session() as sess:
sess.run(init_opt)
result = sess.run(res)
print(result) | [
"kkoolerter@gmail.com"
] | kkoolerter@gmail.com |
3fbe1bceff869e837fbf8bc1c9ada9178969a38c | e7d791d3f24076cad781b963ed4375cace3ba734 | /examples/dataloader_test.py | fac7ec386d4585dafd320a52387fd369c2cf7a49 | [
"Apache-2.0"
] | permissive | jiniaoxu/bi-lstm-crf | d9512cc524f8a5d60509391d3eb0e931d299b230 | 0667537207b8cb43b68fe5ab4378f770d05bf45a | refs/heads/master | 2020-04-13T18:06:51.797880 | 2018-12-24T08:12:44 | 2018-12-24T08:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from dltokenizer.data_loader import DataLoader
if __name__ == '__main__':
data_loader = DataLoader("../data/src_dict.json", "../data/tgt_dict.json", batch_size=64)
generator = data_loader.generator("../data/2014")
for _ in range(1):
sent, chunk = next(generator)
assert len(sent) == len(chu... | [
"1490215053@qq.com"
] | 1490215053@qq.com |
02701604a58c249a1488f5470f94671ab4bf44ad | 15b801de0dd019411135aad75f7cd653061489d3 | /actions/migrations/0001_initial.py | d0c21952f659882959d85157b7158114b4c98957 | [] | no_license | 007vict/bookmarksbyexample | ff73befa059de10cd4b425b615678ac0fd1fa528 | 6b614affe46ebc2ac0687ed5cdf50c6439784932 | refs/heads/master | 2020-04-29T16:59:37.434190 | 2019-03-22T21:29:27 | 2019-03-22T21:29:27 | 176,282,231 | 0 | 0 | null | 2019-03-18T19:15:24 | 2019-03-18T12:38:50 | Python | UTF-8 | Python | false | false | 1,262 | py | # Generated by Django 2.2rc1 on 2019-03-22 15:10
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('con... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
e0bb05f7819d66e7ae57c40d5566afcc54aeedac | e4920c4fe4290bde524e0c141189f80fddfe44b7 | /dashboard/urls.py | 524c5746de8285b0cc666f48b3c5563297731e11 | [] | no_license | ShahadatShuvo/Django_portfolio | 42af2b0aa686bff08730cdb105f95d6b63adb620 | 795ed7cbb6444245af08582ea63f57a0f32679a0 | refs/heads/master | 2023-05-30T01:43:50.409584 | 2021-06-14T08:29:18 | 2021-06-14T08:29:18 | 376,372,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django.urls import path
from django.contrib.auth.views import LogoutView
from .views import (
dashboard,
profile,
profile_edit,
messages,
messages_api,
projects,
projects_api,
LoginView,
EducationView,
)
app_name = 'dashboard'
urlpatterns = [
path('', dashboard, name=... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
b8aa7c0fbbbc85ced858cb68b0a50f1132f1d81e | f6fee9397e858bce2d2e4258602d4a029b9a859e | /LinkedList/Leetcode 2. Add Two Numbers.py | 1e00848552ec84c31c195e4f04828dcbc7479c86 | [
"MIT"
] | permissive | sriharsha004/LeetCode | e180dc4c0e1af217d3fbe026650b4035c50a388b | 95ca845e40c7c9f8ba589a45332791d5bbf49bbf | refs/heads/master | 2022-12-07T11:37:28.843751 | 2020-08-21T03:05:45 | 2020-08-21T03:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
dummy = ListNode(0)
cur = dummy
carry = 0
while l1 or l2:
sums = 0
if l1:
sums += l1.val
l1 = l1.next
if l2:
sums += l2... | [
"Tian.Zeng@aexp.com"
] | Tian.Zeng@aexp.com |
f57f7a2a1489715fa67b8cc3ca5912999c0b2b63 | 0f41b3564b08045f56b8ee4743ef8834b88a274e | /otree/management/commands/resetdb.py | b7de7fb73d101b0efdeaccd536b8a8f86fc9d5d5 | [
"MIT"
] | permissive | bjgoode/otree-core | b04911f00671ef6bbfeeb184359133f85ec221cb | ab6bbcbdb53cb1d74b205f04f16eb40ea099a45d | refs/heads/master | 2021-05-11T18:31:00.398740 | 2018-01-17T23:28:22 | 2018-01-17T23:28:22 | 117,827,105 | 1 | 0 | null | 2018-01-17T11:27:21 | 2018-01-17T11:27:21 | null | UTF-8 | Python | false | false | 6,623 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# IMPORTS
# =============================================================================
import logging
from django.conf import settings
from django.core.management.base import BaseCommand
... | [
"chris@otree.org"
] | chris@otree.org |
8aa639aff98132e95e43aa967b1655b5351b5783 | 880d9cc2704f7de649ad4455dd7ec2806b6a9e95 | /PythonExam/北京理工大学Python语言程序设计-Book/Chapter6/e10.3CalThreeKingdoms.py | 7dfc8f674c32c92b48171bf8ba1a75ce241cab31 | [] | no_license | shunz/Python-100-Days_Practice | 14795757effcff50a4644f57c5c109fa1c9c38ac | 82f508ff6911ce3aa5c5a69cd481a6cc87f02258 | refs/heads/master | 2020-12-26T18:52:32.755384 | 2020-04-07T15:49:36 | 2020-04-07T15:49:36 | 237,604,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,784 | py | """《三国演义》人物出场统计
- 输入
- 从网上找到三国演义全文,保存为threekingdoms.txt
- 处理
1. 分解并提取中文文章的单词
- 采用jieba对文章分词
- 排除不是人物的单词,用集合类型构建一个排除词汇库
- 合并同人不同名的单词,比如:刘备=刘玄德=玄德=刘皇叔=主公
2. 对每个单词进行计数
- 将单词保存在变量word中
- 使用一个字典类型counts={}
- counts[word]... | [
"rockucn@gmail.com"
] | rockucn@gmail.com |
11f87053a9b778f57300d4430253f97fcf77ccc6 | 3a533d1503f9a1c767ecd3a29885add49fff4f18 | /saleor/graphql/translations/mutations/product_translate.py | bfb252870e111b3c02e367b5f1d589c8e89a8ce5 | [
"BSD-3-Clause"
] | permissive | jonserna/saleor | 0c1e4297e10e0a0ce530b5296f6b4488f524c145 | b7d1b320e096d99567d3fa7bc4780862809d19ac | refs/heads/master | 2023-06-25T17:25:17.459739 | 2023-06-19T14:05:41 | 2023-06-19T14:05:41 | 186,167,599 | 0 | 0 | BSD-3-Clause | 2019-12-29T15:46:40 | 2019-05-11T18:21:31 | TypeScript | UTF-8 | Python | false | false | 2,059 | py | import graphene
from ....core.tracing import traced_atomic_transaction
from ....permission.enums import SitePermissions
from ....product import models as product_models
from ...channel import ChannelContext
from ...core import ResolveInfo
from ...core.enums import LanguageCodeEnum
from ...core.types import Translation... | [
"noreply@github.com"
] | jonserna.noreply@github.com |
f792e5de0ef32f047b98b4a3d27b410d7185e5ad | d69bff5c124177d16074034da7b87859a4e9a525 | /src/pretix/plugins/statistics/__init__.py | eb7d476351730b84ea392eb9ec1ac39e48ad3ec5 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | snadal/pretix | f377313d52cb57d0193c8d102af1e47f64de7ce6 | 430ccece9a3af6fd93c51626a9551ef79cee8002 | refs/heads/master | 2021-02-15T09:17:07.063355 | 2020-03-04T11:44:37 | 2020-03-04T11:44:37 | 244,885,007 | 0 | 0 | NOASSERTION | 2020-03-04T11:38:09 | 2020-03-04T11:38:09 | null | UTF-8 | Python | false | false | 588 | py | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
from pretix import __version__ as version
class StatisticsApp(AppConfig):
name = 'pretix.plugins.statistics'
verbose_name = _("Statistics")
class PretixPluginMeta:
name = _("Statistics")
author = _(... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
f16a8c1bae7847be6dfceb67897dee835eca9958 | 907b3bbd44c95be1542a36feaadb6a71b724579f | /files/home/gcloud/google-cloud-sdk/lib/surface/container/builds/create.py | c0d1af759913e065a72a78222c6ad59bf6ef3554 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vo0doO/com.termux | 2d8f536c1a5dbd7a091be0baf181e51f235fb941 | c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e | refs/heads/master | 2020-12-24T09:40:30.612130 | 2016-11-21T07:47:25 | 2016-11-21T07:47:25 | 73,282,539 | 2 | 2 | null | 2020-07-24T21:33:03 | 2016-11-09T12:33:01 | Python | UTF-8 | Python | false | false | 919 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"kirsanov.bvt@gmail.com"
] | kirsanov.bvt@gmail.com |
eacc4ec788812a02d38d19d23aea55d3f053a2dc | b3699724907850fd26cbce4509fec83a33b89760 | /python/ray/autoscaler/_private/event_summarizer.py | d877bf424459d75777a728931f35e79993c01ecb | [
"Apache-2.0",
"MIT"
] | permissive | BonsaiAI/ray | 5e2f26a81d865a795261d11f9182aca7f07c7b97 | 941d30f082fe879ea30618af14327c25b5a21a74 | refs/heads/master | 2023-06-12T05:15:29.370188 | 2021-05-06T07:03:53 | 2021-05-06T07:03:53 | 233,708,687 | 3 | 5 | Apache-2.0 | 2023-05-27T08:06:37 | 2020-01-13T22:41:47 | Python | UTF-8 | Python | false | false | 1,430 | py | from typing import Any, Callable, Dict, List
class EventSummarizer:
"""Utility that aggregates related log messages to reduce log spam."""
def __init__(self):
self.events_by_key: Dict[str, int] = {}
def add(self, template: str, *, quantity: Any,
aggregate: Callable[[Any, Any], Any]) ... | [
"noreply@github.com"
] | BonsaiAI.noreply@github.com |
0d1c07214d02cff04c05d3e2658206175b689f11 | 166e2e2095ca86e44735d3dd85b54d3f30e03baf | /app/__init__.py | f8617206c3f0409fdb445c1498a0a463afbb73f6 | [
"MIT"
] | permissive | joss13aws/damgteam | e04502e7c89142a9e060a2d879cfcb9cf0d2e29a | ce5beedc5b187141bcec76c15011fe8c4ae33743 | refs/heads/master | 2022-01-25T08:22:44.387636 | 2018-09-12T07:15:39 | 2018-09-12T07:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
"""
Script Name: __init__.py.py
Author: Do Trinh/Jimmy - 3D artist.
Description:
"""
# -------------------------------------------------------------------------------------------------------------
from __future__ import absolute_import
import os, subprocess
BASE = os.path.dirname(__file__).... | [
"dot@damgteam.com"
] | dot@damgteam.com |
fa4720480d99598478d88893f74730d1b74f153b | bfd6ac084fcc08040b94d310e6a91d5d804141de | /PulseSequences2/SidebandOptimization.py | 5b3223a3788320f39d1161c1d19f3a5584fa78af | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 2,590 | py | from common.devel.bum.sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
from treedict import TreeDict
class SidebandOptimization(pulse_sequence):
scannable_params = {'SidebandCooling.sideband_cooling_amplitude_854' : [(-30., -6., 3., 'dBm'), 'curren... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
abc5778f8d9954d10c526765fe14fd1b7d08ab46 | 33789ec4b4a2d35f06cd89068f90686650057102 | /object_oriented_programming/polymorphism/function_overloading.py | 2b41cb5df64489594b40d2cdb5f9750b69d6a1df | [] | no_license | unnievarghese/originalpythonluminar | d9c342a5b34b7236bf34f8a53b35188b12e90b3d | 616929ff471700248b0619c35025562c131ea459 | refs/heads/master | 2023-03-01T20:59:41.165467 | 2021-01-23T11:26:09 | 2021-01-23T11:26:09 | 315,814,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | def add():
print('inside no arg add method')
def add(num):
print('inside 1 arg add method')
def add(num1,num2):
print('inside 2 arg add method')
# def without a class is funtion
#fucntion overloading is same as method overriding but without class
# same fuction but different number of arguments
print(add(1,... | [
"unnieputhengadi9@gmail.com"
] | unnieputhengadi9@gmail.com |
be86e46364d706fb41a1344fe6cdb49253da255f | 3f345ac4cad6dc931260ab40c40d0977ba51db77 | /src/__init__.py | 24b34714951bc77838edb3c7468a1acd0abc9a0b | [] | no_license | fran-jo/EngineME | f586831f55942320a0dc07dbf70a409c2fc475d5 | 69555183d5b8a3bc3c4a0c406da2a58b2f9fcb70 | refs/heads/master | 2020-03-23T21:03:39.305112 | 2019-02-09T22:03:09 | 2019-02-09T22:03:09 | 142,078,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from eme.logiclayer.engine import enginedym
from eme.logiclayer.engine import engineomc
from eme.logiclayer.command import CommandOMC
# from engine.engineJModelica import EngineJM | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
96e4c704ecf4e1e33f84c8abce3e5307dfcb01bc | 33294c238bd5c6ad0cb69d7b6d6922a54b1f7d95 | /src/wrf/g_omega.py | f2f70ba8836d6204a9722f15fdb14897dc289f60 | [
"Apache-2.0"
] | permissive | NCAR/wrf-python | a3b81aa0de3c7dd8b20d390bd949e3f4e3100bed | 79dda8329dd814aaba44cddf62cd12db0f5e2e97 | refs/heads/develop | 2023-06-30T03:14:14.380762 | 2023-06-16T22:26:09 | 2023-06-16T22:26:09 | 59,517,733 | 384 | 155 | Apache-2.0 | 2023-06-23T19:43:18 | 2016-05-23T20:55:40 | Python | UTF-8 | Python | false | false | 3,272 | py | from __future__ import (absolute_import, division, print_function)
from .constants import Constants
from .destag import destagger
from .extension import _omega, _tk
from .util import extract_vars
from .metadecorators import copy_and_set_metadata
@copy_and_set_metadata(copy_varname="T", name="omega",
... | [
"ladwig@ucar.edu"
] | ladwig@ucar.edu |
8f7769ef093d5beca0d0d32a1807271d4d0060da | 761dbc29537f2271d7cac5ee55bf818cf3d94ee3 | /solver_methods.py | 6b2949e8036f047c4f0b16af10481ba7603d3b16 | [] | no_license | k-off/Rubik_brute_force | ee5d78d22ff72ecd312129787571635cd1f6d3fe | 8688a9e66f8b2d40afe46a449a2b830c5b461e6e | refs/heads/master | 2022-03-07T10:43:56.580884 | 2019-10-22T08:09:32 | 2019-10-22T08:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | #******************************************************************************#
# #
# :::::::: #
# solver_methods module :+: :+: ... | [
"user@localhost.localdomain"
] | user@localhost.localdomain |
76d96db4057deeca5c0be5158343d8ae8cd74e65 | e281ce2330656a6a0a7f795f535f78881df8b5ba | /Web/HelloWorld/Web1.py | e2342cf62a0c93cdd44e45b46e6c6ee836e8d8c8 | [] | no_license | sunruihua0522/SIG-PyCode | 70db0b57bbf9ce35dc42bd8de62c5bb56a2e888e | 483a67bf679f54ab7405c2362d9cfe47daa2bc0f | refs/heads/master | 2020-07-12T14:46:32.588227 | 2020-04-02T04:37:02 | 2020-04-02T04:37:02 | 204,842,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from flask import Flask, Request
app =Flask(__name__)
@app.route('/')
def HelloWold():
return 'Hello World'
@app.route('/login/')
def Login():
return 'Login......'
@app.route('/login/<int:id>/')
def LoginWithVar(id):
return '<h1>Welcome %d to my world !</h1>'%id
@app.route("/foo/<string:username>/")
d... | [
"--global"
] | --global |
71f98b5c6f7a6e09c70a177a86d013d601ea80b4 | 8f1137592d670ce134821106f736e231b03ead87 | /mmdet/models/backbones/__init__.py | bed1d549993cacc78bc9d11bcb4b03efddd934ac | [
"MIT"
] | permissive | mousecpn/DMC-Domain-Generalization-for-Underwater-Object-Detection | fa426c834fa2a5cd2fe98c50dd4dfeda64fcdc79 | 133797cfb7553557fb81a37e3c99c88154a13765 | refs/heads/master | 2023-05-23T16:49:34.795363 | 2023-02-13T02:23:31 | 2023-02-13T02:23:31 | 501,597,077 | 16 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .csp_darknet import CSPDarknet
from .darknet import Darknet
from .detectors_resnet import DetectoRS_ResNet
from .detectors_resnext import DetectoRS_ResNeXt
from .hourglass import HourglassNet
from .hrnet import HRNet
from .mobilenet_v2 import MobileNetV2
from .pvt im... | [
"609731730@qq.com"
] | 609731730@qq.com |
9eb0eefa8a96b1ade59c85a7d02aab823056e1af | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/119/usersdata/239/27344/submittedfiles/al1.py | 6c815196c1dc7bc1a3f761f112f9ee81f7fa36b9 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # -*- coding: utf-8 -*-
print("Programa de conversão de temperatura: °C -> °F")#Nome de apresentação do aplicativo
print("")
C = float(input("Digite a temperatura em °C:"))#Declarando a entrada
F = ((9*C)+160)/5#Processamento
print("O valor em °F é: %.2f"%F)#Linha para apresentar a saída
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b650ce40f2448c5bb65139c22519be4c58cbe7dc | 2af9c17cf29a9bba3f3e714c861e8f89ee5fc488 | /python code/HR33_itertools_product.py | f9633579a94bd1807b00e7a86ee8e8966bd4a1e5 | [] | no_license | Binay28/Binay-s_Code | 9df3315bf9433d62a3b2228ea3f87be93917e5b3 | 7e05c39a753fab79a4518119d41953827dba10c9 | refs/heads/master | 2022-11-18T16:00:19.325948 | 2020-07-16T12:16:38 | 2020-07-16T12:16:38 | 198,006,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from itertools import product
A=list(map(int,input().split()))
B=list(map(int,input().split()))
print(*product(A,B))
#product(A, B) returns the same as ((x,y) for x in A for y in B)
| [
"45505267+Binay28@users.noreply.github.com"
] | 45505267+Binay28@users.noreply.github.com |
548e6b996617ab7253f3a41fa7c7838b9df2aad1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /qeyinsjZHCPEddbfe_3.py | 101cca3e7846d04b82b150f8b95efd2e70cbf0e5 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py |
def dice_game(lst):
result = [0 if x == y else x + y for x, y in lst]
if 0 in result:
return 0
else:
return sum(result)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
52d55eaa96a718f0192d07bd30328853a449ba83 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02419/s944531801.py | 0470606a21cac3803c17734548ec73c240969efd | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | W=raw_input()
T=[]
while 1:
x=raw_input()
if x=="END_OF_TEXT": break
T+=[v.lower() for v in x.split()]
print T.count(W) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f18e2900ad229eb69539225ff1271712780b26b1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Quote18/HQ_18_042.py | 4520798521b4e456949b24bbd5c72a4af4a40a7b | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_18_042(xtp_test_case):
def subMarketData(self, Api, stk_info, case_name, rs_ex... | [
"418033945@qq.com"
] | 418033945@qq.com |
c8e514cf6371ba34c6915c2a4fa7d98162c04ef5 | 387ad3775fad21d2d8ffa3c84683d9205b6e697d | /testsuite/trunk/epath/set_ep_loc_012.py | 78a9160027aee4ca102953bb975b8d0cbcdb9901 | [] | no_license | kodiyalashetty/test_iot | 916088ceecffc17d2b6a78d49f7ea0bbd0a6d0b7 | 0ae3c2ea6081778e1005c40a9a3f6d4404a08797 | refs/heads/master | 2020-03-22T11:53:21.204497 | 2018-03-09T01:43:41 | 2018-03-09T01:43:41 | 140,002,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | #!/usr/bin/env python
"""
(C) Copyright IBM Corp. 2008
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
file and program are licensed under a BSD style license. See
the Copy... | [
"suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26"
] | suntrupth@a44bbd40-eb13-0410-a9b2-f80f2f72fa26 |
b257b9fbad4c6e99eb47fc7e4b63508036ae8fe7 | 6257b3d146ecff251aabb4dc78cf66bc69d2ab31 | /component/struts/struts2016.py | 980725069fe7fafe8cd96a756da7fe407fcc2015 | [
"MIT"
] | permissive | bigbigx/PocCollect | 39549107f01d313656b451bafe7657cb8c61f410 | 6b0f438e6e6005bd0adbdf3bcc97a2d808c6f9ea | refs/heads/master | 2021-06-04T15:48:04.790219 | 2021-04-06T11:24:54 | 2021-04-06T11:24:54 | 63,687,713 | 0 | 0 | MIT | 2021-04-06T11:24:55 | 2016-07-19T11:19:43 | Python | UTF-8 | Python | false | false | 2,355 | py | #!/usr/bin/env python
# encoding: utf-8
from t import T
import requests
class P(T):
def __init__(self):
T.__init__(self)
keywords=['struts']
def verify(self,head='',context='',ip='',port='',productname={},keywords='',hackinfo=''):
target_url=''
target_url = 'http://' + ip + ':' ... | [
"nanshihui@qq.com"
] | nanshihui@qq.com |
8110ddd0dde5af6e6d8fb80a917983c1ae137518 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hoxv8zaQJNMWJqnt3_1.py | 111f3aa56f45f561eaf1e5c385c12cc977867642 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
def is_heteromecic(n,i = 0):
if n == i * (i + 1):
return True
if n < i * (i +1):
return False
i+=1
return is_heteromecic(n, i)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.