blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4058a4aba52d9076ba294a27d437eb8344f2cdb7 | 668cc2cd1109cf1c207a57ae7decc5ae5edc9728 | /backend/users/migrations/0002_auto_20201104_1426.py | d51fe7ac08131e041c8abbbf9f79c5410e4a4133 | [] | no_license | crowdbotics-apps/logictech-22290 | 7538661024c163c16881371468f84c181d1ee93f | f17151874e1fd60a1cc81b247a5e0599421ac6e8 | refs/heads/master | 2023-01-09T21:14:45.728461 | 2020-11-04T14:30:13 | 2020-11-04T14:30:13 | 310,025,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 2.2.17 on 2020-11-04 14:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d47b3bb24581ca86d9a76530a019eaca62ae8e66 | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2EE/2EE-2J_MD_NVT_rerun/set_4.py | 2b3fa06318de66ab34d51136748b9f7c26eaed64 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2EE/MD_NVT_rerun/ti_one-step/2EE_2J/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_4.in'
temp_pbs = filesdir + 'temp_4.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in l... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
a0b3baaacb54b0e27beb93b36ee98ef7b92beb83 | 8654435d89790e32f8e4c336e91f23250da0acb0 | /bullet3/examples/pybullet/numpy/humanoid_running.py | d15a68c8b3843917870a8ca017c69d0db13adfdc | [
"Zlib"
] | permissive | takamtd/deepmimic | 226ca68860e5ef206f50d77893dd19af7ac40e46 | b0820fb96ee76b9219bce429fd9b63de103ba40a | refs/heads/main | 2023-05-09T16:48:16.554243 | 2021-06-07T05:04:47 | 2021-06-07T05:04:47 | 373,762,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502,206 | py | import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0, parentdir)
import sys
import numpy as np
import argparse
import pybullet as p
import time
gui = True
cid = p.connect(p.... | [
"m.tym29101998@gmail.com"
] | m.tym29101998@gmail.com |
eaf3840aa3f8986f9ac5af4ac914a14e080bd347 | cc7ad1a2aa5d691c15ff7838d1e5126ab2c2bee0 | /basic_notifications/views.py | b7e1ecc497a68ddf9693738e0e033c9b746371b7 | [] | no_license | demirantay/lingooapp | 9632be8a7d3dd00e7a4ac13618f32975da389729 | c842bb032668ef1bd5e7f4282acd4990843c8640 | refs/heads/master | 2023-03-14T08:00:37.681334 | 2021-01-09T09:36:48 | 2021-01-09T09:36:48 | 285,181,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | # Main Imports
import json
# Django Imports
from django.shortcuts import render, get_object_or_404, HttpResponse
from django.http import HttpResponseRedirect
from django.core.exceptions import ObjectDoesNotExist
from django.core.files import File
from django.contrib.auth.models import User
from django.utils import tim... | [
"demir99antay@gmail.com"
] | demir99antay@gmail.com |
7ec56d1dfd873785b0db9c891aacd95142031aa1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /sQN3Jb43teMbC7rGJ_18.py | 795c8a4678747c53bbb24bcd6b59c6e238410b4e | [] | 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 | 176 | py |
def make_transpose(m):
dm = len(m)
dn = len(m[0])
tm = [[0] * dm for i in range(dn)]
for i in range(dm):
for j in range(dn):
tm[j][i] = m[i][j]
return tm
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c2ea0ec2e21e9047ed990c7351593ad82edc44ad | 536bce6ca78a9a151247b51acb8c375c9db7445f | /chapter1/1.5-interest_rate.py | 15aba2121680fc7d7fffc673afd05db59b2923ce | [] | no_license | clicianaldoni/aprimeronpython | 57de34313f4fd2a0c69637fefd60b0fb5861f859 | a917b62bec669765a238c4b310cc52b79c7df0c9 | refs/heads/master | 2023-01-28T18:02:31.175511 | 2023-01-23T08:14:57 | 2023-01-23T08:14:57 | 112,872,454 | 0 | 0 | null | 2017-12-02T19:55:40 | 2017-12-02T19:55:40 | null | UTF-8 | Python | false | false | 464 | py | p = 5 # Interest rate %
A = 1000 # Initial amount
years = 3 # Number of years to grow
# Formula for calculating sum: A(1 + p/100)^n
# To avoid integer division we convert p to float
sum = A * (1 + (float(p)/100))**years
print("After %g years with %g%% interest rate and an initial amount of %g we have %g." ... | [
"martin@rodvand.net"
] | martin@rodvand.net |
e57bf9dec7e340b0469004ecf5111d0ea081f482 | 674f5dde693f1a60e4480e5b66fba8f24a9cb95d | /armulator/armv6/opcodes/concrete/ldc_ldc2_immediate_a2.py | c145465c0a7b80a8b878d200a1c3998d5b55001d | [
"MIT"
] | permissive | matan1008/armulator | 75211c18ebc9cd9d33a02890e76fc649483c3aad | 44f4275ab1cafff3cf7a1b760bff7f139dfffb07 | refs/heads/master | 2023-08-17T14:40:52.793120 | 2023-08-08T04:57:02 | 2023-08-08T04:57:02 | 91,716,042 | 29 | 7 | MIT | 2023-08-08T04:55:59 | 2017-05-18T16:37:55 | Python | UTF-8 | Python | false | false | 788 | py | from armulator.armv6.arm_exceptions import UndefinedInstructionException
from armulator.armv6.bits_ops import substring, bit_at
from armulator.armv6.opcodes.abstract_opcodes.ldc_ldc2_immediate import LdcLdc2Immediate
class LdcLdc2ImmediateA2(LdcLdc2Immediate):
@staticmethod
def from_bitarray(instr, processor)... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
fea4d5a004cb0d120f3829c1fa2cbf4b2df64e17 | 046333321b2717c6391a111fc2f74b04bbbeb7af | /chapter13(enumrate function)/sorted.py | cbe84261ffe34d30f366d660bdb7c5115a530460 | [] | no_license | jyash28/Python-practice | b0c9df42bc93716d8721a1420ee1f3170b40b18c | cd3a61934618145cbaa20e62194ebb1642ba9941 | refs/heads/main | 2023-07-03T18:06:38.407491 | 2021-07-13T09:47:07 | 2021-07-13T09:47:07 | 314,485,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | guitars= [
{"model1" : 'famaha f310' ,"price": 8400},
{"model2" : 'faith neptune' ,"price": 100000},
{"model3" : 'faith appolo venus' ,"price": 35000},
{"model4" : 'taylor' ,"price": 450000}
]
sorted_guitars = sorted(guitars, key= lambda d: d["price"],reverse = True)
print(sorted_guitars) | [
"jyash548@gmail.com"
] | jyash548@gmail.com |
cee7caced2bc83a749cecf518d0afbeac3bf528e | 747f759311d404af31c0f80029e88098193f6269 | /addons/project_timesheet_contract/project/__init__.py | 34aa344afd62fd26763d265b1313036fe1245e01 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | /home/openerp/production/extra-addons/project_timesheet_contract/project/__init__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
e22cf41bebc21fe5ea70c17604946adc4fe9a69e | ef5bde73d58734f5081f127fe344ae85c53b8b68 | /config_modify.py | 8c8255c6e3156d5372724911ccee779d14d2e548 | [] | no_license | ychnlgy/VoxCeleb1 | a3a6337f322ec1c78f926e2f529db001f7ec8349 | 930ce2c5c9f0828705afb096c7ee33bfe4b6b96e | refs/heads/master | 2020-06-11T10:40:35.462721 | 2019-07-09T16:42:24 | 2019-07-09T16:42:24 | 193,934,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import argparse
import voxceleb1
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--path", required=True)
args = parser.parse_args()
config = voxceleb1.training.Config(args.path)
del config.param_dict["_dob"]
kvs = ["--%s %s" % item for item in config.p... | [
"ychnlgy@gmail.com"
] | ychnlgy@gmail.com |
c33973915a1487aa198d9586d9ef07976496fe35 | 9c6dcd6964c0bbbc960106736a3adf83f99ae613 | /Balatarin/bipartiteMongo.py~ | 0ac84299fccd071931a5ee43aa4271ca00d40bdf | [] | no_license | Roja-B/Trajectories | 5ab065991c34ba74b6951ad090401c0cb14f222b | e1ce1c6ac8095f92853e0ebe7a41eb8a82e7eff2 | refs/heads/master | 2016-09-05T17:56:45.643404 | 2013-01-24T03:54:21 | 2013-01-24T03:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | #!/usr/lib/python3.0
# This program extracts bipartite edgelist of users and links belonging to a specific time window (both the link and the votes should come from that time window)
# Author: Roja Bandari
# October 2012
from pymongo import Connection
from PARAMETERS import *
import datetime
import time
import sys
... | [
"roja@ucla.edu"
] | roja@ucla.edu | |
a9520d4013f01df3a621233c6de34a7732d48832 | 2a05456121813e2c5c3a0e9a88c0c381a038633b | /euler089.py | b32e61c3f1608a6ae354bef88b3f646d1612cf92 | [] | no_license | Octaith/euler | 022fab72f7d2a72327694ea1970aa3e13a560673 | 457676a99013c7c5fd33697b82be998d07c464d9 | refs/heads/master | 2020-09-26T21:04:08.656499 | 2014-09-14T07:47:51 | 2014-09-14T07:47:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | roman = (
('M', 1000),
('CM', 900),
('D', 500),
('CD', 400),
('C', 100),
('XC', 90),
('L', 50),
('XL', 40),
('X', 10),
('IX', 9),
('V', 5),
('IV', 4),
('I', 1)
)
def roman_to_dec(s):
result = 0
index = 0
for numeral, integer in roman:
whil... | [
"banteeg@gmail.com"
] | banteeg@gmail.com |
ede98906221ceb5af90a8e165e9a48203a10f212 | a1dae20db0338e735f0b4eb2804a069533bc5a9b | /render.py | f36dcfdfed83a87bd98faa44c513dbe54b05c932 | [] | no_license | thoppe/TwitterSquares | 4d78e80680c3b01673d602c2564811bf42090aa6 | a01dd65456fa70478a0ed03cd7c994c0a678e3ef | refs/heads/master | 2020-03-20T08:17:42.525989 | 2018-06-19T22:05:20 | 2018-06-19T22:05:20 | 137,304,270 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,058 | py | """Render Twitter Squares
Usage:
render.py <term> <n_images> [--resolution=<n>]
Options:
-h --help Show this screen.
-r --resolution=<n> Output resolution [default: 1200]
"""
import glob
import os
import sys
import random
from tqdm import tqdm
import numpy as np
import cv2
from docopt import doco... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
fccc5e04254af51c2fc4a03cdf992b81f31a1d28 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/sql/v20190601preview/__init__.py | 82b3a2004814746567987c5300774fdd220485e0 | [
"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 | 2,559 | 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! ***
# Export this package's modules as members:
from ._enums import *
from .database import *
from .get_database import *
from .get_managed_database import... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
5011a21caf349d8ce94e37300ed1812a3e77ff99 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_25989.py | e0a1a41656b1eecde1b382880dffcadd2189e571 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,842 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
8ce1689b4605bab929cceaf30bd0e1e4bc9293a9 | b40d1a26ea04a19ec0da7bf55db84b7ee36cc898 | /leetcode.com/python/1007_Minimum_Domino_Rotations_For_Equal_Row.py | 974ee558096c8fe9a393d9b91f507186e8e356d7 | [
"MIT"
] | permissive | partho-maple/coding-interview-gym | 5e8af7d404c28d4b9b52e5cffc540fd51d8025cf | 20ae1a048eddbc9a32c819cf61258e2b57572f05 | refs/heads/master | 2022-09-11T16:36:01.702626 | 2022-03-14T08:39:47 | 2022-03-14T08:39:47 | 69,802,909 | 862 | 438 | MIT | 2022-08-18T06:42:46 | 2016-10-02T14:51:31 | Python | UTF-8 | Python | false | false | 2,177 | py | # Source: https://tinyurl.com/v3zqer7
# Approach 1
class Solution(object):
def minDominoRotations(self, A, B):
"""
:type A: List[int]
:type B: List[int]
:rtype: int
"""
result = float("inf")
for domino in range(1, 7): # Since each domino can have only 1 to 6 ... | [
"partho.biswas@aurea.com"
] | partho.biswas@aurea.com |
d7e949f538a3a780aa931750ee78faf99c3e1323 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/operations/_ddos_protection_plans_operations.py | d971927ea9d9c040f54655faee5d8e8cf1f6edd5 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 30,324 | 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"
] | manoj0806.noreply@github.com |
59ab5667a34c44fdb895072c8f91f93182bc126b | acf314ab0fa399018764b2ebd96e33c66362994e | /0x0F-python-object_relational_mapping/1-filter_states.py | 3db5e1107d420d574d6614b5ae1f741eb6da16ad | [] | no_license | glyif/holbertonschool-higher_level_programming | 98f9c2da0b71a4e9e2dd9f6fde755875e9015f34 | 14c02d79e2008db1b992b08f9faa55b20dbe0691 | refs/heads/master | 2021-01-20T06:53:16.179354 | 2017-09-28T18:14:12 | 2017-09-28T18:14:12 | 89,939,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/python3
"""
mysqldb filter states
"""
import sys
import MySQLdb
def db_connection(user_name, password, db_name, host="localhost"):
"""
db_connection - connects to db
:param user_name: username
:param password: password
:param db_name: database name
:param host: host - default to lo... | [
"122@holbertonschool.com"
] | 122@holbertonschool.com |
2b6dbf579ae37711f46b26057e43ff7b642659e2 | 77c8c500d4077ad733fbfe2c6a85a1dd47bd3cb5 | /chelseashin/ProblemSolving/2156_포도주시식.py | 940cea71221cff29f679eb73ae27638dc45e2bad | [] | no_license | chelseashin/AlgorithmStudy2021 | 786f03c4c17bc057518d428481e7d710d24ec98e | 1a4744a621ed25715fc9060c5224f0b1092d9c00 | refs/heads/master | 2023-06-22T22:27:47.289806 | 2021-07-28T02:54:22 | 2021-07-28T02:54:22 | 326,441,667 | 1 | 5 | null | 2021-06-29T01:27:40 | 2021-01-03T15:44:16 | Python | UTF-8 | Python | false | false | 848 | py | # 참고 : https://pacific-ocean.tistory.com/152
# https://claude-u.tistory.com/204
# dp[i]의 최댓값을 구하는 것은 세 가지 방법에 의해 결정된다.
# 1) OXOO: 연속 두 개
# 2) OXO: 하나 띄고 한 개
# 3) X: i 번째를 마시지 않는 경우
from sys import stdin
input = stdin.readline
n = int(input())
a = [0] + [int(input()) for _ in range(n)]
dp = [0, a[1]]
if n > 1:
dp.... | [
"chaewonshin95@gmail.com"
] | chaewonshin95@gmail.com |
26f00db3c32d9d29465643d06dc02532c017e608 | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py-debian/2.6/i386/twisted/python/_inotify.py | c002674f122a6bd2a9e80aa2344b47edeff20f78 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | ../../../../../py-unpure/twisted/python/_inotify.py | [
"tushar239@gmail.com"
] | tushar239@gmail.com |
0324dd3dc62f88495cb95ea7424deef660c43536 | e2e39726195c7bc075b9bd56e757acd136527d5c | /typings/vtkmodules/vtkIOXML/__init__.pyi | 5a9a78845d01dba6a9f4391c9438656d0f13da23 | [
"BSD-3-Clause"
] | permissive | gen4438/vtk-python-stubs | a652272183d2d1ee48d4639e86bcffc1ac454af0 | c9abd76362adf387af64ce5ddbd04c5d3bebe9da | refs/heads/main | 2023-04-04T02:13:15.459241 | 2021-04-15T10:47:28 | 2021-04-15T10:53:59 | 358,224,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,682 | pyi | """
This type stub file was generated by pyright.
"""
import vtkmodules.vtkCommonCore as __vtkmodules_vtkCommonCore
import vtkmodules.vtkCommonExecutionModel as __vtkmodules_vtkCommonExecutionModel
import vtkmodules.vtkIOXMLParser as __vtkmodules_vtkIOXMLParser
from .vtkXMLReader import vtkXMLReader
from .vtkXMLDataRe... | [
"g1e2n04@gmail.com"
] | g1e2n04@gmail.com |
ee9cee9c908ac3278c8545a66f4d96149faae702 | 7ce05272d21c903abc85ebc74544009aacd80c82 | /Advance_Python/Python_Database_Programming/Other/add_user_in_bank.py | 5c2f984a2d9a435280b32ffcf34ffcf45b74ed87 | [] | no_license | sachinyadav3496/PythonInternBatch2018 | 8899a866f60a39b4c7eff4f5bc79ec2586833403 | 8e2610ad80c39ea747e8a6547ebe540e7b019a79 | refs/heads/master | 2021-06-26T09:18:58.178457 | 2020-10-03T09:49:32 | 2020-10-03T09:49:32 | 136,880,809 | 18 | 34 | null | 2020-10-03T09:49:33 | 2018-06-11T05:56:26 | Jupyter Notebook | UTF-8 | Python | false | false | 548 | py | import pymysql as sql
db = sql.connect(host='localhost',port=3306,user='bank_app',password='redhat',database='bank_app')
c = db.cursor()
f = open('bank_data.csv')
data = []
for line in f :
d = line.split(',')
d[2] = float(d[2][:-1])
data.append(d)
f.close()
for var in data :
name = var[0]
p... | [
"sachinyadav3496@gmail.com"
] | sachinyadav3496@gmail.com |
073b6b152e0805dbc16dce1d402482e505bd9770 | 9d5723c09148cc353e5339a706ba582a162dceec | /hunkim/lab12-5.py | 822c653469deeadaddde45a16a92e53b9bc3eaab | [] | no_license | SilverQ/dl_study | 424bce279c059c290a4c766e87fadb150fff82da | 663b432abc5afd0eed278368a5fea19ece6a383c | refs/heads/master | 2022-11-14T08:27:10.937535 | 2020-07-02T10:05:04 | 2020-07-02T10:05:04 | 82,505,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,120 | py | '''
The original script shows how to predict the next day's closing stock prices using a basic RNN
https://github.com/hunkim/DeepLearningZeroToAll/blob/master/lab-12-5-rnn_stock_prediction.py
At first, let's understand the original code and prior arts completely
'''
import tensorflow as tf
import numpy as np
import ma... | [
"scor9947@hanmail.net"
] | scor9947@hanmail.net |
36cc5a4f3b24b18cffd92d7046c81ced4ac397e1 | 75089d61a7f985fc23a3e29e6517a744c1b5c76b | /data/__init__.py | ce8ecdf19bf474e1e68babbf0bdf5d154c34d3d5 | [] | no_license | KUR-creative/data-warehouse | e4e85ffa7cd0ec416bb67c62aef624bca6323370 | e1e4720f8ad529291f2c36b1c284a6e4b15ac637 | refs/heads/master | 2023-01-21T14:21:54.533736 | 2020-12-03T06:34:20 | 2020-12-03T06:34:20 | 288,881,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from . import (
raw,
)
| [
"rhdnfka94@gmail.com"
] | rhdnfka94@gmail.com |
1f5c2bd6304a0c9d074d8c9541a0eb810b6bf790 | 45006b78675997765c2248ce2944aa24c9cd3787 | /tf_agents/bandits/policies/policy_utilities.py | 9d39be6fd7480a0e6372bfa270c35c47d4db578c | [
"Apache-2.0"
] | permissive | ymodak/agents | 43d2105965db763b07233139c0b87896c956547a | a6ab65605a6910cb3130a500614d006c9271157b | refs/heads/master | 2022-09-24T03:47:05.815845 | 2020-05-18T18:02:40 | 2020-05-18T18:03:03 | 265,031,865 | 0 | 0 | Apache-2.0 | 2020-05-18T18:50:52 | 2020-05-18T18:50:51 | null | UTF-8 | Python | false | false | 8,891 | py | # coding=utf-8
# Copyright 2018 The TF-Agents Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f5b2ea2f20edbedb90a3351960045e897c52f2c3 | db98aeb4883d2aa9969970d353b9d6212c7dbde2 | /lectures/07-python-dictionaries/examples/dna9.py | f71e08b870a9f5ce84946e6c88096ad74de04bfa | [
"MIT"
] | permissive | qianwenluo/biosys-analytics | cec7e84477e01f9aa17e30c1fd8286710deed617 | f936095931fa8f237de8bdf058b960db86effa49 | refs/heads/master | 2020-04-15T20:19:25.669143 | 2019-05-07T17:52:17 | 2019-05-07T17:52:17 | 164,988,099 | 0 | 1 | MIT | 2019-01-10T04:12:20 | 2019-01-10T04:12:20 | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/env python3
"""Tetra-nucleotide counter"""
import sys
import os
from collections import defaultdict
args = sys.argv[1:]
if len(args) != 1:
print('Usage: {} DNA'.format(os.path.basename(sys.argv[0])))
sys.exit(1)
arg = args[0]
dna = ''
if os.path.isfile(arg):
dna = ''.join(open(arg).read().spl... | [
"kyclark@gmail.com"
] | kyclark@gmail.com |
908d6b9bdd11c832f27b876675752c230f0dd8e9 | 901bfc797cc369c0bea21167ac471d0311cb93ac | /e3/DiffieHellman.py | bf11a36e45a5949541a91c675a66430dd0b9b984 | [
"MIT"
] | permissive | NigrumAquila/subject_cryptographic_protection | 022216fd1481febc3a010efdfd11ab3398c73d00 | 2b4015b3c1b6d57391e866a70d308e78e5cab719 | refs/heads/master | 2021-03-17T15:58:10.590822 | 2020-05-01T06:30:54 | 2020-05-01T06:30:54 | 247,001,657 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import __main__
if __main__.__file__ != 'main.py':
exit('run main.py')
from .DHlib.DHalg import encrypt, decrypt, getSharedSecret, printAllKeys, printParams
from lib.colors import *
from lib.duty import *
key = getSharedSecret()
printAllKeys()
while True:
printParams();
message = typedText('Enter me... | [
"kononenko-1999@bk.ru"
] | kononenko-1999@bk.ru |
2ed5006395d6e55cc012484b9d82f09f074e11cf | 8fc2ab3d29a30e603e19b30bb9517928de529167 | /hackerank_whatsnext.py | 2d44363c21597514612dc972cc035e6441f66752 | [] | no_license | rushilchugh/Practise | 35a9861bec6786580dc0a440eb25d78e43cb7bc9 | 98fd593b95dad641bef1d519c6c6ed1daaae630f | refs/heads/master | 2020-03-13T21:14:14.013604 | 2018-04-27T12:23:50 | 2018-04-27T12:23:50 | 131,291,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | __author__ = 'Rushil'
#SetCount(x) - Number of ones in an binary number x
#Johnny wants to find a binary number, D, that is the smallest binary number >B where setCount(B) = setCount(D)
#He then wants to compress D into an array of integers,C (in the same way that integer array A contains the compressed form of bi... | [
"noreply@github.com"
] | rushilchugh.noreply@github.com |
2ae309ab7516c2e17c6d104bf77aa92bce5dbd7d | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /byceps/services/board/models/topic.py | ddc5451016c5f326ba92595817d09bd24677a035 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | """
byceps.services.board.models.topic
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import datetime
from sqlalchemy.ext.associationproxy import association_proxy
from ....blueprints.board.authorization import (
B... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
a4315be2234838908f42b3d2d0d042647f384c92 | a80884040ce1c178274a3068d216f440dd541844 | /tests/regression/test_tee_map_completion.py | 07635a9b627669bb5320d9242fc4ef3be123bf53 | [
"MIT"
] | permissive | maki-nage/rxsci | a4aae51edc1ef684b55df22e34c11aa1d54ef740 | 915e59ebf593c4b313265bb87cf0e1209ec2ee0f | refs/heads/master | 2023-01-19T14:32:11.638497 | 2023-01-17T08:06:35 | 2023-01-17T08:06:35 | 242,592,973 | 9 | 2 | MIT | 2022-11-08T21:54:16 | 2020-02-23T21:23:56 | Python | UTF-8 | Python | false | false | 464 | py | import rx
import rx.operators as ops
import rxsci as rs
def test_completion():
data = [1, 2, 3]
actual_data = []
actual_completed = []
rx.from_(data).pipe(
rs.ops.tee_map(
ops.count(),
rs.math.sum(reduce=True),
)
).subscribe(
on_next=actual_data.app... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
28d7d37773b000b74a0651e75715b1992064c925 | 5d5f6ba3bdcb52b4750a5f28afa8a1a1019bfc9e | /python_basics/python_fundamentals/functionsIntermediate/functionsIntermediate1.py | d4c0b59e7de7fe8d6ba8eb493267361224b8c5de | [] | no_license | eDiazGtz/pythonLearning | 06e96f2f5a6e48ac314cb815cf9fbf65d0b7c2c8 | 57d7b2292cf5d9769cce9adf765962c3c0930d6c | refs/heads/master | 2023-06-18T02:16:09.293375 | 2021-05-03T18:09:52 | 2021-05-03T18:09:52 | 335,090,531 | 0 | 0 | null | 2021-05-03T18:09:53 | 2021-02-01T21:35:24 | Python | UTF-8 | Python | false | false | 1,200 | py | import random
# random.random() returns a random floating number between 0.000 and 1.000
# random.random() * 50 returns a random floating number between 0.000 and 50.000
# random.random() * 25 + 10 returns a random floating number between 10.000 and 35.000
# round(num) returns the rounded integer value of num 0.5 roun... | [
"ediaz-gutierrez@hotmail.com"
] | ediaz-gutierrez@hotmail.com |
4af6502a710b7d7100d9f5e384a09128caf93cb0 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /Cameo/filter.py | 90ff87c95582c437a4e823c03071524feb09e16e | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | import cv2
import numpy as np
import dateutil
| [
"864773190@qq.com"
] | 864773190@qq.com |
c8770ff0014c49e8aef32a4df572380d038204df | 23f3349e8b50f0cb3e461bbd65c1ea8dec792d0b | /2_semestr/lec_05.py | 683d1a2c6fabbc138893e0adaa2d19cb1db944a8 | [] | no_license | JacobLutin/Python_bmstu | d17866dbab0e74f0f9d600c4dbd9d53eb5c5b7be | 66fd8679de7556978b9cd1e9fd8646a8d7d6daa8 | refs/heads/master | 2020-05-29T14:40:09.310602 | 2017-03-27T05:18:58 | 2017-03-27T05:18:58 | 64,742,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import numpy as np
a = np.arange(12)
a1 = np.copy(a)
print("Исходная матрицы")
a2 = np.reshape(a1, (3, 4))
print(a2, '\n')
a2 = a2.T
print("Транспонированная матрица")
print(a2, '\n')
#min, max, sum, сортировка
b = np.array([[2, 8, 0], [6, 1, 3], [4, 7, 5]])
print("Новая исходная матрица\n", b, '\n')
dsum = b.sum... | [
"jacoblutin@gmail.com"
] | jacoblutin@gmail.com |
aa0c4ed9935283356909351e267db22a24e3bf0b | 913e24ea110f839c73363bc1aac9673e561fa5f8 | /gym_environments/widowx_env/envs/v41_widowx_pybullet_env_fixedGoal_actionStepCoeff25_noBounds_1joint_reward16.py | 08772e2ee4242328bac40c5c52cdb93a98e9dff2 | [
"MIT"
] | permissive | PierreExeter/WidowX-reacher | 24e2b3f72e9aec24a9a61e6a8958c200e0dbe893 | 560c6779dc91a887191f344c43de24926ba75b4d | refs/heads/master | 2023-03-06T13:48:12.810858 | 2021-02-22T15:36:52 | 2021-02-22T15:36:52 | 264,480,232 | 4 | 0 | MIT | 2021-02-22T15:27:44 | 2020-05-16T16:36:53 | Python | UTF-8 | Python | false | false | 17,140 | py | import gym
from gym import error, spaces, utils
from gym.utils import seeding
from numbers import Number
from collections import OrderedDict
import pybullet as p
import pybullet_data
import os
import numpy as np
import random
# ENVIRONMENT CONFIGURATION
NEUTRAL_VALUES = [0.015339807878856412, -1.4839419194602816,
... | [
"pierre.aumjaud@gmail.com"
] | pierre.aumjaud@gmail.com |
dcf32321584fe37884e0f4817db5a71e31b2c2c1 | b0c2f67b2878a312c6e6ffa5fe4158bd55dad69c | /chap4/exp4.1.py | 55fe517c4d14c71d71fb13cf69c53d6a324056ee | [] | no_license | loukey/pythonDemo | efda51be07beede0be2a8cdaae9b7e153bc790bc | 9e6f64908ccba64d32ffc58edbb8d6f8ab6bf68d | refs/heads/master | 2021-01-20T04:39:24.054749 | 2017-05-19T05:41:00 | 2017-05-19T05:41:00 | 89,711,134 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # -*- coding: utf-8 -*-
#例4.1简单地打印数字
#很有趣的是,Python没有do..while以及while..until
#但是我们也可以强行实现
while True:
print 'Please enter a number:'
number = input()
print number
if number==0:
break
print 'List Ended'
| [
"529768926@qq.com"
] | 529768926@qq.com |
bac598ef7573c63aeb9e39fc13f67f09c8edb748 | 747f759311d404af31c0f80029e88098193f6269 | /addons/training_doc/training_doc.py | e31f2e4105271968edebb810aead63d83aef037f | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | /home/openerp/production/extra-addons/training_doc/training_doc.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
e8cb6b230d208935d065fedcf70f0c591e8ba666 | 8bdd86dd0ae6b6f7aae17ff0ef2d887afd06d2fa | /examples/sharecuts.py | e78cac870e69efa96b9030c63a0ef69e72d5fb6a | [
"MIT"
] | permissive | shuxiaokai/looter | b0504600e4d5730eff2aab27fbe19d2fd5fb1f18 | 2be094576e31fd13123719ca94e42cb31475dffa | refs/heads/master | 2023-04-18T01:19:51.827004 | 2020-05-17T08:11:28 | 2020-05-17T08:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | """
捷径社区的捷径排行榜
"""
from pprint import pprint
import requests
import looter as lt
domain = 'https://sharecuts.cn'
total = []
def crawl(url):
items = requests.get(url, headers=lt.DEFAULT_HEADERS).json()
for item in items:
data = {}
data['name'] = item['name']
data['category'] = item['Ca... | [
"2582347430@qq.com"
] | 2582347430@qq.com |
6075bf7ba52d2c689ce7e8d799b2bdfa2bb43e1b | 4ad06bae18751fd71df145d126e3624ea90e05e6 | /flat_sharp/interpolation.py | b8f5c77d79fd72a53d69363fa13955e41a1408be | [] | no_license | daniellengyel/flat_sharp | 04d82399e44d178e52c56acf1ba2ff3a75e4c27f | 4a1e3f4abbebc7a5342aaa63080493b77aff5677 | refs/heads/master | 2021-04-22T16:14:26.238625 | 2020-07-09T13:03:44 | 2020-07-09T13:03:44 | 249,861,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,933 | py | import numpy as np
from utils import *
from data_getters import *
from postprocessing import *
import copy
import torch
def interpolate_models(model1, model2, beta):
params1 = model1.named_parameters()
params2 = model2.named_parameters()
new_model = copy.deepcopy(model2)
new_params = new_model.named... | [
"daniel.lengyel@berkeley.edu"
] | daniel.lengyel@berkeley.edu |
3c2914aeeb137940e884af34f7f4ae1b9a1cb124 | 306d2a92fb331aec6ddf0794b538d6e3385a0df9 | /app/api/news/views.py | 4821c74644481851dbbc7b49363e6c122d7dddf6 | [] | no_license | Zarinabonu/ForceApp | f343d3a52aee08890230c5425c9e238df99c5a7f | 13f8e8613999c4850fc6f0bfcec66f897eecbe4a | refs/heads/master | 2020-12-10T08:00:25.072289 | 2020-01-20T13:14:07 | 2020-01-20T13:14:07 | 233,540,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from rest_framework.generics import ListAPIView
from app.api.news.serializers import NewsSerializer
from app.model import News
class NewsListAPIView(ListAPIView):
serializer_class = NewsSerializer
def get_queryset(self):
qs = News.objects.all()
v = self.request.GET.get('-views')
l_se... | [
"zarinabonu199924@gmail.com"
] | zarinabonu199924@gmail.com |
40ac13a7d56e1369c096d6b0d9a77961d16430bf | 443585e4fc146308b18bc2f9234d0947da38d3e5 | /input_output/2.py | 8e66671a1fb57677c88f36c9a0d41923421258d1 | [] | no_license | ggyudongggyu/20201208commit | b524c4a7fb241cacaacffa5882c55d1d0ccba11f | fbb58a8ed06f454a2a79a9b8c75deabaec62b317 | refs/heads/master | 2023-02-02T21:59:51.518218 | 2020-12-24T14:32:21 | 2020-12-24T14:32:21 | 319,578,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | in_str = input()
print(in_str)
| [
"donggyu0219@gmail.com"
] | donggyu0219@gmail.com |
d57f83bffdfb4d3b6a1515261b2d121eadb2561f | 8ed86b8e9c451abcb2ce0ddf2f2067c11f3993d8 | /osmnx/simplify.py | 9a7f930496b164cd592daeb1d16d9989edec354f | [
"MIT"
] | permissive | surfcao/osmnx | 65830096c21b8353a536f776dfedba7de20eac4c | 51c9addb42425657fa6b11c7442f79f10b9e3e22 | refs/heads/master | 2021-01-19T23:32:40.068378 | 2017-04-19T20:22:01 | 2017-04-19T20:22:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,568 | py | ###################################################################################################
# Module: simplify.py
# Description: Simplify and correct network topology
# License: MIT, see full license in LICENSE.txt
# Web: https://github.com/gboeing/osmnx
#########################################################... | [
"gboeing@berkeley.edu"
] | gboeing@berkeley.edu |
fa4627fc540dc0fe3e22751b5e32ea7167da0399 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc029/B/4327177.py | e0009a3dbc5483db0e2de0f6c57fab864e879af1 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from collections import Counter
input()
A=list(map(int,input().split()))
A.sort(reverse=True)
C=Counter(A)
ans=0
for a in A:
if C[a]==0:
continue
C[a]-=1
t=2**a.bit_length()-a
if C[t]:
C[t]-=1
ans+=1
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
955d81f88ec11f246f6d9dcdd6f9b8a4d2744fe8 | c8dc80a0082b2d59de0e1df24b25483f55510c57 | /0x0F-python-object_relational_mapping/11-model_state_insert.py | 55472dd9df2fb8c159784fb95664ea3259b05a3a | [] | no_license | Daransoto/holbertonschool-higher_level_programming | 51d81fac1dc3a6bd0799283332a3bcf5e2480330 | 4fa5f95b462f0e22b1e87189d162f0cb8c5625b6 | refs/heads/master | 2020-07-22T23:03:01.184032 | 2020-02-13T21:36:18 | 2020-02-13T21:36:18 | 207,358,507 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | #!/usr/bin/python3
""" Inserts Louisiana state. """
import sys
from sqlalchemy import create_engine
from model_state import Base, State
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'
.format(sys.argv[1], sys.... | [
"901@holbertonschool.com"
] | 901@holbertonschool.com |
d5b2d0a9e571234c680d803851735c7c32986bee | 62912bea20c56093f27fb2826e0f5f4a26a3ed0b | /symphony/cli/pyinventory/api/user.py | 26b7cb869b430045ee70020b452c8fdb9a7edcd2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | sijad/magma | 5c2b6520e207f05c29f29248627b90629f1f4088 | 78b5f16432d7070a84da74b90d4f1e3f8348fa37 | refs/heads/master | 2021-04-09T06:34:15.295104 | 2020-03-20T19:28:42 | 2020-03-20T19:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | #!/usr/bin/env python3
# Copyright (c) 2004-present Facebook All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from typing import List
from ..client import SymphonyClient
from ..consts import Entity, User
from ..exceptions import EntityNotFoundE... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
fda194aff772871c7c4b2ea781497dc72cf05c8a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_cryings.py | 62b48a889fcdd5f58f940b8aca110dd0c8ff2b83 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py |
from xai.brain.wordbase.verbs._cry import _CRY
#calss header
class _CRYINGS(_CRY, ):
def __init__(self,):
_CRY.__init__(self)
self.name = "CRYINGS"
self.specie = 'verbs'
self.basic = "cry"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
30df20c459875066299b819277787ea6cd268ad7 | 0fd506e2651fde07ff65ae80c12226a18d7778a2 | /wildfire/pandas_cut_test.py | d3bbc09ac55c3f2995b8e3a3325024673de427c4 | [] | no_license | MillerWu2014/remote_project | af69e20d84809ea3d1e121e5cac57715073f70d6 | 7458ec6571b5b046f07ce2f89dcb393e0dd2e478 | refs/heads/master | 2020-08-03T15:43:36.028810 | 2019-09-30T07:45:06 | 2019-09-30T07:45:06 | 211,804,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | import pandas as pd
x = pd.Series(range(100))
print(pd.cut(x, 50, labels=range(50))) | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ca010878792d0bc73fec72213f7db9f251dfd0e5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bandaged.py | 9ef009f331d8a4fe83aa934179c391e624957156 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
from xai.brain.wordbase.nouns._bandage import _BANDAGE
#calss header
class _BANDAGED(_BANDAGE, ):
def __init__(self,):
_BANDAGE.__init__(self)
self.name = "BANDAGED"
self.specie = 'nouns'
self.basic = "bandage"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cd846f89d90d6f2f5ce61fa895e49409d4e39009 | 604ffaf79c5f9c816bb1a2151ae33fbf29bca52b | /cloudstoragetui/keypress.py | 6eaf37d5320d02c08c43e2c2b52b735c33eabb6f | [
"MIT"
] | permissive | joeyism/cloud-storage-tui | 1069092b51f1d11daa033ea5896b625e42e55691 | 8fda9bc8551756e88db706944489f1bbcc95a52c | refs/heads/master | 2023-05-31T00:33:07.979555 | 2021-06-07T17:19:26 | 2021-06-07T17:19:26 | 352,346,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | import curses
from typing import List
from cloudstoragetui.constants import KEY_QUIT, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, KEY_ENTER, ESC, UP, DOWN, LEFT, RIGHT
from cloudstoragetui.draw import DrawnBox
from cloudstoragetui.cursor_state import CursorState
from cloudstoragetui.debug import log
def _extract_min_max(b... | [
"sham.joey@gmail.com"
] | sham.joey@gmail.com |
8020760bc5cd0a1d148739c5991cea3a09beb85f | 5aadc1f06bdb68a73bb003b23cc85af528d61bf4 | /detection_network/src/rl/ppo.py | b71a185fbb72e8e16bc734d17634f6bdea14b165 | [] | no_license | zideajang/zi_full_self_drive_system | 81dca2ca0541dfab7c021c6e3a0e58701bbf1693 | fee2e4057619a19a585fbd8b9622f69c25946be1 | refs/heads/master | 2023-09-03T02:41:35.720600 | 2021-09-27T02:37:41 | 2021-09-27T02:37:41 | 358,083,188 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py |
import torch
import torch.optim as optim
class RolloutStorage:
def __init__(self,num_steps,num_processes,action_size):
pass
class PPO(object):
def __init__(
self,
controller,
clip_param,
lr,
baseline_decay,
action_size = 18,
ppo_epoch=1,
... | [
"you@example.com"
] | you@example.com |
1fe3fb6fa971710011542bc58df695cb0c6d7730 | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/fastapi/dynamic-response/main.py | e9ecf608f59322153963fae72ce85a28b0f05e1f | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 164 | py | from fastapi import FastAPI
import datetime
app = FastAPI()
@app.get("/")
async def root():
return {"message": f"Hello World at {datetime.datetime.now()}"}
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
a9582fe1ff3a16c1aa108f54b5ff1ae3984f5ccb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_171/ch65_2019_06_07_01_24_18_525767.py | 79aa0ff8a8f6334244edcac2ba434f9ec46d556f | [] | 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 | 206 | py | def acha_bigramas(string):
lista=[]
i=0
while i<len(string):
if string[i:i+2] not in lista and len(string[i:i+2])>3:
lista.append(string[i:i+2])
i+=1
return lista | [
"you@example.com"
] | you@example.com |
c5248a3cae6dcafab9c6ad505abc712db1980a72 | 74ec860957869ea48af8535bf32f9fd87cc81011 | /dna-methylation/scripts/develop/illumina450k/residuals/plot/scatter_comparison.py | 22a26b4bf6f95cc4078b5e99f2a407784322a5a3 | [] | no_license | GillianGrayson/dna-methylation | f1a0878f4aa8c917bee9e5230387d6145826fb3a | e602ba91f3d275d92aadf0f874ac6f189adf547b | refs/heads/master | 2022-02-08T03:31:22.423781 | 2022-02-01T16:50:37 | 2022-02-01T16:50:37 | 164,105,085 | 0 | 1 | null | 2020-03-20T18:08:24 | 2019-01-04T12:30:29 | Python | UTF-8 | Python | false | false | 2,721 | py | import pydnameth as pdm
import pandas as pd
import os.path
from scripts.develop.routines import *
max_rows = 10
fn = 'scatter_comparison_rows.xlsx'
rows_dict = {}
if os.path.isfile(fn):
df = pd.read_excel(fn)
tmp_dict = df.to_dict()
for key in tmp_dict:
curr_dict = tmp_dict[key]
rows_dict[... | [
"hewitt.archie@yandex.ru"
] | hewitt.archie@yandex.ru |
ce19c5dcc0781b0f973bef61f84f4c439f3f4947 | 924c65166eee1da93c0a0c85f067c028b1d7c6be | /deepforest/deepforest.py | 19e80e8a67f29e7e8a2266c1c25eca30a205a678 | [
"MIT"
] | permissive | geo-py/DeepForest | 4cf8e1fd742c6a52b67cb57d2f6825e149a0903b | 39cb1db4b57ca7fbb64f0f87fee0f74487e4d7e3 | refs/heads/master | 2021-04-08T09:48:58.526848 | 2020-03-19T03:04:01 | 2020-03-19T03:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,798 | py | """
Deepforest main module. This module holds the deepforest class for model building and training
"""
import os
import csv
import warnings
from PIL import Image
with warnings.catch_warnings():
#Suppress some of the verbose tensorboard warnings, compromise to avoid numpy version errors
warnings.filterwarnings(... | [
"benweinstein2010@gmail.com"
] | benweinstein2010@gmail.com |
8df0a5de30770486d65f5750ddf7332158529917 | 385ce240ae264a1449079c21bd0c4cbe7c0fe3b8 | /myowntests/ifelseladder.py | 6be8802a946907017b902d6c6c70418b5968deb2 | [] | no_license | Maxcousin123/Python-workspace | 3ed60ae80d790b5c055bf47872ff0fdd39f4ec58 | 326b023190a12e082dcb35ae5ab8ef644c32159b | refs/heads/master | 2022-11-24T11:05:08.707003 | 2020-07-29T06:32:08 | 2020-07-29T06:32:08 | 283,415,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | maths=int(input('fill your math grade'))
physics=int(input('fill your physics grade'))
chemistry=int(input('fill your chemistry grade'))
av=(maths+physics+chemistry)/3
if maths<35:
print('Exam Failed')
else:print('Exam passed')
if physics<35:
print('Exam failed')
else:print('Exam passed')
if physics<35:
... | [
"66350396+Maxcousin123@users.noreply.github.com"
] | 66350396+Maxcousin123@users.noreply.github.com |
e730f6b2b0eca72e7e22623e746eb8a5f9fc2013 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_2side/bce_s001_tv_s0p1_L8/step09_2side_L8.py | 150ed37ed776a944b01f8ce846b25ba5de404b7b | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,319 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
a30c882225f0729f7727634a091398bc4b341d00 | a58fcf9467749de7d269c5b17430773069e29791 | /designate/exceptions.py | bd807f15966c85208c564dccc08126f802c00c8e | [
"Apache-2.0"
] | permissive | Woody89/designate-private | 586df6c28a2da573663487e4728c3fddfef095af | 0a6ed5a1d7cdac5cb1e9dec8fd3ddfb9a77c58f5 | refs/heads/master | 2021-01-22T19:22:49.391876 | 2017-08-19T06:16:53 | 2017-08-19T06:16:53 | 100,774,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,905 | py | # Copyright 2012 Managed I.T.
#
# Author: Kiall Mac Innes <kiall@managedit.ie>
#
# 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 r... | [
"dongpzh@adtec.com.cn"
] | dongpzh@adtec.com.cn |
c737af5d1ff073a22f5a3aaaf91937cb8797fb95 | 8164fd930d78efbd3885198efbfd9692c585319b | /week7/CrawWeb/craw_web.py | b837f0305e260bb319dc6622a4866529aa9c6f96 | [] | no_license | kobso1245/Hack_BG | 7a7b7524b20fada3d9856a583e02c6959d442e66 | 7ffdb8ccefd67aeca5a49c9a9354e65c77149ad4 | refs/heads/master | 2020-05-31T17:43:10.316633 | 2015-10-05T21:43:20 | 2015-10-05T21:43:20 | 30,460,888 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from Crawler import *
from Histogram import *
from Plotter import *
if __name__ == '__main__':
craw("http://register.start.bg/", "histogram2")
plot("path_to_database_file/websites.db")
| [
"kalo.evt@mail.bg"
] | kalo.evt@mail.bg |
414d29786eb51284f28473d7090b7778c546c6c3 | dd860973103347b382d8a04ef68a9376561725ea | /wazimap_ng/profile/serializers/highlights_serializer.py | 003ee147dc77b5daa5f28a8c58f772775589eb56 | [
"Apache-2.0"
] | permissive | mauricemojito/wazimap-ng | 7a7da6c9fc653054c376d77c22df120ed0abb653 | e03748cb1258cbafb43faba441bbc37dd0556a2a | refs/heads/master | 2023-03-12T01:45:53.173039 | 2020-09-30T13:55:29 | 2020-09-30T13:55:29 | 342,342,503 | 0 | 0 | Apache-2.0 | 2021-02-25T18:55:09 | 2021-02-25T18:34:39 | Python | UTF-8 | Python | false | false | 2,545 | py | from wazimap_ng.datasets.models import IndicatorData
from wazimap_ng.utils import mergedict
def get_subindicator(highlight):
subindicators = highlight.indicator.subindicators
idx = highlight.subindicator if highlight.subindicator is not None else 0
return subindicators[idx]
def sibling(highlight, geogra... | [
"adi@openup.org.za"
] | adi@openup.org.za |
229bb954ad637b3c780475f96f2f202e84d0a4db | c8cf1bdacdbf6de75e61cc6a2ce8617479c19ec6 | /test/mobile/test_bytecode.py | 95baa86d5763e5e308c727fa87d6d77972080125 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | Afonso-2403/pytorch | 7f5ddf8370de938045b4ec412b98bef9dfc193ed | e35e6237d24b6c96b122deb21f015c0fe3eccb13 | refs/heads/master | 2023-08-21T18:43:43.019194 | 2021-09-13T17:58:00 | 2021-09-13T17:58:00 | 363,847,561 | 1 | 0 | NOASSERTION | 2021-07-08T19:06:16 | 2021-05-03T07:16:49 | C++ | UTF-8 | Python | false | false | 13,355 | py | import fnmatch
import io
import shutil
import tempfile
import torch
import torch.utils.show_pickle
# from torch.utils.mobile_optimizer import optimize_for_mobile
from torch.jit.mobile import (
_load_for_lite_interpreter,
_get_model_bytecode_version,
_get_model_ops_and_info,
_backport_for_mobile_to_buffe... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a6269498158572202304da939470fc4fdd2e3b1f | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_github/tests/test_releases.py | afd754d1f6b234e0108ff323b9fb987cfd825a66 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 4,464 | py | # -*- coding: utf-8 -*-
"""Tests using pytest_resilient_circuits"""
import pytest
from .common_config import github_config, TS
from resilient_circuits.util import get_config_data, get_function_definition
from resilient_circuits import SubmitTestFunction, FunctionResult
PACKAGE_NAME = "fn_github"
FUNCTION_NAME = "gith... | [
"travis@example.org"
] | travis@example.org |
8ebabb8929c847e3c9edcd7a71bcd0940adfa0c2 | d44bfb67b8b19f3773558870a71a42e0cd3ec002 | /telemetry-library/telemetry/telemetry_mqtt.py | cc84776095c2500d7a5842bdd8449b8635c5956f | [
"Apache-2.0"
] | permissive | Abstract-Horizon/pyros-telemetry | 764cdbb8cc98b7d72b1b2a04490c4989c003cbd2 | 7ecb5deaf266689555cbf0721f9c156e4dfe28d7 | refs/heads/master | 2023-08-17T19:52:24.684594 | 2021-10-11T17:46:40 | 2021-10-11T17:46:40 | 272,370,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,580 | py | ################################################################################
# Copyright (C) 2016-2020 Abstract Horizon
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License v2.0
# which accompanies this distribution, and is available at
# http... | [
"natdan@users.noreply.github.com"
] | natdan@users.noreply.github.com |
466373d76ca24cb2a34c4824c5097fc46feafc28 | 88cc55bc6e6feee2fa5f186d57ccb5e1d420217c | /django_websocket/__init__.py | 6e4e96ace8d71052cc4fc96b0c8e0a06953e792e | [
"BSD-3-Clause"
] | permissive | gregmuellegger/django-websocket | 7c16d3ba27970284b8fbeab5cecd1358d47373a2 | cb4804e98f397f242e74c6f9e6f4fabab41a7ab7 | refs/heads/master | 2021-07-05T00:13:21.719973 | 2016-05-10T06:27:40 | 2016-05-10T06:27:40 | 773,121 | 68 | 19 | BSD-3-Clause | 2021-06-10T17:32:54 | 2010-07-13T19:40:14 | Python | UTF-8 | Python | false | false | 42 | py | from django_websocket.decorators import *
| [
"gregor@muellegger.de"
] | gregor@muellegger.de |
09da46de08db8efd21ef86e80c0bd1b0bfa4641f | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/fbs_0140+360/sdB_FBS_0140+360_lc.py | 757218cb78912bdc16ba760e680f6cef9c974b74 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[25.926708,36.25925], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_FBS_0140+360 /sdB_FBS_0140+360_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
0f923332d74ab03086681ff9097adf5ed4fd7603 | 70ec704fdd3e30c5df97323cd4c9532ebfd544ea | /ml_wiki/ch2/selenium-login.py | d53a91bf593dc64f47bd9b445885c8954f53b454 | [] | no_license | smart1004/learn_src | e02c13c82bae65b7de2a572e4a1ae58e2ea11588 | 353f92f7657a6f676a271d8d7f00d7c20e39d234 | refs/heads/master | 2021-01-25T11:49:49.906805 | 2018-04-08T13:26:18 | 2018-04-08T13:26:18 | 123,435,997 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | from selenium import webdriver
USER = "<아이디>"
PASS = "<비밀번호>"
# PhantomJS 드라이버 추출하기 --- (※1)
browser = webdriver.PhantomJS()
browser.implicitly_wait(3)
# 로그인 페이지에 접근하기 --- (※2)
url_login = "https://nid.naver.com/nidlogin.login"
browser.get(url_login)
print("로그인 페이지에 접근합니다.")
# 텍스트 박스에 아이디와 비밀번호 입력하기 --- (※3)
... | [
"kusung25@naver.com"
] | kusung25@naver.com |
38459d585c7f1861e8774c7571859a85236be08b | 6515a47190986c4f3b6beececfabab42e3d34e34 | /Models/GPT2_Model/Model/GPT2LMHead.py | 7f0304b3b13ce6e44e8c037aec7823bb34427b7e | [] | no_license | jk96491/Advanced_Models | f4140936f5004ed9a9464ad745b33e52d63157fa | cde49356fec3c53296446a54f4be497a89dd08cd | refs/heads/master | 2023-06-14T02:26:43.869417 | 2021-06-30T13:07:31 | 2021-06-30T13:07:31 | 143,489,382 | 60 | 16 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import torch.nn as nn
class GPT2LMHead(nn.Module):
def __init__(self, model_embeddings_weights, config):
super(GPT2LMHead, self).__init__()
self.n_embd = config.n_embd
self.set_embeddings_weights(model_embeddings_weights)
def set_embeddings_weights(self, model_embeddings_weig... | [
"jk96491@naver.com"
] | jk96491@naver.com |
1e236e30d75c559339f1261b732a9a70d9df7122 | 35053a371d85c2d45a4f52239d8a70b38194ef48 | /Can Place Flowers.py | 86bf8aeeb427181d1fe805cbf5b1d1bcb364a643 | [] | no_license | Kuehar/LeetCode | 51d169c81a2e572ea854399fc78e1130220388f9 | 4555c20455f181f9dd7b3aba2a8779dea795edfb | refs/heads/master | 2023-04-16T10:13:03.584541 | 2023-04-06T11:47:21 | 2023-04-06T11:47:21 | 243,361,421 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | class Solution:
def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool:
if n == 0: return True
if len(flowerbed) == 0: return False
if len(flowerbed) == 1: return flowerbed[0] == 0
pre,cur = flowerbed[0],flowerbed[1]
if pre + cur == 0:
flower... | [
"noreply@github.com"
] | Kuehar.noreply@github.com |
2e79679ebdc6ebb91b85f95ac5bccc7866b865ab | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/openstackclient/tests/functional/image/v2/test_image.py | 6faff94a3295cd738875bfb8fda2baf1ac162efb | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 3,865 | py | # 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, software
# d... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
4fe46a3e69863bca6e98c1cb6ab5c17fd36f8261 | 5c531de5e4759c904e608b4fc653b2b041f79a0e | /779. K-th Symbol in Grammar.py | 06e46cf683b3f090a9b595db7b7a9fd6675029aa | [] | no_license | jianhui-ben/leetcode_python | 133c7e6e5c7316d00607ba2e327239e002de28b2 | fcc16124cc24a5993e27f5d97e78d8f290e68230 | refs/heads/master | 2022-06-05T22:32:18.034581 | 2022-05-17T02:27:11 | 2022-05-17T02:27:11 | 250,683,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #779. K-th Symbol in Grammar
#On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence of 1 with 10.
#Given row N and index K, return the K-th indexed symbol in row N. (The values of K are 1-indexed.) (1 indexed).
#Examples:... | [
"jianhui.ben@gmail.com"
] | jianhui.ben@gmail.com |
5adf7e2ecf8e0908041fd9b472f7833397d98c44 | e990606b3db8429e87f9a0a5a10e3c10b17ae13b | /data_proc/wordpiece/mlperf_tags.py | 88313a6ba9df4bb9205a4755d963ed60a5c9aa46 | [] | no_license | michael-wzhu/redesign_vocab_for_zh_bert | 4c9ae36295815ea58cfb34d4f46ac2ace097861f | 4e7e72e8f4554feebba6ae2f553a5240e5bedcd4 | refs/heads/master | 2022-12-16T17:41:09.704451 | 2020-09-26T12:06:35 | 2020-09-26T12:06:35 | 274,569,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,882 | py | # coding=utf-8
# Copyright 2020 The Tensor2Tensor Authors.
#
# 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... | [
"michael_wzhu91@163.com"
] | michael_wzhu91@163.com |
e806e3218cd8bc55131bce1e7d166c76ad1ec718 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03288/s779086883.py | 309d8d3ea1e3ed5219effec5418e8a99e6125de3 | [] | 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 | 64 | py | r=int(input())
print("ABC"if r<1200else"ARC"if r<2800else"AGC") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
600d648aef968fa6d9aaf3ddd8d410059382df4b | 65f856bb3c782fe2fec794192260d5b7aa997ef3 | /wsc_django/wsc_django/apps/shop/services.py | 0a53f3c8e183bdcaeeefad41252f7a5440069671 | [
"MIT"
] | permissive | hzh595395786/wsc_django | 0c8faf0cac1d8db8d9e3fa22f6914b6b64bf788b | c0a4de1a4479fe83f36108c1fdd4d68d18348b8d | refs/heads/main | 2023-06-06T07:26:17.979944 | 2021-06-24T13:14:53 | 2021-06-24T13:14:53 | 336,303,377 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,909 | py | from uuid import uuid4
from django.db.models import Count
from product.constant import ProductStatus
from shop.models import Shop, HistoryRealName, ShopRejectReason, PayChannel
from shop.utils import get_shop_mini_program_qcode, put_qcode_file_to_tencent_cos
from user.models import User
from shop.constant import (
... | [
"595395786@qq.com"
] | 595395786@qq.com |
a4988105b8f44db42f20393940d9d3a3ae4e6178 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/191/bmi.py | 0ee130d805eb92fd958498062113b022207001d6 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,056 | py | # data """Luke Skywalker,172,77
# C-3PO,167,75
# R2-D2,96,32
# Darth Vader,202,136
# Leia Organa,150,49
# Owen Lars,178,120
# Beru Whitesun lars,165,75
# R5-D4,97,32
# Biggs Darklighter,183,84
# Obi-Wan Kenobi,182,77
# A... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
6e0eaa8412f98de3cb193a1d8b771c2ac490c3db | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/SimplePose_ID1038_for_PyTorch/parallel_encoding/paralle.py | 22a4742535a0677b59076b72a684e6b7562466f4 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 13,118 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
94171e19440d59601861aee4f580b056a82ba31e | 104085f6878411a137521b17c06612e5f648ef33 | /service_pro/service_pro/doctype/agent_payment_request/agent_payment_request_dashboard.py | bf5bad55f86a6116faab28263273e7b0828fce28 | [
"MIT"
] | permissive | ksbbalean/service-pro | d39f0d12977dd66627b9f7c0336c605d7be4c388 | c89b39a8e9967dada50dc0db4b08460ed45843bf | refs/heads/master | 2023-04-13T05:35:19.842021 | 2021-04-22T11:05:18 | 2021-04-22T11:05:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from frappe import _
def get_data():
return {
'fieldname': 'agent_payment_request',
'transactions': [
{
'label': _('Linked Forms'),
'items': ["Journal Entry"]
}
]
} | [
"jangeles@bai.ph"
] | jangeles@bai.ph |
9efe79a16c6f27bddfc4536d573389398935b830 | 3b5d1a53af8d2f4094005f342403eabc7af9c980 | /moderation_module/storage/logging_data.py | 5f1eb3107e2c0a2e75844b5cbdd60700cde60414 | [
"MIT"
] | permissive | alentoghostflame/StupidAlentoBot | daa828be3d47b24d3e13d500155a6a0d2019f724 | c024bfb79a9ecb0d9fda5ddc4e361a0cb878baba | refs/heads/master | 2021-06-30T17:50:14.997416 | 2021-06-08T03:54:24 | 2021-06-08T03:54:24 | 237,541,303 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from alento_bot import guild_data_transformer
import logging
import typing
logger = logging.getLogger("main_bot")
@guild_data_transformer(name="guild_logging_config")
class GuildLoggingConfig:
def __init__(self):
self.toggled_on: bool = False
self.log_channel_id: int = 0
self.exempt_chan... | [
"alexanderschoenhofen@gmail.com"
] | alexanderschoenhofen@gmail.com |
b176a24c12a2f81960d594b227e0eb66dc7ca889 | c192132c7c2b815d480b243b591c2c9dac8d969b | /result.py | f369eb20ad333d584dbf29c1573ee366b42523f5 | [] | no_license | Annihilater/blast.ncbi.nlm.nih.gov | b967dd3abf1ca1b075566262ee11906d7f5170ce | e62dabb4f9fc7c0e359051e3cdbc97c45f1fbdee | refs/heads/master | 2020-08-24T14:32:54.451809 | 2019-10-23T09:41:37 | 2019-10-23T09:41:37 | 216,845,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,854 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019/10/23 11:16
# @Author: yanmiexingkong
# @email : yanmiexingkong@gmail.com
# @File : result.py
import requests
def get_result(rid):
"""
通过 rid 获取结果
:param rid:
:return:
"""
url = "https://blast.ncbi.nlm.nih.gov/Blast.cgi"
heade... | [
"yanmiexingkong@gmail.com"
] | yanmiexingkong@gmail.com |
6f361c7d8b2af01f6ee96c8df06630eaf5cef7f8 | 1929a989d1e2a5c5caabad32aa8baf4444250574 | /h2o-py/tests/testdir_munging/pyunit_upload_large.py | 3d4d69107d8603c202a6d6e94a6ae18df88df391 | [
"Apache-2.0"
] | permissive | codelibs/h2o-3 | 9c417c0c6ee4ae9a6eaffe5a0373c0d78c37527e | cf96fb28da4732870a0d65c24f0d99f422d140d1 | refs/heads/master | 2023-05-27T10:04:14.408620 | 2023-04-28T18:16:48 | 2023-04-28T18:16:48 | 253,197,280 | 0 | 0 | Apache-2.0 | 2020-04-05T09:22:41 | 2020-04-05T09:22:40 | null | UTF-8 | Python | false | false | 772 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../")
import h2o
import os
import tempfile
from tests import pyunit_utils
def generate_large_file(path, size):
with open(path, "wb") as f:
f.seek(size-1)
f.write(b"\0")
assert size == os.stat(path).st_size
def upload_larg... | [
"michalk@h2o.ai"
] | michalk@h2o.ai |
6f927f95ffc8e9ede4b6ba26df040a784d1f5146 | 8f5cb19e9c6a0670100b4a4fbdbb892d94ccd4a8 | /deployment/georegistry.py | 5c1e240d6a6b964f6e177dd39a8f7f9b1dc6a607 | [] | no_license | invisibleroads/georegistry | 84438e680e56ac716f60d23784f05469c4888841 | df56cc17b01a794bfbd53f354bb5fa9abeb420cc | refs/heads/master | 2023-08-24T03:34:50.554375 | 2011-05-05T16:36:19 | 2011-05-05T16:36:19 | 966,680 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | 'GeoRegistry API Python wrapper'
# Import system modules
import urllib
import urllib2
import simplejson
# Core
baseURL = 'http://georegistry.invisibleroads.com'
def updateFeatures(key, srid, featureCollection, tags, public=False):
'Update features using the GeoRegistry web service'
# Initialize
url = ba... | [
"support@invisibleroads.com"
] | support@invisibleroads.com |
ba3339eeda813a3c7d315fcb1cb1c530a8080125 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/sklearn/preprocessing/_discretization.py | 7b26ce916e1893d6d13fc02304699fa07bd412b3 | [
"Apache-2.0"
] | 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 | 12,083 | py | # -*- coding: utf-8 -*-
# Author: Henry Lin <hlin117@gmail.com>
# Tom Dupré la Tour
# License: BSD
from __future__ import division, absolute_import
import numbers
import numpy as np
import warnings
from . import OneHotEncoder
from ..base import BaseEstimator, TransformerMixin
from ..utils.validation impor... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
8071db56a1faa459eccd4c3bfbd0c735f51f2c1e | 6ace7e15e3191d1b8228ad7922a8552ca84f84e7 | /.history/image_detector_20200614203341.py | 2465a36001cd934f7bd739e37f170e75e719b85c | [] | no_license | mehmetaliarican/Similar-Image-Finder | f72e95be50c51aa03fc64954a03124b199ca64b1 | a9e0015c443b4a73394099cccf60329cfc4c7cef | refs/heads/master | 2022-10-27T00:57:43.173993 | 2020-06-14T18:02:16 | 2020-06-14T18:02:16 | 272,256,295 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | from skimage.metrics import structural_similarity as ssim
from imutils import paths
import matplotlib.pyplot as plt
import numpy as np
import cv2
import glob
import os
import argparse
ap = argparse.ArgumentParser()
ap.add_argument("-t", "--threshold", type=float, default=0.9,
help="threshold")
ap.add_a... | [
"m.ali.arican@gmail.com"
] | m.ali.arican@gmail.com |
5268cff948f9c48f0fd6138032a6afd729243dd6 | 2a6412a9359a1df5f8f12e319e73b9e4e46fd64c | /specializedSubjects/AlgorithmII/dijkstra_ON2.py | f7130f780bcfbbcb7e2864c816bf76de51c44942 | [] | no_license | danganhvu1998/myINIAD | 504d1147a02f12e593f30e369daf82f85aa01bfd | 01547673dd3065efb6c7cc8db77ec93a5a4f5d98 | refs/heads/master | 2022-03-17T12:58:34.647229 | 2022-02-08T06:34:19 | 2022-02-08T06:34:19 | 143,675,719 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import networkx as nx
import matplotlib.pyplot as plt
def get_min(D, X):
arg_min= -1
min_value= float('inf')
for i in range(len(D)):
if D[i] < min_value:
if i in X:
arg_min= i
min_value= D[i]
return arg_min
def dijkstra(src, G):
D= [float('inf')... | [
"danganhvu1998@gmail.com"
] | danganhvu1998@gmail.com |
62f8f6e45e2c8fa0b96b0ee822ef9e2ee1a0d83b | 44a7b4879c1da661cc2e8aa51c7fcc24cfb0fd3b | /src/scs_core/osio/manager/user_manager.py | f14e3e70118f2019ef5dd083551e6ca93ec113de | [
"MIT"
] | permissive | seoss/scs_core | 21cd235c9630c68f651b9a8c88120ab98fe5f513 | a813f85f86b6973fa77722a7d61cc93762ceba09 | refs/heads/master | 2021-08-08T08:09:56.905078 | 2020-04-16T19:46:52 | 2020-04-16T19:46:52 | 156,239,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | """
Created on 21 Mar 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
from scs_core.osio.client.rest_client import RESTClient
from scs_core.osio.data.user import User
from scs_core.osio.data.user_metadata import UserMetadata
# ---------------------------------------------------------------------... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
2db16db5c0570084ec0dbb9abc064697f824fa90 | f51aff57f826aeea1be21e2d0c03cce0adaadefc | /exp/utils/rand.py | 70cd3809130978b9f18a56c77772c3f8afb2594d | [
"MIT"
] | permissive | zv5dmjq5/vivit | 0a26f8b61e6f00da75fce7a9bbc75b0185ffea76 | a05f448d1badb2db42e724c80676ce7e309194d2 | refs/heads/master | 2023-07-12T06:36:10.627912 | 2021-08-26T12:02:59 | 2021-08-26T12:02:59 | 370,409,161 | 1 | 0 | MIT | 2021-08-10T12:58:27 | 2021-05-24T16:00:04 | Python | UTF-8 | Python | false | false | 1,198 | py | """Utility functions to control random seeds."""
import torch
class temporary_seed:
"""Temporarily set PyTorch seed to a different value, then restore current value.
This has the effect that code inside this context does not influence the outer
loop's random generator state.
"""
def __init__(se... | [
"Anonymous"
] | Anonymous |
a645386e0c34474857014299151a5d45a2ce0535 | b8115bc7503581bf3bb44bfa87b270793aff4381 | /ddsp/training/data_preparation/ddsp_prepare_tfrecord.py | f7a4c0f3576f5ff085e50c33af5f4a887ed246f2 | [
"Apache-2.0"
] | permissive | pollinations/ddsp | 7a5cfd18efcd8a77729d26231d294a4c03c2d286 | 4bbb3b1b0aa9e9a4c1f77e8758f409cbd1ec03f7 | refs/heads/main | 2023-06-21T18:21:37.230721 | 2021-07-22T09:45:54 | 2021-07-22T09:45:54 | 388,399,770 | 0 | 0 | Apache-2.0 | 2021-07-22T09:14:11 | 2021-07-22T09:14:10 | null | UTF-8 | Python | false | false | 3,340 | py | # Copyright 2021 The DDSP Authors.
#
# 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 wri... | [
"no-reply@google.com"
] | no-reply@google.com |
8e1fb53a12cc8169be23e1cdcdc37884cdf551ec | a6cbc03780b5c390f4f8ce9063bd8a7f6d75e8aa | /mail2.py | 1c0dfcd906c6beffc8d5efcafb1c822ea969e238 | [] | no_license | KimaruThagna/Email_and_Regex | 5f825554bd17e56ff091a79187c5ab7a758960d9 | c250e37d6e09f1a9c35fb6af873ff1c77707a8fd | refs/heads/master | 2021-09-06T11:59:04.784389 | 2018-02-06T12:16:58 | 2018-02-06T12:16:58 | 110,789,925 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | #This example still uses gmail but this time includes an attachment
import os,smtplib
from email.mime.text import MIMEText
from email.encoders import encode_base64
from email.mime.multipart import MIMEMultipart
from tkinter.filedialog import askopenfilename
from email.mime.base import MIMEBase
# function that sends the... | [
"thagana44@gmail.com"
] | thagana44@gmail.com |
d5ab6e2c2301fa7c2de21056b961275cd20e463d | 840b98f14f181f7dbd693f2ee4b3c46e5be59305 | /demos/demo_pycloudmessenger/POM1/NeuralNetworks/pom1_NN_worker_pycloudmessenger.py | 3bb1b70be16f54c7404843da2a380711222b695e | [
"Apache-2.0"
] | permissive | Musketeer-H2020/MMLL-Robust | 4ef6b2ff5dff18d4d2b2a403a89d9455ba861e2b | ccc0a7674a04ae0d00bedc38893b33184c5f68c6 | refs/heads/main | 2023-09-01T18:47:46.065297 | 2021-09-28T15:34:12 | 2021-09-28T15:34:12 | 386,264,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,786 | py | # -*- coding: utf-8 -*-
'''
@author: Marcos Fernandez Diaz
November 2020
Example of use: python pom1_NN_worker_pycloudmessenger.py --user <user> --password <password> --task_name <task_name> --id <id>
Parameters:
- user: String with the name of the user. If the user does not exist in the pycloudmessenger... | [
"rober.diaz@gmail.com"
] | rober.diaz@gmail.com |
95986ae73d179770f7292b38dbaaf00b540d68bb | 67ecf1aca10c6b3504027edc131d3f295a66ae08 | /00-deleteintreeview.py | d3e2d07a7e5d08d4338fd394ee4a32966af7637f | [
"MIT"
] | permissive | UncleEngineer/TkinterTrick | 5efa58dee8612d48d18040debe7868c6b5815e3c | 471a5f4906ddad195731410e9df1a2b35f466fcb | refs/heads/master | 2020-03-16T09:57:28.696335 | 2018-06-22T10:23:39 | 2018-06-22T10:23:39 | 132,626,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from tkinter import *
from tkinter import ttk
root = Tk()
tree = ttk.Treeview(root)
tree["columns"]=("one","two")
tree.column("one", width=100 )
tree.column("two", width=100)
tree.heading("one", text="coulmn A")
tree.heading("two", text="column B")
tree.insert("" , 0, text="Line 1", values=("1A","... | [
"noreply@github.com"
] | UncleEngineer.noreply@github.com |
d2af03e3a4906a1fa23e9f3a1ce18e723be2b7dd | a5b4d77e760c6131ba1c5f040265a3b08d3c0478 | /enemy_bot/enemy_bot_level5/burger_detect/scripts/image_save.py | e695863b746ba773cd8cf5ea415ec5f9c57f2dab | [
"BSD-3-Clause"
] | permissive | kenjirotorii/burger_war_kit | 700b511739299a9d90d23c70262ecf4856d234b7 | d9b1b443f220980a4118c13cdf22174696c3db9c | refs/heads/main | 2023-03-21T23:32:24.415502 | 2021-03-11T15:59:12 | 2021-03-11T15:59:12 | 337,704,943 | 0 | 1 | BSD-3-Clause | 2021-03-11T15:59:13 | 2021-02-10T11:36:22 | Python | UTF-8 | Python | false | false | 1,046 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import random
#
from geometry_msgs.msg import Twist
from sensor_msgs.msg import Image
import sys
from cv_bridge import CvBridge, CvBridgeError
import cv2
import time
import os
dir="Image/test/"
num=10*1000
class ImageGet():
def __init__(self):
r... | [
"you@example.com"
] | you@example.com |
327f5bed18063bc5103443d55e4856bea69453da | 009c5522fe7fd1b6ffad167097535e592818c9d7 | /app/inheritance/abstract/migrations/0003_auto_20191223_0545.py | 02758dcc786385764c2036954dc49dd6a0eb3c57 | [] | no_license | moorekwon/django-document | d891d3d329bc697598517c0918e912da89cf5f6a | 983de2babdabd106e17467af27bac4efced170b8 | refs/heads/master | 2021-09-29T00:37:04.647977 | 2019-12-26T09:07:55 | 2019-12-26T09:07:55 | 228,784,209 | 0 | 0 | null | 2021-09-22T18:10:05 | 2019-12-18T07:35:12 | Python | UTF-8 | Python | false | false | 740 | py | # Generated by Django 3.0 on 2019-12-23 05:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('abstract', '0002_childa_childb'),
]
operations = [
migrations.AlterField(
model_name='childa',
... | [
"raccoonhj33@gmail.com"
] | raccoonhj33@gmail.com |
37cda467832d9959605d1668f2ef07cc8c293df9 | ece6f45409ee2bcbff1be64fa1ac98e7805e0e18 | /API:Data_Visualization/population_json.py | 78c7c29a84dd29b055d74f7b1bbb767d4b2871b3 | [] | no_license | PickertJoe/python_exercises | 5b9ac3334eec32e35a477d126c911d4ca07a4343 | 77955427db9c3342c9a51618a0cd9cf6f884fbee | refs/heads/master | 2022-12-12T11:57:08.267814 | 2019-12-08T21:52:31 | 2019-12-08T21:52:31 | 184,834,676 | 1 | 0 | null | 2022-12-08T05:14:43 | 2019-05-04T00:16:12 | Python | UTF-8 | Python | false | false | 1,293 | py | # A program to read and analyze the data in population_data.json
import json
from comma import comma
from country_code import code_search
from pygal.maps.world import World
from pygal.style import RotateStyle
# Importing the data in the json file into a list
filename = "chapter_16/population_data.json"
with open(file... | [
"pickertjoe@gmail.com"
] | pickertjoe@gmail.com |
65c4da75fb004f1520cb29a69802bcce620518d9 | 40c4b0c31a5870a9201d3d42a63c5547092e5912 | /frappe/recorder.py | 8cbcaa01bb980c8cbdc9a77613591f7700643486 | [
"MIT"
] | permissive | ektai/frappe3 | fab138cdbe15bab8214cf623d9eb461e9b9fb1cd | 44aa948b4d5a0d729eacfb3dabdc9c8894ae1799 | refs/heads/master | 2022-12-25T15:48:36.926197 | 2020-10-07T09:19:20 | 2020-10-07T09:19:20 | 301,951,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,212 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
from collections import Counter
import datetime
import inspect
import json
import re
import time
import traceback
import frappe
import sqlparse
from pygmen... | [
"63931935+ektai@users.noreply.github.com"
] | 63931935+ektai@users.noreply.github.com |
871e74c940da56c3387dffad57b313ca22cdc089 | 9d961bd6a590cc96db0c1f9c72d84e3a66636edf | /심심풀이땅콩/[백준]4673.py | 76fb463f5fde7bf3313b00ca4769b70034e63f75 | [] | no_license | 0equal2/Python_Programming | bae65338929e8e1a88247b8d23de805caa026702 | 2ac1d0262320220f49cbdb45e787e55e994d0b0f | refs/heads/master | 2023-05-14T22:13:41.583214 | 2021-06-09T03:04:51 | 2021-06-09T03:04:51 | 304,628,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | ###[백준]4673
memo=[0]*10001
for i in range(1,10001):
newnum=i+sum(list(map(int,list(str(i)))))
if newnum<=10000:
memo[newnum]=1
if memo[i]==0:
print(i)
| [
"duddms0115@gmail.com"
] | duddms0115@gmail.com |
4b99c672e34294a5f110b6531518b6d7056de15a | 1be2cbc9fd62cf77cc05a64807acf7d857b84eee | /blackopt/config.py | a2114330cc418e849f46670ef206413bcc1d54b6 | [] | no_license | ikamensh/blackopt | 4fdce2c0147b1a5a85024c9b59925d3d1a35b13f | a6ab24ce1be21a5ca9e26d0bb1f59bb50fd007a2 | refs/heads/master | 2023-01-23T12:55:42.087216 | 2020-12-05T19:18:30 | 2020-12-05T19:18:30 | 178,232,685 | 0 | 0 | null | 2020-10-18T20:57:29 | 2019-03-28T15:33:53 | Python | UTF-8 | Python | false | false | 382 | py | import os
default_workspace = "_blackopt_workspace"
_rootdir = default_workspace
def set_rootdir(path):
path = os.path.expanduser(path)
global _rootdir
_rootdir = path
def prepend_rootdir(prefix):
prefix = os.path.expanduser(prefix)
path = os.path.join(prefix, default_workspace)
global _rootd... | [
"ikkamens@amazon.com"
] | ikkamens@amazon.com |
3cc86621a38c55c60af190e6064d74da255a9e2b | 14d8adc86adc14c1d64a5550b1bbd5663e984545 | /combination_sum_ii.py | 97ed76da8e3052e379884a175fa1c814d6591641 | [] | no_license | milllu/leetcode | e1b68ef7774cc0c1b49325ec1b87280d27570d94 | 458b3e72cd82a203b10bdca747c4c3ba85708f75 | refs/heads/master | 2020-03-30T23:41:46.180308 | 2018-10-11T01:08:31 | 2018-10-11T01:08:31 | 151,709,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | """
给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。
candidates 中的每个数字在每个组合中只能使用一次。
说明:
所有数字(包括目标数)都是正整数。
解集不能包含重复的组合。
示例 1:
输入: candidates = [10,1,2,7,6,1,5], target = 8,
所求解集为:
[
[1, 7],
[1, 2, 5],
[2, 6],
[1, 1, 6]
]
示例 2:
输入: candidates = [2,5,2,1,2], target = 5,
所求解集为:
[
[1,2,2... | [
"3351440959@qq.com"
] | 3351440959@qq.com |
aace7c3ac8ae4dfbaf9a425ce523bb342eaafc68 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_2204+034/sdB_pg_2204+034_coadd.py | 1d84ed11150bebd234261af2a75e6b07e15f708b | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[331.818708,3.705497], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_2204+034/sdB_pg_2204+034_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c0bdac944aed5cb00d3ab2541709a23fecbc22e3 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/application_gateway_rewrite_rule_set.py | bf4a4ba184e7533ad006b1884070f8b6fb8071ac | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 2,111 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
c61d44bcc8be1346b3b1a8bb2742d5847838cc8a | 2b115f9c5929fedd06d4dd6969100ab2df484adf | /messenger/urls.py | 9903187e19c8320adcd0f81ea319f70a102f44a3 | [] | no_license | sorXCode/Avina-API | 0b790bfd8ac8b9c84d1db45db0819e0585d954b9 | 7687ba7434b77d6c33944c65fff0409459a9d5ce | refs/heads/master | 2023-04-11T01:17:35.570752 | 2021-04-14T15:01:45 | 2021-04-14T15:01:45 | 342,429,666 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from .views import StartMessaging, Conversation
urlpatterns = [
path('', StartMessaging.as_view()),
path('<str:product_uid>', Conversation.as_view()),
]
urlpatterns = format_suffix_patterns(urlpatterns) | [
"sorxcode@gmail.com"
] | sorxcode@gmail.com |
a21618f0ce0aa6432175d36b0042e7df8e21bb69 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/prime-big-291.py | dac9afb7dc0a8d107113bc4bc06e8af627553a69 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6186282c3446f83d419a1ac0c4b554890f932503 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/framework/dtypes.py | f1c6251c483d69a34f5710f9b346fb9ccd2b713e | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 24,187 | py | # Copyright 2015 The TensorFlow Authors. 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
6b27894d6781b7a1a591111f28f575c8857b9a50 | fb3061b2e8752e59e59d0f54f8a9637c25bcc8f4 | /Tristan/randomnumber.py | 0dd78cf9ab6872d179441ebf8ea0bba5d6a197ba | [] | no_license | idcrypt3/camp_2019_07_14 | 25383c67dbd2d44ad9e5966b2666d545688a4d36 | 708cccb313181fc15dc7aa45699024b9b44ba275 | refs/heads/master | 2020-06-20T06:21:37.907263 | 2019-07-19T18:53:17 | 2019-07-19T18:53:17 | 197,023,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | import random
print(random.randint(1, 20)) | [
"idcrypt3@gmail.com"
] | idcrypt3@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.