blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
1cb6331749f4108d71c21c5faf4213b75388ea24
f20dca20021d34da8e14638321ae7869e32da949
/misc/construct_subs_all_rois_fc_5D_mats.py
ad44fec329de21e688c77b2a6c0a6ad633bd169f
[]
no_license
R-Gaurav/Autism-Group-Level-Analysis
14ba67c61a538e5522719059c41ffe7c3167afcc
a80b9d6f54c00bdbe8528faeed69409824aec3c0
refs/heads/master
2020-04-24T13:34:24.254343
2019-10-01T17:03:46
2020-01-09T19:18:26
171,992,233
0
0
null
null
null
null
UTF-8
Python
false
false
3,950
py
# # Author: Ramashish Gaurav # # This file removes the 3D FC matrix which has all 0's for a particular ROI. # That particular ROI is 254th ROI (0 based indexing). All subjects are expected # to have their 254th ROI FC matrix as all zeros matrix. In case there are some # other FC matrices which are all zeros, then the s...
[ "ramashish.gaurav@gmail.com" ]
ramashish.gaurav@gmail.com
cb93c18de5e1003daafbbee6f8e87c0cdfa5d7d8
a1e75c7d86facf6963954352e774b638215a3709
/orderlyjson/jsonschema/tests/test_pattern.py
d064781a9517e29fcd6b7fb0016ef8f232dce0b8
[ "MIT" ]
permissive
kroo/py-orderly-json
335663c0f45444932189f7f6ae7335bf1b1794ea
91a82193ab33f010107e811d0d718257a7fb3c96
refs/heads/master
2020-05-19T16:50:20.636358
2010-11-17T19:50:22
2010-11-17T19:50:22
723,081
7
1
null
null
null
null
UTF-8
Python
false
false
860
py
import math from unittest import TestCase import jsonschema class TestPattern(TestCase): #Match a simplified regular expression for an e-mail address schema = { "pattern":"^[A-Za-z0-9][A-Za-z0-9\.]*@([A-Za-z0-9]+\.)+[A-Za-z0-9]+$" } def test_pattern_pass(self): data = "my.email01@gmail.com" ...
[ "elliot.kroo@gmail.com" ]
elliot.kroo@gmail.com
5e0e5611b9a3bca684272e724af06adaa9eb5a92
62fcdb29e0a5ef002902594fd717edba939119ed
/Django/random_word/random_word/settings.py
23fb2f3c3510ed78dd076480eda9d2cc40d9b98a
[]
no_license
mchorney/Python
cc470e27e6361592cff7b5cb18bcb9f017a96c7e
2802cf50dc71b54142e8ca16f74b198591d02efe
refs/heads/master
2021-09-05T20:53:19.705324
2018-01-30T23:41:34
2018-01-30T23:41:34
112,399,130
0
0
null
null
null
null
UTF-8
Python
false
false
3,134
py
""" Django settings for random_word project. Generated by 'django-admin startproject' using Django 1.11.2. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impor...
[ "m.chorney7@gmail.com" ]
m.chorney7@gmail.com
66359b9ed02ada61d81235d9357951f28863408a
9bc8b7a27bfe29e715de37c0cd628a88c2d89961
/bin/jsonschema_generator.py
9428d96252ae0c0ba2b268304c740c568ee27962
[]
no_license
luhu888/json_schema_generator
a786c48bef3aa5d48c7e544506d91bc0678d714f
55cd3e476c327397db108227bbbcbaa29c279e02
refs/heads/master
2020-03-22T15:40:27.449210
2018-07-09T10:18:40
2018-07-09T10:18:40
140,268,728
0
0
null
null
null
null
UTF-8
Python
false
false
3,183
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #import re import os import argparse import string from urllib.request import urlopen import json_schema_generator from json_schema_generator import Recorder, Validator def record(args): if(os.path.isfile(args.json_source)): rec = Recorder.from_file(args.jso...
[ "liu.ming@xinheyun.com" ]
liu.ming@xinheyun.com
e8d2ac5ca006c732fc43b0997a11598d68c67909
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_roadways.py
9a1905f1784655d39cfd9d826973aa9efdab7e60
[ "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
226
py
#calss header class _ROADWAYS(): def __init__(self,): self.name = "ROADWAYS" self.definitions = roadway self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['roadway']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d5cc9cecbd841cbebd0bcf3ab30aed117731f49c
5b711d9d1c71eb8a7c253a17b2a7f319163d2fdc
/airflow/models/abstractoperator.py
eb1e04f4402e6b180d37c5b9a6f25a7afa4d298b
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
waleedsamy/airflow
8289465af0ef8199bf82e0696115bb5f83f9b667
b19ccf8ead027d9eaf53b33305be5873f2711699
refs/heads/main
2023-03-17T06:29:20.695168
2022-08-29T16:59:13
2022-08-29T16:59:13
251,581,666
0
0
Apache-2.0
2020-03-31T11:21:23
2020-03-31T11:21:22
null
UTF-8
Python
false
false
20,850
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
waleedsamy.noreply@github.com
b57f36c05a0c7de1e3886710c10113783c3318df
5a7fba5001e24524ea10eb3f732c578f03385687
/MinMaxAlgorithm/implementations/NormalPlayer.py
ddfa7a4c25e375f5ec061444c1c3d4004be6757f
[]
no_license
MIKE432/intro-to-AI-lab
ee87be7fa869c79cfcbee8a596bb035b791f945a
84e08761c8c8a8b744d955352a2962611e05f77c
refs/heads/master
2023-06-03T06:44:19.374748
2021-06-16T10:25:36
2021-06-16T10:25:36
345,989,239
0
0
null
2021-04-17T11:51:46
2021-03-09T11:53:01
Python
UTF-8
Python
false
false
285
py
from typing import List from abstracts.Player import Player class NormalPlayer(Player): def __init__(self, number): super().__init__(number) def move(self, choices: List, board, random_move=False): return int(input(f"Pick one of given values {choices}: "))
[ "michal.raszczuk.apusoft@gmail.com" ]
michal.raszczuk.apusoft@gmail.com
f855f6cb918cb89594fb953af4a1dd3609e45fb9
4809213a0ecef876c9e1bf3669169881766335c8
/lib/hitbox.py
e1cbc579ffb2f30bc66e5d66abb418d594d57ef9
[]
no_license
wmaxlloyd/COVID-19-Model
98a5f697558fb25b0c721a3876727dc091cb145c
7431a033add5f0eb4acf8a95cff9faebcdcde405
refs/heads/master
2023-02-13T05:28:41.001582
2021-01-19T05:24:11
2021-01-19T05:24:11
330,868,507
0
0
null
null
null
null
UTF-8
Python
false
false
2,418
py
from typing import Tuple, TYPE_CHECKING from .vector import Vector from pyglet.gl import * from math import inf if TYPE_CHECKING: from .component import Component class Hitbox: def __init__(self, component: 'Component', width: Tuple[float, float], height: Tuple[float, float]): self.__component = compo...
[ "maxlloyd@Maxs-MacBook-Pro.local" ]
maxlloyd@Maxs-MacBook-Pro.local
6b2fc19a523d12d6170e86b8b28d7e4d27721009
82f449cc405b8379a30b228a15682bbd70d1b09d
/venv/Lib/site-packages/PyInstaller/building/makespec.py
82c1572c7ea82952298580e8c80c3580211d95f3
[]
no_license
neo-talen/QuickCmdBtnSet
82dd18e070e285ba752f9bd3586201cc8c174f78
4781a5c44a4022b6f014bd8ca513b89983f6a309
refs/heads/master
2022-05-06T08:29:10.993183
2022-05-05T11:07:04
2022-05-05T11:07:04
183,062,524
1
1
null
null
null
null
UTF-8
Python
false
false
31,940
py
#----------------------------------------------------------------------------- # Copyright (c) 2005-2022, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
[ "hongtianlong@corp.netease.com" ]
hongtianlong@corp.netease.com
22636f1842754ee1a53fdf953af58979f814b77a
8e520c67f67b4989395d61bf52682a57fdc86ae6
/Jackknife.py
3b80cefc9c7a7316c0e6f8a0caa686a85b97ddab
[]
no_license
awilson0/PhyloTools
783de03586c256bee3c49dbba5a72c787951ba00
982d58be8bd4401d02d84be6e94d320159ec6a3d
refs/heads/master
2020-08-02T15:42:24.319298
2019-09-19T17:15:25
2019-09-19T17:15:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,646
py
#Ryan A. Melnyk #schmelnyk@gmail.com #UBC Microbiology - Haney Lab import os, argparse, random from Bio import SeqIO def parse_args(): parser = argparse.ArgumentParser(description=''' Script that removes redundancy and/or generates jackknife resampling (i.e. without replacement). ''') parser.add_argument('align_fi...
[ "schmelnyk@gmail.com" ]
schmelnyk@gmail.com
275a0b0254293a2c873371f26e6cb3f2c7826f43
9f2445e9a00cc34eebcf3d3f60124d0388dcb613
/2019-08-10-Izhekevich_network/izhikevich_simple_nrn/simple.py
40f49a85c23cb50fb313f6913fb2ab206b18b938
[]
no_license
analkumar2/Thesis-work
7ee916d71f04a60afbd117325df588908518b7d2
75905427c2a78a101b4eed2c27a955867c04465c
refs/heads/master
2022-01-02T02:33:35.864896
2021-12-18T03:34:04
2021-12-18T03:34:04
201,130,673
0
1
null
null
null
null
UTF-8
Python
false
false
2,587
py
'''Usage: import simple h.run() simple.show() Sets up 5 models using default parameters in the .mod files 2 versions of 2003/2004 parameterization: freestanding (3a); in section (3b) 4 versions of 2007/2008 parameterization: freestanding (7a); in section with local integration of 'u' (7b); ...
[ "analkumar2@gmail.com" ]
analkumar2@gmail.com
7ad9e8f61007ca40b7e2ed29febbc24fd453ed71
473568bf080e3637ee118b374f77e9f561286c6c
/SudoPlacementCourse/CountTotalSetBits.py
792ac8808411330c1dcb4f524d5347aec611ec82
[]
no_license
VineetPrasadVerma/GeeksForGeeks
c2f7fc94b0a07ba146025ca8a786581dbf7154c8
fdb4e4a7e742c4d67015977e3fbd5d35b213534f
refs/heads/master
2020-06-02T11:23:11.421399
2020-01-07T16:51:18
2020-01-07T16:51:18
191,138,925
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
test_cases = int(input()) for _ in range(test_cases): num = int(input()) count = 0 for j in range(1, num+1): binary_from = list('{0:0b}'.format(j)) for i in range(len(binary_from)-1, -1, -1): if binary_from[i] == '1': count += 1 print(count)
[ "vineetpd1996@gmail.com" ]
vineetpd1996@gmail.com
413122105cb86bc99aeaeb7a8248848f9e2afc0b
f9f074c44b67a11d4630b5e1cc15e016e8d73cc8
/factory-ai-vision/EdgeSolution/modules/ModelManagerModule/app/downloader/tools/accuracy_checker/accuracy_checker/evaluators/custom_evaluators/sr_evaluator.py
f1702d6f7f957df2949e04b434b06e0c1a3553a8
[ "MIT" ]
permissive
Azure-Samples/azure-intelligent-edge-patterns
361694680c7e48d3761c5416175788355b684dcd
1d2f42cbf9f21157c1e1abf044b26160dfed5b16
refs/heads/master
2023-05-26T13:15:47.085088
2023-02-28T17:25:53
2023-02-28T17:25:53
186,706,933
193
164
MIT
2023-02-28T17:25:55
2019-05-14T22:02:41
JavaScript
UTF-8
Python
false
false
24,249
py
""" Copyright (c) 2018-2021 Intel Corporation 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...
[ "waitingkuo0527@gmail.com" ]
waitingkuo0527@gmail.com
0766ad3e1de55e681c5f1291cfd66701d939cc30
6597141b3ac01f083ced3dc2b476a63a4e055c20
/inputs.py
1089f09e0785b2401b43e07979df7f4c78e9708c
[]
no_license
kittychi/adventofcode2015
02314dc0dc23e55dc55112343aeb50088c85b3c5
11b23bf0c71b392651887bd4e2ea093f4dddf5b2
refs/heads/master
2021-01-10T08:25:57.124676
2015-12-25T05:34:01
2015-12-25T05:34:01
47,864,292
0
0
null
null
null
null
UTF-8
Python
false
false
135,177
py
day1 = '()(((()))(()()()((((()(((())(()(()((((((()(()(((())))((()(((()))((())(()((()()()()(((())(((((((())))()()(()(()(())(((((()()()((())(((((()()))))()(())(((())(())((((((())())))(()())))()))))()())()())((()()((()()()()(()((((((((()()())((()()(((((()(((())((())(()))()((((()((((((((())()((()())(())((()))())((((()())((...
[ "kitty.sham@gmail.com" ]
kitty.sham@gmail.com
10c1266dba82fbfb4b1f0de4e8c97dd2e11690e0
786bff0016c63ee71bd77a99d4c04ad3d52f3ff9
/little-env/bin/gunicorn
e58e32de01413d13d4fbdf4bff5952559034de27
[]
no_license
VikrantAgrahari/py-anywhere
8341a1e2b9054f0849eb2a41352c4403047c6cfb
fdc093250bf3748518c946b321ef9da181aa5b9f
refs/heads/master
2023-08-15T05:47:11.975728
2020-05-08T03:45:21
2020-05-08T03:45:21
258,689,221
0
0
null
2021-09-22T18:55:41
2020-04-25T04:46:33
Python
UTF-8
Python
false
false
252
#!/home/ubuntu/py-anywhere/little-env/bin/python3 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.wsgiapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "ubuntu@ip-172-31-21-243.ap-southeast-1.compute.internal" ]
ubuntu@ip-172-31-21-243.ap-southeast-1.compute.internal
62e41c6d0fd1c22ce6617734e914d6f476063740
9ad7bc0be637b629300f4e8a9f316e9e2dc35341
/Other/trinket.py
e4b6027baa5bb707930a48108310eb3261e07db3
[]
no_license
ZachGonsiorowski44/Cloud-9---1
0e92fcf7783c9e903727cc4dec97a169bd43065a
ca950106722a79ec797662bb9c072c66eef1756e
refs/heads/master
2020-04-02T07:53:59.970045
2018-10-29T20:28:44
2018-10-29T20:28:44
154,219,953
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
y = 6 x=63 z = x+y print(z)
[ "zachary.gonsiorowski@student.rjuhsd.us" ]
zachary.gonsiorowski@student.rjuhsd.us
50264f6b8d8c30236c7bda25d40874115f7a362c
dcec7bc309c281f2d09d7d1e05270adfe1652586
/tests/override_config_table/test_override_config_table.py
7bd55f1d0ac5879ffebdd697300a023230d1f9ac
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
keboliu/sonic-mgmt
908a43b1beaaff098e60ae8a292fa4b5dd100b0f
06efba15557e81f5d840c1bf5ee1ff17da8f4ada
refs/heads/master
2022-12-08T12:10:17.233047
2022-11-30T10:17:31
2022-11-30T10:17:31
123,398,333
0
0
NOASSERTION
2019-11-20T06:26:33
2018-03-01T07:24:47
Python
UTF-8
Python
false
false
5,978
py
import json import logging import pytest from tests.common.helpers.assertions import pytest_assert from tests.common.config_reload import config_reload from tests.common.utilities import skip_release GOLDEN_CONFIG = "/etc/sonic/golden_config_db.json" GOLDEN_CONFIG_BACKUP = "/etc/sonic/golden_config_db.json_before_ove...
[ "noreply@github.com" ]
keboliu.noreply@github.com
4dd6a1aae29f351c7bd4bedc5f43210d26444a7f
7abd69a0c91eaacd93bccafa16733a31f6fb2d2d
/exercises_4/task_2/task_2_b.py
fcc669a0b2f8e42551152d56338015b645042bc8
[]
no_license
mrmattuschka/python-lecture-mobi-17
da337adaf94a04f76094af8199592c20a3efc423
c76d6e348dcbf82c409b3f3ee508b379f592d10c
refs/heads/master
2021-05-07T19:13:13.036279
2019-04-29T12:46:46
2019-04-29T12:46:46
108,855,046
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
# Task 2b: split CpG content file into lower and upper quartile import sys import numpy as np cpg_content_file_path = sys.argv[1] lower_quartile_file = sys.argv[2] upper_quartile_file = sys.argv[3] # Read the promotor-wise CpG content file with open(cpg_content_file_path, mode='r') as cpg_file: cpg_data = list(c...
[ "alexander.mattausch@embl.de" ]
alexander.mattausch@embl.de
319a2728d4cbe69dbe65c4f19e5ff5c89d8506b6
d7649ec1d70dd4f973caf1a2f4b067c6ff6db327
/LU_LUP_Simplex/LU_LUP_Simplex.py
f759676974cc8c29b50ebd5719958ee120ca5bcd
[]
no_license
suprajkolluri/Data-Structures-Python
bbcad67dbed652caeae3b2a3044d9e264a0a0fc3
b2e6bce07d5593f4ded9aaedae85ee3a41dd4149
refs/heads/master
2020-07-15T09:07:17.320954
2016-08-21T07:00:42
2016-08-21T07:00:42
66,185,093
0
0
null
null
null
null
UTF-8
Python
false
false
4,566
py
# -*- coding: utf-8 -*- # TODO Delete ALL TODO comments after you do them! import sys from mprint import printmat NAME = '[Your Name Here]' def lu(A): n = len(A) LU = [[A[i][j] for j in range(n)] for i in range(n)] # TODO Implement (psueodocode is in the book) return LU, 'solved' def lup(A): ...
[ "supcena@gmail.com" ]
supcena@gmail.com
afa93c05589e4b0fa9ea61510c995d3ebcd0af95
54dcff764a6d4cdbd75cbe1d7020c786e24e80ff
/backend/cart/migrations/0002_auto_20210722_1710.py
bfaf932ddc06a5ab76bac64e031ae82f31935a56
[ "MIT" ]
permissive
RifkiEr24/La-Virtuele
426649210cf7fa151c6b8aa845b393a985185d2f
0c770a4101b951603e80a0784354e2835725da4d
refs/heads/main
2023-07-08T22:45:07.212089
2021-08-14T05:15:01
2021-08-14T05:15:01
341,459,330
1
1
MIT
2021-08-14T05:15:02
2021-02-23T07:00:08
Python
UTF-8
Python
false
false
785
py
# Generated by Django 3.1.7 on 2021-07-22 17:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cart', '0001_initial'), ] operations = [ migrations.RenameField( model_name='productcart', ...
[ "munawarhariz@gmail.com" ]
munawarhariz@gmail.com
f16301f7289411ef2b100853fd451c4fdeb56d90
4a06144733285c614db2fff7744bd7d2b6a213d7
/ITP115_L8_Andrews_Dylan.py
c4556cbd3ac2f1e2b7b4a0a7f35d7f9391fd6071
[]
no_license
dandrews19/CoinFlipperAverage
a11f592760882609a2bc0fd69678c92c0f21265d
0da49a5c0b7c81e2fdd42abc8bb85e7c3226f55c
refs/heads/main
2023-02-02T18:49:07.733569
2020-12-22T17:09:11
2020-12-22T17:09:11
323,687,055
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
# Dylan Andrews, dmandrew@usc.edu # ITP 115, Fall 2020 # Lab 8 import random # function flips a coin and determines it based on random number def coin(): num = random.randrange(0,2) if num == 0: return "heads" elif num == 1: return "tails" # function counts number of flips it takes to get ...
[ "noreply@github.com" ]
dandrews19.noreply@github.com
de976350cb51fb36805bbbd5d8ff565050fe4c1d
c5f96ef33d31fb75c016f1477ff9482e4fcf9298
/elev_diff.py
22bc8949bcff1bd4e82df6e6e5e1362483734b5b
[ "MIT" ]
permissive
Aidan-Bharath/code_and_stuffs
c2e6b86d89b934a165ebf29b0ad5d926b5dbd0e1
daa6e4056ebdb25860c3757adf51ba19fbd9da33
refs/heads/master
2021-04-22T13:28:06.801982
2014-05-27T19:45:42
2014-05-27T19:45:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,312
py
import numpy as np import pandas as pd from multiprocessing import Pool from matplotlib import pyplot as plt def load_panel(a): a = pd.read_pickle(a) return a def time_index(a): a = a.reindex(index=a.index.to_datetime()) return a def submean(a): b = a.mean() a = a.sub(b) return a def res...
[ "aidanbharath@gmail.com" ]
aidanbharath@gmail.com
4441818af298bbd24b2d5faa87a018fb8b876cc6
5aca09907f96cbae5ceb2f56d56ceffb789ecfa8
/nevermore/lightning/gradnorm.py
ad38b8060083c6d435940293e40f3d011ead89b8
[ "Apache-2.0" ]
permissive
shadowy000/nevermore
84fb9d751f6ee82fb18ecb137e2e14b038a3b6b4
b46bc957dee283a02a19d1c6e6cb2d7b5eea86ca
refs/heads/main
2023-07-19T08:29:38.170685
2021-08-30T03:49:46
2021-08-30T03:49:46
397,844,969
0
0
Apache-2.0
2021-08-19T06:47:59
2021-08-19T06:47:59
null
UTF-8
Python
false
false
14,123
py
import os import hydra import pytorch_lightning as pl import torch import torchmetrics import logging from easydict import EasyDict as edict from omegaconf import DictConfig from pytorch_lightning.callbacks import ModelCheckpoint from torch.nn import functional as F from torch.utils.data import DataLoader from neverm...
[ "dixiao.wei@horizon.ai" ]
dixiao.wei@horizon.ai
b7a4d4b92f34336c0dd2f52ba49bf8a6aa6ae0ff
aa892311407cb82530593f81832655face18edc5
/src/eval.py
5fff7fd0145b311684b5c4d69f9c5efd33c75ff7
[]
no_license
shakti365/ResNet
2006fa32db455dbce56e3574fd892740d699af73
19f7e74735c5a8b5479a653dfa0918c1e6eb09fc
refs/heads/master
2022-12-08T19:35:50.032584
2020-08-23T06:42:44
2020-08-23T06:42:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,944
py
import torch import torchvision import torchvision.transforms as transforms from absl import app from absl import flags from absl import logging from sklearn.metrics import classification_report from resnet import Net torch.manual_seed(0) FLAGS = flags.FLAGS flags.DEFINE_string("data_path", "../data", "Path to stor...
[ "apekshapriya@gmail.com" ]
apekshapriya@gmail.com
aa724d48a5eb10ad16015f27edb10999ffd61ea6
4125bad7406f9f44a5a83101cee4b81142c8de73
/paypro/paypro/doctype/salary_structure/test_salary_structure.py
180adbce1a2b3653db5baa148175ddf44a649a0b
[ "MIT" ]
permissive
lightningmaharaja/payPRO
1eb3e271864d3d4b4c2473b61f65aac5c1ad39fe
15389ce24bd3b5825c65f91ad2f85a9a29342e5f
refs/heads/master
2023-03-15T14:18:27.097526
2020-11-09T10:35:31
2020-11-09T10:35:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Teampro and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestSalaryStructure(unittest.TestCase): pass
[ "subash13579@gmail.com" ]
subash13579@gmail.com
6c628eb392d664905091177ae7f0bdeba3c0f7c5
88ce88b6bd1094b36d6cde6e6f0468505874944b
/auth_management/apps.py
1722a794da53f82f3660eed1c2d91254b91a9e3b
[]
no_license
ncadet-dev/spotify_app
7577c88cca8e62399ee608b0741e97f9edeed820
d96abf6e89794146844aa61339c8b4fe82af4e47
refs/heads/main
2023-08-06T11:19:52.067745
2021-10-06T15:05:23
2021-10-06T15:05:23
413,426,433
0
0
null
2021-10-05T09:07:02
2021-10-04T13:10:06
Python
UTF-8
Python
false
false
161
py
from django.apps import AppConfig class AuthManagementConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'auth_management'
[ "c.nicolas334@gmail.com" ]
c.nicolas334@gmail.com
2c3aa8da6fc5378639a403f5268a7692b3f85ed1
d96bc27d8d8143caf67a580cf669424c00cc4c16
/snippets/for-loop-sample.py
4a211a23af47845b7045f627d8ec576dd4c6cb2a
[ "MIT" ]
permissive
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
1896dec4281eb0363ef2559a13a40952077096aa
63e755dc81fd50a7b1372074a4a73e50021a233b
refs/heads/master
2021-01-09T05:51:08.556277
2017-03-14T18:18:47
2017-03-14T18:19:16
80,845,382
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
# -*- coding: utf-8 -*- """ Created on Sat Feb 11 19:39:13 2017 @author: coskun """ for n in range(5): print(n)
[ "cskncnr@gmail.com" ]
cskncnr@gmail.com
482253149dc58e3f0050fd0a45769c27e33d6d64
8afb5afd38548c631f6f9536846039ef6cb297b9
/_REPO/MICROSOFT/computervision-recipes/utils_cv/tracking/references/fairmot/tracking_utils/log.py
e09c21e15029fef2f0eaa73fd3a0e9dc749ffd75
[ "BSD-3-Clause", "LGPL-2.1-or-later", "Apache-2.0", "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
518
py
import logging def get_logger(name="root"): formatter = logging.Formatter( # fmt='%(asctime)s [%(levelname)s]: %(filename)s(%(funcName)s:%(lineno)s) >> %(message)s') fmt="%(asctime)s [%(levelname)s]: %(message)s", datefmt="%Y-%m-%d %H:%M:%S", ) handler = logging.StreamHandler() ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
ff5a41f53fea89f20b9ec01b5c556b2d0454c9b8
244e254aa1ede0337f5d5796781648da6c7dbc78
/apps/core/forms.py
6be261051d524db52168ed07a5a08f047d2444e6
[]
no_license
huyhoang1996vn/custom_oscar
fb4968fb7c68a4651ddd55ea1fdf4962a73f4a0a
2f4efc3923428bcfddbe9aff6743f865e5eec125
refs/heads/master
2021-09-25T00:01:50.653334
2018-10-16T02:26:29
2018-10-16T02:26:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from django.forms import ModelForm from models import * class PlanForm(ModelForm): class Meta: model = Payment_Plan fields = ['name', 'description', 'price']
[ "huyhoang1996ha@gmail.com" ]
huyhoang1996ha@gmail.com
ab24475ba292de13d6bd961ecf71301c9347a353
6e4ea04d30fec41f96736c9df34712c9407c7c08
/src/train.py
59fb208bf67b6fe057b9a90d1ff24cb42e26f9e7
[]
no_license
sohj94/dl_study
b4e4ee44437487943fc6b83f05ec7f8cbd669091
46be7c4424ae0c79f92cc8375be7f39645ba34c8
refs/heads/master
2023-05-30T09:42:29.577469
2021-05-12T13:55:52
2021-05-12T13:55:52
366,718,444
0
0
null
null
null
null
UTF-8
Python
false
false
3,236
py
import os, sys os.environ["CUDA_VISIBLE_DEVICES"] = "0" import torch import argparse from torch.utils.data import DataLoader from torch import nn, optim from torch.utils.tensorboard import SummaryWriter import numpy as np import pandas as pd from dataset_builder import load_data_set from trainer import Trainer # imp...
[ "sohj94@gmail.com" ]
sohj94@gmail.com
149aefe6e9472c86db11aa0650275067f15c22b2
d7d26c42cd541417edcd7b1992027286ecef7f04
/application/dataworld/collegeentranceexam/datacleaner/app_dataset_construction.py
e7501a699e4267ca7e71e6a73bd185d640e3d1c3
[]
no_license
plutoese/pluto_archive
bfba8df48ee5639a2666b33432004519b93ecbf7
e6ea64aaf867fd0433714293eb65a18a28d3136d
refs/heads/master
2021-10-22T14:46:20.540770
2019-03-11T12:31:08
2019-03-11T12:31:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,844
py
# coding = UTF-8 import re import pysal from pymongo import ASCENDING import pandas as pd from lib.base.database.class_mongodb import MongoDB, MonCollection from application.dataworld.admindivision.class_admindivision import AdminDivision # 1. 数据库连接 mongo = MongoDB(conn_str='localhost:27017') college_info_con = MonCo...
[ "glen.zhang7@gmail.com" ]
glen.zhang7@gmail.com
73c0269f5cbc46a8c2badeb9fe65e2342886f8cf
394deeb967bee4609f92c2dcb0cddb3cca5b639c
/tf_agents/bandits/policies/lin_ucb_policy.py
eb3a7ccc8db9640149e358470b888213f92cdef3
[ "Apache-2.0" ]
permissive
tagomatech/agents
8234e286576d287c4f2cdabe461f342d2fe1cda4
4a624694f6ef05b8c92805decc23732e625ff9af
refs/heads/master
2020-05-30T18:04:29.062082
2019-11-11T20:53:32
2019-11-11T20:53:32
189,889,368
0
0
Apache-2.0
2019-11-10T14:02:41
2019-06-02T19:58:43
Python
UTF-8
Python
false
false
10,586
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
4f917d5c34fdf3ab06bc5065b47c2f5a2c5a1d88
066f031b8c9fcfd825c99a199e8d8692a3eead46
/Completed/Day01/part02.py
a8d682f0c77412294410acf41a0cb9d0fde85ba8
[]
no_license
VonGriff/AdventofCode-15
55c9500e4994e4ea8a8a5366dadf862bed1fe157
8509c9e420ae9a7094eabfef3fcc002d703dc5dd
refs/heads/master
2020-06-19T08:37:57.647695
2016-10-12T12:08:17
2016-10-12T12:08:17
68,147,069
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
def read(file): level = 0 pos = 0 text = open(file, 'r') while (True): pos += 1 c = text.read(1) if c == '(': level += 1 elif c == ')': level -= 1 if level == -1: return pos print(read("input.txt"))
[ "autumndiscord@gmail.com" ]
autumndiscord@gmail.com
bc3fb50cd23946e054b837d284f6a00a6320bad7
49dc88dbabab84e53496a058daf9e30987fd46a7
/sketches/py2b/python_classes/controllers.py
e3a13196d499a734280036f0151dc0a261d0f7c7
[ "MIT" ]
permissive
sauloal/arduino
4f97f6e4d9822dc1516c395f7e140c061d6c319f
e8acbf53b5fb23be02c168dc70ee897f345f4c76
refs/heads/master
2020-05-28T07:43:02.545545
2013-07-29T19:40:27
2013-07-29T19:40:27
3,607,207
0
0
null
null
null
null
UTF-8
Python
false
false
1,667
py
########################################## ###### PYTHON 2B ######################### ########################################## # # # MARCO SANGALLI marco.sangalli@ovas.it # # ALEX RIGAMONTI alex.rigamonti@ovas.it # # # ###################...
[ "sauloal@yahoo.com.br" ]
sauloal@yahoo.com.br
e2d4d26c96c44db8eed437d662ba29726d3d0ad2
d555e3d318512964b95d4cd3d7489e380ec04e99
/api/quickstart/dbrouters.py
5376acf152c4f519a01cc78d997ac260f88592a4
[]
no_license
andrewadcock/django-mssql-api
9fa1bd3ae324726a23cca3706b270abae5957cb0
636d4caa3d86242dca75abed45a7c789a916ca7e
refs/heads/develop
2022-11-29T08:00:45.762445
2020-05-07T12:23:08
2020-05-07T12:23:08
262,082,415
0
0
null
2020-08-08T00:37:08
2020-05-07T15:04:51
JavaScript
UTF-8
Python
false
false
261
py
class DbRouter(object): def db_for_read(self, model, **hints): if model._meta.app_label in ['quickstart']: return 'SCHIPAnnualReports' # Returning None is no opinion, defer to other routers or default database return None
[ "ssacher@collabralink.com" ]
ssacher@collabralink.com
07a9ec4ee5447d27de723c82a64c24ab000b21eb
c62700cfb1e17fd314ebbbef3d99104575b8bad9
/tests/TestInstallation.py
7a5502d20cb6cb15b2f213cce53680ae3929d023
[ "Apache-2.0" ]
permissive
ellipsys/urh
0f245b4c142d670f31cea5791346f26e978f2807
3a7735f3e09fec29d728fd0313a7ade21ec59a4c
refs/heads/master
2021-01-13T03:42:21.241267
2016-12-23T14:05:50
2016-12-23T14:05:50
77,269,092
1
0
null
2016-12-24T06:12:29
2016-12-24T06:12:29
null
UTF-8
Python
false
false
609
py
import unittest from tests.docker import docker_util class TestInstallation(unittest.TestCase): def test_archlinux(self): self.assertTrue(docker_util.run_image("archlinux")) def test_debian8(self): self.assertTrue(docker_util.run_image("debian8")) def test_ubuntu1404(self): sel...
[ "Johannes.Pohl90@gmail.com" ]
Johannes.Pohl90@gmail.com
09cf60c899cb9e513e5dbe6f4ab8529de16236a8
c7169415ae8abedd29ab83cddbcccb6768663062
/graph_processing/dataset_a/gephi_lists/flickr/create_flickr_gephi_lists.py
1343e8d14f66d7261853eff3037648b031c52867
[]
no_license
chrisWWU/cross_platform_feature_analysis
26c33dd2adc00b7d8fbc24bfef45d6757b81ae1a
572732554c73bdcb22f31bce5718fdf8beb77bd8
refs/heads/master
2022-12-29T11:11:18.910805
2020-10-16T11:38:04
2020-10-16T11:38:04
296,666,366
0
0
null
null
null
null
UTF-8
Python
false
false
4,073
py
import pandas as pd import os def clear_filename(filename): return filename.replace('.csv', '') def get_fl_nodelist(path_fl, path_connection, path_fl_nodelist, path_fl_core_nodelist, csv): """ creates complete nodelist with labels 'core' and 'follow' readable by Gephi creates core nodelist containin...
[ "christian28bewerbung@gmail.com" ]
christian28bewerbung@gmail.com
8f1dc0297e4d67ad83ca5b3c971095c587a3c3f3
78be63927dbc43c4977e690e47e38c4bdad74421
/ring_sim_classes.py
d7f6f68511f58cc411f1ff74cf49267cee0c1822
[]
no_license
thomape/RingSim
012dfa00119a9de4c22cbf6f4e43d3f3c2c12a8e
497edc8c065235d7e288bdac9ca587169f83398d
refs/heads/main
2023-04-07T00:12:04.544407
2021-04-23T20:39:13
2021-04-23T20:39:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
"""All Classes for RingSim""" class Address(): """Base address class""" def __init__(self, complete_address): is_empty = False if complete_address == (): is_empty = True if is_empty: self.home = None self.complete_address = () else: ...
[ "tom.errington58@gmail.com" ]
tom.errington58@gmail.com
9da9edd9709412b6adedf84d8e54d35bedc1478e
ea638660eba44752ea4292c40c0903e70fc624b9
/0x0F-python-object_relational_mapping/101-relationship_states_cities_list.py
9492b1668e3fca3fbc49e6437daff08eb0ff6f31
[]
no_license
mounirchebbi/holbertonschool-higher_level_programming
38df80f1ddb291badb31968ff766e1ebfe23cb57
5bbf6265c1c661d9f4de8cc451b67100e8b91fa3
refs/heads/master
2023-03-31T15:58:47.837219
2021-04-03T00:01:49
2021-04-03T00:01:49
319,455,788
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
#!/usr/bin/python3 """ List States and corresponding Cities in the database hbtn_0e_101_usa """ import sys from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from relationship_state import State from relationship_city import City if __name__ == "__main__": engine = create_engine("mysql+my...
[ "2157@holbertonschool.com" ]
2157@holbertonschool.com
f195541a1499432e5009441129ca7466983f7fda
fff80f77c7af53a45bc8d613c017444e09bef195
/Mysite/website/models.py
2a4738493970f5992e1de042d9ebec611de26f03
[]
no_license
saikiran1111/Djangoprojects
1b34967feafc09a7a1f6343b5d373e3d7114a908
fc4194c4d748ee28d126cf78b055ba30eb89c85d
refs/heads/master
2020-04-11T00:05:46.986621
2018-12-12T14:25:02
2018-12-12T14:25:02
161,375,102
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
from django.db import models # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey('Question', on_delete=models.PROTECT) c...
[ "noreply@github.com" ]
saikiran1111.noreply@github.com
720e11eb69115bbfd802814514dac27e48340bb1
be2083eb77e8626fe0ef729e3ac958d7da07ca83
/qa/rpc-tests/multi_rpc.py
233eb2990f8582d8eb6e133123ae45a7fdda8554
[ "MIT" ]
permissive
dpayne9000/Rubixz-Coin
ad7516868664fbd9b42746992b617eeeaa77871f
13dccf942e0fa8bc6ea27b66c49120dc0e21762f
refs/heads/master
2021-01-22T01:48:36.957123
2017-09-23T05:38:47
2017-09-23T05:38:47
102,241,550
0
0
null
null
null
null
UTF-8
Python
false
false
4,578
py
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test multiple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTest...
[ "daniel.payne.unlimited@gmail.com" ]
daniel.payne.unlimited@gmail.com
1bed8b2a8bccfba906c396a6ef545f2133988e2e
20fb3ca196eb3cd09515853e29d39d784a7da536
/Example5/first_parameter_example.py
d33cfcdfa8ff234ba9c54d1f3adf413d26d221dd
[]
no_license
mdurmuss/ROS-FUNDAMENTALS
2645fadf8dd934fe7f831184cbff3aa88dc15c7d
4ebd77a137fd8c28d6a03432fa96d782f2522f57
refs/heads/master
2020-06-18T04:52:18.986655
2020-01-16T09:34:16
2020-01-16T09:34:16
196,169,834
0
2
null
2019-07-25T08:25:56
2019-07-10T08:55:06
Python
UTF-8
Python
false
false
924
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author : Mustafa Durmuş import rospy from std_msgs.msg import Int64 NODE_NAME = "parameter_publisher" PUB_TOPIC_NAME = "/parameter_number" PARAM_NAMES = ["/rosversion", "/rosdistro", "/another_param"] def parameter(): """ creates a ros node and publisher. ...
[ "noreply@github.com" ]
mdurmuss.noreply@github.com
faa1322d9a2ff06b525ec03bdd104773a67826d6
14762129284bea08150e90cdfb283fb0859d6b04
/dist/snippets/maps_http_geocode_zero_results/maps_http_geocode_zero_results.py
0ca399d82c51f1e549b046051adac9e4df40ebfc
[ "Apache-2.0" ]
permissive
shabbir135/openapi-specification
7f5e83916fc6f6ca06cf65f7cda0b986faa18b93
94a6c4a0d886d192544d8072c0fdff6c628325b1
refs/heads/main
2023-07-19T06:40:33.016144
2021-08-25T15:16:05
2021-08-25T15:16:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
# [START maps_http_geocode_zero_results] import requests url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=0,0&key=YOUR_API_KEY" payload={} headers = {} response = requests.request("GET", url, headers=headers, data=payload) print(response.text) # [END maps_http_geocode_zero_results]
[ "noreply@github.com" ]
shabbir135.noreply@github.com
ae72de755b3e6a32ab643baf8d96bb9e853ce7fa
3a4c5860ba3f2e88d4315bc27eb2277219235c13
/save_sample_image.py
487cc24ffcf58e0d66c01ec231c10e80ead99aa6
[]
no_license
Mrsonwden/Artificial-Potential-Field
8ba617499e0ee192863cf5dbf68b6d91112d43ba
972256d94122ee2928eb1fe0af15a57a82a2ff2b
refs/heads/master
2020-09-24T00:41:27.227147
2017-03-31T13:38:01
2017-03-31T13:38:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
import cv2 cap = cv2.VideoCapture(1) _, im = cap.read() cv2.imwrite('sample1.jpg', im)
[ "iiita.coder@gmail.com" ]
iiita.coder@gmail.com
368a8d6fb2f983a54efc388552ecd4085fcd7acd
f43d030b05519e74584a8d72e8f67cd5a632be84
/table.py
6c94d328a6b46b2115973603230b8694c26aa536
[]
no_license
AndresFlorez/countries
a2928162c0eac9b12e591fca9ac1eca25543f448
98c2ec3288ae0437d36e03a9170e1c95fdc80ea9
refs/heads/main
2023-06-28T19:24:40.741091
2021-08-02T05:22:44
2021-08-02T05:22:44
345,413,407
0
0
null
null
null
null
UTF-8
Python
false
false
5,124
py
import hashlib import sqlite3 as sql import time from collections import defaultdict from json import loads import pandas as pd from bd import Database from get_data import get_data class Table: def __init__(self): self.database = Database() self.regions_df = None self.countries_df = N...
[ "aflorez@opalo.com.co" ]
aflorez@opalo.com.co
ef704d3459a64430e7458dbb263dc784250106cf
dbafbea874751231428ab451520f79bb4656196d
/hw1/models.py
8ff5d7e1c611e923c9e72f62701f89506e873fa2
[ "MIT" ]
permissive
vermouth1992/CS294-158-homework
1953e813a392181f01e4012d7d6a01d21de625b4
1c35f07374f4bb5d31cff1e2b12f37ae81f838be
refs/heads/master
2020-05-16T22:48:35.705960
2019-08-01T16:33:23
2019-08-01T16:33:23
183,345,149
1
0
null
null
null
null
UTF-8
Python
false
false
4,083
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions import Categorical from torchlib.common import FloatTensor from torchlib.dataset.utils import create_data_loader from torchlib.generative_model.made import MADE class WarmUpModel(nn.Module): def __init__...
[ "czhangseu@gmail.com" ]
czhangseu@gmail.com
677aec012ef12d32a26d2ebdfe96a27b5ab5b49f
b9c33f67fa66839ee18930e2679ac8f3a1b450fe
/build/ur3_with_tool/catkin_generated/pkg.develspace.context.pc.py
14e370313c4c093b87ce01ecdbd297a3a1a5358f
[]
no_license
Haoran-Zhao/Ultrasound_and_UR3
e397e66207789c50b8fe7ca7c7be9ac9dfa6e2da
bb0e4b19216a4b21a1af4b6524f4ed98fee8d83c
refs/heads/master
2023-01-07T13:46:56.723360
2020-11-11T01:14:18
2020-11-11T01:14:18
274,579,555
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur3_with_tool" PROJECT_SPACE_DIR = "/...
[ "zhaohaorandl@gmail.com" ]
zhaohaorandl@gmail.com
8cafe3e0b5fdd25079d26d4a50092aa8d191e8fc
814b28ecc858ceb08d1ccb11a6ad7449f5916b45
/MiniProject3.py
f6f1302cf0877c2e8aeeda162787c85177c85304
[]
no_license
CBASoftwareDevolopment2020/searching-shakespeare
1a21532c70c99b2f0b871fe957a404860bd8dd00
1fd5cdd2df187ff0b9e9be471e3f0bd8c478cc7f
refs/heads/master
2022-04-18T22:04:46.883315
2020-04-15T09:24:28
2020-04-15T09:24:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
import tkinter as tk from time import time from suffix_tree_v1 import SuffixTree as st_v1 from suffix_tree_v2 import SuffixTree as st_v2 def read_file(path): with open(path, encoding="utf-8-sig") as f: return f.read() def time_create_suffix_tree(string: str, out: str, case_insensitive=False): start...
[ "supernikolaj@hotmail.com" ]
supernikolaj@hotmail.com
b53db18cdb6f5ae52e0cc31ad767bf570fd56925
60b37c0eee280aea6ddc5f61f704568af08c4cd9
/infrastructure/models/user.py
5c11914a3ddb6d3af050d14d24a47827e1da72bc
[]
no_license
radostkali/arena-battle-tg-bot
2cc318d28617e40a2596a58bcc1b2ef288a08aaa
98f1d51c73a70f7ac3588a699b30ae3e0dc4884f
refs/heads/master
2023-04-11T10:14:37.156137
2021-04-25T14:53:28
2021-04-25T14:53:28
352,330,834
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
from sqlalchemy import Boolean, Column, Enum, Integer, String from infrastructure.models.base import Base from domain.entities import RankChoices DB_TABLE_NAME_USER = 'user' class User(Base): __tablename__ = DB_TABLE_NAME_USER id = Column(Integer, primary_key=True) user_id = Column(Integer) chat_...
[ "t.rodionov@admitad.com" ]
t.rodionov@admitad.com
68399a70f47dcd936d87e925bc60570a7ebb3791
81f06670e9e2e5e9e0641c3963d91bef45612d84
/model.py
012d3b71cc66170d5c12098a9a5f588c3850db3e
[]
no_license
cindyvillanuevads/individual_project
44672255265b1ce8d10e9945f2975a1b24cf6f84
64d2f7c9b91a85915b88571046ee95e6414a3edd
refs/heads/main
2023-06-20T21:35:38.609727
2021-07-14T14:41:09
2021-07-14T14:41:09
384,486,170
0
0
null
null
null
null
UTF-8
Python
false
false
4,045
py
import pandas as pd from sklearn.tree import DecisionTreeClassifier, plot_tree, export_text from io import StringIO import numpy as np from sklearn.metrics import confusion_matrix from sklearn.metrics import accuracy_score from sklearn.metrics import precision_score from sklearn.metrics import recall_score from sklearn...
[ "cindy.villanueva.ds@gmail.com" ]
cindy.villanueva.ds@gmail.com
8a0e475d0df5ec6c3c698e4578b5126acfb7b6c3
ad7e5e17e60dbcc5ff1e79196dd3a4c2dd4c4535
/utils/eval_speed.py
f14f8c8cf66fb5b7bcb1ff845df8cdb58355542a
[]
no_license
silkylove/Pytorch-ImageSegmentation
103e92630b9f0109808cc9c994e6ebaa6b68978c
f674a6ccfb4eb83a926f6f589045aadf166c0051
refs/heads/master
2020-04-10T11:57:52.052158
2018-12-23T10:43:22
2018-12-23T10:43:22
161,007,681
10
3
null
2019-11-07T07:34:27
2018-12-09T05:30:06
Python
UTF-8
Python
false
false
1,034
py
# -*- coding: utf-8 -*- import torch import time import numpy as np from models import DeepLabv3_plus from models.backbone import shufflenet_v2, mobilenet_v2 def get_time(model, h, w): run_time = list() for i in range(0, 100): input = torch.randn(1, 3, h, w).cuda() torch.cuda.synchronize() ...
[ "353837214@qq.com" ]
353837214@qq.com
947cfb012f911f411350834b9df978314ccbec9f
53ce4546455f71462ab7f190ca4242c92812bd96
/CCC '01/CCC '01 J2 - Mod Inverse.py
b495052cfcb69987f8deb6df43b2c3474ba561f9
[]
no_license
Ri-Hong/CCC-Solutions
a1fb1f6eaabd72395590993672b2b8080b5d931c
91e700c4c3b85490c41f3f26dbe2f96165dd0f61
refs/heads/master
2023-05-04T17:59:04.599290
2021-05-21T18:32:26
2021-05-21T18:32:26
280,291,363
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
''' Author: Ri Hong Date AC'd: Jan. 29, 2020 ''' #Explanation ''' *Note that I will be using variable names that are identical to those provided by the problem statment. We can loop through all numbers from 1 to 100 to and let us call each of those numbers n. If the remainder upon dividing (x * n) by m is 1, then n i...
[ "65200215+Ri-Hong@users.noreply.github.com" ]
65200215+Ri-Hong@users.noreply.github.com
e319df8e0d4da45127c328c085f2b0b42699b796
76c58dd979770472bea3fc6d59986d6bee4e5b66
/week_1/get_frames.py
ff1caf3847da319adf35fa35b302b7c77eaaf5cb
[]
no_license
alexkhrystoforov/It-Jim-Internship
253c9a29763d52e1d1837f8591c26d8f3d10ca02
904c699bdf9d992568766b57d0b3690166869ff9
refs/heads/master
2023-01-30T05:50:14.391267
2020-12-09T08:33:21
2020-12-09T08:33:21
278,134,546
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
import cv2 input_video = 'input_video.avi' cap = cv2.VideoCapture(input_video) # number of frames in the video print(cap.get(cv2.CAP_PROP_FRAME_COUNT)) current_frame = 0 ret, frame = cap.read() while ret: cv2.imwrite('frames/frame' + str(current_frame) + '.jpg', frame) current_frame += 1 ret, frame = c...
[ "noreply@github.com" ]
alexkhrystoforov.noreply@github.com
fca0f8c92bc29fc97b02f6f75e34fa9a9f4344f8
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/EDataBook/BookMetaBackend.py
203648556f38a3d240028a1ddfee58e1ab34c6ad
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
46,398
py
# encoding: utf-8 # module gi.repository.EDataBook # from /usr/lib64/girepository-1.0/EDataBook-1.2.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
47577a79e715e84a832d15d60bde6c109b72c080
b89ec524bd793305ff1400abca95520a939274ef
/Graph.py
9687f14afcef7d21a0fb4bc6225e3c68ab165ed7
[]
no_license
HarryBatchelor/CM1103-Problem-solving-with-Python
251b8e6102eca6e9dd53190cbd9fe6d72a343952
ba4bd5b34e12aa3f95e0c632ba481a8770f85362
refs/heads/master
2021-10-08T15:06:13.965621
2018-12-13T22:20:30
2018-12-13T22:20:30
160,398,117
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
import matplotlib.pyplot as plt import csv from numpy import random as r from random import randint from collections import Counter from Q1_1816377 import * def gen_counts(race_standing): count = [] count_output = [] for s in race_standing: count.append(int(race_standing[s])) data = (Counter(co...
[ "hmbatchelor8@gmail.com" ]
hmbatchelor8@gmail.com
8a0f06f60dc724d159edb416c6dfeb83e5234638
5a5264e34854ba744905728e5473fb9e942bd12d
/4 karakterli sifre.py
908250bea095622fce1e2130cc4625ad61bbe2d6
[]
no_license
yasmingurses/Esra_Hocanin_Odevleri
665b0d8b3accf1c16b852a1c46bba255cfd92b8f
ea75de210f5aacd7cf066abcf99eaffd51334b29
refs/heads/main
2023-02-28T23:04:04.654972
2021-02-02T21:18:17
2021-02-02T21:18:17
306,127,253
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
#Guncelleme #Rakamlardan olusup olusmadıgını da kontrol ediyor #4 karakterli sifre olusup olusmadıgını kontrol etme x = str(input("Dört karakterli bir şifre giriniz: ")) while len(x) != 4 or x.isdigit() == False : print("4 karakterli ve rakamlardan oluşan bir şifre olmalı") x = str(input("Dört karakte...
[ "noreply@github.com" ]
yasmingurses.noreply@github.com
98657318f92b25aa704e2127697efcaa68dc3808
81fbede20d9963915fa7ad53385c8becf0795a8c
/hyperparameters_GridSearch_scripts/algorithm_3/6_1_tuning_SVR_Sigmoid.py
c90f7cd8120c5b4b2c1e130dab6c7f1c2128f698
[]
no_license
MarinaKrivova/DrugProfiles
777dd9ca81264a06a2b9da2dbca63a015d245611
14b503d650a7d816f3b461cbc8d08db48066123c
refs/heads/master
2023-01-11T19:23:54.556073
2020-11-14T23:01:21
2020-11-14T23:01:21
269,201,276
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
import pandas as pd import numpy as np import warnings warnings.filterwarnings("ignore") from sklearn.svm import SVR from sklearn.model_selection import LeaveOneOut from sklearn.model_selection import GridSearchCV from sklearn.preprocessing import MinMaxScaler np.random.seed(123) _FOLDER = "/home/acq18mk/master/res...
[ "mg.krivova@gmail.com" ]
mg.krivova@gmail.com
c91378501f60fc5562c8f55e39f53a99e42da299
419a5b8b8e64771b5e82b39c16fd861194aa9023
/test3.py
6672865fb6dae5a91406717d179e4a334c8e02cd
[]
no_license
clauortellado/Python-Excel-OpenPyXl
b21642670834b9df75910018a5ce7af1fb2ce99a
78bfde57a5f138d70fec03d2d53aafe6f8c68078
refs/heads/master
2023-03-10T05:13:03.148027
2021-02-19T18:21:05
2021-02-19T18:21:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
# https://medium.com/aubergine-solutions/working-with-excel-sheets-in-python-using-openpyxl-4f9fd32de87f # Working with Excel sheets in Python using openpyxl # Appeding Group of Values at the botton of the current Sheet from openpyxl import Workbook wb = Workbook() filepath = "C:/Users/Klau/Documents/Python/...
[ "noreply@github.com" ]
clauortellado.noreply@github.com
81fd386201a963b93c59c98e682a986d83412d2c
207bc9a3e7a9f035353963876757745ddbcfc384
/knet/tests/utils.py
8180c9f6b22b12c2a88baff8cbada1aeee2b8f36
[]
no_license
oddbird/knet
e6322cbca0350dc78d2a4e824a84d81f42960878
30e41c37dd608cbc8f1bd794cb30c7d935cf6723
refs/heads/master
2021-01-25T07:18:53.337897
2013-07-27T20:19:33
2013-07-27T20:19:33
9,507,222
0
0
null
2013-07-27T20:43:07
2013-04-17T20:46:55
Python
UTF-8
Python
false
false
910
py
from django.template.loader import render_to_string from bs4 import BeautifulSoup def redirects_to(response): """Assert that the given response redirects to the given URL.""" return response.headers['location'].replace('http://localhost:80', '') def render_to_soup(*args, **kwargs): """Render a templat...
[ "carl@oddbird.net" ]
carl@oddbird.net
7e4361ba053743d636cdbf3e110a861ed69299a9
f0cf8eb77c87083ad8e02b17183dc966593e8a93
/Codility/FrogRiverOne.py
3f77c95d7155400771f532678b70441a39f13374
[]
no_license
adityaalifn/Coding-Excercise
b1fbf25a486619c5b7c55a6a559f052a893a6188
35d250afdb3affce0e95010d1b89417929c64cdb
refs/heads/master
2021-09-08T18:00:32.654940
2018-03-11T16:30:20
2018-03-11T16:30:20
117,181,909
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
def solution(X, A): sol = [i for i in range(1,X+1)] now = [] for i in range(len(A)): if A[i] not in now: now.append(A[i]) if sorted(now) == sol: return i return -1 print(solution(5, [1, 3, 1, 4, 2, 3, 5, 4]))
[ "adityaalifnugraha@gmail.com" ]
adityaalifnugraha@gmail.com
b84c5640716e3f238fc73bd5c8712f058e57eb8a
bfb6ebdb9c6f9e7f5dca0befc8085f6d8156e68a
/bims/utils/gbif.py
a5abcbee3dc1fbf5348e3072a8b531b659b15684
[ "MIT" ]
permissive
ismailsunni/django-bims
128dbdb21cc35f7651e6ead5dc774f9fb929af86
b13df4ce9f632102e54b45aff89fd9c36adc6c23
refs/heads/develop
2020-03-21T02:24:58.800186
2018-06-20T10:19:15
2018-06-20T10:25:18
137,997,261
0
0
MIT
2018-08-14T07:19:09
2018-06-20T07:40:13
JavaScript
UTF-8
Python
false
false
2,506
py
# coding: utf-8 from requests.exceptions import HTTPError from pygbif import species from bims.models import Taxon def update_taxa(): """Get all taxon, then update the data bimsd on the gbif id. """ taxa = Taxon.objects.all() for taxon in taxa: print('Update taxon for %s with gbif id %s' % ( ...
[ "dimas.ciputra@gmail.com" ]
dimas.ciputra@gmail.com
f26d9651a600872cdc23c0b36f306d9823a6910a
10f71154b2fb62eda33062d8e9f111d78cedabe7
/PrimeMinistersByPython/primeministers/io.py
d2f8e35f1d946c922608a612eb0383bb971f6bde
[]
no_license
PrimeMinisters/PrimeMinisters
d19498faf376b51530b31dc1d3e6f2e673659ecf
d730f3935f90969dccbcaeea02f73b3275fb2c74
refs/heads/master
2020-06-05T13:44:26.259827
2014-12-25T10:27:04
2014-12-25T10:27:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
#! /usr/bin/env python # -*- coding: utf-8 -*- import csv class IO(object): """入出力:リーダ・ダウンローダ・ライタを抽象する。""" def read_csv(self, filename): """指定されたファイルをCSVとして読み込む。""" print "[io]readの起動を確認" rows = [] with open(filename,'rU') as file: reader = csv.reader(file) #header = next(reader) for row ...
[ "g1244163@cse.kyoto-su.ac.jp" ]
g1244163@cse.kyoto-su.ac.jp
a95e9da619c93fa85d008be7f17687ca23cf69b5
309d86a579ac76cfd4387a39268c99deed75b3bb
/usr/share/pygobject/2.0/codegen/code-coverage.py
0d0b22979bfbda0469d5c57f302d2891a0d0092d
[]
no_license
adiabuk/arch-tf701t
2288a54887ab75944aba9327b05802622ed036a1
07d45b901fe2fa572b9aff4ccc1f46885e20216f
refs/heads/master
2022-11-06T01:00:08.564774
2015-09-07T14:37:03
2015-09-07T14:37:03
40,411,267
0
1
null
2022-10-11T13:32:09
2015-08-08T17:45:37
HTML
UTF-8
Python
false
false
1,329
py
#! /usr/bin/env python2 from __future__ import generators import sys, os def read_symbols(file, type=None, dynamic=0): if dynamic: cmd = 'nm -D %s' % file else: cmd = 'nm %s' % file for line in os.popen(cmd, 'r'): if line[0] != ' ': # has an address as first bit of line ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
22ec0c6ae1aff85bf5b7069cd5eb229537ee79bf
281b8ccf5632af32bc0cfdb32a8ee7e7d570add9
/GPFileConversionTools.pyt
abfcd59fa4bef76d1a04613b89ee2393292f36da
[]
no_license
gistom/GPFileConversionTools
408b6660250c62436ca4e65b7b7d7c971e0b49ee
7a38f037f1c66af31782253b8f53bd71691bf90d
refs/heads/master
2020-09-29T11:12:08.944524
2019-12-10T04:10:01
2019-12-10T04:10:01
227,026,654
0
0
null
null
null
null
UTF-8
Python
false
false
4,564
pyt
import arcpy, os, zipfile class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "File Conversion Toolbox" self.alias = "" # List of tool classes associated with this toolbox ...
[ "noreply@github.com" ]
gistom.noreply@github.com
262e061a5df73cade4ad74e389275c63001c40b4
475ae6c9fd4eb95c5d63f4dc4230baebbb15e2ac
/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/taskapp/celery.py
6ba32f5660f8721dfe4c71ea784463202845f2a3
[ "MIT" ]
permissive
yulio94/cookiecutter-django-rest
9151bfc5a8fa3dc66fb204420d6ce10d4df247a5
f8ad695f2a4526bf2247508c1d127b35313761ae
refs/heads/main
2023-02-04T14:26:04.788515
2020-12-23T05:59:29
2020-12-23T05:59:29
321,573,045
7
0
MIT
2020-12-23T05:59:30
2020-12-15T06:23:26
Python
UTF-8
Python
false
false
976
py
"""Celery app config""" import os from celery import Celery from django.apps import apps, AppConfig from django.conf import settings if not settings.configured: # Set the default Django setttings module for 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') app = Celer...
[ "j.cesarestrada@hotmail.com" ]
j.cesarestrada@hotmail.com
b2c8cd4368cc92c27d271b4a5c833297ccad6217
2a330c4cd0933f14eaff2ffd045a6b377b7a28d3
/attic/python-serial-test.py
bdc85801daf3cccb375d11e29128fd207b737482
[]
no_license
insc/txt-api
eeab2b2a8474625eff51b40b59710f767d6e800d
5446ec5781dac1271e7ea852e117609d8b56280a
refs/heads/master
2018-08-27T21:55:55.268719
2018-06-03T11:06:16
2018-06-03T11:06:16
116,029,319
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
from __future__ import print_function import serial import threading import struct import time import binascii print('Connect to /dev/ttyO2') ser_ms = serial.Serial('/dev/ttyO2', 230000, timeout=1) fmtstr = '<BBB BBBB H BBBBBB' fields = [81, 1, 0, 17, 17, 17, 17, 0, 0, 0, 0, 0, 0, 0] buflen = struct.calcsize(fmtstr) b...
[ "11855979+insc@users.noreply.github.com" ]
11855979+insc@users.noreply.github.com
7e6d1a99bc62c0ba75bb7443ee7953270cc9acf7
ba02e988a9506342c7f354178261a95f89545c94
/version_downloader.py
1bc5e54fe91d5bcb7b2db0f6f8f81be22c3edcb0
[]
no_license
Team-IF/MC_version_downloader
3ef37853f52482b9c13ef83a7b9b9e1ccfd327b1
7a7ee598e519525dc12150986272f4e333d806ab
refs/heads/master
2020-12-04T03:04:17.574635
2019-08-07T16:26:36
2019-08-07T16:26:36
231,583,560
0
0
null
2020-02-24T17:06:48
2020-01-03T12:26:42
null
UTF-8
Python
false
false
748
py
import wget import json import os import requests def L_Json_download(MC_version): url = "https://launchermeta.mojang.com/mc/game/version_manifest.json" jsons = requests.get(url).json()['versions'] for dic in jsons: for value in dic.values(): if MC_version == value: ...
[ "noreply@github.com" ]
Team-IF.noreply@github.com
2332a83c5e6252a6e781bde2cc4ce08d3f9390f1
d9b5f8745855806605e1d87ea92e7dd5a328d6d9
/scrapely/extraction/similarity.py
9346f160c4d69f163d1338a1ce3cd5992e6ee7be
[]
no_license
lianghongjie/scrapely_extract
d6a5ce1d371b4a24b42f5b3d78b4f4c3099b9c4e
fe169243cc72660accd709f508b96ddbfd94db35
refs/heads/master
2020-03-13T12:14:55.708150
2018-04-26T07:19:06
2018-04-26T07:19:06
131,115,207
0
0
null
null
null
null
UTF-8
Python
false
false
6,803
py
# -*- coding: utf-8 -*- """ Similarity calculation for Instance based extraction algorithm. """ from itertools import count from six.moves import zip as izip, xrange from operator import itemgetter from heapq import nlargest try: # For typical use cases (small sequences and patterns) the naive approach # actu...
[ "abc650301032@qq.com" ]
abc650301032@qq.com
47ce6d1b721fe3f23abb7c8cfde7e7292e28bdb8
d4ff743ac22529f167e4bd59204ea41e825f5f6c
/MachineLearning.py
7cb7c4feef8e0997b563e105a66cc168286b95b8
[]
no_license
sanjitmathew/Heart-Disease-Application
7b3fa5ffafbd82dcaed91e6c348ef78cf0348174
f7e7a677f75ff46753f1324fbec1c7079b963726
refs/heads/master
2020-05-05T13:20:45.886845
2019-04-30T08:41:44
2019-04-30T08:41:44
180,072,618
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
# -*- coding: utf-8 -*- """ Created on Sat Apr 6 15:28:24 2019 @author: sanjith """ import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('heart.csv') X = dataset.iloc[:,0:13].values y = dataset.iloc[:, 13].values #Splitting datasets fro...
[ "noreply@github.com" ]
sanjitmathew.noreply@github.com
1cf3552063d04ba50348712d499056478ca00102
78835cac758e1a901b1a00843e20cf6a70d1867c
/plotting.py
c930d62b09876fa25d8292406d93d77c08960a74
[ "LicenseRef-scancode-public-domain-disclaimer" ]
permissive
sverros/Correlation_parallel
d5d36b7372b2cf3b4ea094d27d2eb3cf4f2d2780
44dd23970e7826d8d64b1c5b1463771403458e6a
refs/heads/master
2016-09-16T12:16:03.082173
2015-08-10T17:58:01
2015-08-10T17:58:01
37,331,527
0
0
null
null
null
null
UTF-8
Python
false
false
4,087
py
import cartopy import matplotlib.pyplot as plt import numpy as np import scipy from neicio.gmt import GMTGrid from matplotlib import cm WATER_COLOR = [.47,.60,.81] def plot(out, variables, voi, shakemap, stationdata): # maxdata = np.amax(out['data_new']) attributes = shakemap.getAttributes() intensity = st...
[ "sverros@igskcicgwsgm051.cr.usgs.gov" ]
sverros@igskcicgwsgm051.cr.usgs.gov
c065cd304063c2dd0848ba6db4fc36e777b981b5
f36f438c190cdd5aa66c8f23a4365af9391af22c
/hwk3.py
2eddf6b044dff594c661edf3b7944b9044894499
[]
no_license
KyleYoung69/githubKyleYoung
1f500b8449526a699afd20e4272e38cf822b282e
2b50425ce09332662b944c254f76a6315759fbb8
refs/heads/main
2023-05-24T09:17:29.973251
2021-05-25T21:52:24
2021-05-25T21:52:24
367,767,014
0
0
null
null
null
null
UTF-8
Python
false
false
3,176
py
#Kyle Young - ID#188 def same_first_digit(digit1, digit2, digit3): if str(digit1)[0] == str(digit2)[0] and str(digit2)[0] == str(digit3)[0] and str(digit1)[0] == str(digit3)[0]: return True else: return False def get_piece_value(piece): chess = dict([ ("pawn", 1), ("...
[ "noreply@github.com" ]
KyleYoung69.noreply@github.com
749a2a09910d28d903ab094e86fb56ee068b075f
44fb2fe531a0ff2144e4f0c2d4dd611f86f93cfb
/FuckAlgorithmAnalysis/luogu/P1554_梦中的统计.py
be3c1a4a5763767c50489fcd888cb3858c864a06
[]
no_license
Alex-Beng/ojs
d9f1a49f76dc6b6429951330af526e0df2152be8
26a467dfe8acd8ae4be0cd2784d79eebf09c06ce
refs/heads/master
2023-07-12T05:36:36.176271
2023-07-07T15:09:39
2023-07-07T15:09:39
152,544,110
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
min, max = map(int, input().split()) nums = [str(i) for i in range(min, max+1)] nums_count = [0]*10 for i in nums: for j in i: nums_count[int(j)] += 1 nums_count = [str(i) for i in nums_count] print(' '.join(nums_count))
[ "599267065@qq.com" ]
599267065@qq.com
2d1f2608be74a36c2c5177a29fbfa746c861255c
c62a1badf38dfb381b7c1131087f72d8ec28729b
/main/utils.py
6b2496dea8f1ba7ef2080c651b9d71d9fa4334de
[]
no_license
KenPet11/UnitedWay
7430330be52178f4d135d6b426187e5bc877ee4c
3edbd8f68edbf54c12e97cc135f37f9e93d8284d
refs/heads/master
2020-04-25T14:12:26.194428
2019-05-05T21:47:11
2019-05-05T21:47:11
172,833,494
0
0
null
2019-05-05T21:47:13
2019-02-27T03:09:25
Python
UTF-8
Python
false
false
1,289
py
from datetime import datetime, timedelta from calendar import HTMLCalendar from .models import Event class Calendar(HTMLCalendar): def __init__(self, year=None, month=None): self.year = year self.month = month super(Calendar, self).__init__() # formats a day as a td # filter events by day def formatday(self...
[ "kpettit@nd.edu" ]
kpettit@nd.edu
6a425bc2043643c6f72bd9ec9d45dd83f78bb750
cf14275eb2ad7a50da0f482ead52e12168e7de6f
/CRUD_FunctionBased_1/CRUD_FunctionBased_1/settings.py
433157cbbc4c730f1cef6124f9af198bbc464fbb
[]
no_license
balamurali1/Environment
319c4087de011949f405d78a43a15b45b04efb05
f5312d56f102423cfb11900cfa99775ffa4f67c5
refs/heads/master
2023-09-04T06:56:20.449830
2021-10-30T09:13:00
2021-10-30T09:13:00
420,183,269
1
0
null
null
null
null
UTF-8
Python
false
false
3,315
py
""" Django settings for CRUD_FunctionBased_1 project. Generated by 'django-admin startproject' using Django 3.2.7. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ ...
[ "balamurali1@gmail.com" ]
balamurali1@gmail.com
8c496a1bd3052881eb01521de7480ac48911b47f
db0d5970cf10febfb1028393567143aedabdceb8
/capstone/capstoneapi/models/Workflows.py
d1360cae7cb121f4b3848290cfcb2fb73cb95e0e
[]
no_license
FORDBA/Final-Capstone-Server
b192dc63577128d1e4ad04f9e452b86833432164
9ac3745986dc3498aaab344d68cd647fa8205421
refs/heads/main
2023-02-15T21:43:32.037440
2021-01-08T19:24:09
2021-01-08T19:24:09
321,428,632
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
"""Database Comments module""" from django.db import models from django.contrib.auth.models import User class Workflows(models.Model): """Database Comments model""" due_date = models.DateField() completion_date = models.DateField(null=True, blank=True) preparer = models.ForeignKey(User, related_name='u...
[ "bfordcpa@gmail.com" ]
bfordcpa@gmail.com
07f7f8508fd7439a74cbe94e74b385d752990391
ba38cfd3ffdcf59b81ce00ef3af10be579bb7da1
/Chapter 2 - Linked Lists/2.2.py
0fa206065b1c29ac7aed789f8d3dce8b88fc3e35
[]
no_license
StephanieGreenberg/ctci6-solutions
67cf9a5fc856f8c85495799fb5981d905e039bbe
3f7366a131136895b0165c0cbdcf9c6d6ebe965e
refs/heads/master
2022-11-25T08:59:59.886119
2020-07-25T21:49:06
2020-07-25T21:49:06
281,834,618
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
def kth_to_last(head, k): ctr = findLength(head) - 1 while head: if k == ctr: return head ctr -= 1 head = head.next return None def findLength(head): ctr = 0 while head: ctr += 1 head = head.next return ctr
[ "sgreenberg53@gmail.com" ]
sgreenberg53@gmail.com
2730756ed1bf0108a8937125d88e379ace3b62b6
06b882948132d5d501a3474a99e566f3875eef77
/project5/project5/kaizen/admin.py
20f390a6b7098d23e934569b6810881e1404280c
[]
no_license
RidleyLarsen/cs4990
a71b43e720facc63952e1e214f8ff91270fa5f83
268ec2762683653be75345a5719f44d795abcb38
refs/heads/master
2016-09-06T16:36:43.342909
2015-12-16T22:03:04
2015-12-16T22:03:04
41,456,998
2
0
null
null
null
null
UTF-8
Python
false
false
165
py
from django.contrib import admin from .models import Suggestion, Category # Register your models here. admin.site.register(Category) admin.site.register(Suggestion)
[ "ridley@velocitywebworks.com" ]
ridley@velocitywebworks.com
ce2c19a1b1978beb9920466d1f9bce3e7326a1e6
dfb6a80dda5882a1c2be87b0b6e1e7a87a7b4c20
/test/test_acknowledgement.py
18d884199b5f0f2f999ca2e5924cdad313218b17
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
artikcloud/artikcloud-python
a090201bea9fadbdf5dd57d94d9085b03b34f927
c5489b2fca27fd9a8bcea99f309e02cb690dd349
refs/heads/master
2020-12-26T03:33:00.657575
2017-12-28T20:40:05
2017-12-28T20:40:05
55,102,598
13
11
null
2017-03-18T03:22:58
2016-03-30T22:38:07
Python
UTF-8
Python
false
false
831
py
# coding: utf-8 """ ARTIK Cloud API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sy...
[ "jswattonjue@gmail.com" ]
jswattonjue@gmail.com
be0abde7011e4e965cd2998da82ee23ff5874981
4e74c4230322c013e036c9ab8562bd17dcb27bf4
/env/bin/pip2
71831be5277cc76f49e72ef0c435f698174f4d51
[]
no_license
1871vinayak/django-rest-framework-tutorial
2dc2c3a4b5bb288dfd8e4f5e65704543d039c596
e4c2bdeef177f1c1ed24c628ab5e1790a7c1ca37
refs/heads/master
2020-04-05T09:44:14.421127
2018-11-08T21:32:44
2018-11-08T21:32:44
156,771,806
0
0
null
null
null
null
UTF-8
Python
false
false
243
#!/home/vinayak-1871/tutorial/env/bin/python2 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "1871vinayak@gmail.com" ]
1871vinayak@gmail.com
571c3c7cc675dc307e237ac80f5f2f03d5a55195
62e6e5ac5fd2f955c79a456e6cbbcf7f5d083b29
/label_studio/tests/data_manager/test_api_tasks.py
520667f75005f77bdff1672f6fb0d3144b522da1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
naveengct/label-studio
9a8f75e55055ce3f0eed1e1e0cbbaa685b94154e
11aae8352d1acdf4f3d978a32934daad27779ed7
refs/heads/master
2023-08-21T09:38:52.514177
2021-10-23T20:04:09
2021-10-23T20:04:09
420,070,239
0
1
null
null
null
null
UTF-8
Python
false
false
3,687
py
"""This file and its contents are licensed under the Apache License 2.0. Please see the included NOTICE for copyright information and LICENSE for a copy of the license. """ import pytest import json from ..utils import make_task, make_annotation, make_prediction, project_id from projects.models import Project @pytes...
[ "noreply@github.com" ]
naveengct.noreply@github.com
276ac678559bd74f99bf26ae835e5cfccf858be6
8669f31f708e81c40ede6557e7de606b6660cca4
/pyomt/decorators.py
cd606037953bd2a410110656b656e8f1c1bd8e25
[ "Apache-2.0" ]
permissive
cespio/omt2mzn
8488496abe4c27e977e0b64d3b2cac7fc9cb7b9c
0088ed81272b63f86903a1bf5c5bb290cb8c4a85
refs/heads/master
2021-06-11T03:35:49.805111
2019-05-05T17:23:08
2019-05-05T17:23:08
128,271,872
0
1
null
null
null
null
UTF-8
Python
false
false
3,965
py
# # This file is part of pySMT. # # Copyright 2014 Andrea Micheli and Marco Gario # # 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 ...
[ "francio.194@gmail.com" ]
francio.194@gmail.com
8e6dc82201b220746b19a2dc29e0dd3b44ca5738
a81c1492783e7cafcaf7da5f0402d2d283b7ce37
/google/ads/google_ads/v6/proto/enums/billing_setup_status_pb2.py
70c162bdab0373dbfcdf6c8f4b3f52cef85965b9
[ "Apache-2.0" ]
permissive
VincentFritzsche/google-ads-python
6650cf426b34392d1f58fb912cb3fc25b848e766
969eff5b6c3cec59d21191fa178cffb6270074c3
refs/heads/master
2023-03-19T17:23:26.959021
2021-03-18T18:18:38
2021-03-18T18:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
true
4,619
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v6/enums/billing_setup_status.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import re...
[ "noreply@github.com" ]
VincentFritzsche.noreply@github.com
c390f036a72316003dc86e7a10c585c72923d307
fa9e6008ef95d4868c998f153f395f2e8cd74bc1
/classes/school.py
78971a49d684c9009dd101479778b99feba7559b
[]
no_license
JeremiahMauga/school-interface-one
25b6845c91bd52307248f1ffc5cee00a9578cdae
5a5b537656c15cc5a5593425bf41cbfdb78029f3
refs/heads/master
2023-05-09T07:35:26.172707
2021-06-02T16:37:40
2021-06-02T16:37:40
373,019,980
0
0
null
2021-06-02T02:47:21
2021-06-02T02:47:20
null
UTF-8
Python
false
false
224
py
from classes.student import Student from classes.staff import Staff class School: def __init__(self, name): self.name = name self.students = Student.all_students() self.staff = Staff.all_Staff()
[ "miahmauga@gmail.com" ]
miahmauga@gmail.com
2a35d32ccf95d01c08cc819c5e73fd1270e724b2
803b028d0dc7c0b6de1952f29de137e88e3a0def
/wordcount/urls.py
79c3c133da7083483ee33b7c822b40cff4ed0b1c
[]
no_license
pprashantt/wordcount
49f259c7496cd1b124c099b6068d3c47359f7cc6
054b98ef1741a37a1f474e3b72dc3dfe7442a6dc
refs/heads/master
2020-04-13T20:41:58.840526
2018-12-28T17:44:20
2018-12-28T17:44:20
163,436,484
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
"""wordcount URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "prashant.p@geitpl.com" ]
prashant.p@geitpl.com
1c45a6ffb72a9be96cba5d013eb2e35b113e9c0d
486284c50c4058f9a3cffb8cd0f5f3dc23eb97e8
/feinman/20_11.py
6208afce1c707f75160178c00fd007ec8972add1
[]
no_license
oleksiypr/physics
e8e31c29e6bd1201ab1d3909ebd34246a32cc7d6
5c31502934f30e5769f49acf933ef5d7dd3b0a1a
refs/heads/master
2021-11-19T18:05:30.806741
2021-09-06T19:13:27
2021-09-06T19:13:27
236,537,193
0
0
null
null
null
null
UTF-8
Python
false
false
1,531
py
from sympy import * init_printing() # //@formatter:off h = symbols('h') # the heights the body stated rolling from I_0 = symbols('I_0') # moment of inertia relative (axis) center of gravity M = symbols('M') # the mass r = symbols('r', positive=True) # radius of...
[ "oleksii.prosianko@fedex.com" ]
oleksii.prosianko@fedex.com
903d4982e43e8339cc5d5c2a3b419c51dfab23a0
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2620/60672/250069.py
fe55818dd7580982aee0fd8dd287ae5431a4959e
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
117
py
T=input() for i in range(T): N=input() sum=0 for i in range(N+1): sum=sum+pow(i,5) print(sum)
[ "1069583789@qq.com" ]
1069583789@qq.com
d0693cbf31df34a171c9bb3fa87794665fd6bb38
a1bf8212283227b6746f30af10ee3f449e9f7cfa
/prj/Django/manager_project/manager_project/settings.py
a23d51c0092f4f758db2b2ee7238626fd3aab160
[]
no_license
tadasi12/dev
33904891dbbfecd709e05b0c7c792481c26d39df
afc1d76c9677487e353afa7dfced4920c894ea83
refs/heads/master
2020-03-19T08:24:28.402504
2019-07-08T16:53:58
2019-07-08T16:53:58
136,201,328
0
0
null
null
null
null
UTF-8
Python
false
false
3,351
py
""" Django settings for manager_project project. Generated by 'django-admin startproject' using Django 2.0.7. 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/ """ imp...
[ "tadasi12@yahoo.co.jp" ]
tadasi12@yahoo.co.jp
097e95e15a39e5b93e54bbc9056cfb472ad55514
0dc44b18d3f087b4926016f63a9fc824b9f3606f
/feature_extractor.py
a549a0279deaebc987d3bc38b89c89baf581a7c6
[]
no_license
vishalk9/Sentence_Semantic_Similarity
c14243f111107ca2de4634a0c316f75f0e790e5d
63e213e95c3a457f5cf0aa5ddf81ff1b509cdaf4
refs/heads/master
2020-03-22T18:37:33.011423
2018-04-29T08:36:15
2018-04-29T08:36:15
140,471,344
2
1
null
2018-07-10T18:16:13
2018-07-10T18:16:13
null
UTF-8
Python
false
false
6,841
py
from __future__ import division import nltk from nltk.corpus import wordnet as wn from nltk.corpus import brown import math import numpy as np import sys from itertools import izip ALPHA = 0.2 BETA = 0.45 ETA = 0.4 PHI = 0.2 DELTA = 0.85 brown_freqs = dict() N = 0 def get_best_synset_pair(word_1, word_2): ...
[ "vishal.ku86@gmail.com" ]
vishal.ku86@gmail.com
53f6b166ff3157850e2d9b69c458ddb044823c82
b5af43e3253a6ed545291cdcdf42edcd7546bb6f
/game.py
279c4034ba8622cedc8cd8d01c41771da7e86dd1
[ "MIT" ]
permissive
yulwin/python-exercises
9d24e06aa97ba1a544f822e6fa30dfd93626fdac
812e28e26845d4578d1294dfdd5f5b3e9de9f0b7
refs/heads/master
2020-03-19T10:05:40.459692
2018-06-26T08:54:21
2018-06-26T08:54:21
136,342,861
2
0
null
null
null
null
UTF-8
Python
false
false
301
py
class Room(object): def __init__(self, name, description): self.name = name self.description = description self.paths = {} def go(self, direction): return self.paths.get(direction, None) def add_paths(self, paths): self.paths.update(paths)
[ "yulwin178@gmail.com" ]
yulwin178@gmail.com
b38fec8341f41c637b4a772a7664070040e97cc6
145762063f36ed93b62219843e2d0b52438006c6
/assignment02.py
cbbb4799680ce5714a478a403bc3ca20f08f54d2
[]
no_license
Szeretni/TTKS0300-Script-Programming
dce6c7ccbbfe6f47ee47165e3bef31e7b69aed66
3685b19161ed66bffda5fbbcf1d65ab756ffdb7e
refs/heads/master
2021-05-09T02:03:04.081567
2019-03-18T07:04:15
2019-03-18T07:04:15
119,195,025
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
greeting = "Hello World" for character in greeting: print character
[ "hannu@muaddibs.net" ]
hannu@muaddibs.net
d179386d14f850369e106bcfa247671821d4fd31
e786cda0fdc003eddd14466ed9b9b336559e58d6
/data/get-minute-data.py
4536efe756f76de33444e3cded021e1c35088356
[ "MIT" ]
permissive
YA9/stock-market-prediction
6ac724db58ee52ebedc52dc83e02912aea738edb
1756187c75efd69657888e04c41f78526ad86c84
refs/heads/master
2023-02-01T01:20:58.956907
2020-08-21T20:55:40
2020-08-21T20:55:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
# Copyright (c) 2018 Benson Tran, MIT License import requests import pandas as pd import arrow import datetime import pandas as pd import numpy as np def get_quote_data(symbol='AAPL', data_range='7d', data_interval='1m'): res = requests.get( f'https://query1.finance.yahoo.com/v8/finance/chart/{symbol}?ra...
[ "amascillaro@gmail.com" ]
amascillaro@gmail.com
4a1121a0cdf9f1fee3aa3a07d6155aa50db72c68
471ea669e21abdb4e4915610b4b5eb43ea3cffe9
/leetcode/390.消除游戏.py
e25d5de18c3f8e1f181c22f6906c3c30c596872b
[]
no_license
JiahuaLink/nowcoder-leetcode
26aed099e215cfc1d8e8afffc62fafa26b26b06f
0155fc33511cbe892f58550d561d3aa3efcd56b9
refs/heads/master
2023-07-09T03:05:31.227720
2021-08-03T06:50:36
2021-08-03T06:50:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
# 按题目说明解法 class Solution(object): def lastRemaining(self, n): nums = [i+1 for i in range(n)] res = [] while len(nums) > 1: for i in range(1, len(nums), 2): res.append(nums[i]) nums, res = res[::-1], [] return nums[0] # 找规律,如果输入a输出...
[ "noreply@github.com" ]
JiahuaLink.noreply@github.com
e4b483a764f9ab2efc9c6ffe2605fa6913727b13
68430b047879745c1b5791717e74f4f033d6b1a4
/mention_parse.py
3a762c82e11a1e6c4f49513fcd16167657117828
[]
no_license
v-arora/ucsc-class-info-bot
6109f3d7c4300dcbf9396dc18712a6bf05c5ae53
c4c85febacef0d0cec831d099745ecbb0422857e
refs/heads/master
2021-01-15T20:29:29.295270
2016-03-10T06:36:25
2016-03-10T06:36:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,559
py
""" Vastly superior version of find_mentions which is faster can can see: * multi-mentions: mentions of same department with list of numbers, e.g. "Math 21, 23b, 24 and 100" * letter-list mentions: mentions of same number with list of letters, e.g. "CE 129A/B/C" * letter-list mentions in a multi mention, e.g. "CS 4a, 3...
[ "pfroud@gmail.com" ]
pfroud@gmail.com
e7fdd285417b2b0a0bc0034520c25347072d82a9
3bade207becd7eaf2be98d1e6d3ced8b180d65e6
/chat_room/chat_server.py
47f88c2b90d54b23b064f5f7605288eaf7957f05
[]
no_license
letitbedulllife/chat_room
69a1288364546f0c263ec6c2d5cc284ec911ca61
a5f41443fde9637508ac9e3fc2705b7a3b6d2e08
refs/heads/master
2020-07-27T18:14:58.713231
2019-09-18T00:37:17
2019-09-18T00:37:17
209,183,442
0
0
null
null
null
null
UTF-8
Python
false
false
1,775
py
''' chat room env:python3.6 socket udp & fork exc ''' import os from socket import * HOST='0.0.0.0' PORT=9999 sockfd_addr=(HOST,PORT) user_data=[] def controller_data(sockfd): while True: msg=input('请输入管理员消息:') msg='C 管理员 '+msg sockfd.sendto(msg.encode(),sockfd_addr) def ...
[ "994854055@qq.com" ]
994854055@qq.com
07ea3e284b935d07ab11e00124830db9bb27a6c7
512b388a53022f561e2375b4621f78572d3b4f04
/utils/models.py
14f07ebf726d38b7d946eb8638c9981ad0c2400d
[]
no_license
Madoka09/Worker15
006d5ac44dc55c3ae7f72d3b8300f3567395cdff
181012d309052b2df3d4ef99a197e8acef73a185
refs/heads/master
2023-03-24T05:29:02.060796
2021-03-16T21:56:21
2021-03-16T21:56:21
336,394,683
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
""" Utilities for created_at and modified_at fields """ # Django from django.db import models class TimestampsModel(models.Model): """ UtilsModel provides a base class from which other models will inherit. This class provides the following attributes: - created_at: timestamp that store th datetime the...
[ "personal.galvan.francisco@gmail.com" ]
personal.galvan.francisco@gmail.com
6728b00d8785d466013431e65c1dbabfcf82983d
30fe7671b60825a909428a30e3793bdf16eaaf29
/.metadata/.plugins/org.eclipse.core.resources/.history/e5/20fadfd0c2de0016156ad23b6c415615
4e07c45103b7fff65595cef2312f6ca204789746
[]
no_license
abigdream84/PythonStudy
0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1
059274d3ba6f34b62ff111cda3fb263bd6ca8bcb
refs/heads/master
2021-01-13T04:42:04.306730
2017-03-03T14:54:16
2017-03-03T14:54:16
79,123,274
0
0
null
null
null
null
UTF-8
Python
false
false
59
#!/usr/bin/env python #coding:UTF-8 import pymysql
[ "abigdream@hotmail.com" ]
abigdream@hotmail.com
ac6bf41cbf3cc72ac865198b018b54cf9211913d
c051bafb897c69f3bdd0252709a0d63c0b9d1cca
/model/case.py
260938689c63e92dbf6fc22c044af0630ff31813
[]
no_license
IronPanda0/pethos
bdf08f9f777a199b33cc63b5f50002985c7a1b5a
3f359560d68c60d14aba24c4c04f66158cea522c
refs/heads/master
2023-04-09T11:43:07.167992
2021-04-02T16:30:32
2021-04-02T16:30:32
352,262,287
0
1
null
2021-04-19T02:30:54
2021-03-28T06:56:29
Vue
UTF-8
Python
false
false
667
py
# coding: utf-8 from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Case(db.Model): __tablename__ = 'case' caseId = db.Column(db.Integer, primary_key=True, info='病例ID') caseName = db.Column(db.String(50, 'utf8_general_ci'), info='病例名称') animalName = db.Column(db.String(20), info='宠物名称')...
[ "2632235311@qq.com" ]
2632235311@qq.com
334199b4568464627f17b79b76c620b056d04749
9576ff34dea3373b3ffd47448490cad25276101b
/surveys/serializers/answer.py
4605dff6dfb78ad75d717d5c409bf40ad162cf8e
[]
no_license
CheloVek0116/surveys_system
b24d334aa13da36a82d79198a6cbd2ca588b6b6f
d4c67f56dbf6ba0ce0adbd52e3456e7dcb8dd02a
refs/heads/master
2023-01-31T21:05:35.052397
2020-12-18T06:01:31
2020-12-18T06:58:31
322,407,958
0
1
null
null
null
null
UTF-8
Python
false
false
1,236
py
from rest_framework import serializers from surveys.models import ( ChoiceQuestion, MultipleChoiceQuestion, TextAnswer, TextQuestion, ) from surveys.serializers.answer_option import ( ChoiceAnswerOptionSerializer, MultipleChoiceAnswerOptionSerializer, ) class TextAnswerSerializer(serializers....
[ "megabalabol@mail.ru" ]
megabalabol@mail.ru
12aad8f53eae2ba82cffcd065f95e49e51f06c4e
926621c29eb55046f9f59750db09bdb24ed3078e
/lib/surface/compute/instances/set_scheduling.py
2ba983bd7fbe2cc02857892b32261fb66244365c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/SDK
525d9b29fb2e901aa79697c9dcdf5ddd852859ab
e6d9aaee2456f706d1d86e8ec2a41d146e33550d
refs/heads/master
2022-11-22T18:24:13.464605
2016-05-18T16:53:30
2016-05-18T16:53:30
282,322,505
0
0
NOASSERTION
2020-07-24T21:52:25
2020-07-24T21:52:24
null
UTF-8
Python
false
false
3,914
py
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "richarddewalhalla@gmail.com" ]
richarddewalhalla@gmail.com
c6710ec2ab5913f61c93dc69b575afb49412ee8d
d0e0235a85e383d80bb1a52e8ba4174c266b7c71
/amolf/numerical_data_analysis/infovsCrosscorrelation.py
9de48fbc250f1e44e386002b0b748aa13e5ac086
[ "BSD-2-Clause" ]
permissive
Repythory/Libraries
388f829b8bb8bfa3d2ca0af1b04f40f40b436679
d5f01267a5f396bd0d74b6291f4552bcc6790777
refs/heads/master
2021-01-21T21:40:04.790975
2016-03-18T16:25:39
2016-03-18T16:25:39
26,526,605
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
#compute information vs cross correlation from numpy import* from scipy import * from matplotlib import pyplot as plt T=24. w=2*pi/T phi=pi/2. r=200. A=50. dt=0.05 def infoCross(a): fi=arange(0,pi,0.1) t=arange(0,T,dt) XM=arange(150,320) YM=arange(150,320) c=a infotot=[] cor=arange(-0.99,1,0....
[ "monti@bionet2" ]
monti@bionet2