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
d545c9519c558c6a639cea7dc025532007da9f00
3428950daafacec9539a83809cf9752000508f63
/study/programmers/kakao_dart_game_re.py
75d76bc243936e0ed8c83ed17d7dc82da9087d81
[]
no_license
HyunAm0225/Python_Algorithm
759b91743abf2605dfd996ecf7791267b0b5979a
99fb79001d4ee584a9c2d70f45644e9101317764
refs/heads/master
2023-05-24T05:29:12.838390
2021-06-15T16:36:33
2021-06-15T16:36:33
274,587,523
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
import re dartResult = input() bonus = {'S' : 1, 'D' : 2, 'T' : 3} option = {'' : 1, '*' : 2, '#' : -1} p = re.compile('(\d+)([SDT])([*#]?)') dart = p.findall(dartResult) print(dart) for i in range(len(dart)): if dart[i][2] =='*' and i>0: dart[i-1] *=2 dart[i] = int(dart[i][0]) ** bonus[dart[i][1]] * ...
[ "tlfgjawlq@naver.com" ]
tlfgjawlq@naver.com
e43cc6efbff597561f7a5ee7347e0c42f2f1d95e
15c95b0277fb3ca9b6d330b15631b3ec219aba45
/test/nn/conv/test_message_passing.py
a139c7b033ae5251ce47e80d3dc3b5c565a54cd7
[ "MIT" ]
permissive
whuchenlin/pytorch_geometric
5cd6e241427289f17a49028cfed853e7e2d35eb7
06ed6b1aadfc55e28ce6344969fd42ae312e4954
refs/heads/master
2020-08-22T22:53:11.743500
2019-10-21T05:59:45
2019-10-21T05:59:45
216,492,363
2
0
MIT
2019-10-21T06:22:21
2019-10-21T06:22:21
null
UTF-8
Python
false
false
1,223
py
import torch from torch_geometric.nn import MessagePassing def test_message_passing(): edge_index = torch.tensor([ [0, 0, 0, 1, 1, 1], [0, 1, 2, 0, 1, 2], ]) x = torch.Tensor([[1], [2]]) out = MessagePassing(flow='source_to_target').propagate( edge_index, x=x, size=(2, 3)) ...
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
871467c8d5022edc179045aa866d04bcc850ec74
7bf51d5550195a7fae26bd626ed82c5f2b5d9737
/my_graphs/g_scatter_3.py
fb1baa4455efe6155589c081d41e8bce394a2e35
[]
no_license
venkatram64/python_ml
9fcadc380c2a56856f590b40a7c3b015c19c62a0
b0b40fec4547f3675a500af24878cddacc4c270c
refs/heads/master
2020-04-08T05:07:28.993601
2018-12-26T08:30:28
2018-12-26T08:30:28
159,047,402
1
0
null
null
null
null
UTF-8
Python
false
false
255
py
import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5, 6, 7, 8] y = [5, 2, 4, 2, 1, 4, 5, 2] plt.scatter(x, y, label='skit', color='k', marker='*', s=10) plt.xlabel('X') plt.ylabel('Y') plt.title('Interesting Graph\nCheck it out') plt.legend() plt.show()
[ "venkat.veerareddy@hotmail.com" ]
venkat.veerareddy@hotmail.com
1ca1bfd35322240445b8a30e70d186022ce37f38
7dd453478bbc829f24eaf900b09d18e2138929e1
/Data-collection-v2/main_multi.py
e0f2eafe295c96f2c33b3d55a3cf80a7d67965fd
[]
no_license
Asnaut/UI2CODE-IMGCAPTION
204b266723caaadfb46b136a6872bd872d45aadb
8cd65ec4bd33d28fc02b28c21343404bba078462
refs/heads/master
2022-11-21T15:19:15.671590
2020-07-11T10:02:19
2020-07-11T10:02:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,271
py
import lib.img_drawLabel as draw import lib.img_segment as seg import lib.web_catchElementInfo as catch import pandas as pd import os import time from func_timeout import func_set_timeout, FunctionTimedOut from selenium import webdriver is_segment = False is_draw_label = True driver_path = 'D:\webdriver' browser = '...
[ "dsh15325@163.com" ]
dsh15325@163.com
362488c8c75313cc894da53284c577fbb82dc1ac
c91d029b59f4e6090a523bf571b3094e09852258
/src/lotes/queries/pedido/ped_nf_rolos.py
ab331c7505176a1e2c3d0e90b368944eb5fdcea4
[ "MIT" ]
permissive
anselmobd/fo2
d51b63ebae2541b00af79448ede76b02638c41f0
8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab
refs/heads/master
2023-08-31T19:59:33.964813
2023-08-31T19:50:53
2023-08-31T19:50:53
92,856,677
1
0
MIT
2023-04-21T21:50:46
2017-05-30T17:04:27
Python
UTF-8
Python
false
false
2,439
py
import collections.abc from pprint import pprint from utils.functions.format import format_cnpj from utils.functions.queries import debug_cursor_execute from utils.functions.models.dictlist import dictlist_lower def query(cursor, op): if (not isinstance(op, collections.abc.Sequence)) or isinstance(op, str): ...
[ "anselmo.blanco.dominguez+github@gmail.com" ]
anselmo.blanco.dominguez+github@gmail.com
fbbc9b6eacdb9b5b3945df915a8149525cff3026
f9609ff4f2bbea570f3cb4cd3f9fe6b3595d4145
/commands/cmd_follow.py
bfa3c711c7679d325dfb15526e8525329d6d5673
[]
no_license
VladThePaler/PythonWars-1996
2628bd2fb302faacc91688ad942799537c974f50
d8fbc27d90f1deb9755c0ad0e1cf2c110f406e28
refs/heads/master
2023-05-08T19:51:28.586440
2021-05-14T04:19:17
2021-05-14T04:19:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,153
py
# PythonWars copyright © 2020, 2021 by Paul Penner. All rights reserved. # In order to use this codebase you must comply with all licenses. # # Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer, # Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe. # # Merc Diku Mud improvements copyrig...
[ "jindrak@gmail.com" ]
jindrak@gmail.com
5823509522037ea6cfa72c0ccd0a2c224e6bbd03
13808d3f3e53ab8abb685de1c0d587abb062742f
/plc_api/PLC/Methods/UpdatePeer.py
cd4c1ec544c4e51ad0ea46e7bad2d9ca82df9e63
[]
no_license
nfvproject/Myplc
ea3635ac939dd7623f0848bcfebf09926b336400
88b39d9649936b8ce545896162ac3a944f135c7e
refs/heads/master
2021-01-18T17:03:25.338207
2014-10-16T08:39:30
2014-10-16T08:39:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.Auth import Auth from PLC.Peers import Peer, Peers can_update = lambda (field, value): field in \ ['peername', 'peer_url', 'key', 'cacert', 'shortname', 'hrn_root'] class UpdatePeer(Method): """...
[ "wangyang2013@ict.ac.cn" ]
wangyang2013@ict.ac.cn
7eda9793d98a3b5f513684f93b6ddf0b38245299
60715c9ea4c66d861708531def532814eab781fd
/python-programming-workshop/test/files/readtsv.py
ab21d89e0b16285b63077be5b821da32c2b6b61e
[]
no_license
bala4rtraining/python_programming
6ce64d035ef04486f5dc9572cb0975dd322fcb3e
99a5e6cf38448f5a01b310d5f7fa95493139b631
refs/heads/master
2023-09-03T00:10:26.272124
2021-11-01T08:20:52
2021-11-01T08:20:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
import csv csvFile = open('example.tsv', 'w', newline='') csvWriter = csv.writer(csvFile, delimiter='\t', lineterminator='\n\n') csvWriter.writerow(['apples', 'oranges', 'grapes']) csvWriter.writerow(['eggs', 'bacon', 'ham']) csvWriter.writerow(['spam', 'spam', 'spam', 'spam', 'spam', 'spam']) csvFile.close()
[ "karthikkannan@gmail.com" ]
karthikkannan@gmail.com
719696ae55ae37ab11a6ecb2ed04bcc0eb45df55
ac562c0d008a282bef5ea4705b4fc8c2b8897964
/Ch05_functions/ch05_11_function_dictionary.py
3c6942f7deb9ccea64753854f1615a7fc23e2a90
[]
no_license
jimmus69/python-projects
ed78a50250356e9366c9d10303facf037a310596
9a91fe7f979e6e09dedec7b60595e91ae2d0d321
refs/heads/master
2021-01-21T10:52:08.486557
2017-05-18T18:51:54
2017-05-18T18:51:54
91,708,264
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
#! /usr/bin/env python """ Program: ch05_09_function_tuple_gather.py Function: Exploring default values """ def simple_function(a, b = "string", **c): print "I am from simple_function" print "The value of a: ", a print "The value of b: ", b print "The value of c: ", c return print "\n...
[ "noreply@github.com" ]
jimmus69.noreply@github.com
af9730d5d1b39d9fb576836d2390420bdee4f047
bfc9962b5c5a9254a9bc09c3e89226e663c552de
/ghem/ghem/jobs/__init__.py
4f5175eec9cb0bb521f3d985b26909dcaf3ce7b8
[]
no_license
EVOpilot/ghem
548b700c96119d3ada98dda7774e25372a0ee885
f412f3beeb62196a9246da76cd624830d477b9fa
refs/heads/master
2020-12-24T19:18:01.612124
2012-08-26T13:22:04
2012-08-26T13:22:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,956
py
import os import errno import shutil import logging log = logging.getLogger(__name__) class JobWrapper(object): def __init__(self, job_form_data): self.job_form_data = job_form_data self.user_email = self.job_form_data.get('email', None) self.store_user_email() self.command_line = N...
[ "afgane@gmail.com" ]
afgane@gmail.com
736b74411cb3c0d96f163cfbd6e335aec7f7c2d8
246aa3000200778cc1509c95f4fbb819455f2c8f
/tests/unit/test_restaurant_api.py
05bfbf34b811fc4e56368ea072388a6ab97714ab
[]
no_license
CuriousLearner/fuel-dine-web
2239dc969e8f786aac50f660c36d9a208806daa9
b7a7be563ae67b20d2be8017dac7c4cc5373151c
refs/heads/master
2020-12-03T00:24:23.720456
2017-07-07T17:08:21
2017-07-07T17:08:21
96,026,794
0
0
null
null
null
null
UTF-8
Python
false
false
6,937
py
# -*- coding: utf-8 -*- from django.core.urlresolvers import reverse from rest_framework import status from tests import factories as f from tests.unit.base import BaseAPITestCase class RestaurantAPITest(BaseAPITestCase): """Includes following tests for both authenticated and anonymous users: - Restaur...
[ "sanyam.khurana01@gmail.com" ]
sanyam.khurana01@gmail.com
16f170319d19ba627874e165639c6d458d0b640b
3637c94a0525e3400b93d34ac3a9e32e761f4ab2
/Python/Implement strStr().py
d59cbf67298a83ab4dce4a5921568084bec0dd32
[]
no_license
yumendy/LeetCode
2b68c8b044b9f572f5e809a9ad80d6a6a4de1b13
1013880474fb25eb87848f6b8c0687db6d789aff
refs/heads/master
2021-01-01T19:21:07.984459
2017-06-01T14:28:58
2017-06-01T14:28:58
35,543,406
2
0
null
null
null
null
UTF-8
Python
false
false
544
py
class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ length_h = len(haystack) length_n = len(needle) if not needle: return 0 if length_n > length_h or not haystack or ...
[ "yumendy@163.com" ]
yumendy@163.com
d6d3eb7c0cd4be39972e78b111d0125bffdffa76
7eb6fa659fec87bb98fd87de1c4a50c45f262ec8
/cfy_manager/components/restservice/scripts/get_db_version.py
6abd3316553b48bd4826711ff893e57bf34aaf0c
[]
no_license
cloudify-cosmo/cloudify-manager-install
31362927113d8e98abed2f846c7967e88d3c982a
a1605cd42e9c5be2ba2fabf51ab6d7fc7ea4b01d
refs/heads/master
2023-09-01T20:52:15.460273
2023-08-24T12:02:44
2023-08-24T12:02:44
109,827,462
16
17
null
2023-09-08T13:06:27
2017-11-07T11:36:54
Python
UTF-8
Python
false
false
1,319
py
#!/usr/bin/env python ######### # Copyright (c) 2019 Cloudify Platform Ltd. 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/LICENS...
[ "noreply@github.com" ]
cloudify-cosmo.noreply@github.com
76f889566bceecb7bdf914bcf6278345a9c7e845
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_dignities.py
241c17dbe7943d0f19b62f90d1b235655d60a963
[ "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
247
py
from xai.brain.wordbase.nouns._dignity import _DIGNITY #calss header class _DIGNITIES(_DIGNITY, ): def __init__(self,): _DIGNITY.__init__(self) self.name = "DIGNITIES" self.specie = 'nouns' self.basic = "dignity" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f8c8c66dc3053ce0e51a2149420003c2a5fe6a74
689fd2be4de6e3714347df147a7e2c3d9efdbb70
/dates/25-09-2020/20.py
3e93dc985411e44a0543755356a1f70342a6bd53
[]
no_license
python-ops-org/python-ops
2de0340fa2c5e000452fe81801bce43154ad6da6
63961ad1d8b7aa955b6fa3de922d91d3bfb34d3d
refs/heads/master
2023-09-03T12:53:45.044067
2023-08-31T13:57:00
2023-08-31T13:57:00
252,074,399
0
1
null
null
null
null
UTF-8
Python
false
false
137
py
import csv f=open("test.csv") #k=f.readlines() k=csv.reader(f) #print(k) c=0 for line in k: # if c > 0: print(line[4]) c+=1
[ "chakraborty.rock@gmail.com" ]
chakraborty.rock@gmail.com
2cf458be269749c86591c0cff79dd0617dbee916
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/common/Lib/lib2to3/fixes/fix_next.py
dfc3390656e32f5dcf775aa27dacb017b1322cec
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
2,773
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/common/Lib/lib2to3/fixes/fix_next.py from ..pgen2 import token from ..pygram import python_symbols as syms from .. import fixer_base from ..fixer_util import Name, Call, find_binding bind_warning = 'Calls to builtin next() possibly shadowe...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
e35eaf9fbcc46364cfd7b2c7785b0c7d8633d6c6
748c4ba7058336eb2d09b413066d21582e26d71b
/channels_fields/migrations/0008_alter_fieldchannel_about.py
a583992049483127a12d5f97a565433aa90ff201
[ "BSD-3-Clause" ]
permissive
mitodl/open-discussions
6dbb8ae2843263889634849ddd9096f74536b78e
ba7442482da97d463302658c0aac989567ee1241
refs/heads/master
2023-08-10T02:54:45.706067
2023-08-01T17:05:36
2023-08-01T17:05:36
93,760,926
13
3
BSD-3-Clause
2023-08-01T17:05:40
2017-06-08T14:46:35
Python
UTF-8
Python
false
false
405
py
# Generated by Django 4.1.9 on 2023-06-08 13:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("channels_fields", "0007_blankable_images"), ] operations = [ migrations.AlterField( model_name="fieldchannel", name=...
[ "noreply@github.com" ]
mitodl.noreply@github.com
ae4f4ffa213493d6969a31cc85963896e51a37f6
7d8022661a756f77f715ee4d099fb17cb9da671a
/strategy_playground/invest_proposal.py
f4454742a1b8bb658f8e5b5232fc673dcf342e0c
[]
no_license
lxj0276/Quant-Util
a7d70d88fc47eb16a08149faefa7b128c01c670e
2706ecba72a293ee01105ad22508a8d6b20e1394
refs/heads/master
2020-04-25T13:40:36.700892
2018-10-15T04:35:54
2018-10-15T04:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,455
py
from collections import OrderedDict from engine.assets import asset class single_proposal_percentage(OrderedDict): def __init__(self, *arg, **kwargs): super(single_proposal_percentage, self).__init__(*arg, **kwargs) assert self.check_data() def check_data(self): for k in self.keys():...
[ "zhangzc@pku.edu.cn" ]
zhangzc@pku.edu.cn
1b410a32dc069fcba4f1feed7a416316649d52f4
288be9dd19f349b00d2be5c75ed91baa3987b450
/apps/item/migrations/0026_delete_itemexp.py
318c3cecc5841adc51d5200e44e1765c50539092
[]
no_license
yueyoum/dianjing_editor
e7e44d2dac103821aa83e08c2f0f8057ce42fc06
a7cb00f63c733c00537845059373df80ec197c51
refs/heads/master
2020-05-30T14:46:48.410527
2017-03-22T07:28:52
2017-03-22T07:28:52
69,309,219
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-01 09:02 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('item', '0025_auto_20160411_1618'), ] operations = [ migrations.DeleteModel( ...
[ "yueyoum@gmail.com" ]
yueyoum@gmail.com
6a786a05aaef269a76265498b7c8ffa161564fe1
105642b35f063976fe92d63ab3e99f1b79371b45
/rl_fastcampus/src/mdp_gridworld.py
6840879d21a3a85f8b5523ae47b838af4f2ab150
[]
no_license
HoYaStudy/AI_Study
b459f40c8cf2aee5ad8ec1f996dea75c07281e6e
e0b5921fd9fad2cef01f7ac36c09de60aa3ef0b1
refs/heads/master
2023-01-24T05:18:08.631390
2023-01-23T02:51:19
2023-01-23T02:51:19
234,529,185
2
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
import numpy as np from lib.gridworld import GridWorldEnv # --- Making Environment nx, ny = 4, 4 env = GridWorldEnv(shape=[nx, ny]) observation_space = env.observation_space action_space = env.action_space P = env.P_tensor R = env.R_tensor # --- Simulation _ = env.reset() action_mapper = {0: "UP", 1: "RIGHT", 2: "...
[ "hoya128@gmail.com" ]
hoya128@gmail.com
817ef98bf12d21aae87efdfe7b26bad58b4fce45
899e84339d33986e78eb0e370c4903056698cf8d
/mulltiple-sum-avg.py
0b54b50a509521f846af6aab5d9c5aae0515b808
[]
no_license
cd-chicago-june-cohort/python-fundamentals-john
f05d09f6b35ae6269362d54fbbeb89fe9db4e599
b0680eba505b8db23943bce76ce083fde9e6b5bc
refs/heads/master
2020-12-02T22:33:59.601234
2017-07-05T02:01:24
2017-07-05T02:01:24
96,150,640
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
# Print all odd numbers from 1 to 1000: for x in range(1, 1000, 2): print x # Print all multiples of 5 from 5 to 1,000,000: for x in range(5, 1000000, 5): print x # Sum a list: a = [1, 2, 5, 10, 255, 3] sum = 0 for item in a: sum += item print sum # Average that list: avg = sum//len(a) print avg
[ "jpdoherty90@gmail.com" ]
jpdoherty90@gmail.com
7223e516f2ccf70d0277c160fce875e3359a2c7f
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5709773144064000_1/Python/spauka/p2.py
99534e445e5ff74cb503e13ff8b914d7cf158e62
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
656
py
def cookie_nr(factory_cost, FCps, win): Cps = 2.0 curr_time = 0.0 win_time = win/Cps factory_win_time = float('inf') while True: win_time = curr_time + win/Cps factory_time = factory_cost/Cps factory_win_time = curr_time + factory_time + win/(Cps+FCps) if win_time < ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
05f5aa25e79db3aac0706a3d86b28e1e9a5671db
588f4991cad99f517ca5028e0e41c5b4d5252543
/contest/abc135/C.py
3504f8c167b6af1efa1c8197e8b50f1066ace22a
[ "MIT" ]
permissive
mola1129/atcoder
3002ff38cabf0ccb5142bd576ed90419fccde02e
1d3b18cb92d0ba18c41172f49bfcd0dd8d29f9db
refs/heads/master
2020-06-16T12:24:49.609707
2020-03-14T15:58:42
2020-03-14T15:58:42
195,571,664
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) ans = 0 for i in range(n): # 正面の町を救う beaten = min(a[i], b[i]) b[i] -= beaten # 隣町を救う beaten2 = min(a[i + 1], b[i]) a[i + 1] -= beaten2 ans += beaten + beaten2 print(ans)
[ "ms.mola1129@gmail.com" ]
ms.mola1129@gmail.com
b44e4bfbcd00d0f452c25d109b3a91602cc2e759
ea6417b15c346d794efdf6066b8a3c38eabd9031
/snlp/base/units/lemmatization.py
a36bfd4aaa587947a1de7bb37df7cdedb480e756
[]
no_license
DilegentMancha/NLP-Pytorch-Template
ecfcd89f74336c0bb792fecc6732bd9a047810b9
df48a49558a6fa9adaa5401e8fb891cc482c87c4
refs/heads/master
2023-07-17T09:38:32.321530
2020-09-08T12:35:47
2020-09-08T12:35:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
#!/usr/bin/env python # encoding: utf-8 ''' @author: zessay @license: (C) Copyright Sogou. @contact: zessay@sogou-inc.com @file: lemmatization.py @time: 2019/11/22 16:23 @description: 对动词的词形进行转换,输入是list ''' import nltk from snlp.base import Unit class Lemmatization(Unit): """Process unit for token lemmatization...
[ "zhushuai0403@163.com" ]
zhushuai0403@163.com
5dbfcce4fa13d7667c1a041f555bb2a32953f6e5
43ff15a7989576712d0e51f0ed32e3a4510273c0
/tools/pocs/bugscan/exp_2406.py
d9b6ea4b2194ca178fa4c0b76121881048de08d0
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
989
py
# -*- coding: utf-8 -*- from dummy import * from miniCurl import Curl curl = Curl() #!/usr/bin/env python # -*- coding: utf-8 -*- #__Author__ = 烽火戏诸侯 #_PlugName_ = Shop7z order_checknoprint.asp参数SQL注入漏洞 import re def assign(service, arg): if service == "shop7z": return True, arg def audit(a...
[ "liyueke@huobi.com" ]
liyueke@huobi.com
a2cbb071c6c2963947bd130be9f9c125fd9c2f8c
1c0509a06cec726735048f00f63d2529f5e43ce6
/code_supermarkets_france/analysis/analysis_qlmc_prices_2007_2012/stats_des/overview_stores.py
d0aaa08935b3e875393a2077d39a8be0ab797f04
[]
no_license
etiennecha/master_code
e99c62e93aa052a66d4cdd3f3e3aa25a3aec4880
48821f6c854a1c6aa05cf81b653b3b757212b6f8
refs/heads/master
2021-01-23T14:35:45.904595
2018-03-11T18:57:38
2018-03-11T18:57:38
16,312,906
2
0
null
null
null
null
UTF-8
Python
false
false
6,326
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import add_to_path from add_to_path import path_data from functions_generic_qlmc import * import numpy as np import pandas as pd path_built = os.path.join(path_data, 'data_supermarkets', ...
[ "echamayou@gmail.com" ]
echamayou@gmail.com
20aa75f1e4d9004a8f99ff3a84b6a50cf420b312
7c3ccfe8fdcbe05d04444da071b9b3469b11f351
/torch/distributed/_tensor/_utils.py
a4abfa77abb2534657efe6ae53bdf939761c6877
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
nihui/pytorch
ad4df723672300d5bd4290d6bc4e2e66a5ff2f0f
999bae0f54108ffc5b7cf2524a02a83901554b16
refs/heads/master
2023-07-07T06:35:37.886490
2023-05-30T05:07:59
2023-05-30T05:07:59
177,545,801
3
2
NOASSERTION
2019-03-25T08:33:23
2019-03-25T08:33:23
null
UTF-8
Python
false
false
2,687
py
from typing import Sequence, Tuple from torch._prims_common import ShapeType from torch.distributed._tensor.device_mesh import DeviceMesh from torch.distributed._tensor.placement_types import Placement, Shard def compute_local_shape( global_shape: ShapeType, mesh: DeviceMesh, placements: Sequence[Placement] ) ->...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
3c54c33309cc89ccbc68744273af2fbca21e3cba
0cd64f3f67c6a3b130a788906da84ffc3d15396a
/Library/lib/python3.9/site-packages/sympy/polys/domains/groundtypes.py
b3c7d130d3a994627c77fb89008160b489ac25d6
[ "MIT", "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi", "Python-2.0" ]
permissive
Ryorama/codeapp
32ef44a3e8058da9858924df211bf82f5f5018f1
cf7f5753c6c4c3431d8209cbaacf5208c3c664fa
refs/heads/main
2023-06-26T09:24:13.724462
2021-07-27T17:54:25
2021-07-27T17:54:25
388,520,626
0
0
MIT
2021-07-22T16:01:32
2021-07-22T16:01:32
null
UTF-8
Python
false
false
2,106
py
"""Ground types for various mathematical domains in SymPy. """ import builtins from sympy.core.compatibility import HAS_GMPY PythonInteger = builtins.int PythonReal = builtins.float PythonComplex = builtins.complex from .pythonrational import PythonRational from sympy.core.numbers import ( igcdex as python_gcde...
[ "ken.chung@thebaselab.com" ]
ken.chung@thebaselab.com
fcbc71b9138b98745bfc436a6ccb33576c3b4c2a
f39528e9bad8cfa78b38fcbb7a5b430ac0c7a942
/Higgs2LLP/LO_HToSSTobbbb_MH125_MS15_ctauS10000_13TeV.py
1dd2c076912524275a0126efbc9e064d9d5229ff
[]
no_license
isildakbora/EXO-MC-REQUESTS
c0e3eb3a49b516476d37aa464c47304df14bed1e
8771e32bbec079de787f7e5f11407e9e7ebe35d8
refs/heads/master
2021-04-12T11:11:03.982564
2019-04-29T15:12:34
2019-04-29T15:12:34
126,622,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,910
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import * from Configuration.Generator.Pythia8PowhegEmissionVetoSettings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSetting...
[ "bora.isildak@cern.ch" ]
bora.isildak@cern.ch
18fe86f2e42dfd805aec95a5889cd5d381a0379e
9a455973f60ce048eed15d3c71f60e81161a09c7
/scripts/ccg/msupercombine.py
d1410f0221ce49e603e9bc1a4f83fb92f99626eb
[]
no_license
SUTDNLP/ZPar
4e2e87b874a2d2ca8c1f8aec854698d35ed3b307
0d07078be45151b4dfc5cda82cfd16c9765f0b63
refs/heads/master
2021-05-04T10:33:24.955650
2016-10-15T10:28:06
2016-10-15T10:28:06
45,964,664
11
5
null
null
null
null
UTF-8
Python
false
false
2,853
py
import sys def combinemsuperoutput(msuperpath, superpath): file = open(msuperpath) ref = open(superpath) ref_line = '' tokens = [] total = 0 patched = 0 for line in file: line = line.strip() if not line: # skip empty while ref_line=='': ref_line = ref.rea...
[ "jmliunlp@gmail.com" ]
jmliunlp@gmail.com
b1fab5c7073612ee5c5bd10ae4959bad25dc30a1
c2eecca25b1b0062c28bf1bf4f538f25b5f70a80
/src/krylov/symmlq.py
75b629f5e85b53b20e35e11b1b40e642d96ad37c
[ "MIT" ]
permissive
mohamedlaminebabou/krylov
a322ba135a1022e882d62e1805853850caafe4a7
e6af3d227f1512c84a528f9c4407934973231b42
refs/heads/main
2023-05-07T10:50:23.629293
2021-05-27T15:55:10
2021-05-27T15:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,851
py
""" Other implementations: https://github.com/PythonOptimizers/pykrylov/blob/master/pykrylov/symmlq/symmlq.py https://www.netlib.org/linalg/symmlq https://www.mcs.anl.gov/petsc/petsc-current/src/ksp/ksp/impls/symmlq/symmlq.c.html """ from typing import Callable, Optional import numpy as np from numpy.typing import Ar...
[ "nico.schloemer@gmail.com" ]
nico.schloemer@gmail.com
03a7cc0a3a5016c5304d8d647425a83552691a75
651558443afb8b0671fae927befc4c8c589ac606
/setup.py
285492fc8689d637097ff1d41eb4a8d4090db7fa
[ "MIT" ]
permissive
useblocks/tox-envreport
1c2e5d32387003f69bd02c454fb34b84aee9af8f
391ba869ff47fafef79293a33ea0601c4dd1ff70
refs/heads/master
2020-03-11T18:07:48.014114
2019-05-09T07:35:31
2019-05-09T07:35:31
130,167,999
7
0
null
null
null
null
UTF-8
Python
false
false
1,594
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs from setuptools import setup, find_packages def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() setup( name='tox-envreport', description='A tox-plugin...
[ "daniel.woste@useblocks.com" ]
daniel.woste@useblocks.com
a8b59b8e57a5cd556f89cb5fd4129ffc96de252f
59c55725576bbf0e2f6617507ba2f1db639abb3f
/analytic_resource_plan_mrp/wizard/consume.py
972183222416eb6093a8693638a52d009338be06
[]
no_license
bmya/eficent-odoo-addons
e3426ebaf1f59e52726253fc1dd36a09d9363059
5d8ddfa384ab4417f42bda103b71d926848035f6
refs/heads/7.0
2021-01-21T16:48:55.312452
2015-11-04T14:11:19
2015-11-04T14:11:19
45,649,141
1
3
null
2015-11-06T00:35:17
2015-11-06T00:35:17
null
UTF-8
Python
false
false
4,301
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Eficent (<http://www.eficent.com/>) # <contact@eficent.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero ...
[ "jordi.ballester@eficent.com" ]
jordi.ballester@eficent.com
f28d0fff3a5f1802f126988991119c9a7dbdf449
9f83dd499a310e3c0df133f03d58013f08264dfc
/plugins/effects/SphereFadeGizmo.py
7281147916d894cc7da1075e78c3d74ca45a27f4
[]
no_license
rcb1983/vray_for_blender_exporter
0ede57b11f28759a04fe7e63c082706d0104650f
b6d6e5447d76d595b4cc3dd347975d4af8fef24f
refs/heads/master
2022-01-15T21:15:30.390012
2019-07-24T15:19:52
2019-07-24T15:20:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
# # V-Ray For Blender # # http://chaosgroup.com # # Author: Andrei Izrantcev # E-Mail: andrei.izrantcev@chaosgroup.com # # This program 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 2 # of the...
[ "andrei.izrantcev@chaosgroup.com" ]
andrei.izrantcev@chaosgroup.com
bf9c59e0440634809d1a49f02f6a0ec91339b55f
e99ca3e9597ea13876146d3c77bf81b283f1aad1
/compiler/example_config_freepdk45.py
16545b2d34fd408420e7dcc7e7fa3a323ba9f0ae
[ "BSD-3-Clause" ]
permissive
Saeedim/OpenRAM
b90ca300fddaf371116e8d360c471e836b813e9e
d62da4432901cc737c72aabf3f9a6a5c02d596e9
refs/heads/master
2021-04-28T14:11:20.887333
2018-02-09T18:03:09
2018-02-09T18:03:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
word_size = 2 num_words = 128 num_banks = 1 tech_name = "freepdk45" output_path = "temp" output_name = "sram_2_16_1_freepdk45"
[ "mrg@ucsc.edu" ]
mrg@ucsc.edu
735eb369cbfd757d97224eac6ab530a1ca89e407
7e5a7171eb3e97d9d18b928092f94142e5cb51e3
/system/run.py
54923d04f6ab907d2a78f54a974eca58ab4a1ab0
[ "MIT" ]
permissive
sbadia/aptly
e67ef68c15bad196b6723644113179a8495277fb
5d16cf06cf23b5a70b0d375fcc1a43eaa7053071
refs/heads/master
2020-12-28T19:24:16.093595
2015-02-04T22:49:29
2015-02-04T22:49:29
28,808,010
1
0
null
2015-01-05T10:27:37
2015-01-05T10:27:37
null
UTF-8
Python
false
false
3,253
py
#!/usr/local/bin/python import glob import importlib import os import inspect import fnmatch import sys import traceback from lib import BaseTest from s3_lib import S3Test from api_lib import APITest try: from termcolor import colored except ImportError: def colored(s, **kwargs): return s def run(i...
[ "Smirnov.Andrey@gmail.com" ]
Smirnov.Andrey@gmail.com
9846d2f5e61d53d80ec0e0186aaf933ae0165fbf
abfcee924f57ee2011443703d4869f828e548910
/account_due_dates_str/__openerp__.py
6dcb151bb5c2299e61817a273d8ab6e82fecc8d8
[]
no_license
Comunitea/external_modules
fb68cbf84cee1c6aa748f4f10e2999b9bb6aadf5
9718281e31b4a4f6395d8bed54adf02799df6221
refs/heads/8.0
2023-09-03T17:18:37.652200
2022-02-10T09:33:33
2022-02-10T09:33:33
49,890,295
4
33
null
2022-10-10T11:34:24
2016-01-18T16:47:40
Python
UTF-8
Python
false
false
1,377
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Comunitea Servicios Tecnológicos All Rights Reserved # $Omar Castiñeira Saaevdra <omar@comunitea.com>$ # # This program is free software: you can redistribute it and/or modify # it u...
[ "javierjcf@gmail.com" ]
javierjcf@gmail.com
fb411b1998b7b0c333a51069efd3b75bbaa7c925
f8d5c4eb0244c4a227a615bc11c4c797760c3bec
/log/REINFORCEMENT_2017-11-23 01:08:50.425346/REINFORCE_cart_pole.py
a27a968c688705fc729ead3415fa1bda6b4e649d
[]
no_license
SamPlvs/reinforcement_learning_pytorch
e9b84659f870d938814177f1288fa4a2eb152599
ffb9e53eeff011c4d3d5933a60c2b65fdbb18e2a
refs/heads/master
2020-03-23T04:08:51.778325
2018-01-16T22:36:48
2018-01-16T22:36:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,732
py
import torch import gym import numpy as np import matplotlib import matplotlib.pyplot as plt # import datetime from REINFORCEAgent import REINFORCEAgent # import random # from torch.autograd import Variable import signal import utils.util as util import os, sys, datetime, shutil import utils.logger as logger from date...
[ "kebai0624@gmail.com" ]
kebai0624@gmail.com
3a65cde2cbfcd0eb13ffcd5af54fb1a6c2407d32
5b52feaf975c810693bbd9c67deb061824cdca32
/Darlington/phase-3/python class/day 99 solution/qtn1.py
e8077178abf7ccec556fd69c0e95723fdadd9a3a
[ "MIT" ]
permissive
darlcruz/python-challenge-solutions
1dd21796b86f8fdcfa9a1a15faa26ab3e8e0f7b1
3e03a420d01177b71750d4d1b84cb3cbbf8c6900
refs/heads/master
2022-12-20T23:50:08.641120
2020-09-28T21:34:14
2020-09-28T21:34:14
263,591,779
0
0
MIT
2020-05-13T10:00:21
2020-05-13T10:00:20
null
UTF-8
Python
false
false
679
py
#Python class to convert an integer to a roman numeral. class py_solution: def int_to_Roman(self, num): val = [ 1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1 ] syb = [ "M", "CM", "D", "CD", "C", "XC", "L", "XL...
[ "darlingtonchibuzor64@gmail.com" ]
darlingtonchibuzor64@gmail.com
f45c33f61480bb64812d5c7d5c64b93b7b196dd0
6ea3bf6b571f34a49ce7d2d00371245431b3d51a
/014.py
82e16718d1f90e3010937485e73dc18439138b4f
[]
no_license
3kwa/euler
a1d6565b9650040fb316b03ff02adba567e0e155
ae4b124c8a3e23e958a8a01353c54b3a09955bad
refs/heads/master
2016-08-04T19:40:55.091339
2012-02-03T04:37:02
2012-02-03T04:37:02
3,134,535
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
def sequence(n): """ >>> sequence(1).next() Traceback (most recent call last): StopIteration >>> list(sequence(13)) [40, 20, 10, 5, 16, 8, 4, 2, 1] """ while n > 1: if n % 2 == 0: n = n / 2 else: n = 3 * n + 1 yield n if __name__ == '__mai...
[ "eugene.vandenbulke@gmail.com" ]
eugene.vandenbulke@gmail.com
e0209c87648990666097d9b0e33e6dcdc294bd9d
59f8e783abe9949cf9e9aef5936d2349f7df7414
/annotations/create_intergenic_gff.py
63f48526b900fae6bf73eb5e67b25f5f00713fd9
[]
no_license
bhofmei/analysis-scripts
c4d8eafde2834b542c71c305e66c4e6f8a6e2c57
189bf355f0f878c5603b09a06b3b50b61a11ad93
refs/heads/master
2021-01-17T17:26:30.799097
2019-10-27T12:49:10
2019-10-27T12:49:10
56,076,808
2
1
null
null
null
null
UTF-8
Python
false
false
1,295
py
import sys, math, glob, multiprocessing, subprocess, os # Usage: python3.4 create_intergenic_gff.py <gff_file> <out_file> def readGFF( gffFileStr ): prevPos = 1 curChrm = None outStr = '' gffFile = open( gffFileStr, 'r' ) for line in gffFile: if line.startswith( '#' ): continue lineAr = line.rstrip(...
[ "bhofmei@gmail.com" ]
bhofmei@gmail.com
f0c38bbf9d9285b99b2d7f4a16dc44080a88d51c
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part002320.py
1bc8e296d08ecab7b126bebd330de4e46a2b36a0
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,821
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
de17b709b212dad7d0c108ea15333805853105a7
ac171dc18a754c903b4992277f233115f13e61e3
/slowfast/models/build.py
a88eb51132e754cb93bec6ea7ba7471639ee08b0
[ "Apache-2.0" ]
permissive
bdebbabi/SlowFast
71cb954c8095ec805de9c4f6b069c57bda5a1737
06e3319b201f02bd4db317f0970cc86a0a99ba4a
refs/heads/master
2023-01-25T04:04:15.339496
2020-12-05T14:58:46
2020-12-05T15:01:16
300,536,127
4
5
Apache-2.0
2020-11-25T07:15:23
2020-10-02T07:28:58
Python
UTF-8
Python
false
false
1,725
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """Model construction functions.""" import torch from fvcore.common.registry import Registry MODEL_REGISTRY = Registry("MODEL") MODEL_REGISTRY.__doc__ = """ Registry for video model. The registered object will be called w...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
17aabdcb50a0ecad64d861bb7db50b54bdbbe30f
5afd733a5c1f753601c69b8b4eae1b49edfbae7c
/101-200/135.py
0aa855d3c1f3df507c6682bddb92a800b11863da
[]
no_license
yanbinbi/leetcode
9dcd4a0160be915006455b83d6b7cd39e9819811
616a868bfa7bdd00195067b0477b0236a72d23e0
refs/heads/master
2021-05-13T19:34:17.222576
2017-11-12T02:04:31
2017-11-12T02:04:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
class Solution(object): def candy(self, ratings): """ :type ratings: List[int] :rtype: int """ size = len(ratings) if size == 0: return 0 ret = [1]*size for i in range(1,size): if ratings[i] == ratings[i-1]: ret[...
[ "xukaifeng1986@gmail.com" ]
xukaifeng1986@gmail.com
3860624658f298ba67ab4c2c2167e62a3274b2af
a9cc9ced0dd547a2d851c6f6709e11d9b14ede02
/loan/find_loan_status.py
f5b72a4ca53aef006356161edeba89596a770517
[]
no_license
srikanthpragada/DS_06_APR_2020
2f2fdd4d4d6adae3f4c8b1fb235d0e498e30a269
5f49883183f53ae12cd1e3270b0adc71cf83e670
refs/heads/master
2021-05-26T00:05:02.980815
2020-05-15T03:29:27
2020-05-15T03:29:27
253,974,125
4
2
null
null
null
null
UTF-8
Python
false
false
531
py
import pickle f = open(r"e:\classroom\ds\mar21\loan\lr_model.pkl","rb") model = pickle.load(f) # take input from user amount = int (input("Enter Loan Amount : ")) income = int (input("Enter Applicant Income : ")) cincome = int (input("Enter Co.Applicant Income : ")) term = int (input("Enter Loan Term ...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
6f890c23837b42f9deb896edf889c993b2f4f038
fbff6799581679726db2c3f85a8058c8405104de
/crmapp/forms.py
64c0b4d24f3737cc657d21ce217a71e0ebf570ea
[]
no_license
rcoffie/crm
071ea3261a66d6b31d5344e6f51e2077636d489a
f83173f8f5816f8294a6c824b816265bea13a704
refs/heads/master
2022-06-24T12:53:24.842053
2020-05-07T15:11:54
2020-05-07T15:11:54
258,986,601
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
from django.forms import ModelForm from . models import * class OrderForm(ModelForm): class Meta: model = Order fields = '__all__'
[ "rcoffie22@yahoo.com" ]
rcoffie22@yahoo.com
16453d5dd74448562c1d13b0d2f19fbe2eb2e8ea
826ef921c6ea02e532398b87991353a61cb2804f
/data/migrations/0022_discardaction.py
e4dd213eb09ddcfeb8792b5a893c3f78c1e8d711
[ "MIT" ]
permissive
betagouv/peps
c3823405b27fa73e3e9bf63292622d68021d622b
6a28aac1c6daca530775db7cd173cbca2441ab54
refs/heads/master
2022-02-14T08:06:15.759531
2022-01-25T15:01:34
2022-01-25T15:01:34
202,151,130
6
7
MIT
2022-01-24T14:03:21
2019-08-13T13:31:01
Python
UTF-8
Python
false
false
747
py
# Generated by Django 2.2.4 on 2019-11-14 15:30 from django.db import migrations, models import django.utils.timezone import uuid class Migration(migrations.Migration): dependencies = [ ('data', '0021_practice_balances_sowing_period'), ] operations = [ migrations.CreateModel( ...
[ "alemangui@gmail.com" ]
alemangui@gmail.com
660ab0608b281ebca41bb0c39c9f88c2ace3432b
7f5f40b950a7644d0a694c741358531b07ee894b
/Problems/ABC134/B.py
95a617d4037fe96e1ba33f2c612ae8403900705f
[]
no_license
matsui-k-dmj/atcoder
b90d24e4afd99d2299e55bc431eeaec16dd45540
46aa53591efb681f807f970ad03387d147d4b9e5
refs/heads/master
2022-01-30T12:31:55.192854
2022-01-16T16:26:01
2022-01-16T16:26:01
196,672,133
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
import sys sys.setrecursionlimit(4100000) import logging logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) def resolve(): N, D = [int(x) for x in sys.stdin.readline().split()] logger.debug('{} {}'.format(N, D)) def ceil_int(a, devider): """ floor は a // dev...
[ "you@example.com" ]
you@example.com
c3599de6050487d1113a3cf4e49ffcda7dd59b5a
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_4_neat/16_0_4_Belitoron_TaskD.py
e4a196e921ecd06ac6782f376bf50b597a26a6ef
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
268
py
fi = open('D:\D-small-attempt0.in', 'r') fo = open('D:\output.txt', 'w') z = int(fi.readline()) for i in range(1, z+1): K, C, S = map(int, fi.readline().strip().split()) fo.write("Case #{0}: {1}\n".format(i, ' '.join((str(i) for i in range(1, S+1)))))
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
590fc984c1316b6793efeab3b6f75cff2851be99
c7d0f590f3353b827ed34b731c2f6c53952a1f65
/tests/test_crossref.py
7338f6a8d6daa6a9f7480ace6d9f375372fff9c8
[ "MIT" ]
permissive
Daniel-Gong/autoCV
811285a15c913776ced6c2ca49e8b4c625514399
ea620c88f46900bc177eb06775f001696c77a09d
refs/heads/master
2023-06-26T11:53:17.831465
2021-08-05T17:16:01
2021-08-05T17:16:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
""" test crossref utilty functions in crossref.py """ import pytest from autocv.crossref import get_crossref_records, parse_crossref_record @pytest.fixture(scope="session") def dois(): return(['10.7554/elife.53498', '10.1016/j.neuron.2020.02.019']) @pytest.fixture(scope="session") def crossref_records(dois): ...
[ "poldrack@gmail.com" ]
poldrack@gmail.com
6f0faf8173f5feca446a6f07edf308cddeb5fcd3
7bbe069ef66a4f1338f171a63d6a80363abf45ae
/src/job/infrabox_job/job.py
7aae80dcbf2061137b45e98c43c1a67e8b42bf9e
[ "MIT" ]
permissive
Asghan86/infrabox
bd72474ab0654288b289a162841d5b1beae59794
22c5b6af7157e0ee32b850014bf4d048ae150d39
refs/heads/master
2021-07-24T12:25:55.395084
2017-11-04T20:25:59
2017-11-04T20:25:59
109,527,791
1
0
null
2017-11-04T20:26:35
2017-11-04T20:26:34
null
UTF-8
Python
false
false
3,304
py
import os import sys import requests from infrabox_job.process import Failure class Job(object): def __init__(self): self.api_server = os.environ.get("INFRABOX_JOB_API_URL", None) if not self.api_server: print "INFRABOX_JOB_API_URL not set" sys.exit(1) while True:...
[ "steffen@infrabox.net" ]
steffen@infrabox.net
83e6cf771680f57b8e27e0c65a66eb2b34dfb46a
7b4112cf9b8ce80845dfa2596efcc93f98830a36
/crm/models.py
c062dd2f40cc937aeed0efa2ef61c4dfbaec370d
[]
no_license
biofsphere/django-boilerplate
27d65a37ef0ffa0240313fc7f7a4a2b9017c173f
86232edae8f6afd82b3bf3127de35fd1cbf3ff94
refs/heads/main
2023-08-04T07:59:27.799513
2021-09-14T07:32:13
2021-09-14T07:32:13
415,079,098
1
0
null
null
null
null
UTF-8
Python
false
false
803
py
from django.db import models from django.urls import reverse_lazy from {PROJECT}.core.models import Active, Address, Document, TimeStampedModel class Person(TimeStampedModel, Address, Document, Active): first_name = models.CharField('nome', max_length=50) last_name = models.CharField('sobrenome', max_length=5...
[ "regis42santos@gmail.com" ]
regis42santos@gmail.com
1c6632f268797fa257390eeec47b2b5a095c65f2
7853bbf9455d71535517bcedd5569f6f39744c04
/affiliate/models.py
c35c260989c994d96ab97354736448be52448a44
[]
no_license
Mimkaa/my_first_website_with_django
acff9d0bb7362487ff2d7f9a431d1fbf455ef9d7
e2bca82c75020ff7df330d5fe3bb36053ea2ba37
refs/heads/main
2023-08-19T05:48:37.797136
2021-09-25T08:38:16
2021-09-25T08:38:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,468
py
from django.db import models from django.urls import reverse from django.db import models from django.utils import timezone from django.utils.translation import gettext_lazy as _ from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager from django.conf import settings User = setting...
[ "you@youraddress.com" ]
you@youraddress.com
8dc5554843dee9ba3567d68533f799c06dc9cc83
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/plotly/py2/plotly/validators/carpet/baxis/tickfont/__init__.py
cdd15d36caf9849fd7c9406dfff7fccace317734
[ "MIT", "Apache-2.0" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
1,531
py
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="carpet.baxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=pare...
[ "robot-piglet@yandex-team.com" ]
robot-piglet@yandex-team.com
84928ab5c05bda81155164ce0af34e1f39e15143
1990344218def595b8fe8a60d2367f8733289586
/ElementMission.py
4a6ea79527eb9a2608dc95d3ca635ba5cf6b98f0
[]
no_license
fortable1999/dynamicprogramming
7afd49a5bc8b2f92eb927581e718c57fdb040f51
976efa646cb16e40eb13772046e7d04ff109dc10
refs/heads/master
2020-04-09T15:31:08.153342
2018-12-06T02:17:51
2018-12-06T02:17:51
160,428,467
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
def solution(A): # write your code in Python 3.6 sort_a = sorted(A) result = len(sort_a) + 1 for idx in range(len(sort_a)): if sort_a[idx] != (idx + 1): return idx + 1 return result print(solution([1,2,3,5])) print(solution([])) print(solution([2])) print(solution([x for x in ra...
[ "fortable1999@gmail.com" ]
fortable1999@gmail.com
b68e1da204f133b54010e996c8db5cc265f850e1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/310/97705/submittedfiles/principal.py
fa7c39dee7320536048f821736b27849556282f9
[]
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
451
py
# -*- coding: utf-8 -*- from minha_bib import * #COMECE AQUI ABAIXO a1 = 'X' print(' '+ a1 + ' |' + ' O' + ' |' + ' ' +'\n___________') """ print('Bem vindo ao jogo da velha') nome = input('Qual seu nome: ') jogador = 0 a = 'b' solicitaSimbolodoHumano(a) sorteioPrimeiraJogada(jogador) jogadaComputador(a) whil...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
11d625d2b3721e4fece08b2bb9384a6d6960cad6
543037f34b4d1a91f8e8d3ce92c955bce0908abd
/class8/collateral/jnpr_cfg_file.py
33601dd4f810b433a33fdbccfed32ce05632203f
[ "Apache-2.0" ]
permissive
suhaibasaeed/pyplus_course
374d606a4ae10b54e78f24b6c964558b65687fe1
313e5ba34c5f7acc59a9032c4698bc80ef36a6b0
refs/heads/master
2023-01-20T09:05:20.503509
2020-11-28T21:11:47
2020-11-28T21:11:47
299,747,126
0
0
Apache-2.0
2020-09-29T21:57:14
2020-09-29T21:57:14
null
UTF-8
Python
false
false
452
py
from jnpr.junos import Device from jnpr.junos.utils.config import Config from getpass import getpass a_device = Device(host="srx2.lasthop.io", user="pyclass", password=getpass()) a_device.open() a_device.timeout = 60 cfg = Config(a_device) cfg.lock() cfg.load(path="test_config.conf", format="text", merge=True) # cfg...
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
d74ed3da85a83da99005ede24c1ed2c32848de75
8c23effa7065436e7e251137488aaa861de50395
/tests.py
64cdada45a4588d51812a2372826cd1ab67311cf
[]
no_license
ericholscher/django-playground
5f68f77e2aeb02a712b491c746d1baa2808fd16e
8195bb8172ce8d426bb108b4e1e051bffe02d738
refs/heads/master
2021-01-23T15:41:29.840254
2009-11-10T06:06:20
2009-11-10T06:06:20
209,035
4
1
null
null
null
null
UTF-8
Python
false
false
622
py
from django.test import TestCase from django.template import Context, Template from django import template from mock import Mock class SimpleTest(TestCase): fixtures = ['test_data'] def test_basic_self_parsing(self): from playground.templatetags.playground_tags import get_content_tag token = ...
[ "eric@ericholscher.com" ]
eric@ericholscher.com
6962d16fd8dc958bdab66af0610d276ca41b73c0
dca5705c291da76cbfaf3897680eb0ae2eb56e2b
/aayushg_assgn/search/views.py
d63b59c089f6f81cee4ad93bed52cce68340e98f
[]
no_license
gadia-aayush/Django-API-1
41a40598653009def8ca5bda9a578a26b8bf9115
307202ad0aa4357408e756cd74f3723e74fca253
refs/heads/master
2022-12-13T23:09:45.960562
2020-08-30T19:36:16
2020-08-30T19:36:16
273,763,155
0
0
null
null
null
null
UTF-8
Python
false
false
3,646
py
import json from django.http import JsonResponse from django.http import HttpResponse, HttpResponseNotFound, Http404, HttpResponseRedirect from spam.models import Spam from myauth.models import UserContacts from django.contrib.auth.models import User from rest_framework.decorators import api_view from rest_framework i...
[ "gadia.aayush@gmail.com" ]
gadia.aayush@gmail.com
d470647216243d249945655d7985ddbb0e996998
2a9645a7101994d78b5727faf7c34729f7d88b10
/v7/import_feed/import_feed.py
ee59277190db5888ea94e3c59edb2afb63dee901
[ "MIT" ]
permissive
humitos/plugins
8bbd53f61e083967119cbe557d7b8f49431661d8
2b0f88501ee2b233621626c91dfff8d4d9ede4f3
refs/heads/master
2021-01-17T14:48:57.696025
2014-11-24T09:09:25
2014-11-24T09:09:25
27,068,206
1
0
null
null
null
null
UTF-8
Python
false
false
7,073
py
# -*- coding: utf-8 -*- # Copyright © 2012-2014 Roberto Alsina and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights t...
[ "ralsina@netmanagers.com.ar" ]
ralsina@netmanagers.com.ar
19464c25a59ace24c1119b8efba643047c80ee68
6dd5bfe305bfc8d7fccf1f9bd6b3ec2250fc574c
/tensorflow_probability/python/bijectors/weibull_test.py
0c755bf273bc80ba2a404c6f25107477fdab010d
[ "Apache-2.0" ]
permissive
snehil03july/probability
dd38cf7abba01b6702362476150d67092ce754b2
5f576230f1e261a823e20a49c442ff38c8f381d3
refs/heads/master
2020-03-28T10:24:46.378464
2018-09-08T22:34:22
2018-09-08T22:34:25
148,106,347
1
0
Apache-2.0
2018-09-10T06:01:26
2018-09-10T06:01:26
null
UTF-8
Python
false
false
2,861
py
# Copyright 2018 The TensorFlow Probability 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 o...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
e0a7b3236d7e54b43222c9fce7ad6f7eb7c8cfe8
3291359d8867e7b5ca9e8befb83629810938f903
/timetable_v3/secretariat/forms.py
b7b0e5f66e2c83742cb0b8a7bd9c9fa47f0d07bf
[]
no_license
A-miin/timetable_v3
f9e4610800acb83f3477dcffd2b0ce1c75d2c1d0
1de0885f04beec83657672275deff22b71af2de3
refs/heads/master
2023-06-09T18:51:44.298534
2021-07-02T15:01:54
2021-07-02T15:01:54
341,462,656
0
0
null
null
null
null
UTF-8
Python
false
false
5,683
py
from django import forms from webapp.models import ClassRoom, Building, Department, RoomType, Teacher, GradeYear, Course, CourseVsRoom, \ CourseType, SUBE_TYPE from django.contrib.auth.models import User class ClassRoomForm(forms.ModelForm): building = forms.ModelChoiceField(queryset=Building.objects.all(), ...
[ "zulaykaisaeva@gmail.com" ]
zulaykaisaeva@gmail.com
9c4f26c99ba062c7e5a2d2f2c5ad4d6e32bec16c
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/matplotlib/2017/4/pcolor_log.py
0ae6e26c30b16b071cdf318871c16e416c867d61
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
713
py
""" ========== Pcolor Log ========== """ import matplotlib.pyplot as plt from matplotlib.colors import LogNorm import numpy as np from matplotlib.mlab import bivariate_normal N = 100 X, Y = np.mgrid[-3:3:complex(0, N), -2:2:complex(0, N)] # A low hump with a spike coming out of the top right. # Needs to have z/colo...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
9188404dea03dc75f0150e4952bfeab647119d11
1fecc3115bcbf2f2dd396560fc252173112a03af
/invenio_records_permissions/policies/__init__.py
a5543c14e2de966b17a2a2e5b50aa6e7b2c0d809
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cenouralm/invenio-records-permissions
d28d0b90d69870752383d2d2a89caf0559c847ee
b953d55eef4bbb73a05b2d0a43a324e03275cd22
refs/heads/master
2022-12-04T21:58:42.023986
2020-07-24T13:53:22
2020-07-24T14:30:06
290,167,899
0
0
MIT
2020-08-25T09:08:40
2020-08-25T09:08:40
null
UTF-8
Python
false
false
470
py
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # Copyright (C) 2019 Northwestern University. # # Invenio-Records-Permissions is free software; you can redistribute it # and/or modify it under the terms of the MIT License; see LICENSE file for # more details. """Invenio Records Permissions Policies.""" from .bas...
[ "fenekku@fenekku.com" ]
fenekku@fenekku.com
af46f4f09b22a7190bb2d38a96f4a284c5d6b141
dc81f105ae284c4968b8e2bca0bd436cd1f50044
/consent/models.py
8b9df3bcc0db63ac574fa67005c92c40ac103e54
[]
no_license
cessuser/lying_online
1af763066347c445b808c55bccd56e7af1e2e9a3
eb2a1b39a666572c408f03185c2ebd0f7dab60b9
refs/heads/master
2020-03-30T15:46:45.137793
2019-06-11T05:03:51
2019-06-11T05:03:51
151,378,693
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
from otree.api import ( models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer, Currency as c, currency_range ) author = 'danlin chen' doc = """ Your app description """ class Constants(BaseConstants): name_in_url = 'consent' players_per_group = None num_rounds = 1 class Subses...
[ "d84chen@uwaterloo.com" ]
d84chen@uwaterloo.com
67ac0ddc43e726ddd488d15f452a0ddf17aca89a
7aa6a1069dd2a0301b7d1e2fc35ee518fec2de5a
/setup.py
dd292244a92bac144d1460d3914b0d6039f7dbfa
[ "MIT" ]
permissive
Arkenjan/read-ICESat-2
6c5e4d2406c3249a0eed939e27b045eb4938d749
ae671f01d333fb0ee13c721401a123b9f661dfd1
refs/heads/master
2022-09-10T18:44:17.209079
2020-05-29T17:59:45
2020-05-29T18:52:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup( name='read-ICESat-2', version='1.0.0.11', description='Tools for reading and using data from the NASA ICESat-2 mission', long_description=long_description, long_description_conten...
[ "tsutterl@uw.edu" ]
tsutterl@uw.edu
c55b01a109d8ebcc73aa8737f252a62ef5c81812
d486e44818767ad32c804f14e91b708b45946ff0
/Contents/Libraries/Shared/spotify/objects/top_tracks.py
e3a86adbe0d2d7e5f2a553786a2b13f2f8c562d2
[]
no_license
heathermaga/Spotify2.bundle
37d8ea87df97820a21af6e9deef2280288388ab6
88128e52885f84041d003152365bb33e6cfe2e5f
refs/heads/master
2021-05-06T15:59:39.640447
2017-12-09T19:53:38
2017-12-09T19:53:38
113,696,669
0
1
null
2017-12-09T19:47:02
2017-12-09T19:47:00
null
UTF-8
Python
false
false
245
py
from spotify.objects.base import Descriptor, PropertyProxy from spotify.proto import metadata_pb2 class TopTracks(Descriptor): __protobuf__ = metadata_pb2.TopTracks country = PropertyProxy tracks = PropertyProxy('track', 'Track')
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
eda3a8fc727786742844f5b4c20087ea7566336b
c9e1d0f053cc50474ec140d2a686465e28f88b2d
/third_module/tornado_test/concurrent_spider.py
a30b8071cf9451fb3ecce4013f876b9de4e001b5
[]
no_license
huanmengmie/python_study
96a65b8b2f71301946d5bdaaf3c5df79bca1ba10
0779cdbe3a8a7b828e47cfb8a830c56f72e015c7
refs/heads/master
2021-07-05T01:35:26.836455
2020-07-26T15:43:16
2020-07-26T15:43:16
140,391,229
0
0
null
null
null
null
UTF-8
Python
false
false
2,637
py
# -*- coding: utf-8 -*- import time from datetime import timedelta from html.parser import HTMLParser from urllib.parse import urljoin, urldefrag from tornado import gen, httpclient, ioloop, queues base_url = "http://www.tornadoweb.org/en/stable/" concurrency = 10 async def get_links_from_url(url): """Download...
[ "huanmengmie@163.com" ]
huanmengmie@163.com
59c771139cf218b36cbfb1cfb16d15db600c2bef
a3b928777955c51c27359dee0500b8bafe837e93
/multitenant_app/permissions.py
a9da468ad19c480eb10d9077d47ece27897afe9d
[]
no_license
sandeepsajan0/backend-apis
7231ace53b3fa58191b29358449ecb40adad5bfd
6ea9c10c19b30ccac66f8cac4a375458e2d70c76
refs/heads/master
2022-12-12T22:35:55.087409
2021-06-20T10:21:23
2021-06-20T10:21:23
226,849,793
2
3
null
2022-12-08T03:32:48
2019-12-09T10:55:42
Python
UTF-8
Python
false
false
142
py
# from rest_framework import permissions # # class IsCompanyOwner(permissions.BasePermission): # def has_permission(self, request, view):
[ "sandeepsajan0@gmail.com" ]
sandeepsajan0@gmail.com
792cc5963ddd6eb4c9967b9e78ea3773a2262e70
3e5b2eb741f5ae52752328274a616b475dbb401a
/services/core-api/app/api/now_applications/models/now_application_review_type.py
531dc76cf5dcad13788b752a5e7c1941eff99727
[ "Apache-2.0" ]
permissive
bcgov/mds
165868f97d0002e6be38680fe4854319a9476ce3
60277f4d71f77857e40587307a2b2adb11575850
refs/heads/develop
2023-08-29T22:54:36.038070
2023-08-29T05:00:28
2023-08-29T05:00:28
131,050,605
29
63
Apache-2.0
2023-09-14T21:40:25
2018-04-25T18:54:47
JavaScript
UTF-8
Python
false
false
745
py
from sqlalchemy.dialects.postgresql import UUID from sqlalchemy.schema import FetchedValue from sqlalchemy.ext.associationproxy import association_proxy from app.api.utils.models_mixins import Base, AuditMixin from app.extensions import db class NOWApplicationReviewType(Base, AuditMixin): __tablename__ = "now_ap...
[ "noreply@github.com" ]
bcgov.noreply@github.com
fb15edcc260d4760e8ec93d9aa35a44e6bdecb3d
78297bc868d588dd7a16cfea059ef7365ba18622
/scripts/irods/test/test_irmtrash.py
044d9981f89264125a538afe944a0d939dcfdf76
[ "BSD-3-Clause" ]
permissive
irods/irods
ab72a41fdf05a4a905c3e3a97bb7ba3c2a6ae52d
f3ccaa842218e477395ebcf553639134433b63ee
refs/heads/main
2023-09-01T20:12:33.322002
2023-08-23T18:22:59
2023-08-31T13:41:31
14,724,975
381
167
NOASSERTION
2023-09-11T18:18:14
2013-11-26T18:10:18
C++
UTF-8
Python
false
false
1,333
py
from __future__ import print_function import os import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest from . import session from .. import test from .. import lib admins = [('otherrods', 'rods')] users = [] class Test_Irmtrash(session.make_sessions_mixin(admins, users)...
[ "terrellrussell@gmail.com" ]
terrellrussell@gmail.com
71cec431ab923a51aff67f487aa3bbade8fc67b7
9aaee5f65c8dd9d18b1cc549740f4e6be295f091
/zernike_model/SConscript
8b821b4cd3777032ecd586352fca3ab82c7f028e
[]
no_license
ssongna/sastbx_module_sastbx
285074d6f07c9d440bd750889322746d14448328
aa5cc2f59a4179db761125fb01fe7aaeda7d5dd0
refs/heads/master
2021-08-17T09:01:18.796977
2017-11-21T01:25:50
2017-11-21T01:25:50
111,428,819
0
0
null
null
null
null
UTF-8
Python
false
false
623
Import("env_base", "env_etc") env = env_base.Copy( CXXFLAGS=env_etc.cxxflags_base, LIBS=["cctbx"]+env_etc.libm, LIBPATH=["#lib"] ) env_etc.include_registry.append( env=env, paths=env_etc.sastbx_common_includes) if (not env_etc.no_boost_python): Import("env_cctbx_boost_python_ext") env_bpl = env_cctbx_bo...
[ "15298375979@126.com" ]
15298375979@126.com
66f91f1485d7b364c15bd92c5ce5d45fe9faf715
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/apigatewayv2_write_1/api_update.py
ce944acb35939b29475292bbfbba47cd8dc5d348
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/apigatewayv2/update-api.html if __name__ == '__m...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
87227646be4ba172b224ff6978301e2e7dd0f040
61c6f707403307bbf124f85689d0008c5fef7462
/find minimum in rotated sorted array.py
7df09bd22aac4a0bf4298c9f6661ec3c62f7f95d
[]
no_license
immzz/leetcode_solutions
1685bb82abccbcb7e8869e6df61d79241d66d17b
baddc09a5e626d919011aa222667a40e2ef4c375
refs/heads/master
2016-09-06T06:44:56.971046
2015-10-06T01:35:39
2015-10-06T01:35:39
23,483,457
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
class Solution: # @param {integer[]} nums # @return {integer} def findMin(self, nums): l = 0 r = len(nums) - 1 while l < r: mid = int((l+r)/2) if nums[mid] > nums[r]: l = mid + 1 else: r = mid return nums[l]
[ "zeostudio@gmail.com" ]
zeostudio@gmail.com
81885b16a341069720a291b926988a1db0633854
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/compgen/csl/tasks/smcalflow/tools/format_for_t5.py
4c98d1113fd56d3bbd10323f99b0500f9edeeb77
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/language
e941b1a92ab46d40d8d03bb0c314905cb6902ce2
ac9447064195e06de48cc91ff642f7fffa28ffe8
refs/heads/master
2023-08-24T23:10:13.207294
2023-05-25T20:47:18
2023-05-25T22:29:27
153,201,352
1,567
371
Apache-2.0
2023-07-06T23:03:15
2018-10-16T00:58:14
Python
UTF-8
Python
false
false
1,433
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
[ "kentonl@google.com" ]
kentonl@google.com
d58f1bbad57b3478275bbc578ab4799dc2046d54
b0f21271e8ad3afd152f87777a1a2745fced9022
/collective/metarobots/__init__.py
579c9b9a03a83042b152467189222278100bbc41
[]
no_license
collective/collective.metarobots
b82af9dc1a77abefcbb6223186b0b5231f957ce0
fcb7f2fc35a2d9e79e60971c1427fe6b89ddb116
refs/heads/master
2023-03-22T14:30:03.551575
2012-09-03T14:59:53
2012-09-03T14:59:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
from zope.i18nmessageid.message import MessageFactory messageFactory = MessageFactory('collective.metarobots') #make parsing easier _ = messageFactory
[ "toutpt@gmail.com" ]
toutpt@gmail.com
4868a0139df3d25a782e6af62e9e8f9e77e10c10
8da76aabcf9cfea3478f56037edbb5fa1513140b
/callowaydemo/lib/python2.7/site-packages/exampleproject/settings.py
4920d60c8d8e1048efd3c2511f8449d8b12f6c5e
[]
no_license
mikanyman/.virtualenvs-legacy
039479f31f2ca9f9a3d3544d8837429ddd0a7492
5486128b5b3b7ddb9ec81d43e3bb601a23b4025a
refs/heads/master
2020-12-31T07:10:07.018881
2017-02-01T02:16:55
2017-02-01T02:16:55
80,566,220
0
0
null
null
null
null
UTF-8
Python
false
false
3,265
py
# Django settings for project project. import sys sys.path.insert(0, os.path.abspath('..')) import calloway import os CALLOWAY_ROOT = os.path.abspath(os.path.dirname(calloway.__file__)) sys.path.insert(0, os.path.join(CALLOWAY_ROOT, 'apps')) PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0,...
[ "mika.nyman@synapse-computing.com" ]
mika.nyman@synapse-computing.com
96f65f5cefcb268d06fcb30b79a187cb8d3380db
0c10d5c3dedd8e17275146e596edc6104b6ca325
/grpc_benchmark/server.py
da68fe13003be5413f07051e9d5ef7d8d575c05a
[ "MIT" ]
permissive
mpetyx/python-rpc-frameworks-comparison
f5cf01dfd1bb61fca4e8bbcd4bf08b471ef6a02a
5b69a5aef1f8ead2fb88e744b6b1787b27165898
refs/heads/master
2020-03-27T13:15:32.841893
2018-08-30T17:08:40
2018-08-30T17:08:40
146,599,618
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
__author__ = 'mpetyx (Michael Petychakis)' __version__ = "1.0.0" __maintainer__ = "Michael Petychakis" __email__ = "hello@apilama.com" __status__ = "Production" import grpc from concurrent import futures import time # import the generated classes import calculator_pb2 import calculator_pb2_grpc # import the original...
[ "mpetyx@gmail.com" ]
mpetyx@gmail.com
7f6adc66e5d2f77557bf0f49fdae7878d98a8286
5ad1731041310177d9f99cc196fbedb4faa43e2e
/feets/tests/core.py
6b073679f2c4cfe8e36013f78959f41d623a1590
[ "MIT" ]
permissive
gnarayan/feets
7060b1fb253b57043e8f2764d17ccc08f99f9352
e95457ce4e9c44a0e2a96e55ab9b28f205bba472
refs/heads/master
2021-06-23T16:20:10.816837
2017-09-07T04:55:37
2017-09-07T04:55:42
103,606,023
0
1
null
2017-09-15T02:44:58
2017-09-15T02:44:58
null
UTF-8
Python
false
false
2,576
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # The MIT License (MIT) # Copyright (c) 2017 Juan Cabral # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including withou...
[ "jbc.develop@gmail.com" ]
jbc.develop@gmail.com
0c7b056c8d1410b2a9762d7605b5984208a16e3b
d4c82eb9ae3037cf8742c3fc8c31cf4a80f5d21c
/examples/Python/examples/Tools/compiler/demo.py
d784eeeb395d133b2ad30771341fffd11a775f2f
[]
no_license
gzhu-team-509/programming-knowledge-base
68132b1a669f208dab94dcf2401ce39d89ebe53b
3f3d026927157b7fdf210da195cb912366975e75
refs/heads/master
2021-05-05T12:17:12.686569
2017-11-04T07:30:28
2017-11-04T07:30:28
104,754,220
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
#! /usr/bin/python2.6 """Print names of all methods defined in module This script demonstrates use of the visitor interface of the compiler package. """ import compiler class MethodFinder: """Print the names of all the methods Each visit method takes two arguments, the node and its current scope. The ...
[ "lightyears1998@hotmail.com" ]
lightyears1998@hotmail.com
d98a31112b4afbe57f64b3f1b8a45b7beff64489
9d9eb39e6adc35926d9ca5c38d5bbd05ccc6d15b
/python/strings/rle.py
f5253c2f7ea64a689bd6a8218a7804b5148c851a
[ "Unlicense" ]
permissive
amitsaha/learning
8121d60639f64a2a517ffb855d73de083ebfb445
4c1d85adf8018465716a1e8a74afadfe5f5528a2
refs/heads/master
2023-03-07T13:55:12.871756
2022-11-08T06:45:23
2022-11-08T06:45:23
25,386,786
6
4
Unlicense
2023-02-25T00:55:16
2014-10-18T04:03:55
Python
UTF-8
Python
false
false
540
py
""" Run-Length Encoding and decoding """ def rld(s): characters = [c for i,c in enumerate(s) if i%2 != 0] rept = [r for i, r in enumerate(s) if i%2 == 0] for r,c in zip(rept, characters): print c*int(r), print def rle(s): s += ' ' current = s[0] num = 1 enc = '' for pos, ...
[ "amitsaha.in@gmail.com" ]
amitsaha.in@gmail.com
664ad9f373f16b74933e66ca4fddd8bd94a6106a
4cadd670c3ef0b97f19af2bf8763e1774a11d1a5
/service4/application/__init__.py
0eafa0adcb99bec4496fe00db0805180c773e8de
[]
no_license
shalininarayan98/second-project
52f1532b33bfffcebbd1b6349a041ce445e8a164
5a6eb46966112a4e770ddf854eece7a3275e36cb
refs/heads/master
2022-07-12T02:42:24.215367
2021-03-08T11:55:20
2021-03-08T11:55:20
229,096,019
0
0
null
2022-06-22T00:10:30
2019-12-19T16:32:06
Python
UTF-8
Python
false
false
395
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from os import getenv app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = ('mysql+pymysql://' + getenv('MY_SQL_USER') + ':' + getenv('MY_SQL_PASSWORD') + '@' + getenv('MY_SQL_URL') + '/' + getenv('MY_SQL_DB')) app.config['SECRET_KEY'] = geten...
[ "you@example.com" ]
you@example.com
06699c41d8e076a3d722831877793c4023c8c635
d017769662cb67b4f516707b0bff587e394b65d6
/djangotutorial1/settings.py
df078779d31396d4881206d42a1096c945c01f4e
[]
no_license
surajmondal1003/DjangoTutorial
9ac2f6b50811e6ee95c8b65c9a9a50eb4927ced0
1cec56116d44b0f477033fe03e967552cf53f832
refs/heads/master
2022-11-03T13:36:40.916223
2018-04-30T07:11:17
2018-04-30T07:11:17
128,384,553
0
1
null
2022-10-18T05:05:10
2018-04-06T11:10:06
Python
UTF-8
Python
false
false
4,355
py
""" Django settings for djangotutorial1 project. Generated by 'django-admin startproject' using Django 2.0.3. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ impo...
[ "surajmondal1003@gmail.com" ]
surajmondal1003@gmail.com
d6a399cf69f346d179811d390094701f7003a3f1
dfc686228834750216b2cd6eea14d2a6d12422e4
/Hackerrank_Python_solution/Collections/collectionsCounter.py
c26ab398788e0a02b20f5dc34910fc9d1459b189
[]
no_license
Parth-Ps/python
8466e8856bf301908544eb60ae4a68338ccf4550
bb448c2a7996d17883214fe8eb11caa61e211400
refs/heads/master
2023-01-22T13:30:50.507021
2020-12-02T07:59:53
2020-12-02T07:59:53
317,788,331
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
''' Title : collections.Counter() Subdomain : Collections Domain : Python Author : Ahmedur Rahman Shovon Created : 15 July 2016 ''' x = int(input()) shoe_size = list(map(int,input().split())) n = int(input()) sell = 0 for i in range(n): s, p = map(int,input().split()) if s in shoe_size: sell...
[ "parth0129.certificate@gmail.com" ]
parth0129.certificate@gmail.com
aa7b0d40c74f206bbc49c536304fae256a78d00a
91d09c67f88cf5002327c27548dd393e3b12df03
/box/urls.py
39dd8b9d8653d5f42bb28cdd3c0e1c978ae68eb4
[]
no_license
saturnisbig/blogproject
479b733f6aaa353fb58195fafec259de1e41678d
8804384ad88e4f6f303541dbcc683ad018324c30
refs/heads/master
2022-12-10T23:00:15.085834
2019-08-18T08:40:42
2019-08-18T08:40:42
124,767,941
0
0
null
2022-12-08T05:45:41
2018-03-11T15:02:28
CSS
UTF-8
Python
false
false
762
py
#!/usr/bin/env python # _*_ coding: utf-8 _*_ from django.conf.urls import url from box import views app_name = 'box' urlpatterns = [ url(r'^$', views.BoxIndexView.as_view(), name='index'), url(r'^books/$', views.BookListView.as_view(), name='book_list'), url(r'^book/(?P<book_id>\d+)/$', views.BookDetail...
[ "i.kenting@gmail.com" ]
i.kenting@gmail.com
43308e7587706c3ffc4e3f31c1e74473c84a3f7f
931a3304ea280d0a160acb87e770d353368d7d7d
/vendor/swagger_client/models/get_characters_character_id_fleet_ok.py
10f48ad64ef922de4ceb9603c130882d4539fb9f
[]
no_license
LukeS5310/Broadsword
c44786054e1911a96b02bf46fe4bdd0f5ad02f19
3ba53d446b382c79253dd3f92c397cca17623155
refs/heads/master
2021-09-08T00:05:26.296092
2017-10-24T07:01:48
2017-10-24T07:01:48
105,143,152
0
1
null
2017-11-03T14:29:38
2017-09-28T12:03:19
Python
UTF-8
Python
false
false
5,958
py
# coding: utf-8 """ EVE Swagger Interface An OpenAPI for EVE Online OpenAPI spec version: 0.6.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class GetCharactersCharacterIdFleetOk(object): """ NOTE:...
[ "cyberlibertyx@gmail.com" ]
cyberlibertyx@gmail.com
b47c60a5641eff25c87e84841a1b3940db5ad095
368ec23355481c81f32d62618504cbc8b73bec9b
/Discrete Optimization/3. TravellingSalesman/C/solver.py
55ecb7e4d1c4de7d085844851ed401ac33ba53a1
[]
no_license
manuwhs/Coursera-Codes
f6d38d30f55b55b651101319031acb9d18c51125
771b208c3645953ba4b93ee279ec73af181a9edd
refs/heads/master
2021-01-24T01:02:25.175360
2018-02-25T01:16:34
2018-02-25T01:16:34
122,794,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
import os import subprocess def solveIt(inputData): # parse the input lines = inputData.split('\n') nodeCount = int(lines[0]) ### Writes the inputData to a temporary file tmpFileName = 'tmp.data' tmpFile = open(tmpFileName,'w') tmpFile.write(inputData) tmpFile.close() #--------------...
[ "manuwhs@bitbucket.org" ]
manuwhs@bitbucket.org
97dccd56a7fc132dbe491397cd6d828a677d50ed
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02609/s876375449.py
f9c95bd02303b33ea98b6088e1c90e707cfe9dc1
[]
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
700
py
def main(): n=int(input()) X=input().strip() cnt_1=X.count('1') k1,k2=int(X,2)%(cnt_1-1) if cnt_1!=1 else 0,int(X,2)%(cnt_1+1) for i,x in enumerate(X): ans=0 if x=='0': k=k2+pow(2,n-i-1,cnt_1+1) k%=cnt_1+1 ans+=1 while k: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8c600a3664670a7c76c439dffde4b74d8192db3f
7c6965265e2dbca320a33326f1230a45fc2dbe95
/courseAllocation/models.py
5edfc29c0f3d58f8ada62ed4a1018817951f5729
[]
no_license
PamilerinId/Portal
e14f5dd10d7121eefb9a04457b1cc2db521846db
5dbfe84939c7bdeead73bf2650aa11d424657180
refs/heads/master
2021-01-01T17:44:25.307117
2017-07-22T21:12:38
2017-07-22T21:12:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from course.models import Course from accounts.models import Lecturer from session.models import Session from dept.models import Dept # Create your models here. class CourseAllocation(models.Model): position_choices = ...
[ "lasisi28@gmail.com" ]
lasisi28@gmail.com
abf41cd7fd0f13bd1968f9e0bd74cca98db348ac
f9e8733ed87858b12bfee6b70ccdddd6a616b60a
/7.py
56bc60a7d59db314ea15a14289b38bc9076ec506
[]
no_license
MajestyLee/leetcode_TopInterview
c1c9c923d3bf42cd4777bb2a2ccd21654a7c6dbb
30b7d5acec716b7d754141835fc8bafe4411437e
refs/heads/master
2020-04-01T12:19:20.837383
2018-11-06T02:13:44
2018-11-06T02:13:44
153,200,785
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
''' Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−231, 231 − 1]. For the pu...
[ "binjie_lee@163.com" ]
binjie_lee@163.com
f29b278ae44234a9b4c1b3009e34a4731d1bf8f9
93b4c46611499435dbfc2af7dd9aa7a2dd2f5d23
/rsden/loader/test.py
49779dc85735a139bc66591f2898df9ccf0ca749
[ "Apache-2.0" ]
permissive
lidongyv/Monocular-depth-esitimation-with-region-support-cvpr
1d41200f225ab83609cd2de8184333022c83f075
7715c91b9c9f88de5c0233923c3a073edf9b2ca8
refs/heads/master
2022-12-28T04:10:04.537091
2020-09-16T14:09:41
2020-09-16T14:09:41
152,520,151
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
# -*- coding: utf-8 -*- # @Author: yulidong # @Date: 2018-04-06 21:02:16 # @Last Modified by: yulidong # @Last Modified time: 2018-04-06 21:19:06 import numpy as np print('fdas')
[ "pobingwanghai@163.com" ]
pobingwanghai@163.com
1836c136c73c809da29db88a17b4feed7dc2c2e4
5acc20092ee93935594a7e0522924245a43e5531
/isotonic_regression/plot_isotonic_regression.py
cd91fc7433326d44ee85836588854a46a92985ae
[]
no_license
shengchaohua/sklearn-examples
aae2332c4382a57a70c1887777c125e6dc4579d6
1dac6a9b5e703185a8da1df7c724022fbd56a9e4
refs/heads/master
2020-05-05T01:19:20.037746
2019-10-18T08:55:01
2019-10-18T08:55:01
179,599,221
1
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
import numpy as np import matplotlib.pyplot as plt from matplotlib.collections import LineCollection from sklearn.linear_model import LinearRegression from sklearn.isotonic import IsotonicRegression from sklearn.utils import check_random_state n = 100 x = np.arange(n) rs = check_random_state(0) y = rs.randint(-50, 50...
[ "shengchaohua163@163.com" ]
shengchaohua163@163.com
066162d6085127c0ca089df05a915cf91b435b86
3a908616faf2e358edf3de1e99452556ebb5d856
/api/supper_admin/catelog/api.py
183dfb8c6beeb36e5eb4fbda8393391c66c97aec
[]
no_license
songbao2903/backend_api-v1.0.0
13f4c26845de3aff607bb655fb27451563dfdfa7
10c2c0b6c7b0928057d0024b63ecf5cde727c4ba
refs/heads/main
2023-09-06T02:51:05.854494
2021-11-21T03:18:54
2021-11-21T03:18:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,893
py
from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.exceptions import ParseError from api.models import Contract, Order, ProductOfCustomer, ProductOfOrder, static_info, Catelog, Product, Package from django.contrib.auth.hashers im...
[ "admin@example.com" ]
admin@example.com
530c84e7296ce844c7e0c07826dd84f0f96adf29
11aac6edab131293027add959b697127bf3042a4
/longestWord.py
497795b1bce6ab08f01119c62b4f9c6d5e1b02df
[]
no_license
jdanray/leetcode
a76b3436002b31865967b757b73c85992636383b
fd736af3e79899b86dac89d4d925d5bd985944ad
refs/heads/master
2023-08-15T01:20:05.110565
2023-08-14T00:25:58
2023-08-14T00:25:58
148,686,493
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
# https://leetcode.com/problems/longest-word-in-dictionary/ class Solution: def longestWord(self, words): longest = "" seen = set(words) for w in sorted(words): pre = '' i = 0 while i < len(w): pre += w[i] if pre not in seen: break else: i += 1 if i == len(w) and len(w) > len(...
[ "jdanray@users.noreply.github.com" ]
jdanray@users.noreply.github.com
3b531e1b9f7d335242cce409f1bb9bae527f4dae
f76e11d4da15768bf8683380b1b1312f04060f9a
/merge_trees_prefer_higher_votes.py
02cc758fd8f35bfa0900816263ecce9d35642e06
[]
no_license
rasoolims/scripts
0804a2e5f7f405846cb659f9f8199f6bd93c4af6
fd8110558fff1bb5a7527ff854eeea87b0b3c597
refs/heads/master
2021-07-07T03:53:20.507765
2021-04-13T14:53:00
2021-04-13T14:53:00
24,770,177
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
import os,sys,codecs from collections import defaultdict from mst_dep_tree_loader import DependencyTree writer = codecs.open(sys.argv[4],'w') vote_3_trees = DependencyTree.load_trees_from_file(os.path.abspath(sys.argv[3])) vote_2_trees = DependencyTree.load_trees_from_file(os.path.abspath(sys.argv[2])) vote_1_trees = ...
[ "rasooli.ms@gmail.com" ]
rasooli.ms@gmail.com
1479cdbfb9ab12d6d98f76765929a17b5501c1e5
1a114943c92a5db40034470ff31a79bcf8ddfc37
/stdlib_exam/asynchat-example-1.py
cd693068057c0eb195f07f9c8bfc914c32539ad6
[]
no_license
renwl/mylinux
1924918599efd6766c266231d66b2a7ed6f6cdd1
0602fc6d2b0d254a8503e57310f848fc3e1a73b4
refs/heads/master
2020-07-10T22:12:03.259349
2017-01-02T12:32:04
2017-01-02T12:32:04
66,467,007
0
0
null
null
null
null
UTF-8
Python
false
false
1,682
py
import asyncore, asynchat import os, socket, string PORT = 8000 class HTTPChannel(asynchat.async_chat): def __init__(self, server, sock, addr): asynchat.async_chat.__init__(self, sock) self.set_terminator("\r\n") self.request = None self.data = "" self.shutdown = 0 de...
[ "wenliang.ren@quanray.com" ]
wenliang.ren@quanray.com
6488cce050edceb3440fb3c9626e35540358ea2f
57ce77797e073f16779b9a5a712ca576ee776c2a
/examples/adspygoogle/adwords/v201309/basic_operations/pause_ad.py
84d204c81226fa9a6ba9a7d3a779ee5b1e5f19b7
[ "Apache-2.0" ]
permissive
chahroud/googleads-python-legacy-lib
3fc8c043ec0b1e92b7afb76d018eb4016347b472
f22956e782b9119d3c1a90b1e3b42830478a89d2
refs/heads/master
2021-01-21T01:33:29.512298
2014-04-01T14:43:03
2014-04-01T14:43:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
#!/usr/bin/python # # Copyright 2013 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 b...
[ "emeralddragon88@gmail.com" ]
emeralddragon88@gmail.com
a82158e8e9ebd601885e1fa1410fd91e22b81e74
13313192ec3fae980293a207ae7c3080a19cf636
/backend/core/models.py
3bfd15ea28d70264a35e0091affef8a5a9f3db7e
[ "MIT" ]
permissive
zecaclasher/financial-management-gate
36e937024d738d5150aa41d90184719b3bd0edc9
4bcbba04bf1f366d75263239758a12bf6246bdcd
refs/heads/master
2023-08-13T10:59:30.171723
2020-09-13T00:54:41
2020-09-13T00:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
from django.db import models # Create your models here. class BaseTimeModel(models.Model): created_at = models.DateTimeField('created at', auto_now_add=True, blank=True) updated_at = models.DateTimeField('updated at', auto_now=True) class Meta: abstract = True
[ "felipe.maion@gmail.com" ]
felipe.maion@gmail.com
18921a71810eec159ebdbbe9be9dcfa5e7859fd1
3b5334cd41337225d6715ee7e63c80f4c03837bc
/Grad_CAM/GradCAM.py
48bb1c31b0a992612bea33c9a1b49a0181720869
[]
no_license
LrpljL/DL-Visualization
4e887f0b9867d81ed23ef5321f2e95e5b5453dfe
b87495767761d3bb2b1203f9767f81efae4a015c
refs/heads/master
2020-08-31T01:17:15.534432
2018-12-11T10:11:04
2018-12-11T10:11:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,488
py
import cv2 import numpy as np from PIL import Image import tensorflow as tf import tensorflow.contrib.slim as slim from GradCAM_old import GradCAM as GradCAM_old class GradCAM(object): def __init__(self, inputs, end_points, image_file_name, result_size, result_file_name, num_classes, checkpoint_...
[ "562282219@qq.com" ]
562282219@qq.com
291dbc2c271c33378939760b11bc7d52fc154844
d305e9667f18127e4a1d4d65e5370cf60df30102
/tests/ut/python/pynative_mode/test_remove_unnecessary_phi.py
35e0687b9d4198785106dfac9eead4ab752985b7
[ "Apache-2.0", "MIT", "Libpng", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "IJG", "Zlib", "MPL-1.1", "BSD-3-Clause", "BSD-3-Clause-Open-MPI", "MPL-1.0", "GPL-2.0-only", "MPL-2.0", "BSL-1.0", "LicenseRef-scancode-unknow...
permissive
imyzx2017/mindspore_pcl
d8e5bd1f80458538d07ef0a8fc447b552bd87420
f548c9dae106879d1a83377dd06b10d96427fd2d
refs/heads/master
2023-01-13T22:28:42.064535
2020-11-18T11:15:41
2020-11-18T11:15:41
313,906,414
6
1
Apache-2.0
2020-11-18T11:25:08
2020-11-18T10:57:26
null
UTF-8
Python
false
false
2,739
py
# Copyright 2020 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...
[ "513344092@qq.com" ]
513344092@qq.com