hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b1f5cfe45f3f1d6614357303fdc3f3cece991c2e
4,023
py
Python
alipay/aop/api/domain/AlipayUserUnicomOrderInfoSyncModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserUnicomOrderInfoSyncModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayUserUnicomOrderInfoSyncModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import * class AlipayUserUnicomOrderInfoSyncModel(object): def __init__(self): self._gmt_order_change = None self._order_no = None self._order_operate_type = None s...
30.709924
87
0.599304
e688d8843d900ffb0571e918f15f41bb704b1ab2
1,040
py
Python
cexapi/test.py
codarrenvelvindron/cex.io-api-python
5e54ca7d4d98e509e18d1ecda311da544649ea60
[ "MIT" ]
1
2021-11-09T18:47:44.000Z
2021-11-09T18:47:44.000Z
cexapi/test.py
codarrenvelvindron/cex.io-api-python
5e54ca7d4d98e509e18d1ecda311da544649ea60
[ "MIT" ]
null
null
null
cexapi/test.py
codarrenvelvindron/cex.io-api-python
5e54ca7d4d98e509e18d1ecda311da544649ea60
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import cexapi username = '' api_key = '' api_secret = '' demo = cexapi.API(username, api_key, api_secret) print("Ticker (GHS/BTC)") print(demo.ticker()) ## or demo.ticker('GHS/BTC') print("Ticker (BF1/BTC)") print(demo.ticker('BF1/BTC')) print("Order book (GHS/BTC)") print(demo.order_book()) #...
31.515152
66
0.689423
d9b2373a798bf91b400c1761071f8164e1c97506
2,381
py
Python
single_linked_list.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
single_linked_list.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
single_linked_list.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
class Node: def __init__(self,value): self.info=value self.link=None class SingleLinkedList: def __init__(self): self.start = None def create_list(self): n = int(input("ENter the number of nodes : ")) if n==0: return for i in range(n): data = int(input("Enter the elements : ")) self.insert_end...
18.037879
49
0.637127
12bb7eb5fdcd5b4cc0977118367b7c422e10b73e
2,066
py
Python
cyrax/conf.py
piranha/cyrax
fd1c0473f0c69631339b2a5476933b00f604c643
[ "0BSD" ]
10
2015-12-18T22:39:02.000Z
2021-03-03T15:11:05.000Z
cyrax/conf.py
piranha/cyrax
fd1c0473f0c69631339b2a5476933b00f604c643
[ "0BSD" ]
9
2016-01-01T09:28:13.000Z
2019-12-17T09:39:15.000Z
cyrax/conf.py
piranha/cyrax
fd1c0473f0c69631339b2a5476933b00f604c643
[ "0BSD" ]
9
2015-12-31T23:18:07.000Z
2020-08-10T10:56:46.000Z
'''Parser of naive data format Copyright 2009 Alexander Solovyov, under terms of Poetic License Format: key: value key: [list, of, values] key: {key: value, key: value} key: date: yyyy-mm-dd HH:MM:SS key: True # boolean value key: False # boolean value Any line without a ":" is simply skipped. Field wit...
24.891566
74
0.577928
fda5f277728663d63bf565b640729515b4fa070e
711
py
Python
CryptoData.py
tysyak/CrypText
e958eb1be97850d7b6f7a168956222a97177aff3
[ "MIT" ]
null
null
null
CryptoData.py
tysyak/CrypText
e958eb1be97850d7b6f7a168956222a97177aff3
[ "MIT" ]
null
null
null
CryptoData.py
tysyak/CrypText
e958eb1be97850d7b6f7a168956222a97177aff3
[ "MIT" ]
1
2021-08-13T02:34:08.000Z
2021-08-13T02:34:08.000Z
#!/usr/bin/env python3 import time import pandas as pd class CryptoData: def __init__(self) -> None: self.csv_list = list() def csv_to_list(self, csv_path='tmp/bat-mxn-max.csv') -> list: df = pd.read_csv(csv_path, delimiter=',') self.csv_list = [list(row) for row in df.values] ...
26.333333
66
0.613221
5ea232087d6584bc40ad6667274d0a703049d44d
2,158
py
Python
temboardagent/validators.py
pgiraud/temboard-agent
6c087f41f06e1f2992057592f78e11c0c7649e4d
[ "PostgreSQL" ]
null
null
null
temboardagent/validators.py
pgiraud/temboard-agent
6c087f41f06e1f2992057592f78e11c0c7649e4d
[ "PostgreSQL" ]
null
null
null
temboardagent/validators.py
pgiraud/temboard-agent
6c087f41f06e1f2992057592f78e11c0c7649e4d
[ "PostgreSQL" ]
null
null
null
# User Input Validator # # These functions provide stateless validation of user input, mainly CLI # arguments and environment variables. # # On invalid input, a ValueError is raised. Other exceptions are considered a # bug. # # A validator is idempotent. It must accepts what it returns. import json import logging impo...
20.358491
77
0.639481
a8a3e297d61040ec2bcd7962243fa745d1c05e9d
2,348
py
Python
setup.py
VerdantFox/TowerDefense
1463fcd5067a565d049303ba04564e44051dc7ae
[ "CC-BY-4.0" ]
6
2019-01-30T00:06:43.000Z
2021-11-29T13:15:42.000Z
setup.py
VerdantFox/TowerDefense
1463fcd5067a565d049303ba04564e44051dc7ae
[ "CC-BY-4.0" ]
null
null
null
setup.py
VerdantFox/TowerDefense
1463fcd5067a565d049303ba04564e44051dc7ae
[ "CC-BY-4.0" ]
2
2020-12-15T07:55:34.000Z
2021-07-28T12:09:16.000Z
import cx_Freeze import os os.environ['TCL_LIBRARY'] = "C:\\Users\\Teddy\AppData\\Local\\Programs\\Python\\Python36-32\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = "C:\\Users\\Teddy\AppData\\Local\\Programs\\Python\\Python36-32\\tcl\\tk8.6" executables = [cx_Freeze.Executable("main.py", base="Win32GUI")] # to run, go to...
33.542857
105
0.362436
9bfbf8b4f4e16754f14ef51dc02bd3709471302c
1,011
py
Python
d9/part1.py
Jamie-Chang/advent2021
c3fda9098283b06265b03070085aeb0c6e27d408
[ "Apache-2.0" ]
null
null
null
d9/part1.py
Jamie-Chang/advent2021
c3fda9098283b06265b03070085aeb0c6e27d408
[ "Apache-2.0" ]
null
null
null
d9/part1.py
Jamie-Chang/advent2021
c3fda9098283b06265b03070085aeb0c6e27d408
[ "Apache-2.0" ]
null
null
null
from typing import Iterator def read() -> list[list[int]]: with open("d9/input.txt") as f: return [[int(c) for c in l.strip()] for l in f] def _adjacent_coord(row: int, col: int) -> Iterator[tuple[int, int]]: yield row - 1, col yield row + 1, col yield row, col - 1 yield row, col + 1 d...
26.605263
73
0.592483
ff1f3a20713ebba5a48fcbdad5e0c747183f9d3f
3,782
py
Python
unittests/test_cli.py
alextsaihi/rnaget-compliance-suite
a3accae431b9e4f7791dfa5ae867e70da2dd6278
[ "Apache-2.0" ]
1
2019-09-18T14:38:55.000Z
2019-09-18T14:38:55.000Z
unittests/test_cli.py
alextsaihi/rnaget-compliance-suite
a3accae431b9e4f7791dfa5ae867e70da2dd6278
[ "Apache-2.0" ]
14
2019-05-24T18:55:23.000Z
2022-02-25T16:56:28.000Z
unittests/test_cli.py
alextsaihi/rnaget-compliance-suite
a3accae431b9e4f7791dfa5ae867e70da2dd6278
[ "Apache-2.0" ]
8
2019-04-08T14:48:35.000Z
2022-02-04T16:59:59.000Z
# -*- coding: utf-8 -*- """Module unittests.test_cli.py This module contains methods to test the cli module via pytest. Attributes: user_config_dir (str): path to directory containing sample user configs user_config_success (str): file containing correct user config user_config_failure (str): file contain...
34.381818
79
0.653622
3916977184e09a533d8a4ade94b8f4d0f44528ae
749
py
Python
cohesity_management_sdk/models/type_hive_table_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/type_hive_table_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/type_hive_table_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class TypeHiveTableEnum(object): """Implementation of the 'Type_HiveTable' enum. Specifies the type of table ex. MANAGED,VIRTUAL etc. Specifies the type of an Hive table. 'kManaged' indicates a MANAGED Hive table. 'kExternal' indicates a EXTE...
23.40625
56
0.667557
ef1a4586d477feef2b330af563460f4c4d036e98
18,698
py
Python
qa/rpc-tests/wallet.py
bitcoinvenezuela/bven
a2fd442fc14dbd5a1a704dff83ee373b70dbe348
[ "MIT" ]
1
2019-04-19T02:09:07.000Z
2019-04-19T02:09:07.000Z
qa/rpc-tests/wallet.py
MelonousHeadous/BVEN
2fc8214d147bcd5cf5a2c7fe23d3efb75d07ff12
[ "MIT" ]
null
null
null
qa/rpc-tests/wallet.py
MelonousHeadous/BVEN
2fc8214d147bcd5cf5a2c7fe23d3efb75d07ff12
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-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. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * class W...
46.167901
181
0.641726
d253b2bb92708a274812649ac7be8b85a6d477dd
393
py
Python
web/rnp_find/asgi.py
mnahinkhan/rnpfind
5aa956ddd528ab9ebd9588be845f78c449915b78
[ "MIT" ]
3
2021-06-08T03:55:03.000Z
2021-06-15T07:33:08.000Z
web/rnp_find/asgi.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2022-02-24T15:34:24.000Z
2022-03-04T09:59:10.000Z
web/rnp_find/asgi.py
mnahinkhan/RNPFind
8b561e087f943421c847dcb708ee386ee6439fa5
[ "MIT" ]
1
2021-07-22T04:13:34.000Z
2021-07-22T04:13:34.000Z
""" ASGI config for rnp_find project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SETT...
23.117647
78
0.78626
bbdfefcde414e9eff78832c3aab5860074278b7f
207
py
Python
jessiql/integration/graphql/schema.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
jessiql/integration/graphql/schema.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
jessiql/integration/graphql/schema.py
kolypto/py-jessiql
724a1eda84e912483bb2d96bb0f74ce6a12098a3
[ "MIT" ]
null
null
null
import os.path # Load GraphQL definitions from the file pwd = os.path.dirname(__file__) # Get this schema with open(os.path.join(pwd, './schema.graphql'), 'rt') as f: graphql_jessiql_schema = f.read()
23
60
0.714976
4eb8634b81af8399d5bb85d0709d2f34743546b9
792
py
Python
cbab/settings/test.py
acdh-oeaw/cbab
7cd25f057913dccf85f851e448b1dbc2c5f8d624
[ "MIT" ]
1
2021-09-20T12:51:47.000Z
2021-09-20T12:51:47.000Z
cbab/settings/test.py
acdh-oeaw/cbab
7cd25f057913dccf85f851e448b1dbc2c5f8d624
[ "MIT" ]
null
null
null
cbab/settings/test.py
acdh-oeaw/cbab
7cd25f057913dccf85f851e448b1dbc2c5f8d624
[ "MIT" ]
null
null
null
from .base import * SECRET_KEY = 'whatever' DEBUG = True TEMPLATE_DEBUG = True ALLOWED_HOSTS = ['*'] INSTALLED_APPS + [ 'django_nose', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } TEST_RUNNER = 'django_nose.NoseTe...
26.4
90
0.627525
81d562e83185193112101ce27bb4ea96d6ab484d
34,130
py
Python
keras/layers/rnn/bidirectional_test.py
code-review-doctor/keras
96130040540e1405ffe746ddf2b2cceb9b8b8f65
[ "Apache-2.0" ]
null
null
null
keras/layers/rnn/bidirectional_test.py
code-review-doctor/keras
96130040540e1405ffe746ddf2b2cceb9b8b8f65
[ "Apache-2.0" ]
null
null
null
keras/layers/rnn/bidirectional_test.py
code-review-doctor/keras
96130040540e1405ffe746ddf2b2cceb9b8b8f65
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.347178
80
0.658717
727cacece07409e921b91b5d89597157fea60c3c
6,592
py
Python
pysnmp-with-texts/CTRON-ETWMIM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/CTRON-ETWMIM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/CTRON-ETWMIM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CTRON-ETWMIM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-ETWMIM-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:30:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
149.818182
585
0.774272
11262d022fdfb857ea0f852b2a97a2eed8725368
971
py
Python
BeyondNet.JsPlatform/js/algorithms/famous-algorithms/bellman-ford-algorithm/python/BellmanFord.py
beyondnetPeru/BeyondNet.Sample.Js
41126537519bf423063633a204e03aa71ae89d4b
[ "Apache-2.0" ]
null
null
null
BeyondNet.JsPlatform/js/algorithms/famous-algorithms/bellman-ford-algorithm/python/BellmanFord.py
beyondnetPeru/BeyondNet.Sample.Js
41126537519bf423063633a204e03aa71ae89d4b
[ "Apache-2.0" ]
null
null
null
BeyondNet.JsPlatform/js/algorithms/famous-algorithms/bellman-ford-algorithm/python/BellmanFord.py
beyondnetPeru/BeyondNet.Sample.Js
41126537519bf423063633a204e03aa71ae89d4b
[ "Apache-2.0" ]
null
null
null
class Graph: def __init__(self, v): self.v = v self.graph = [] def add_edge(self, s, d, w): self.graph.append([s,d,w]) def bellman_ford(self, src): dist = [float('inf')]* self.v dist[src] = 0 # Relax v-1 for i in range(self.v - 1): fo...
21.577778
69
0.486097
8be6a789311723596a303b493edb1344cc977ebb
5,281
py
Python
config.py
shoheietzel/proj10-meetme
38efe0ba015678b87070b1ec5b742b49662d5304
[ "Artistic-2.0" ]
null
null
null
config.py
shoheietzel/proj10-meetme
38efe0ba015678b87070b1ec5b742b49662d5304
[ "Artistic-2.0" ]
null
null
null
config.py
shoheietzel/proj10-meetme
38efe0ba015678b87070b1ec5b742b49662d5304
[ "Artistic-2.0" ]
null
null
null
""" Configure from app.ini (if provided) credentials.ini command line (unless invoked with proxied=True) in that order (i.e., in opposite order of precedence). A configuration namespace module returned by this module is suitable for configuring a Flask applicaton object. configparser makes all configuration...
36.673611
79
0.664647
bc82cda115eee8fee56f6228226ff7f50645cc91
48,928
py
Python
updateHostsFile.py
colinmkeith/hosts
d5d8733d7d2638770c25db7cc88daf1985568af6
[ "MIT" ]
null
null
null
updateHostsFile.py
colinmkeith/hosts
d5d8733d7d2638770c25db7cc88daf1985568af6
[ "MIT" ]
null
null
null
updateHostsFile.py
colinmkeith/hosts
d5d8733d7d2638770c25db7cc88daf1985568af6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Script by Ben Limmer # https://github.com/l1m5 # # This Python script will combine all the host files you provide # as sources into one, unique host file to keep you internet browsing happy. import argparse import fnmatch import json import locale import os import platform import re import sh...
32.06291
110
0.612083
1620de2fd3e4bc1e9c0c3fe69d74ea7857e0b9b5
1,757
py
Python
scripts/column_comparison.py
alniniclas/junit-to-jmh-experiment
7351ce7aa172da6d1bb047b46667b027044593a4
[ "Apache-2.0" ]
null
null
null
scripts/column_comparison.py
alniniclas/junit-to-jmh-experiment
7351ce7aa172da6d1bb047b46667b027044593a4
[ "Apache-2.0" ]
null
null
null
scripts/column_comparison.py
alniniclas/junit-to-jmh-experiment
7351ce7aa172da6d1bb047b46667b027044593a4
[ "Apache-2.0" ]
null
null
null
import argparse import os import csv def read_input(input_file): with open(input_file, 'r') as f: reader = csv.DictReader(f, dialect=csv.unix_dialect) return [row for row in reader] def get_output_key(row): test_class = row['class'] test_name = row['test'] if 'repetition' not in row: return test...
28.803279
102
0.684121
099f9bbd1e33685aefa815286c0d121d7448f4f4
3,527
py
Python
bindings/python/ensmallen/datasets/string/xanthomonadalesbacterium6970.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/xanthomonadalesbacterium6970.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/xanthomonadalesbacterium6970.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Xanthomonadales bacterium 69-70. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein...
33.590476
223
0.681032
9b8d252070f5b50477a052aa0ecd0f2bc056683e
14,895
py
Python
Program_Final/venv/Lib/site-packages/Bio/Blast/Record.py
isacasini/SNV_Xia_et_al_2020
d729b68e37babf9d30941683af6723aad65319f7
[ "MIT" ]
2
2019-11-21T02:34:52.000Z
2021-02-14T07:47:43.000Z
Bio/Blast/Record.py
EngineerKhan/biopython
4e359e2aa9255aa8b420ad512d3c4cbe15c07a35
[ "BSD-3-Clause" ]
null
null
null
Bio/Blast/Record.py
EngineerKhan/biopython
4e359e2aa9255aa8b420ad512d3c4cbe15c07a35
[ "BSD-3-Clause" ]
1
2021-02-14T07:47:46.000Z
2021-02-14T07:47:46.000Z
# Copyright 1999-2000 by Jeffrey Chang. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Record classes to hold BLAST output. Classes: Blast Holds all the inform...
36.329268
80
0.58476
c2bf9c975cdc52a2fbeccc566a8536c67950ed2c
10,564
py
Python
proxy.py
hadagalberto/python-proxy
d56a31abeac42884ecae8d59216a5bc27e4697a0
[ "Apache-2.0" ]
3
2017-11-09T03:53:15.000Z
2018-09-25T18:36:54.000Z
proxy.py
hadagalberto/python-proxy
d56a31abeac42884ecae8d59216a5bc27e4697a0
[ "Apache-2.0" ]
null
null
null
proxy.py
hadagalberto/python-proxy
d56a31abeac42884ecae8d59216a5bc27e4697a0
[ "Apache-2.0" ]
4
2017-11-08T21:56:55.000Z
2021-05-21T19:44:55.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from pprint import pprint import sys import http.client from socketserver import ThreadingMixIn from http.server import HTTPServer, BaseHTTPRequestHandler from threading import Lock, Timer from io import StringIO from urllib.parse import urlsplit import socket import sel...
31.254438
163
0.571469
103c33ca7c8ef0935020914b8455b3c5563a2059
2,132
py
Python
preprocessing/audio_extractor.py
ElonGagarin/easy_meeting_hack
27cbead34d73d410ad478a4f4ce7c27418aed116
[ "MIT" ]
1
2021-10-12T10:21:06.000Z
2021-10-12T10:21:06.000Z
preprocessing/audio_extractor.py
Maximgitman/easy_meeting
eb60d740e136ce139fddb447cd4e2aacb636ad98
[ "MIT" ]
null
null
null
preprocessing/audio_extractor.py
Maximgitman/easy_meeting
eb60d740e136ce139fddb447cd4e2aacb636ad98
[ "MIT" ]
null
null
null
import os import moviepy.editor as mp __version__ = "0.0.5" class AudioExtractor(object): def __init__(self, path): self.path = path self.dir = os.path.split(path)[0] filename, file_ext = os.path.splitext(path) self.filename = filename self.file_ext = file_ext[1:] ...
32.8
69
0.550657
1f23e75a8d624bb5ed90f1e5680715d560422409
3,467
py
Python
Stanford CS20 2018/examples/03_logreg_placeholder.py
neilliang90/DeepLearning-Tensorflow
213be49273a43ee2636789235b33331cce49736e
[ "MIT" ]
null
null
null
Stanford CS20 2018/examples/03_logreg_placeholder.py
neilliang90/DeepLearning-Tensorflow
213be49273a43ee2636789235b33331cce49736e
[ "MIT" ]
null
null
null
Stanford CS20 2018/examples/03_logreg_placeholder.py
neilliang90/DeepLearning-Tensorflow
213be49273a43ee2636789235b33331cce49736e
[ "MIT" ]
null
null
null
""" Solution for simple logistic regression model for MNIST with placeholder MNIST dataset: yann.lecun.com/exdb/mnist/ Created by Chip Huyen (huyenn@cs.stanford.edu) CS20: "TensorFlow for Deep Learning Research" cs20.stanford.edu Lecture 03 """ import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import numpy as np import...
36.114583
97
0.752235
bbef6c1dc4b12aa77aacc1d360f25f9416fe2828
929
py
Python
applications/views.py
djangulo/ta_platform
0aa9659180a4133dc460799308b57ecdf8fa96d4
[ "MIT" ]
null
null
null
applications/views.py
djangulo/ta_platform
0aa9659180a4133dc460799308b57ecdf8fa96d4
[ "MIT" ]
null
null
null
applications/views.py
djangulo/ta_platform
0aa9659180a4133dc460799308b57ecdf8fa96d4
[ "MIT" ]
2
2019-11-30T07:05:46.000Z
2020-10-13T11:59:01.000Z
from django.conf import settings from django.views.generic import FormView from django.shortcuts import render, get_object_or_404, redirect from applications.forms import ApplicationForm def create_application(request): if request.method == 'POST': form = ApplicationForm(request.POST) if form.is_...
32.034483
80
0.688913
e6d8ca093ecb5d54bb7143209223467e14e9c539
28
py
Python
2020-04-16 - Python Medellin - Creating a chat service with WebSockets/Examples/Chat/app/models/__init__.py
williamegomezo/Talks
0b123c6c8dec9c1a2357c142b617109068caf060
[ "MIT" ]
2
2020-04-24T23:03:41.000Z
2020-11-10T15:08:38.000Z
2020-04-16 - Python Medellin - Creating a chat service with WebSockets/Examples/Chat/app/models/__init__.py
williamegomezo/Talks
0b123c6c8dec9c1a2357c142b617109068caf060
[ "MIT" ]
5
2021-03-10T11:42:15.000Z
2022-02-10T21:38:54.000Z
2020-04-16 - Python Medellin - Creating a chat service with WebSockets/Examples/Chat/app/models/__init__.py
williamegomezo/Talks
0b123c6c8dec9c1a2357c142b617109068caf060
[ "MIT" ]
4
2020-10-01T04:32:27.000Z
2022-02-14T15:08:16.000Z
from .user import Base, User
28
28
0.785714
6022b6ac47f82fd0b0b1c0849dc21065b0908e2c
5,155
py
Python
ansible/modules/network/junos/junos_banner.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/network/junos/junos_banner.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/network/junos/junos_banner.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
28.324176
115
0.671387
7a915085b0bb91f6566e3946f34ea5fb1f788d65
3,074
py
Python
arkanoid/PPO/test.py
econnolly27/ReinforcementLearningNES
45464fbf193b5c7249013f7ece06afec27a60d5a
[ "MIT", "BSD-3-Clause" ]
2
2022-01-29T10:38:05.000Z
2022-01-29T10:38:12.000Z
arkanoid/PPO/test.py
econnolly27/ReinforcementLearningNES
45464fbf193b5c7249013f7ece06afec27a60d5a
[ "MIT", "BSD-3-Clause" ]
null
null
null
arkanoid/PPO/test.py
econnolly27/ReinforcementLearningNES
45464fbf193b5c7249013f7ece06afec27a60d5a
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" @author: Viet Nguyen <nhviet1009@gmail.com> From: https://github.com/uvipen/Super-mario-bros-PPO-pytorch Modified for Benchmarking Reinforcement Learning Algorithms in NES Games by Erin-Louise Connolly """ import os import argparse import torch from src.env import create_train_env from src.model import PPO from sr...
33.053763
117
0.649967
a374f50369bfe478c208f576a5f50b40f87f8b52
5,157
py
Python
dbaas/maintenance/admin/database_create.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
dbaas/maintenance/admin/database_create.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
dbaas/maintenance/admin/database_create.py
didindinn/database-as-a-service
747de31ff8546f7874ddd654af860e130afd17a0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.conf.urls import patterns, url from django.contrib import messages from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404 from django.utils.html ...
36.574468
79
0.61528
b2a2574a4de39313bbbe18c79b224df96393690c
934
py
Python
bridge/py_api/bohrium_api/messaging.py
bh107/bohrium
5b83e7117285fefc7779ed0e9acb0f8e74c7e068
[ "Apache-2.0" ]
236
2015-03-31T15:39:30.000Z
2022-03-24T01:43:14.000Z
bridge/py_api/bohrium_api/messaging.py
bh107/bohrium
5b83e7117285fefc7779ed0e9acb0f8e74c7e068
[ "Apache-2.0" ]
324
2015-05-27T10:35:38.000Z
2021-12-10T07:34:10.000Z
bridge/py_api/bohrium_api/messaging.py
bh107/bohrium
5b83e7117285fefc7779ed0e9acb0f8e74c7e068
[ "Apache-2.0" ]
41
2015-05-26T12:38:42.000Z
2022-01-10T15:16:37.000Z
""" Send and receive pre-defined messages through the Bohrium component stack ========================================================================= """ from ._bh_api import message as msg def statistic_enable_and_reset(): """Reset and enable the Bohrium statistic""" return msg("statistic_enable_and_reset...
25.243243
91
0.649893
1df1f1946a947c980dacf570fd9c9c2aabd90dd5
809
py
Python
gallery/urls.py
Robinkariuki/Gallery
21a93bed7813490ba03967e3a9c784b923791735
[ "MIT" ]
null
null
null
gallery/urls.py
Robinkariuki/Gallery
21a93bed7813490ba03967e3a9c784b923791735
[ "MIT" ]
3
2020-02-12T03:13:09.000Z
2021-06-10T22:03:28.000Z
gallery/urls.py
Robinkariuki/Gallery
21a93bed7813490ba03967e3a9c784b923791735
[ "MIT" ]
1
2020-11-26T05:40:17.000Z
2020-11-26T05:40:17.000Z
"""gallery URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
33.708333
79
0.699629
be0e0f473c0c19038079dd6b3b9c3e63a17529ac
1,176
py
Python
setup.py
smilelight/lightSpider
7430324753501c8f61e7152b6403845a74c12dee
[ "Apache-2.0" ]
12
2020-01-07T01:20:54.000Z
2021-04-25T06:47:53.000Z
setup.py
smilelight/lightSpider
7430324753501c8f61e7152b6403845a74c12dee
[ "Apache-2.0" ]
1
2020-01-09T13:54:06.000Z
2020-01-11T09:36:59.000Z
setup.py
smilelight/lightSpider
7430324753501c8f61e7152b6403845a74c12dee
[ "Apache-2.0" ]
6
2020-01-07T04:06:55.000Z
2021-04-21T02:40:02.000Z
from distutils.core import setup import setuptools with open('./version.txt', encoding='utf8') as f: version = f.read() with open('./README.md', 'r', encoding='utf8') as f: long_description = f.read() with open('./requirements.txt', 'r', encoding='utf8') as f: install_requires = list(map(lambda x: x.stri...
32.666667
68
0.659014
84a97b19724e5cc2760099535bdc9215b6f6300b
6,184
py
Python
[Kaleido-subs]/Completed/Joshiraku [BD]/JoshirakuBD_12.py
LightArrowsEXE/Encoding-Projects
4ea96a5b25a7710f615ada5ff25949c496492b53
[ "MIT" ]
57
2019-01-31T17:32:46.000Z
2022-03-23T05:46:51.000Z
[Kaleido-subs]/Completed/Joshiraku [BD]/JoshirakuBD_12.py
LightArrowsEXE/Encoding-Projects
4ea96a5b25a7710f615ada5ff25949c496492b53
[ "MIT" ]
null
null
null
[Kaleido-subs]/Completed/Joshiraku [BD]/JoshirakuBD_12.py
LightArrowsEXE/Encoding-Projects
4ea96a5b25a7710f615ada5ff25949c496492b53
[ "MIT" ]
12
2019-04-30T06:16:13.000Z
2022-03-14T16:15:07.000Z
from typing import Optional, Sequence, Tuple, Union import vapoursynth as vs from lvsfunc.misc import source from vardautomation import (JAPANESE, FileInfo, MplsReader, PresetAAC, PresetBD, PresetChapXML, VPath) from project_module import encoder as enc, flt core = vs.core core.num_thread...
41.503356
118
0.681921
7de63304dbfcab2afa62ffdc0e7b383ab0f529aa
311
py
Python
spoticly/commands/base.py
onhernandes/spoticly
ed109f4ea118c57557af1e7a10120a120fd29fa4
[ "MIT" ]
6
2018-12-23T16:16:36.000Z
2019-01-11T12:10:49.000Z
spoticly/commands/base.py
onhernandes/spoticly
ed109f4ea118c57557af1e7a10120a120fd29fa4
[ "MIT" ]
null
null
null
spoticly/commands/base.py
onhernandes/spoticly
ed109f4ea118c57557af1e7a10120a120fd29fa4
[ "MIT" ]
null
null
null
"""The base command.""" class Base(object): """A base command.""" def __init__(self, options, *args, **kwargs): self.options = options self.args = args self.kwargs = kwargs def run(self): raise NotImplementedError("You must implement the run() method yourself!")
22.214286
82
0.607717
fbe74492ae45aa540ea7eaa69aa2ee5f2e5f47ca
4,410
py
Python
models/models.py
XLEric/ganimation
024fdc0adbeae582a139635a5141b2737969bc48
[ "MIT" ]
null
null
null
models/models.py
XLEric/ganimation
024fdc0adbeae582a139635a5141b2737969bc48
[ "MIT" ]
null
null
null
models/models.py
XLEric/ganimation
024fdc0adbeae582a139635a5141b2737969bc48
[ "MIT" ]
null
null
null
import os import torch from torch.optim import lr_scheduler class ModelsFactory: def __init__(self): pass @staticmethod def get_by_name(model_name, *args, **kwargs): model = None if model_name == 'ganimation': from .ganimation import GANimation model = GANi...
33.157895
117
0.650567
79ea97dec7e116370e4585a8ee5f40b4bfb9c62c
4,486
py
Python
sktime/experiments/losses.py
fkiraly/sktime
3cd0064f7750844178b60d67422b083b5004131a
[ "BSD-3-Clause" ]
2
2021-01-19T05:10:50.000Z
2021-01-22T18:39:56.000Z
sktime/experiments/losses.py
ClaudiaSanches/sktime
63e7839e80ca6d5fe5fc4f33389ec3bcacd8aa59
[ "BSD-3-Clause" ]
1
2019-11-05T16:48:00.000Z
2019-11-05T16:48:00.000Z
sktime/experiments/losses.py
ClaudiaSanches/sktime
63e7839e80ca6d5fe5fc4f33389ec3bcacd8aa59
[ "BSD-3-Clause" ]
1
2019-11-05T16:34:32.000Z
2019-11-05T16:34:32.000Z
import collections import pandas as pd class Losses(object): """ Calculates prediction losses on test datasets achieved by the trained estimators. When the class is instantiated it creates a dictionary that stores the losses. Parameters ---------- metric: `mlaut.analyze_results.scores` object ...
44.86
582
0.671868
6d16542907872c5482c73dca780a6ef723e1d78a
2,107
py
Python
Filters/Core/Testing/Python/QuadricDecimation.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,755
2015-01-03T06:55:00.000Z
2022-03-29T05:23:26.000Z
Filters/Core/Testing/Python/QuadricDecimation.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
29
2015-04-23T20:58:30.000Z
2022-03-02T16:16:42.000Z
Filters/Core/Testing/Python/QuadricDecimation.py
forestGzh/VTK
bc98327275bd5cfa95c5825f80a2755a458b6da8
[ "BSD-3-Clause" ]
1,044
2015-01-05T22:48:27.000Z
2022-03-31T02:38:26.000Z
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # pipeline stuff # pl3d = vtk.vtkMultiBlockPLOT3DReader() pl3d.SetXYZFileName("" + str(VTK_DATA_ROOT) + "/Data/combxyz.bin") pl3d.SetQFileName("" + str(VTK_DATA_ROOT) + "/Data/combq.bin") pl3d.SetScalarFunctionNu...
29.676056
66
0.792596
ccb0074610ea1596f00ac813ab920561a6fb95bc
528
py
Python
solutions/python/the-salesman.py
harimm/hackerrank-solutions
359e37b160d976da7a30dbc9b80da89e3335ddc0
[ "MIT" ]
null
null
null
solutions/python/the-salesman.py
harimm/hackerrank-solutions
359e37b160d976da7a30dbc9b80da89e3335ddc0
[ "MIT" ]
null
null
null
solutions/python/the-salesman.py
harimm/hackerrank-solutions
359e37b160d976da7a30dbc9b80da89e3335ddc0
[ "MIT" ]
null
null
null
# Solution for the problem "The Salesman" # https://www.hackerrank.com/contests/world-codesprint-12/challenges/the-salesman # Approach we are taking is to find the maximum and minimum numbers and then find their difference # Number of test cases t = int(input()) for i in range(t): # No. of houses. We are not goi...
29.333333
98
0.683712
0c0665d26a47bcde032ffc10b9c40d1c98c4dfdc
23,425
py
Python
reviewboard/accounts/forms/pages.py
b1pb1p/reviewboard
b13aca3b88bc16d3c4258adce5df79cd1da577d3
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/accounts/forms/pages.py
josnin/reviewboard
e1213abd5151e059548d5b75e514e68e76b89b48
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/accounts/forms/pages.py
josnin/reviewboard
e1213abd5151e059548d5b75e514e68e76b89b48
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
from __future__ import unicode_literals import logging from collections import OrderedDict from django import forms from django.contrib import messages from django.core.urlresolvers import reverse from django.forms import widgets from django.http import HttpResponseRedirect from django.utils.six.moves.urllib.parse im...
32.762238
79
0.596841
916b1dd78984b393da46ccb78736222bad429085
1,541
py
Python
tests/backends/aiida_django/migrations/test_migrations_0048_computer_name_to_label.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
180
2019-07-12T07:45:26.000Z
2022-03-22T13:16:57.000Z
tests/backends/aiida_django/migrations/test_migrations_0048_computer_name_to_label.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
2,325
2019-07-04T13:41:44.000Z
2022-03-31T12:17:10.000Z
tests/backends/aiida_django/migrations/test_migrations_0048_computer_name_to_label.py
azadoks/aiida-core
b806b7fef8fc79090deccfe2019b77cb922e0581
[ "MIT", "BSD-3-Clause" ]
88
2019-07-06T01:42:39.000Z
2022-03-18T14:20:09.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
45.323529
98
0.560026
553d15771435eba907f3dba5c81ff3991dc865ad
5,322
py
Python
scripts/generate_sync_api.py
arjun27/playwright-python
048cc223899f382aee1806ddefa8932f24c633a9
[ "Apache-2.0" ]
1
2021-03-16T09:47:01.000Z
2021-03-16T09:47:01.000Z
scripts/generate_sync_api.py
yetone/playwright-python
d1b6a1bd08609214f421792b4422f1bb722156e7
[ "Apache-2.0" ]
null
null
null
scripts/generate_sync_api.py
yetone/playwright-python
d1b6a1bd08609214f421792b4422f1bb722156e7
[ "Apache-2.0" ]
1
2020-12-10T10:53:40.000Z
2020-12-10T10:53:40.000Z
#!/usr/bin/env python # Copyright (c) Microsoft 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 l...
36.703448
99
0.578354
bb7bfbfc84b90baad3b059b50732725046f82ca9
16,455
py
Python
libs/cidre/cidre/draw.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
2
2020-09-22T09:59:56.000Z
2022-01-31T20:00:49.000Z
libs/cidre/cidre/draw.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
1
2021-07-20T20:01:46.000Z
2021-07-20T21:21:03.000Z
libs/cidre/cidre/draw.py
YuzhongHuangCS/journal-citation-cartels
7b82d9e081555f5b40eb6cc6f44f65ce1c3c1a0f
[ "BSD-2-Clause" ]
3
2021-03-09T04:38:56.000Z
2021-07-13T04:49:15.000Z
import pandas as pd import numpy as np from scipy import sparse import seaborn as sns import matplotlib.pyplot as plt from matplotlib import patches import matplotlib.colors as colors import textwrap import re class DrawCartel: def __init__(self): self.theta_1 = np.pi * 0.7 self.angle_margin = 3 *...
34.936306
98
0.489274
2f472ab1931d145ebe23127be4e83a0bd901ebbc
664
py
Python
fv3gfs/util/_capture_stream.py
ai2cm/fv3gfs-util
56fd8e93cefe6951396717a49390c4020a0bc20c
[ "BSD-3-Clause" ]
1
2021-01-05T20:55:01.000Z
2021-01-05T20:55:01.000Z
fv3gfs/util/_capture_stream.py
VulcanClimateModeling/fv3gfs-util
1d7c302b836befe905d776b0a972f464bfd3a255
[ "BSD-3-Clause" ]
34
2020-11-10T18:06:18.000Z
2021-07-20T22:46:31.000Z
fv3gfs/util/_capture_stream.py
ai2cm/fv3gfs-util
56fd8e93cefe6951396717a49390c4020a0bc20c
[ "BSD-3-Clause" ]
1
2021-08-10T21:36:44.000Z
2021-08-10T21:36:44.000Z
import contextlib import tempfile import os import io @contextlib.contextmanager def capture_stream(stream): out_stream = io.BytesIO() # parent process: # close the reading end, we won't need this orig_file_handle = os.dup(stream.fileno()) with tempfile.NamedTemporaryFile() as out: # ov...
25.538462
79
0.667169
97732b1a1326669a4d6afb0ed54364e582552f33
865
py
Python
src/commands/fire/fire_city_restaurants_download.py
jherrerotardon/spies
ec855b3c1bd207c8ee2beb829e446fa575354c59
[ "Apache-2.0" ]
null
null
null
src/commands/fire/fire_city_restaurants_download.py
jherrerotardon/spies
ec855b3c1bd207c8ee2beb829e446fa575354c59
[ "Apache-2.0" ]
null
null
null
src/commands/fire/fire_city_restaurants_download.py
jherrerotardon/spies
ec855b3c1bd207c8ee2beb829e446fa575354c59
[ "Apache-2.0" ]
null
null
null
from pyframework.exceptions.custom_exceptions import ArgumentException from .base_fire import BaseFire, Event from ...models.city import City class FireCityRestaurantsDownload(BaseFire): _name = 'fire:cityDownload' _description = 'Launch an event to download entities info from city.' _arguments = [ ...
24.714286
73
0.63237
fa64eea4b2b6d34c5a01342722ac30c4f9cd587b
3,946
py
Python
drive.py
dhiegomaga/Behavioral-Cloning
d9577beb94a2e5ab683728d2bef3fc94947c7dd0
[ "MIT" ]
null
null
null
drive.py
dhiegomaga/Behavioral-Cloning
d9577beb94a2e5ab683728d2bef3fc94947c7dd0
[ "MIT" ]
null
null
null
drive.py
dhiegomaga/Behavioral-Cloning
d9577beb94a2e5ab683728d2bef3fc94947c7dd0
[ "MIT" ]
null
null
null
import argparse import base64 from datetime import datetime import os import shutil # Prevent from using GPU os.environ["CUDA_VISIBLE_DEVICES"]="-1" import numpy as np import socketio import eventlet import eventlet.wsgi from PIL import Image from flask import Flask from io import BytesIO from keras.models import l...
27.594406
89
0.639128
e41ebb8845f0d7ada367a6a8b9f512be2dd89b22
31,389
py
Python
gslib/tests/test_rewrite.py
maxshine/gsutil
c81d67f2286402accfcdf79f0199844949bebefc
[ "Apache-2.0" ]
1,894
2015-04-17T18:29:53.000Z
2022-03-28T22:41:06.000Z
gslib/tests/test_rewrite.py
maxshine/gsutil
c81d67f2286402accfcdf79f0199844949bebefc
[ "Apache-2.0" ]
4,640
2015-07-08T16:19:08.000Z
2019-12-02T15:01:27.000Z
gslib/tests/test_rewrite.py
maxshine/gsutil
c81d67f2286402accfcdf79f0199844949bebefc
[ "Apache-2.0" ]
698
2015-06-02T19:18:35.000Z
2022-03-29T16:57:15.000Z
# -*- coding: utf-8 -*- # Copyright 2015 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 require...
47.05997
80
0.655007
76c7f1498069dc61b65eadc995da762a3f6bdbea
11,446
py
Python
petabvis/utils.py
PEtab-dev/petab-interactive-viz
c24039e919bf08eb01bb93ae72701c270a99b913
[ "BSD-3-Clause" ]
6
2021-01-29T14:17:27.000Z
2021-02-04T18:04:54.000Z
petabvis/utils.py
PEtab-dev/petabvis
c24039e919bf08eb01bb93ae72701c270a99b913
[ "BSD-3-Clause" ]
3
2021-03-04T09:32:12.000Z
2021-03-23T16:42:57.000Z
petabvis/utils.py
PEtab-dev/petabvis
c24039e919bf08eb01bb93ae72701c270a99b913
[ "BSD-3-Clause" ]
null
null
null
import warnings import numpy as np import pandas as pd import petab.C as ptc import scipy from PySide6 import QtCore from PySide6.QtWidgets import QComboBox import matplotlib.pyplot as plt import pyqtgraph as pg def get_legend_name(plot_spec: pd.Series): """ Return the plot title of the plot specification ...
26.43418
77
0.650446
eb4c086ef83f644f754023b484af770e47c89233
4,785
py
Python
server/rest/competitor.py
jjojala/results
bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f
[ "Apache-2.0" ]
null
null
null
server/rest/competitor.py
jjojala/results
bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f
[ "Apache-2.0" ]
7
2015-11-25T22:26:25.000Z
2016-10-18T22:14:35.000Z
server/rest/competitor.py
jjojala/results
bfcf6820ff4b2dd05d8974bc98b0a59bc6c3585f
[ "Apache-2.0" ]
null
null
null
from flask import request from flask_restful import Resource, reqparse from .notification import CREATED, UPDATED, PATCHED, REMOVED import rest.timeservice as timeservice from util.patch import patch, PatchConflict competitors = [ ] _NOTIFICATION_ARG = "notifications" _API_ARG = "api" _TYPE = "Competitor" class Comp...
39.221311
90
0.443678
137f36702455b49c44c351bfa71bcad0b6d1a270
994
py
Python
timeflux_ml/utils/sklearn_helpers.py
sylvchev/timeflux_ml
31fefc41ff5f62fc770e87c2963e872768301de3
[ "MIT" ]
2
2019-12-11T10:53:19.000Z
2020-03-21T17:35:21.000Z
timeflux_ml/utils/sklearn_helpers.py
sylvchev/timeflux_ml
31fefc41ff5f62fc770e87c2963e872768301de3
[ "MIT" ]
1
2019-04-03T13:45:26.000Z
2019-04-03T13:45:26.000Z
timeflux_ml/utils/sklearn_helpers.py
sylvchev/timeflux_ml
31fefc41ff5f62fc770e87c2963e872768301de3
[ "MIT" ]
1
2019-04-03T09:17:36.000Z
2019-04-03T09:17:36.000Z
from sklearn.pipeline import Pipeline from timeflux_ml.utils.import_helpers import make_object def make_pipeline(steps, params): """ Args: steps (dict): (name, module_name, method_name) Tuples to specify steps of the pipeline to fit. params (dict): string -> object. Parameters passed to the...
36.814815
103
0.642857
2a917af395c9ea6d4560d6b6ec791ea3516362c0
2,516
py
Python
context-n.py
adlez27/context-n
37660632d8b0ec3837bae779cf1c0fa64248ae13
[ "MIT" ]
2
2019-08-05T09:32:57.000Z
2020-07-16T21:58:52.000Z
context-n.py
adlez27/context-n
37660632d8b0ec3837bae779cf1c0fa64248ae13
[ "MIT" ]
2
2019-08-25T00:03:04.000Z
2021-07-06T06:27:30.000Z
context-n.py
adlez27/context-n
37660632d8b0ec3837bae779cf1c0fa64248ae13
[ "MIT" ]
null
null
null
import sys import os.path import shutil import configparser ust = configparser.RawConfigParser(allow_no_value=True) ust.optionxform = lambda option: option ust.read(sys.argv[1]) config = configparser.RawConfigParser(allow_no_value=True) config.optionxform = lambda option: option if (os.path.exists(ust['#SE...
38.707692
125
0.562798
793c87b3beb68a8c920d9048fc0f9192a5476779
1,273
py
Python
src/__init__.py
DiSiqueira/DSImgur
11bb392a0253adf278d3dbfb469c41eec14c5706
[ "MIT" ]
119
2016-01-28T11:02:58.000Z
2020-11-30T15:05:09.000Z
src/__init__.py
DiSiqueira/Imgur
11bb392a0253adf278d3dbfb469c41eec14c5706
[ "MIT" ]
3
2016-03-20T16:45:13.000Z
2017-09-29T15:12:07.000Z
src/__init__.py
DiSiqueira/Imgur
11bb392a0253adf278d3dbfb469c41eec14c5706
[ "MIT" ]
6
2016-04-03T02:59:26.000Z
2019-04-17T03:19:09.000Z
#!/usr/bin/env python """ Diego Martins de Siqueira MIT License DSImgur - Easily download images, Albums, Galleries and entire Profiles from Imgur. The most powerful Imgur Downloader!! You can use as program or as module! """ import sys import argparse from DSImgur import DSImgur def main(argv=sys.argv[0]): parser ...
28.931818
166
0.725844
261af8a0f5645c441c5fcb6f5cbbd8b76519ebd4
1,702
py
Python
etc/n_CR/opt_2/pp2.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
etc/n_CR/opt_2/pp2.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
etc/n_CR/opt_2/pp2.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
1
2018-10-02T17:51:57.000Z
2018-10-02T17:51:57.000Z
#!/usr/bin/env ipython from pylab import * from load_data import sh, mc, cr import funcs as ff #++++++++++++++++++++++++++++++++++++++++++++++++++++ mc.cc = mc.t>0.0 mc.tout = 3.0*mc.t[mc.cc]+1.0 mc.rms = mc.avr[mc.cc] cr.mc.crs = cr.mc.avr[mc.cc] sh.cc = sh.t<1.0 sh.tout = sh.t[sh.cc] sh.rms = sh.avr[sh.cc] ...
25.787879
84
0.525264
5cb040572bc6f348ca181000ce15b6f18e1d0332
1,190
py
Python
configs/detection/fsce/voc/split2/fsce_r101_fpn_voc-split2_3shot-fine-tuning.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
376
2021-11-23T13:29:57.000Z
2022-03-30T07:22:14.000Z
configs/detection/fsce/voc/split2/fsce_r101_fpn_voc-split2_3shot-fine-tuning.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
51
2021-11-23T14:45:08.000Z
2022-03-30T03:37:15.000Z
configs/detection/fsce/voc/split2/fsce_r101_fpn_voc-split2_3shot-fine-tuning.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
56
2021-11-23T14:02:27.000Z
2022-03-31T09:01:50.000Z
_base_ = [ '../../../_base_/datasets/fine_tune_based/few_shot_voc.py', '../../../_base_/schedules/schedule.py', '../../fsce_r101_fpn.py', '../../../_base_/default_runtime.py' ] # classes splits are predefined in FewShotVOCDataset # FewShotVOCDefaultDataset predefine ann_cfg for model reproducibility. data =...
41.034483
71
0.720168
849f40e3005f3288885373a5d1d68079ab91084f
40,586
py
Python
train.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
5
2022-03-03T00:42:03.000Z
2022-03-25T04:29:56.000Z
train.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
null
null
null
train.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
1
2022-03-22T23:34:00.000Z
2022-03-22T23:34:00.000Z
#!/usr/bin/env python3 """ ImageNet Training Script This is intended to be a lean and easily modifiable ImageNet training script that reproduces ImageNet training results with some of the latest networks and training techniques. It favours canonical PyTorch and standard Python style over trying to be able to 'do it al...
48.605988
137
0.641773
ada7b61ec6075b6c5ba84a7c067b5e1c1c1fc0f9
1,755
py
Python
data/dataset.py
Janspiry/distributed-pytorch-template
8b612c8877d4ec3ffba28fcb3bc1ccfda44b6c10
[ "MIT" ]
3
2022-01-30T07:10:02.000Z
2022-02-11T10:16:43.000Z
data/dataset.py
Janspiry/A-Seed-Project-For-Deep-Learning-by-Pytorch
8b612c8877d4ec3ffba28fcb3bc1ccfda44b6c10
[ "MIT" ]
null
null
null
data/dataset.py
Janspiry/A-Seed-Project-For-Deep-Learning-by-Pytorch
8b612c8877d4ec3ffba28fcb3bc1ccfda44b6c10
[ "MIT" ]
null
null
null
import torch.utils.data as data from torchvision import transforms from PIL import Image import os import os.path from .auto_augment import AutoAugment, ImageNetAutoAugment IMG_EXTENSIONS = [ '.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP', ] def is_image_file(filename): ...
28.770492
91
0.579487
224741a87ab106a561bf76f57b580f85d912f2fc
5,479
py
Python
ve/unit/test_if_else.py
furiosa-ai/pyvsc
612de9e6244c685a3df1972e4860abfe35b614e1
[ "Apache-2.0" ]
54
2020-03-28T17:54:00.000Z
2022-03-27T08:53:13.000Z
ve/unit/test_if_else.py
furiosa-ai/pyvsc
612de9e6244c685a3df1972e4860abfe35b614e1
[ "Apache-2.0" ]
124
2020-04-10T03:06:03.000Z
2022-03-24T18:35:46.000Z
ve/unit/test_if_else.py
furiosa-ai/pyvsc
612de9e6244c685a3df1972e4860abfe35b614e1
[ "Apache-2.0" ]
17
2020-04-09T21:47:58.000Z
2022-02-23T19:37:37.000Z
# 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 ...
29.299465
62
0.441321
13330889323200f12c00344088dd7bba33fbc99e
6,966
py
Python
src/flask_track_usage/storage/sql.py
gouthambs/flask-track-usage
81c3cb3555498e0438c300000f4a5457352dc719
[ "BSD-3-Clause" ]
null
null
null
src/flask_track_usage/storage/sql.py
gouthambs/flask-track-usage
81c3cb3555498e0438c300000f4a5457352dc719
[ "BSD-3-Clause" ]
null
null
null
src/flask_track_usage/storage/sql.py
gouthambs/flask-track-usage
81c3cb3555498e0438c300000f4a5457352dc719
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014 Gouthaman Balaraman # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # (1) Redistributions of source code must retain the above copyright # notice, this list of con...
39.355932
78
0.562016
5a00fb91d00b28593bd9a71fb509a39e0f5753f3
2,346
py
Python
shatter/QM_helper.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-06-10T05:55:05.000Z
2016-06-10T05:55:05.000Z
shatter/QM_helper.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2016-02-05T06:59:46.000Z
2016-02-05T06:59:46.000Z
shatter/QM_helper.py
jisazaTappsi/mastermind
bb096119b6e062611dec8e8062feb5f838d5a198
[ "MIT" ]
1
2019-03-12T07:49:01.000Z
2019-03-12T07:49:01.000Z
#!/usr/bin/env python """Defines Quine McCluskey helper methods""" from shatter import qm from shatter.rules import Rules from shatter.util import helpers as h from shatter.code_generator import translate_to_python_expression __author__ = 'juan pablo isaza' def from_table_to_ones(table): """ Gets the ones ...
34
106
0.671355
7c49058b086073206457d42f3aa42786669003f2
2,456
py
Python
dist_matrix/tests/test_helper.py
sparks-baird/wasserstein-distance
a37b5c2a0f7322cd8edb1432148445cf5de468a2
[ "MIT" ]
5
2021-12-10T15:48:55.000Z
2022-03-29T15:28:06.000Z
dist_matrix/tests/test_helper.py
sparks-baird/wasserstein-distance
a37b5c2a0f7322cd8edb1432148445cf5de468a2
[ "MIT" ]
null
null
null
dist_matrix/tests/test_helper.py
sparks-baird/wasserstein-distance
a37b5c2a0f7322cd8edb1432148445cf5de468a2
[ "MIT" ]
null
null
null
# """ # Test helper functions for distance matrix calculations. # """ # import os # import numpy as np # from numba.cuda.testing import unittest, CUDATestCase # # import numba.cuda.kernels.device.helper as hp # import mat_discover.ElM2D.helper as hp # from numpy.testing import assert_allclose, assert_equal # bits = ...
28.229885
62
0.561889
0f1e9292ac8c3b8226f822a526fbb927c884fc34
1,066
py
Python
N-aryTreePreorderTraversal589.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
N-aryTreePreorderTraversal589.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
N-aryTreePreorderTraversal589.py
Bit64L/LeetCode-Python-
64847cbb1adcaca4561b949e8acc52e8e031a6cb
[ "MIT" ]
null
null
null
""" # Definition for a Node. """ class TreeNode(object): def __init__(self, val, children): self.val = val self.children = children class Solution(object): def preorder(self, root): ans = [] if root is None: return ans stack = [] stack.append(roo...
20.5
39
0.510319
f603c6a3ef256e8c039ec7e86699692f76b12df2
380
py
Python
build/lib/YAPI_heureka_code/yapi.py
heureka-code/YAPI-heureka-code
ea6390593d873d3f5c7c906c902ed55cb707bf24
[ "MIT" ]
null
null
null
build/lib/YAPI_heureka_code/yapi.py
heureka-code/YAPI-heureka-code
ea6390593d873d3f5c7c906c902ed55cb707bf24
[ "MIT" ]
null
null
null
build/lib/YAPI_heureka_code/yapi.py
heureka-code/YAPI-heureka-code
ea6390593d873d3f5c7c906c902ed55cb707bf24
[ "MIT" ]
null
null
null
from .Lexer import Lexer from .token_gruppen import YAPIGroup, TokenGruppen from .token_data import Token class YAPI: def __init__(self, group: YAPIGroup): self.__group: TokenGruppen = TokenGruppen(group) pass def execute(self, statement) -> list[Token]: lexer = Lexer(self....
25.333333
57
0.668421
b7983fe071c361a33cfdb142c714004ecd01ea17
5,923
py
Python
Kerberos/raghuram/tgs.py
mohith7548/Cryptography-LAB
05757072e38558134f2885d36915bfb0c5a26e9b
[ "MIT" ]
2
2021-02-21T18:04:19.000Z
2021-02-23T06:48:10.000Z
Kerberos/raghuram/tgs.py
mohith7548/Cryptography-LAB
05757072e38558134f2885d36915bfb0c5a26e9b
[ "MIT" ]
null
null
null
Kerberos/raghuram/tgs.py
mohith7548/Cryptography-LAB
05757072e38558134f2885d36915bfb0c5a26e9b
[ "MIT" ]
2
2019-11-29T01:06:03.000Z
2019-12-07T19:34:45.000Z
import socket import threading import time import pyDes import string import random #####################Already Shared Keys###################################### Key_V="ac3Hn57a" # already shared between application server tgs server Key_TGS="59ZFTjCt" # already shared with AS and TGS ##################### Session K...
31.673797
119
0.54854
cde9a962e92ae72a22ff52e1a8cb48a8c59bb5c2
2,019
py
Python
kunquat/tracker/ui/controller/kqtivalidator.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
13
2016-09-01T21:52:49.000Z
2022-03-24T06:07:20.000Z
kunquat/tracker/ui/controller/kqtivalidator.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
290
2015-03-14T10:59:25.000Z
2022-03-20T08:32:17.000Z
kunquat/tracker/ui/controller/kqtivalidator.py
kagu/kunquat
83a2e972121e6a114ecc5ef4392b501ce926bb06
[ "CC0-1.0" ]
7
2015-03-19T13:28:11.000Z
2019-09-03T16:21:16.000Z
# -*- coding: utf-8 -*- # # Author: Tomi Jylhä-Ollila, Finland 2016-2018 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related or neighboring rights to Kunquat. # from k...
30.134328
83
0.647845
b1e5262264f13e0c492bececfb8b0bd8f9e961c5
6,830
py
Python
sutils/applications/cancel/test_cancel.py
t-mertz/slurm_utils
6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd
[ "MIT" ]
null
null
null
sutils/applications/cancel/test_cancel.py
t-mertz/slurm_utils
6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd
[ "MIT" ]
null
null
null
sutils/applications/cancel/test_cancel.py
t-mertz/slurm_utils
6fc9709f62e2bca1387ea9c7a5975f0f0be5d0dd
[ "MIT" ]
null
null
null
import unittest from unittest.mock import patch, call, Mock import getpass import subprocess from . import cancel from ...test import test def fix_mock_popen(func): def wrapper(self, popen, get_jobs): process_mock = Mock() attrs = {'communicate.return_value': (b'', b'')} process_mock.confi...
37.734807
96
0.561933
53327b6b7c0bb9c3affd01e877f2cb15f4968c26
5,189
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_vpnvserver_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
1
2015-04-05T21:21:26.000Z
2015-04-05T21:21:26.000Z
nssrc/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_vpnvserver_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
1
2017-01-20T22:56:58.000Z
2017-01-20T22:56:58.000Z
nssrc/com/citrix/netscaler/nitro/resource/config/audit/auditnslogpolicy_vpnvserver_binding.py
benfinke/ns_python
d651d7aa01d7dc63c1cd435c7b3314d7f5b26659
[ "Apache-2.0" ]
6
2015-04-21T13:14:08.000Z
2020-12-03T07:27:52.000Z
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # 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 l...
28.355191
137
0.72461
bc3063da49d6a07aaabf4c6e400ea075cf719e61
1,279
py
Python
src/Learning/visualizations.py
olekscode/NameGen
bb0683194df15c9709a1d09252c638a80999b40c
[ "MIT" ]
null
null
null
src/Learning/visualizations.py
olekscode/NameGen
bb0683194df15c9709a1d09252c638a80999b40c
[ "MIT" ]
null
null
null
src/Learning/visualizations.py
olekscode/NameGen
bb0683194df15c9709a1d09252c638a80999b40c
[ "MIT" ]
null
null
null
import constants import numpy as np import matplotlib.pyplot as plt import seaborn as sns sns.set() COLORS = { 'green': sns.xkcd_rgb["faded green"], 'red': sns.xkcd_rgb["pale red"], 'blue': sns.xkcd_rgb["medium blue"], 'yellow': sns.xkcd_rgb["ochre"] } def plot_confusion_dataframe(df, nrows=5, with...
25.078431
75
0.639562
f4318c108c7e51480c6e64b4defb19b630bdb87f
10,177
py
Python
Lib/distutils/tests/test_filelist.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/distutils/tests/test_filelist.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/distutils/tests/test_filelist.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
"""Tests dla distutils.filelist.""" zaimportuj os zaimportuj re zaimportuj unittest z distutils zaimportuj debug z distutils.log zaimportuj WARN z distutils.errors zaimportuj DistutilsTemplateError z distutils.filelist zaimportuj glob_to_re, translate_pattern, FileList z test.support zaimportuj captured_stdout, run_un...
33.923333
79
0.554289
8113d52abefbf2b463fd71a5f1031403fcb968ce
276
py
Python
sample/models.py
ernestom/django-google-maps
d415971901fd114019d0483f98a22aa7c897e8bf
[ "BSD-2-Clause" ]
205
2015-01-18T21:03:08.000Z
2022-03-26T17:02:05.000Z
sample/models.py
ernestom/django-google-maps
d415971901fd114019d0483f98a22aa7c897e8bf
[ "BSD-2-Clause" ]
55
2015-05-06T18:36:41.000Z
2022-03-22T11:48:11.000Z
sample/models.py
ernestom/django-google-maps
d415971901fd114019d0483f98a22aa7c897e8bf
[ "BSD-2-Clause" ]
92
2015-02-16T20:01:31.000Z
2022-03-02T14:15:36.000Z
from django.db import models from django_google_maps.fields import AddressField, GeoLocationField class SampleModel(models.Model): address = AddressField(max_length=100) geolocation = GeoLocationField(blank=True) def __str__(self): return self.address
23
68
0.768116
ad8b4d31df93a9f8f2f3978ddfb089cc492cf94e
1,149
py
Python
scripts/seperate_two_real.py
TechieBoy/deepfake-detection
5bc7164710a32a64a65dd55e09aa58a030e8d0ee
[ "MIT" ]
null
null
null
scripts/seperate_two_real.py
TechieBoy/deepfake-detection
5bc7164710a32a64a65dd55e09aa58a030e8d0ee
[ "MIT" ]
null
null
null
scripts/seperate_two_real.py
TechieBoy/deepfake-detection
5bc7164710a32a64a65dd55e09aa58a030e8d0ee
[ "MIT" ]
null
null
null
import pandas as pd from shutil import copy import os import torch import csv df = pd.read_csv("~/deepfake/raw/combined_metadata.csv") real_videos = df[df.label == "REAL"] cf = {} fd = {} small_folder = "/home/teh_devs/deepfake/small" for i in range(50): folder_name = f"/home/teh_devs/deepfake/raw/dfdc_train_...
28.02439
87
0.642298
880d4e8252c1a261f88fde4f17ee817369ea334b
1,006
py
Python
treasuryio/tweetbot.py
csvsoundsystem/pytreasuryio
728caf815d16cd2f3548d8b67c84313de76f9be7
[ "MIT" ]
2
2017-10-09T23:29:02.000Z
2019-08-12T18:20:27.000Z
treasuryio/tweetbot.py
csvsoundsystem/pytreasuryio
728caf815d16cd2f3548d8b67c84313de76f9be7
[ "MIT" ]
null
null
null
treasuryio/tweetbot.py
csvsoundsystem/pytreasuryio
728caf815d16cd2f3548d8b67c84313de76f9be7
[ "MIT" ]
3
2019-08-12T18:20:33.000Z
2021-01-11T21:26:47.000Z
import os import yaml from datetime import datetime import tweepy from query import query def _connect_to_twitter(config = os.path.expanduser("~/.twitter.yml")): conf = yaml.safe_load(open(config)) auth = tweepy.OAuthHandler(conf['consumer_key'], conf['consumer_secret']) auth.set_access_token(conf['acces...
23.952381
93
0.656064
34dd363fce3a9b2a38da5f7e1afb4f26d0a4f796
8,922
py
Python
mypython/Lib/site-packages/pandas/core/accessor.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
mypython/Lib/site-packages/pandas/core/accessor.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
null
null
null
mypython/Lib/site-packages/pandas/core/accessor.py
lilianatang/data-modelling-with-postgresql
4b5d057d23c346cc36695dc0548f11908aeb5431
[ "Apache-2.0" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
""" accessor.py contains base classes for implementing accessor properties that can be mixed into or pinned onto other pandas classes. """ from typing import FrozenSet, List, Set import warnings from pandas.util._decorators import doc class DirNamesMixin: _accessors: Set[str] = set() _hidden_...
30.040404
85
0.594486
86a6d43260cc34811b2167f52ced115d882c7e82
1,308
py
Python
ica/paraphraseator/callbacks/LoggerCallback.py
pedrorio/image_caption_augmentation
683ed90cecd4bc12f65dc238f1ff2dedbbc1b666
[ "MIT" ]
null
null
null
ica/paraphraseator/callbacks/LoggerCallback.py
pedrorio/image_caption_augmentation
683ed90cecd4bc12f65dc238f1ff2dedbbc1b666
[ "MIT" ]
null
null
null
ica/paraphraseator/callbacks/LoggerCallback.py
pedrorio/image_caption_augmentation
683ed90cecd4bc12f65dc238f1ff2dedbbc1b666
[ "MIT" ]
null
null
null
import os import logging from pytorch_lightning import Callback, seed_everything seed_everything(42) class LoggerCallback(Callback): def __init__(self): self.logger = logging.getLogger(__name__) def on_validation_end(self, trainer, module): self.logger.info("***** Validation results *****")...
33.538462
84
0.570336
1504a3b5fc3bcfbf476c45b92bb608923c6f58dc
1,838
py
Python
utils.py
swapno-ahmed/CoursePicker
60260a283faac5988ccb1bf70c31db013ec71602
[ "MIT" ]
3
2022-01-23T06:46:22.000Z
2022-01-23T07:03:06.000Z
utils.py
swapno-ahmed/CoursePicker
60260a283faac5988ccb1bf70c31db013ec71602
[ "MIT" ]
null
null
null
utils.py
swapno-ahmed/CoursePicker
60260a283faac5988ccb1bf70c31db013ec71602
[ "MIT" ]
null
null
null
from collections import defaultdict import pandas as pd def make_ds(data): follow_up = defaultdict(list) prereq_count = defaultdict(int) start = [] for i, row in data.iterrows(): follow_up[i] = [] prereq_count[i] = 0 for i, row in data.iterrows(): for col in data.loc[i]: ...
28.71875
95
0.642002
b7b9ed2b92e6a2bea5fa9d4dfa86026a076a4dd6
475
py
Python
env/Lib/site-packages/plotly/validators/isosurface/colorbar/_outlinewidth.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/isosurface/colorbar/_outlinewidth.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/isosurface/colorbar/_outlinewidth.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="outlinewidth", parent_name="isosurface.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, ...
31.666667
85
0.650526
769724780eb110fef8772210efaf064a92b8ca70
8,041
py
Python
classla/models/lemma/trainer.py
lkrsnik/classla-stanfordnlp
1ab8771aadfbc648cec51b4c6716797f698e67ff
[ "Apache-2.0" ]
1
2020-07-04T21:06:20.000Z
2020-07-04T21:06:20.000Z
classla/models/lemma/trainer.py
lkrsnik/classla-stanfordnlp
1ab8771aadfbc648cec51b4c6716797f698e67ff
[ "Apache-2.0" ]
null
null
null
classla/models/lemma/trainer.py
lkrsnik/classla-stanfordnlp
1ab8771aadfbc648cec51b4c6716797f698e67ff
[ "Apache-2.0" ]
null
null
null
""" A trainer class to handle training and testing of models. """ import sys import numpy as np from collections import Counter import torch from torch import nn import torch.nn.init as init import classla.models.common.seq2seq_constant as constant from classla.models.common.seq2seq_model import Seq2SeqModel from cla...
38.845411
116
0.575053
ab143492ef3bc0b77544ce29a49d7b8d05cbbdf0
317
py
Python
examples/hexbin_marginals.py
tomasojea/seaborn
9b03f8138949402a351fa06e2598144812aae586
[ "BSD-3-Clause" ]
2
2020-07-24T04:45:51.000Z
2020-09-04T11:10:27.000Z
examples/hexbin_marginals.py
tomasojea/seaborn
9b03f8138949402a351fa06e2598144812aae586
[ "BSD-3-Clause" ]
1
2020-10-31T23:31:41.000Z
2020-10-31T23:31:41.000Z
examples/hexbin_marginals.py
tomasojea/seaborn
9b03f8138949402a351fa06e2598144812aae586
[ "BSD-3-Clause" ]
2
2020-11-02T18:25:54.000Z
2021-07-23T16:15:34.000Z
""" Hexbin plot with marginal distributions ======================================= _thumb: .45, .4 """ import numpy as np import seaborn as sns sns.set(style="ticks") rs = np.random.RandomState(11) x = rs.gamma(2, size=1000) y = -.5 * x + rs.normal(size=1000) sns.jointplot(x=x, y=y, kind="hex", color="#4CB391")
19.8125
52
0.586751
e1fca749c8ee6ac5bcdba83ab1c3afb860c5490f
6,884
py
Python
userbot/modules/system_stats.py
MADEWGN/botgabut
d92094598fd7cdfd40f41e31fa44035212ed2cd8
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/system_stats.py
MADEWGN/botgabut
d92094598fd7cdfd40f41e31fa44035212ed2cd8
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/system_stats.py
MADEWGN/botgabut
d92094598fd7cdfd40f41e31fa44035212ed2cd8
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for getting information about the server. """ from asyncio import create_subprocess_exec as asyncru...
35.122449
85
0.514672
edee8cf11802c613b871dd30a55c6ccca5720e88
136
py
Python
testes e exercícios/exercicios/script_008.py
LightSnow17/exercicios-Python
3ac016ce284860f45d71cfb396d33a73ec06c25d
[ "MIT" ]
null
null
null
testes e exercícios/exercicios/script_008.py
LightSnow17/exercicios-Python
3ac016ce284860f45d71cfb396d33a73ec06c25d
[ "MIT" ]
null
null
null
testes e exercícios/exercicios/script_008.py
LightSnow17/exercicios-Python
3ac016ce284860f45d71cfb396d33a73ec06c25d
[ "MIT" ]
null
null
null
c = float(input('Coloque a temperatura em ºC: ')) f = ((9*c)/5) + 32 print('O valor informado em {}ºC corresponde a {}ºF'.format(c, f))
34
66
0.632353
b28b9a5c21913e022e95af2e4d9a68924c795668
1,787
py
Python
code/scores.py
nishant-sachdeva/BRED_PRIOJECT
06d9909478080259b2ef5fee291b73bd8bbabfe1
[ "MIT" ]
null
null
null
code/scores.py
nishant-sachdeva/BRED_PRIOJECT
06d9909478080259b2ef5fee291b73bd8bbabfe1
[ "MIT" ]
null
null
null
code/scores.py
nishant-sachdeva/BRED_PRIOJECT
06d9909478080259b2ef5fee291b73bd8bbabfe1
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def get_score(file_name): file_path = "../data/csv_files/" + file_name dataFrame = pd.read_csv(file_path) dataFrame = dataFrame.dropna() response_times = dataFrame.iloc[:, -1] responses = dataFrame.iloc[:,-2].value_counts(sort=False) average_resoponse_ti...
33.716981
95
0.729715
88de0f9397896de78ff9c92ba6564b60928997d9
2,021
py
Python
leetcode/binary_tree/230.py
1lch2/PythonExercise
9adbe5fc2bce71f4c09ccf83079c44699c27fce4
[ "MIT" ]
1
2020-08-19T09:26:20.000Z
2020-08-19T09:26:20.000Z
leetcode/binary_tree/230.py
1lch2/PythonExercise
9adbe5fc2bce71f4c09ccf83079c44699c27fce4
[ "MIT" ]
null
null
null
leetcode/binary_tree/230.py
1lch2/PythonExercise
9adbe5fc2bce71f4c09ccf83079c44699c27fce4
[ "MIT" ]
null
null
null
# 给定一个二叉搜索树,编写一个函数 kthSmallest 来查找其中第 k 个最小的元素。 # 说明: # 你可以假设 k 总是有效的,1 ≤ k ≤ 二叉搜索树元素个数。 # 示例 1: # 输入: root = [3,1,4,null,2], k = 1 # 3 # / \ # 1 4 # \ #   2 # 输出: 1 # 示例 2: # 输入: root = [5,3,6,2,4,null,null,1], k = 3 # 5 # / \ # 3 6 # / \ # 2 4 # / # 1 # 输出: 3 # Definiti...
22.965909
57
0.402771
7a8a9572cae2af1407d3f055a629d3fabf58a72b
5,907
py
Python
tests/broker/test_request_review.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
7
2015-07-31T05:57:30.000Z
2021-09-07T15:18:56.000Z
tests/broker/test_request_review.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
115
2015-03-03T13:11:46.000Z
2021-09-20T12:42:24.000Z
tests/broker/test_request_review.py
ned21/aquilon
6562ea0f224cda33b72a6f7664f48d65f96bd41a
[ "Apache-2.0" ]
13
2015-03-03T11:17:59.000Z
2021-09-09T09:16:41.000Z
#!/usr/bin/env python # -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2018 Contributor # # 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...
38.109677
74
0.585746
d2ce9282417481e205eb2ba30d4d78268a61ee6c
713
py
Python
solutions/python3/1246.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/1246.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/1246.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def minimumMoves(self, arr: List[int]) -> int: n = len(arr) dp = [[0] * (n + 1) for _ in range(n + 1)] for l in range(1, n + 1): i, j = 0, l - 1 while j < n: if l == 1: dp[i][j] = 1 else: ...
37.526316
85
0.295933
a69b92e0a07f2711471a48b4c3a6cdaa3557b1c6
9,813
py
Python
scimm/bin/scimm.py
movingpictures83/SCIMM
ef28ca7a56dcb7576f7e566d4296bb7c28c0306e
[ "MIT" ]
null
null
null
scimm/bin/scimm.py
movingpictures83/SCIMM
ef28ca7a56dcb7576f7e566d4296bb7c28c0306e
[ "MIT" ]
null
null
null
scimm/bin/scimm.py
movingpictures83/SCIMM
ef28ca7a56dcb7576f7e566d4296bb7c28c0306e
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 from optparse import OptionParser, SUPPRESS_HELP import os, glob, subprocess, sys, math, shutil import imm_cluster, util ############################################################ # scimm.py # # Sequence Clustering with Interpolated Markov Models # # Author: David Kelley ######################...
39.728745
240
0.53959
085283fcb6b243437f1e0c66363c8a6d5b0e15a8
1,544
py
Python
src/compas_rv2/singular/rhino/geometry/curve.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
4
2022-01-17T19:17:22.000Z
2022-01-21T18:06:02.000Z
src/compas_rv2/singular/rhino/geometry/curve.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
src/compas_rv2/singular/rhino/geometry/curve.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas_rhino from compas_rhino.geometry import RhinoCurve class RhinoCurve(RhinoCurve): def __init__(self): super(RhinoCurve, self).__init__() def divide(self, number_of_segments, ove...
31.510204
120
0.626295
f20622007638d3745e5c1bc31c12fb530a3df21c
1,074
py
Python
5430 AC.py
jangThang/Baekjoon-problem
f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f
[ "MIT" ]
null
null
null
5430 AC.py
jangThang/Baekjoon-problem
f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f
[ "MIT" ]
null
null
null
5430 AC.py
jangThang/Baekjoon-problem
f34c7d9977ad95fbe2a59c0096bf8ff1e885c01f
[ "MIT" ]
null
null
null
from collections import deque import sys input = sys.stdin.readline #입력 T = int(input()) for _ in range(T): p = input().rstrip() n = int(input()) if n == 0: input() numlist = deque([]) else: numlist = deque(list(input().strip("[]\n").split(","))) #연산시작 front = True #앞에서부...
21.48
63
0.393855
7836b8443000e73b4c3deb29caf043387ccad91b
372
py
Python
djangocms_forms/managers.py
gruy/djangocms-forms
96fa3c249b8f443d0063f07b9273f1eaca3314fe
[ "BSD-3-Clause" ]
136
2015-04-28T18:09:13.000Z
2022-01-11T19:46:44.000Z
djangocms_forms/managers.py
gruy/djangocms-forms
96fa3c249b8f443d0063f07b9273f1eaca3314fe
[ "BSD-3-Clause" ]
80
2015-05-20T15:33:13.000Z
2021-05-31T07:49:23.000Z
djangocms_forms/managers.py
gruy/djangocms-forms
96fa3c249b8f443d0063f07b9273f1eaca3314fe
[ "BSD-3-Clause" ]
91
2015-04-28T18:13:55.000Z
2022-03-17T10:49:04.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.db.models import Count class ActiveFormManager(models.Manager): def get_queryset(self): qs = super(ActiveFormManager, self).get_queryset() return qs.annotate(submission_count=Count('submissio...
26.571429
67
0.72043
2a1cf4084c960345167d1cac1cfdcb5e665d956a
457
py
Python
Question/migrations/0004_auto_20200206_1117.py
AlirezAkbary/FeedbackSys
250acd75d4b903cc647ed86aab7b1a22909a056e
[ "bzip2-1.0.6" ]
null
null
null
Question/migrations/0004_auto_20200206_1117.py
AlirezAkbary/FeedbackSys
250acd75d4b903cc647ed86aab7b1a22909a056e
[ "bzip2-1.0.6" ]
null
null
null
Question/migrations/0004_auto_20200206_1117.py
AlirezAkbary/FeedbackSys
250acd75d4b903cc647ed86aab7b1a22909a056e
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 2.0.7 on 2020-02-06 07:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Question', '0003_auto_20200203_2212'), ] operations = [ migrations.AlterField( model_name='question', name='q_type',...
24.052632
118
0.599562
d7f08c0ae8d862d23814dcbcca0822b9c715cfc5
2,185
py
Python
pc_spec/data.py
konrad-kocik/pc-spec
027fe7e831d500c4b8b73994ebb421d8bf5c8617
[ "MIT" ]
null
null
null
pc_spec/data.py
konrad-kocik/pc-spec
027fe7e831d500c4b8b73994ebb421d8bf5c8617
[ "MIT" ]
14
2022-02-19T14:53:37.000Z
2022-03-02T19:32:42.000Z
pc_spec/data.py
konrad-kocik/pc-spec
027fe7e831d500c4b8b73994ebb421d8bf5c8617
[ "MIT" ]
null
null
null
from json import dump, load, JSONDecodeError from pathlib import Path from typing import List, Dict, Tuple from pc_spec.pc import PC, Components from pc_spec.store import Store def save_store(store: Store, target_dir: Path): """ Saves given store to JSON file created in given directory. If given director...
34.140625
103
0.727231
6abf03f820d8d11b6a983105d547b539751c469a
121
py
Python
hello_world.py.py
Kbrane-08/ASTR-119-HW
73c9de7a647345653db5ec37f31e8006800a1c5e
[ "MIT" ]
null
null
null
hello_world.py.py
Kbrane-08/ASTR-119-HW
73c9de7a647345653db5ec37f31e8006800a1c5e
[ "MIT" ]
null
null
null
hello_world.py.py
Kbrane-08/ASTR-119-HW
73c9de7a647345653db5ec37f31e8006800a1c5e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #this program will write #Hello World! print("Hello World!") # print out Hello World!
15.125
49
0.652893
9c53b140fbf8fdf21e55658b28f6ea3c52381748
76,414
py
Python
torchxrayvision/datasets.py
ahatamiz/torchxrayvision
e5863899a48fcb69bae216cf16325d00b7c17e95
[ "Apache-2.0" ]
1
2021-09-26T21:51:10.000Z
2021-09-26T21:51:10.000Z
torchxrayvision/datasets.py
ahatamiz/torchxrayvision
e5863899a48fcb69bae216cf16325d00b7c17e95
[ "Apache-2.0" ]
null
null
null
torchxrayvision/datasets.py
ahatamiz/torchxrayvision
e5863899a48fcb69bae216cf16325d00b7c17e95
[ "Apache-2.0" ]
null
null
null
from PIL import Image from os.path import join from skimage.io import imread, imsave import imageio from torch import nn from torch.nn.modules.linear import Linear from torch.utils.data import Dataset from torchvision import transforms from tqdm import tqdm import numpy as np import os,sys,os.path import pandas as pd i...
37.791296
312
0.557738
2f7199f806ef3bacd40350f91b815bc349c5eff0
14,762
py
Python
rapid7vmconsole/models/operating_system_cpe.py
kiblik/vm-console-client-python
038f6d33e8b2654a558326c6eb87f09ee23e0e22
[ "MIT" ]
61
2018-05-17T05:57:09.000Z
2022-03-08T13:59:21.000Z
rapid7vmconsole/models/operating_system_cpe.py
kiblik/vm-console-client-python
038f6d33e8b2654a558326c6eb87f09ee23e0e22
[ "MIT" ]
33
2018-06-26T16:21:14.000Z
2022-03-03T20:55:47.000Z
rapid7vmconsole/models/operating_system_cpe.py
kiblik/vm-console-client-python
038f6d33e8b2654a558326c6eb87f09ee23e0e22
[ "MIT" ]
43
2018-02-24T05:45:53.000Z
2022-03-31T22:15:16.000Z
# coding: utf-8 """ Python InsightVM API Client OpenAPI spec version: 3 Contact: support@rapid7.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class OperatingSystemCpe(object): """NOTE: This class is auto generated by ...
32.16122
258
0.604593
6cedabfe1e70d580ea447c58515c5b5c1265f293
30
py
Python
btd6_memory_info/generated/System/Runtime/Remoting/Messaging/LogicalCallContext/logical_call_context.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Runtime/Remoting/Messaging/LogicalCallContext/logical_call_context.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Runtime/Remoting/Messaging/LogicalCallContext/logical_call_context.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class LogicalCallContext: pass
30
30
0.9
23b3b73ebf4d0935f37a073f255576ac3e641354
716
py
Python
celery_janitor/backends/base.py
comandrei/celery-janitor
5f1ad663958e24ccb3abceaa227a12da495b6ecb
[ "MIT" ]
null
null
null
celery_janitor/backends/base.py
comandrei/celery-janitor
5f1ad663958e24ccb3abceaa227a12da495b6ecb
[ "MIT" ]
null
null
null
celery_janitor/backends/base.py
comandrei/celery-janitor
5f1ad663958e24ccb3abceaa227a12da495b6ecb
[ "MIT" ]
null
null
null
class Queue(object): def __init__(self, queue): self._queue = queue self.name = None def delete(self): raise NotImplementedError() class BrokerBackend(object): def __init__(self): self._queues = None @property def queues(self): if self._queues is None: ...
21.69697
60
0.593575
a97f1ea166cde690cbf285cdd16974e29a30e3ae
23,042
py
Python
FC3_LightVLAD/frame_level_models.py
YichaoOU/DeepCats
9b1909e3608ca358d6f82a7db7afb21a68cb5b76
[ "MIT" ]
1
2018-09-18T15:56:42.000Z
2018-09-18T15:56:42.000Z
FC3_LightVLAD/frame_level_models.py
YichaoOU/DeepCats
9b1909e3608ca358d6f82a7db7afb21a68cb5b76
[ "MIT" ]
null
null
null
FC3_LightVLAD/frame_level_models.py
YichaoOU/DeepCats
9b1909e3608ca358d6f82a7db7afb21a68cb5b76
[ "MIT" ]
1
2018-09-18T15:56:44.000Z
2018-09-18T15:56:44.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
35.178626
98
0.650334
92b064865a4701456b1a41d0cb07f6ce5f9124fe
490
py
Python
Mundo 1/Aula10.Ex29.py
uirasiqueira/Exercicios_Python
409b7be9cf278e3043149654de7b41be56a3d951
[ "MIT" ]
null
null
null
Mundo 1/Aula10.Ex29.py
uirasiqueira/Exercicios_Python
409b7be9cf278e3043149654de7b41be56a3d951
[ "MIT" ]
null
null
null
Mundo 1/Aula10.Ex29.py
uirasiqueira/Exercicios_Python
409b7be9cf278e3043149654de7b41be56a3d951
[ "MIT" ]
null
null
null
''' Escreva um programa que leia a velocidade de um carro. Se ele ultrapassar 80Km/h, mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$ 7,00 por cada Km acima do limite''' v = float(input('Qual a velocidade atual do seu carro? ')) if v > 80: n = (v - 80)*7 print(f'MULTADO!!!! A velocidade ...
54.444444
112
0.685714
a1c1951566833e0e755955e299855df11c02295f
2,602
py
Python
src/generate_feature9.py
drivendata/countable-care-3rd-place
d1bba2f09ba0196cc3f35d2a41ea93bfbc4086a2
[ "MIT" ]
2
2020-06-26T12:00:28.000Z
2021-09-20T19:28:24.000Z
src/generate_feature9.py
drivendata/countable-care-3rd-place
d1bba2f09ba0196cc3f35d2a41ea93bfbc4086a2
[ "MIT" ]
null
null
null
src/generate_feature9.py
drivendata/countable-care-3rd-place
d1bba2f09ba0196cc3f35d2a41ea93bfbc4086a2
[ "MIT" ]
2
2019-05-16T17:40:03.000Z
2021-09-20T19:28:25.000Z
#!/usr/bin/env python from scipy import sparse from sklearn.datasets import dump_svmlight_file from sklearn.preprocessing import LabelEncoder import argparse import logging import numpy as np import os import pandas as pd from kaggler.util import encode_categorical_features, normalize_numerical_feature logging.bas...
35.643836
98
0.671022
94d99a82ec553099faa9ccff561d31129c0203ed
57,746
py
Python
src/sage/schemes/elliptic_curves/isogeny_class.py
yzpopulation/sage
d2dc2f80b5a8e039701e292653e25366e3e5ec1e
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/elliptic_curves/isogeny_class.py
yzpopulation/sage
d2dc2f80b5a8e039701e292653e25366e3e5ec1e
[ "BSL-1.0" ]
null
null
null
src/sage/schemes/elliptic_curves/isogeny_class.py
yzpopulation/sage
d2dc2f80b5a8e039701e292653e25366e3e5ec1e
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- r""" Isogeny class of elliptic curves over number fields AUTHORS: - David Roe (2012-03-29) -- initial version. - John Cremona (2014-08) -- extend to number fields. """ ############################################################################## # Copyright (C) 2012-2014 David Roe <roe...
39.390177
739
0.551778
227a86e6c8c7e15c54f8cdf5b808efabced34b3c
1,283
py
Python
arcade/gui/examples/grid_layout.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
null
null
null
arcade/gui/examples/grid_layout.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
1
2022-03-21T06:24:29.000Z
2022-03-21T06:24:29.000Z
arcade/gui/examples/grid_layout.py
Ibrahim2750mi/arcade
bf3229e64117931bffb8e50926a996a7a8fc9b8b
[ "MIT" ]
null
null
null
import arcade from arcade.gui import UIManager from arcade.gui.widgets import UIDummy from arcade.gui.widgets.layout import UIGridLayout, UIAnchorLayout class UIMockup(arcade.Window): def __init__(self): super().__init__(800, 600, "UI Mockup", resizable=True) self.manager = UIManager() sel...
27.891304
66
0.624318
4807b4a5984ce8f5ada952d85d2628a6705f5d41
1,476
py
Python
rl/utils/networks/dyna_network.py
unkper/PedestrainSimulationModule
039ed0903a0861130566d8d1d862594064b8e0db
[ "MIT" ]
null
null
null
rl/utils/networks/dyna_network.py
unkper/PedestrainSimulationModule
039ed0903a0861130566d8d1d862594064b8e0db
[ "MIT" ]
null
null
null
rl/utils/networks/dyna_network.py
unkper/PedestrainSimulationModule
039ed0903a0861130566d8d1d862594064b8e0db
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class dyna_model_network(nn.Module): def __init__(self, state_dim, action_dim, hidden_dim): ''' reward, is_done都视为一维的 :param state_dim: :param action_dim: ''' super(dyna_model_netw...
32.086957
62
0.636179