hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
dbde2669ec80772673d5f19711266d806c399444
7,303
py
Python
biggan_discovery/orojar_discover.py
andreasjansson/OroJaR
ebb8c0333bbd33c063b6dd4a21a0559eb86d13e9
[ "BSD-2-Clause" ]
47
2021-07-26T07:54:06.000Z
2022-02-07T16:37:40.000Z
biggan_discovery/orojar_discover.py
andreasjansson/OroJaR
ebb8c0333bbd33c063b6dd4a21a0559eb86d13e9
[ "BSD-2-Clause" ]
1
2021-09-14T07:26:15.000Z
2021-09-14T07:45:59.000Z
biggan_discovery/orojar_discover.py
andreasjansson/OroJaR
ebb8c0333bbd33c063b6dd4a21a0559eb86d13e9
[ "BSD-2-Clause" ]
7
2021-08-21T07:33:35.000Z
2022-03-16T23:21:29.000Z
""" Learns a matrix of Z-Space directions using a pre-trained BigGAN Generator. Modified from train.py in the PyTorch BigGAN repo. """ import os from tqdm import tqdm import torch import torch.nn as nn import torch.optim import utils import train_fns from sync_batchnorm import patch_replication_callback from torch.u...
41.259887
113
0.633301
dbde5b0dbcab23e1ef72b1961f7810d2ab8cc002
6,452
py
Python
file_importer0.py
Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis
454583f47883edae17391f101b10b38b68c9834f
[ "MIT" ]
1
2021-03-15T19:44:36.000Z
2021-03-15T19:44:36.000Z
file_importer0.py
Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis
454583f47883edae17391f101b10b38b68c9834f
[ "MIT" ]
null
null
null
file_importer0.py
Alva789ro/Regional-Comprehensive-Economic-Partnership-RCEP-Economic-Default-Risk-Analysis
454583f47883edae17391f101b10b38b68c9834f
[ "MIT" ]
1
2022-02-06T01:33:41.000Z
2022-02-06T01:33:41.000Z
import xlsxwriter import pandas as pd import numpy as np import mysql.connector australia=pd.read_excel(r'\Users\jesica\Desktop\RCEP_economic_analysis.xlsx', sheet_name='Australia') brunei=pd.read_excel(r'\Users\jesica\Desktop\RCEP_economic_analysis.xlsx', sheet_name='Brunei') cambodia=pd.read_excel(r'\Users\jesica\De...
72.494382
227
0.67359
dbde9d29ec27efc6184d1b64557b595e4c3e0755
6,837
py
Python
packer/resources/bootstrap_node.py
VIOOH/nile
893802387b3891ea02aae05f39ff4aa051354f18
[ "Apache-2.0" ]
4
2021-07-09T15:55:04.000Z
2021-12-28T10:34:12.000Z
packer/resources/bootstrap_node.py
Kishore88/nile
893802387b3891ea02aae05f39ff4aa051354f18
[ "Apache-2.0" ]
null
null
null
packer/resources/bootstrap_node.py
Kishore88/nile
893802387b3891ea02aae05f39ff4aa051354f18
[ "Apache-2.0" ]
3
2021-07-09T15:55:09.000Z
2021-07-10T10:24:02.000Z
#!/usr/bin/env python3 import os import re import glob import boto3 import requests import subprocess from time import sleep AWS_REGION = os.environ['AWS_REGION'] DEPLOY_UUID = os.environ['DEPLOY_UUID'] SERVICE_NAME = os.environ['SERVICE_NAME'] MOUNT_POINT = "/var/lib/" + SERVICE_NAME...
27.130952
111
0.584321
dbdf10789c79bc37376b7fcca6ae9a0b284ccf83
4,412
py
Python
parsers/srum_parser.py
otoriocyber/Chronos
d70e22afed723c0ad4b7e449bd253e15351bada6
[ "MIT" ]
12
2021-04-20T23:08:28.000Z
2022-02-18T01:23:42.000Z
parsers/srum_parser.py
otoriocyber/chronos
d70e22afed723c0ad4b7e449bd253e15351bada6
[ "MIT" ]
null
null
null
parsers/srum_parser.py
otoriocyber/chronos
d70e22afed723c0ad4b7e449bd253e15351bada6
[ "MIT" ]
null
null
null
import csv import datetime import random import os from parsers.parser_base import ParserBase FILE_TIME_EPOCH = datetime.datetime(1601, 1, 1) FILE_TIME_MICROSECOND = 10
45.020408
122
0.522439
dbdfe8bd7432ddafe572e5360642d04fff53f125
593
py
Python
tests/csrf_tests/test_context_processor.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/csrf_tests/test_context_processor.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/csrf_tests/test_context_processor.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
from django.http import HttpRequest from django.middleware.csrf import _compare_salted_tokens as equivalent_tokens from django.template.context_processors import csrf from django.test import SimpleTestCase
39.533333
88
0.768971
dbe03e42e9b3d1f6b76452c08db25467c63f6175
30,141
py
Python
python/das/types.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
4
2018-11-19T01:36:01.000Z
2022-02-28T03:41:12.000Z
python/das/types.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
1
2021-12-26T11:57:07.000Z
2022-03-16T07:18:01.000Z
python/das/types.py
marza-animation-planet/das
1c7460dfdd5f138d8317c72900e90b23c0c28c7b
[ "MIT" ]
2
2019-03-30T10:28:12.000Z
2022-03-04T17:58:39.000Z
import sys import das import traceback def _wrap(self, rhs): st = self._get_schema_type() rv = self.__class__(rhs if st is None else st._validate_self(rhs)) rv._set_schema_type(self._get_schema_type()) return rv def _adapt_value(self, value, key=None, index=None): return das.ad...
30.945585
146
0.563883
dbe088a01c052a1745bf75ba9a62254a5f03f63b
4,829
py
Python
track.py
AliabbasMerchant/fileTrackAndBackup
8cdf97be58c69061e1f60c08f89b524d91f8c17d
[ "MIT" ]
6
2018-08-11T12:00:11.000Z
2021-06-15T09:11:34.000Z
track.py
AliabbasMerchant/fileTrackAndBackup
8cdf97be58c69061e1f60c08f89b524d91f8c17d
[ "MIT" ]
null
null
null
track.py
AliabbasMerchant/fileTrackAndBackup
8cdf97be58c69061e1f60c08f89b524d91f8c17d
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from help import * import time # short-forms are used, so as to reduce the .json file size # t : type - d or f # d : directory # f : file # ts : timestamp # dirs : The dictionary containing info about directory contents # time : edit time of the file/folder # s : size of the file/folder # p : full ...
40.923729
120
0.57631
dbe08be9b24ad6685aafe893f7f5de89e33519df
31,693
py
Python
clang/tools/scan-build-py/libscanbuild/analyze.py
Kvarnefalk/llvm-project
8b5f5798aaa24074609d151ea906d114cf5337c2
[ "Apache-2.0" ]
1
2021-02-17T04:40:38.000Z
2021-02-17T04:40:38.000Z
clang/tools/scan-build-py/libscanbuild/analyze.py
Kvarnefalk/llvm-project
8b5f5798aaa24074609d151ea906d114cf5337c2
[ "Apache-2.0" ]
null
null
null
clang/tools/scan-build-py/libscanbuild/analyze.py
Kvarnefalk/llvm-project
8b5f5798aaa24074609d151ea906d114cf5337c2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """ This module implements the 'scan-build' command API. To run the static analyzer against a bui...
39.175525
96
0.63686
dbe1408e84afa0a04966d9f60dcf8a3847bfc25f
1,460
py
Python
tableborder.py
PIRXrav/pyhack
af5c86fb721053d8a3e819ab772c8144a23b86bf
[ "MIT" ]
null
null
null
tableborder.py
PIRXrav/pyhack
af5c86fb721053d8a3e819ab772c8144a23b86bf
[ "MIT" ]
null
null
null
tableborder.py
PIRXrav/pyhack
af5c86fb721053d8a3e819ab772c8144a23b86bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=C0103 # pylint: disable=R0902 # pylint: disable=R0903 # pylint: disable=R0913 """ Dfinie la classe TableBorder """ BORDERS = [TableBorder('+', '+', '+',\ '+', '+', '+',\ '+', '+', '+',\ '-', '|'), ...
30.416667
56
0.469863
dbe1aa3b9d736d93221a08965b3b705efeef3804
216
py
Python
app/urls.py
tkf2019/Vue-Django-SAST-Search
385af9819c608ce2d0845ed3e786777ff52b52b3
[ "MIT" ]
null
null
null
app/urls.py
tkf2019/Vue-Django-SAST-Search
385af9819c608ce2d0845ed3e786777ff52b52b3
[ "MIT" ]
null
null
null
app/urls.py
tkf2019/Vue-Django-SAST-Search
385af9819c608ce2d0845ed3e786777ff52b52b3
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ url(r'^register/', views.register), url(r'^login/', views.login), url(r'logout/', views.logout), url(r'search/', views.search) ]
19.636364
39
0.643519
dbe1d984552acfc78008a25befd61632a445f85d
28,508
py
Python
custom_components/hasl/sensor.py
Ziqqo/hasl-platform
27386314bf58626538d59c38d89249b07ed9256a
[ "Apache-2.0" ]
null
null
null
custom_components/hasl/sensor.py
Ziqqo/hasl-platform
27386314bf58626538d59c38d89249b07ed9256a
[ "Apache-2.0" ]
null
null
null
custom_components/hasl/sensor.py
Ziqqo/hasl-platform
27386314bf58626538d59c38d89249b07ed9256a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """Simple service for SL (Storstockholms Lokaltrafik).""" import datetime import json import logging from datetime import timedelta import homeassistant.helpers.config_validation as cv import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from ho...
35.369727
79
0.542058
dbe25f137db8fdda41fdc3006d42e7f6d84f1a1d
2,067
py
Python
simbad_tools.py
ishivvers/astro
ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d
[ "MIT" ]
1
2015-12-06T00:19:35.000Z
2015-12-06T00:19:35.000Z
simbad_tools.py
ishivvers/astro
ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d
[ "MIT" ]
null
null
null
simbad_tools.py
ishivvers/astro
ff3f3b9f8ef4013157c277bbb5bf82ac1bd3287d
[ "MIT" ]
null
null
null
""" A quick library to deal with searching simbad for info about a SN and parsing the results. Author: Isaac Shivvers, ishivvers@berkeley.edu, 2014 example SIMBAD uri query: http://simbad.u-strasbg.fr/simbad/sim-id?output.format=ASCII&Ident=sn%201998S """ import re from urllib2 import urlopen def get_SN_info( nam...
32.296875
88
0.610063
dbe3699b610c3c766074b1340770c91698f9123b
15,647
py
Python
robots/environments.py
StanfordASL/soft-robot-control
29ade9b7b952e25e639b42767a4f09c87a0e824a
[ "MIT" ]
5
2021-03-07T11:42:11.000Z
2022-02-28T09:46:05.000Z
robots/environments.py
StanfordASL/soft-robot-control
29ade9b7b952e25e639b42767a4f09c87a0e824a
[ "MIT" ]
null
null
null
robots/environments.py
StanfordASL/soft-robot-control
29ade9b7b952e25e639b42767a4f09c87a0e824a
[ "MIT" ]
3
2021-01-23T11:09:40.000Z
2022-03-02T11:54:57.000Z
import os from math import cos from math import sin import Sofa.Core from splib.numerics import Quat, Vec3 from sofacontrol import measurement_models path = os.path.dirname(os.path.abspath(__file__))
49.83121
148
0.547964
dbe3e139f969d2b0c02202b763923425574d8d2e
2,764
py
Python
default.py
SimonPreissner/get-shifty
aff49220932921c77e419a34ca472b51e0b26b72
[ "MIT" ]
null
null
null
default.py
SimonPreissner/get-shifty
aff49220932921c77e419a34ca472b51e0b26b72
[ "MIT" ]
null
null
null
default.py
SimonPreissner/get-shifty
aff49220932921c77e419a34ca472b51e0b26b72
[ "MIT" ]
null
null
null
""" This file contains meta information and default configurations of the project """ RSC_YEARS = [1660, 1670, 1680, 1690, 1700, 1710, 1720, 1730, 1740, 1750, 1760, 1770, 1780, 1790, 1800, 1810, 1820, 1830, 1840, 1850, 1860, 1870, 1880, 1890, 1900, 1910, 1920] # cf. Chapter 4....
52.150943
119
0.458032
dbe3f5f2703d36ffae51f8561d55eb622bc98049
21,019
py
Python
generate_training_data_drb.py
SimonTopp/Graph-WaveNet
ef63a80cc397744667a5d27f7c410c10e3e03a4c
[ "MIT" ]
null
null
null
generate_training_data_drb.py
SimonTopp/Graph-WaveNet
ef63a80cc397744667a5d27f7c410c10e3e03a4c
[ "MIT" ]
null
null
null
generate_training_data_drb.py
SimonTopp/Graph-WaveNet
ef63a80cc397744667a5d27f7c410c10e3e03a4c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import numpy as np import os import pandas as pd import util import os.path import pandas as pd import numpy as np import yaml import xa...
39.658491
120
0.63709
dbe414ec11ed223b8f3b005ec5b7199d7a73066f
3,737
py
Python
Phase-1/Python Basic 1/Day-3.py
CodedLadiesInnovateTech/python-challenges
22ce26c68fea6c7c243ada831e47c52e27a62127
[ "MIT" ]
11
2020-05-11T08:41:21.000Z
2022-02-27T08:21:37.000Z
Phase-1/Python Basic 1/Day-3.py
CodedLadiesInnovateTech/python-challenges
22ce26c68fea6c7c243ada831e47c52e27a62127
[ "MIT" ]
9
2020-05-12T10:46:06.000Z
2020-05-28T17:37:19.000Z
Phase-1/Python Basic 1/Day-3.py
CodedLadiesInnovateTech/python-challenges
22ce26c68fea6c7c243ada831e47c52e27a62127
[ "MIT" ]
44
2020-05-10T20:53:32.000Z
2021-04-25T18:47:08.000Z
<<<<<<< HEAD """ 1. Write a Python program to print the documents (syntax, description etc.) of Python built-in function(s). Sample function : abs() Expected Result : abs(number) -> number Return the absolute value of the argument. Tools: help function 2. Write a Python program to p...
35.932692
185
0.690393
dbe44f6e05680f0d1dad7aaee47f96f07f3de643
2,128
py
Python
tests/python/metaclass_inheritance.py
gmgunter/pyre
e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2
[ "BSD-3-Clause" ]
25
2018-04-23T01:45:39.000Z
2021-12-10T06:01:23.000Z
tests/python/metaclass_inheritance.py
gmgunter/pyre
e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2
[ "BSD-3-Clause" ]
53
2018-05-31T04:55:00.000Z
2021-10-07T21:41:32.000Z
tests/python/metaclass_inheritance.py
gmgunter/pyre
e9ff3f8c04661f8b2cd2ba0caded08b6fe8054e2
[ "BSD-3-Clause" ]
12
2018-04-23T22:50:40.000Z
2022-02-20T17:27:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. avzis # orthologue # (c) 1998-2021 all rights reserved # # """ When a metaclass understands the extra keywords that can be passed during class declaration, it has to override all these to accommodate the change in signature """ def test(): b = b...
25.035294
92
0.56156
dbe6b1bbfa7c8868231f9a2e70cb8975c45626ee
434
py
Python
cs101/module8/8-1/chroma1.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
1
2021-03-23T16:18:00.000Z
2021-03-23T16:18:00.000Z
cs101/module8/8-1/chroma1.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
null
null
null
cs101/module8/8-1/chroma1.py
idsdlab/basicai_sp21
af9acba34c0417fed830de1b61753c50fd303169
[ "MIT" ]
null
null
null
from cs1media import * import math statue = load_picture("photos/statue1.jpg") chroma(statue, (41, 75, 146), 70) statue.show()
20.666667
56
0.582949
dbe72fbf88b8bf3f7bd1a038ff09959ccc113054
3,433
py
Python
wfirst_stars/mklc.py
RuthAngus/wfirst_stars
60989fc56488ac915082e76c3088c6133909985b
[ "MIT" ]
null
null
null
wfirst_stars/mklc.py
RuthAngus/wfirst_stars
60989fc56488ac915082e76c3088c6133909985b
[ "MIT" ]
null
null
null
wfirst_stars/mklc.py
RuthAngus/wfirst_stars
60989fc56488ac915082e76c3088c6133909985b
[ "MIT" ]
null
null
null
import numpy as np import scipy import scipy.io import pylab import numpy import glob import pyfits
31.787037
82
0.605884
dbe7a0b13a437a6e05e68098ff2efe008a915ee9
862
py
Python
bin/sort.py
pelavarre/pybashish
03f74356fb0a2a0ef7106f09c059fd9b375ce89a
[ "CNRI-Python" ]
4
2020-07-10T20:16:13.000Z
2022-02-16T02:11:20.000Z
bin/sort.py
pelavarre/pybashish
03f74356fb0a2a0ef7106f09c059fd9b375ce89a
[ "CNRI-Python" ]
null
null
null
bin/sort.py
pelavarre/pybashish
03f74356fb0a2a0ef7106f09c059fd9b375ce89a
[ "CNRI-Python" ]
2
2020-06-24T20:37:36.000Z
2020-07-10T20:16:17.000Z
#!/usr/bin/env python3 """ usage: sort.py [-h] sort lines options: -h, --help show this help message and exit quirks: sorts tabs as different than spaces sorts some spaces ending a line as different than none ending a line examples: Oh no! No examples disclosed!! """ # FIXME: doc -k$N,$N and -n and may...
21.02439
70
0.678654
dbe8f2379002738c1c16e7f2d3cd857e1c75e38f
10,561
py
Python
davan/http/service/telldus/tdtool.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
davan/http/service/telldus/tdtool.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
davan/http/service/telldus/tdtool.py
davandev/davanserver
0be914268c8e34d4092251508bae213cff3ef621
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, getopt, httplib, urllib, json, os import oauth.oauth as oauth import datetime from configobj import ConfigObj import logging global logger logger = logging.getLogger(os.path.basename(__file__)) import davan.util.application_logger as log_manager #insert your ...
35.921769
170
0.670675
dbe91e2d448902d1659cd842f7d5834596d34306
16,286
py
Python
ichnaea/data/export.py
rajreet/ichnaea
7bd2eaa9568f9004e566b802623299625c29f5ae
[ "Apache-2.0" ]
348
2015-01-13T11:48:07.000Z
2022-03-31T08:33:07.000Z
ichnaea/data/export.py
rajreet/ichnaea
7bd2eaa9568f9004e566b802623299625c29f5ae
[ "Apache-2.0" ]
1,274
2015-01-02T18:15:56.000Z
2022-03-23T15:29:08.000Z
ichnaea/data/export.py
rajreet/ichnaea
7bd2eaa9568f9004e566b802623299625c29f5ae
[ "Apache-2.0" ]
149
2015-01-04T21:15:07.000Z
2021-12-10T06:05:09.000Z
from collections import defaultdict import json import re import time from urllib.parse import urlparse import uuid import boto3 import boto3.exceptions import botocore.exceptions import markus import redis.exceptions import requests import requests.exceptions from sqlalchemy import select import sqlalchemy.exc from ...
31.933333
86
0.560666
dbe92a131f4e410b11bc7e2f634cf6f5bfadbd7f
6,636
py
Python
test/inference_correctness/dcn_multi_hot.py
x-y-z/HugeCTR
17bf942215df60827ece9dc015af5191ef9219b7
[ "Apache-2.0" ]
130
2021-10-11T11:55:28.000Z
2022-03-31T21:53:07.000Z
test/inference_correctness/dcn_multi_hot.py
Teora/HugeCTR
c55a63401ad350669ccfcd374aefd7a5fc879ca2
[ "Apache-2.0" ]
72
2021-10-09T04:59:09.000Z
2022-03-31T11:27:54.000Z
test/inference_correctness/dcn_multi_hot.py
Teora/HugeCTR
c55a63401ad350669ccfcd374aefd7a5fc879ca2
[ "Apache-2.0" ]
29
2021-11-03T22:35:01.000Z
2022-03-30T13:11:59.000Z
import hugectr from mpi4py import MPI solver = hugectr.CreateSolver(model_name = "dcn", max_eval_batches = 1, batchsize_eval = 16384, batchsize = 16384, lr = 0.001, vvgpu...
56.717949
117
0.517179
dbeaa0d47dcb9a56338a2f94ede14d6545fab66f
4,437
py
Python
bindings/pydrake/systems/perception.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
2
2021-02-25T02:01:02.000Z
2021-03-17T04:52:04.000Z
bindings/pydrake/systems/perception.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
null
null
null
bindings/pydrake/systems/perception.py
RobotLocomotion/drake-python3.7
ae397a4c6985262d23e9675b9bf3927c08d027f5
[ "BSD-3-Clause" ]
1
2021-06-13T12:05:39.000Z
2021-06-13T12:05:39.000Z
import numpy as np from pydrake.common.value import AbstractValue from pydrake.math import RigidTransform from pydrake.perception import BaseField, Fields, PointCloud from pydrake.systems.framework import LeafSystem
34.664063
79
0.626549
dbeb68c7ee7ea08f9d92285ea9d761b3aba02878
5,115
py
Python
experiments/db_test.py
mit-ll/CATAN
7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac
[ "BSD-3-Clause" ]
15
2015-06-05T20:13:40.000Z
2020-12-24T05:16:57.000Z
experiments/db_test.py
mit-ll/CATAN
7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac
[ "BSD-3-Clause" ]
10
2016-03-04T23:05:56.000Z
2016-05-18T18:14:13.000Z
experiments/db_test.py
mit-ll/CATAN
7cc6f7e8af459c0f6bcf325f0754db1ba5b591ac
[ "BSD-3-Clause" ]
6
2015-10-15T19:23:58.000Z
2021-06-29T07:36:16.000Z
#!/usr/bin/env python """ @author Hongyi Hu 2015 Massachusetts Institute of Technology """ import argparse import random import catan.db from catan.data import NodeMessage # test data STATUS_LIST = ['ok', 'injured', 'deceased'] # nodes # people def gen_people(n, db, start_lat, stop_lat, start_long, stop_long):...
31.189024
111
0.634018
dbebfc8120396c97668055085f91d5e5e0b1e5af
2,183
py
Python
Medium/200.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/200.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/200.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 200. Number of Islands # # Description: # Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrou...
29.106667
258
0.44022
dbec13a8be9b82963156b2e9e29130d14a7c09eb
975
py
Python
tests/formatters/fseventsd.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/fseventsd.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
tests/formatters/fseventsd.py
SamuelePilleri/plaso
f5687f12a89c7309797ccc285da78e855c120579
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the fseventsd record event formatter.""" from __future__ import unicode_literals import unittest from plaso.formatters import fseventsd from tests.formatters import test_lib if __name__ == '__main__': unittest.main()
26.351351
67
0.756923
dbec8e855b885f99aff4e865947ea4c6e652c177
2,415
py
Python
train.py
Farzin-Negahbani/PathoNet
b467a255fb356e64129b7942261e972ae15a2d2b
[ "MIT" ]
null
null
null
train.py
Farzin-Negahbani/PathoNet
b467a255fb356e64129b7942261e972ae15a2d2b
[ "MIT" ]
null
null
null
train.py
Farzin-Negahbani/PathoNet
b467a255fb356e64129b7942261e972ae15a2d2b
[ "MIT" ]
null
null
null
from keras.callbacks import ModelCheckpoint,Callback,LearningRateScheduler,TensorBoard from keras.models import load_model import random import numpy as np from scipy import misc import gc from keras.optimizers import Adam from imageio import imread from datetime import datetime import os import json import models from...
41.637931
180
0.708075
dbed1f6b6c1523d648a1c00ecfbe4157990ceba2
1,445
py
Python
tests/chainer_tests/functions_tests/array_tests/test_flatten.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
7
2017-05-08T07:02:40.000Z
2018-12-02T18:35:39.000Z
tests/chainer_tests/functions_tests/array_tests/test_flatten.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
null
null
null
tests/chainer_tests/functions_tests/array_tests/test_flatten.py
mingxiaoh/chainer-v3
815ff00f5eaf7944d6e8a75662ff64a2fe046a4d
[ "BSD-3-Clause" ]
null
null
null
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr testing.run_module(__name__, __file__)
26.759259
77
0.680969
dbed5bb534715e304b67cd5a82e6d1e8cca605fa
1,693
py
Python
categories/migrations/0001_initial.py
snoop2head/exercise_curation_django
ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda
[ "MIT" ]
3
2020-09-30T04:44:39.000Z
2021-07-30T08:20:18.000Z
categories/migrations/0001_initial.py
snoop2head/exercise_curation_django
ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda
[ "MIT" ]
7
2021-03-30T13:09:55.000Z
2022-01-13T02:33:34.000Z
categories/migrations/0001_initial.py
snoop2head/exercise_curation_django
ba35bd32d8bc203d318cb8b6e0a1722f3aa26eda
[ "MIT" ]
1
2022-03-31T12:01:38.000Z
2022-03-31T12:01:38.000Z
# Generated by Django 3.0.3 on 2020-03-24 09:59 from django.db import migrations, models import django.db.models.deletion
37.622222
158
0.569403
dbed62851d59b2fa6655d17b726752f0c24c4682
2,773
py
Python
src/metarl/envs/dm_control/dm_control_env.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
2
2021-02-07T12:14:52.000Z
2021-07-29T08:07:22.000Z
src/metarl/envs/dm_control/dm_control_env.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
src/metarl/envs/dm_control/dm_control_env.py
neurips2020submission11699/metarl
ae4825d21478fa1fd0aa6b116941ea40caa152a5
[ "MIT" ]
null
null
null
from dm_control import suite from dm_control.rl.control import flatten_observation from dm_env import StepType import gym import numpy as np from metarl.envs import Step from metarl.envs.dm_control.dm_control_viewer import DmControlViewer
33.011905
79
0.586729
dbef5ddea825a12fdea28a38b148d831f47bd566
1,446
py
Python
python_modules/lakehouse/lakehouse/snowflake_table.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
3
2020-04-28T16:27:33.000Z
2020-07-22T07:43:30.000Z
python_modules/lakehouse/lakehouse/snowflake_table.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
2
2021-05-11T13:36:27.000Z
2021-09-03T01:53:11.000Z
python_modules/lakehouse/lakehouse/snowflake_table.py
vatervonacht/dagster
595d78c883ef20618052ac1575fe46cde51fd541
[ "Apache-2.0" ]
1
2021-02-21T12:16:47.000Z
2021-02-21T12:16:47.000Z
from dagster import check from .house import Lakehouse from .table import create_lakehouse_table_def
26.777778
98
0.670816
dbef871a16cf470112cb22aef95e471326a91ea8
1,976
py
Python
pype/plugins/maya/publish/validate_look_no_default_shaders.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/maya/publish/validate_look_no_default_shaders.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/maya/publish/validate_look_no_default_shaders.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
from maya import cmds import pyblish.api import pype.api import pype.maya.action
31.365079
76
0.619433
dbeff0d906fdca4fe34a55902305e858b8a7efb0
446
py
Python
data_science_app/app.py
Johne-DuChene/data_science_learning_app
40bafce85a27155766950806b5b32a2d1f6753c4
[ "MIT" ]
null
null
null
data_science_app/app.py
Johne-DuChene/data_science_learning_app
40bafce85a27155766950806b5b32a2d1f6753c4
[ "MIT" ]
null
null
null
data_science_app/app.py
Johne-DuChene/data_science_learning_app
40bafce85a27155766950806b5b32a2d1f6753c4
[ "MIT" ]
null
null
null
from flask import Flask # initialize the app app = Flask(__name__) # execute iris function at /iris route
24.777778
55
0.674888
dbf02afc10d2a9ad48452a7e76a2ad7a46bdd3f5
10,714
py
Python
vbdiar/scoring/normalization.py
VarunSrivastava19/VBDiarization
2a460b4fc11b3a5ff73d0534cadb182be1a9d882
[ "Apache-2.0" ]
101
2017-12-19T21:55:59.000Z
2022-03-15T06:56:06.000Z
vbdiar/scoring/normalization.py
VarunSrivastava19/VBDiarization
2a460b4fc11b3a5ff73d0534cadb182be1a9d882
[ "Apache-2.0" ]
27
2017-07-20T06:10:42.000Z
2020-11-22T14:15:16.000Z
vbdiar/scoring/normalization.py
VarunSrivastava19/VBDiarization
2a460b4fc11b3a5ff73d0534cadb182be1a9d882
[ "Apache-2.0" ]
30
2017-07-17T08:53:44.000Z
2021-05-18T07:37:46.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2018 Brno University of Technology FIT # Author: Jan Profant <jan.profant@phonexia.com> # All Rights Reserved import os import logging import pickle import multiprocessing import numpy as np from sklearn.metrics.pairwise import cosine_similarity from vb...
39.10219
119
0.614243
dbf19789118428ff5f8d3aa59b32b64fa444b8b7
984
py
Python
agent_based_models/abm_allelopathy/plot_data.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
agent_based_models/abm_allelopathy/plot_data.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
agent_based_models/abm_allelopathy/plot_data.py
mattsmart/biomodels
237f87489553fa1ebf5c676fab563166dd0c39e9
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import os
30.75
111
0.650407
dbf1c54ca3fd34dfbf7ce18d8d98a14afb9379e4
1,056
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
35.2
101
0.630682
dbf2e984865e076aaf055509509eac8230a5a7d1
438
py
Python
jsonresume_theme_stackoverflow/filters.py
flowgunso/jsonresume-theme-stackoverflow
5fcadcf41a93478a09e95d79fd62d8ac3402b33b
[ "MIT" ]
null
null
null
jsonresume_theme_stackoverflow/filters.py
flowgunso/jsonresume-theme-stackoverflow
5fcadcf41a93478a09e95d79fd62d8ac3402b33b
[ "MIT" ]
4
2020-12-29T14:04:48.000Z
2021-01-01T20:23:37.000Z
jsonresume_theme_stackoverflow/filters.py
flowgunso/jsonresume-theme-stackoverflow
5fcadcf41a93478a09e95d79fd62d8ac3402b33b
[ "MIT" ]
null
null
null
import datetime import re from .exceptions import ObjectIsNotADate
24.333333
79
0.586758
dbf349d5a69e925a415de30492c1747e358368f6
3,966
py
Python
ipec/data/core.py
wwwbbb8510/ippso
fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5
[ "MIT" ]
9
2018-05-10T01:04:34.000Z
2019-06-28T07:47:37.000Z
ipec/data/core.py
wwwbbb8510/ippso
fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5
[ "MIT" ]
null
null
null
ipec/data/core.py
wwwbbb8510/ippso
fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5
[ "MIT" ]
2
2020-10-12T03:54:30.000Z
2021-09-08T14:10:21.000Z
import numpy as np import os import logging from sklearn.model_selection import train_test_split DATASET_ROOT_FOLDER = os.path.abspath('datasets')
36.054545
150
0.614977
dbf3d541561ba11217ad33d7f2e880d8ae1b4729
1,567
py
Python
FOR/Analisador-completo/main.py
lucasf5/Python
c5649121e2af42922e2d9c19cec98322e132bdab
[ "MIT" ]
1
2021-09-28T13:11:56.000Z
2021-09-28T13:11:56.000Z
FOR/Analisador-completo/main.py
lucasf5/Python
c5649121e2af42922e2d9c19cec98322e132bdab
[ "MIT" ]
null
null
null
FOR/Analisador-completo/main.py
lucasf5/Python
c5649121e2af42922e2d9c19cec98322e132bdab
[ "MIT" ]
null
null
null
# Exerccio Python 56: Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa, mostre: a mdia de idade do grupo, qual o nome do homem mais velho e quantas mulheres tm menos de 20 anos. mediaidade = '' nomelista = [] idadelista = [] sexolista = [] homens = [] mulherescommenosde20 = 0 n...
27.982143
221
0.612636
dbf566f5e271a38bb7effb6c5cb9d1b3bcf1fdab
22,131
py
Python
test/python/quantum_info/operators/test_operator.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2019-06-28T19:58:42.000Z
2019-07-26T05:04:02.000Z
test/python/quantum_info/operators/test_operator.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
null
null
null
test/python/quantum_info/operators/test_operator.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
1
2020-01-24T21:01:06.000Z
2020-01-24T21:01:06.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
38.826316
90
0.592246
dbf638d5301c89db06eb944d0fa138829b04d587
243
py
Python
pages/feature_modal.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
pages/feature_modal.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
pages/feature_modal.py
jack-skerrett-bluefruit/Python-ScreenPlay
045486bdf441fa3a7a6cde59e7b7e12a7d53fbed
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By
30.375
82
0.699588
dbf65821c57bcbfbc7d857dacc3de5d4175d7481
1,101
py
Python
liststations.py
CrookedY/AirPollutionBot
ce79037d6dddd1f297fce04a694b49f8b9a1bfad
[ "Apache-2.0" ]
1
2018-08-10T14:06:07.000Z
2018-08-10T14:06:07.000Z
liststations.py
CrookedY/AirPollutionBot
ce79037d6dddd1f297fce04a694b49f8b9a1bfad
[ "Apache-2.0" ]
2
2017-08-09T11:24:31.000Z
2018-03-01T22:50:04.000Z
liststations.py
CrookedY/AirPollutionBot
ce79037d6dddd1f297fce04a694b49f8b9a1bfad
[ "Apache-2.0" ]
null
null
null
from urllib2 import Request, urlopen, URLError import json request = Request('https://uk-air.defra.gov.uk/sos-ukair/api/v1/stations/') try: response = urlopen(request) data = response.read() except URLError, e: print 'error:', e stations= json.loads (data) #extract out station 2 stations2 = stations [7] prope...
23.934783
85
0.719346
dbf72e3ca9c0760ca6777e329e27075106a7a7eb
73
py
Python
pyfinancials/engine.py
kmiller96/PyFinancials
73a89b0fd3a3d501b8f8c770f73473e9a2d18fdf
[ "MIT" ]
1
2019-02-09T21:28:27.000Z
2019-02-09T21:28:27.000Z
pyfinancials/engine.py
kmiller96/PyFinancials
73a89b0fd3a3d501b8f8c770f73473e9a2d18fdf
[ "MIT" ]
null
null
null
pyfinancials/engine.py
kmiller96/PyFinancials
73a89b0fd3a3d501b8f8c770f73473e9a2d18fdf
[ "MIT" ]
null
null
null
def hello_world(): """Tests the import.""" return "Hello world!"
18.25
27
0.60274
dbf810a25b7c035adf73121054a304443a683fb0
748
py
Python
core/migrations/0002_auto_20180702_1913.py
mertyildiran/echo
805db64e3fa9d31fd3c24390fac2e9bf7c91ad57
[ "Apache-2.0" ]
5
2018-07-26T22:48:00.000Z
2021-05-02T01:59:51.000Z
core/migrations/0002_auto_20180702_1913.py
mertyildiran/echo
805db64e3fa9d31fd3c24390fac2e9bf7c91ad57
[ "Apache-2.0" ]
null
null
null
core/migrations/0002_auto_20180702_1913.py
mertyildiran/echo
805db64e3fa9d31fd3c24390fac2e9bf7c91ad57
[ "Apache-2.0" ]
1
2018-08-04T14:07:53.000Z
2018-08-04T14:07:53.000Z
# Generated by Django 2.0.6 on 2018-07-02 19:13 import core.models from django.db import migrations, models
24.933333
99
0.57754
dbf954bdb4324156034054e74ee082a9dc8b9157
6,151
py
Python
tests/test_helpers.py
ajdavis/aiohttp
d5138978f3e82aa82a2f003b00d38112c58a40c1
[ "Apache-2.0" ]
1
2021-07-07T06:36:57.000Z
2021-07-07T06:36:57.000Z
tests/test_helpers.py
ajdavis/aiohttp
d5138978f3e82aa82a2f003b00d38112c58a40c1
[ "Apache-2.0" ]
null
null
null
tests/test_helpers.py
ajdavis/aiohttp
d5138978f3e82aa82a2f003b00d38112c58a40c1
[ "Apache-2.0" ]
null
null
null
import pytest from unittest import mock from aiohttp import helpers import datetime
29.572115
79
0.643635
dbf96ddd90a5808166e52168da5cadf7b4bb5c35
372
py
Python
GenConfigs.py
truls/faas-profiler
d54ca0d9926f38c693f616ba4d08414aea823f51
[ "MIT" ]
null
null
null
GenConfigs.py
truls/faas-profiler
d54ca0d9926f38c693f616ba4d08414aea823f51
[ "MIT" ]
null
null
null
GenConfigs.py
truls/faas-profiler
d54ca0d9926f38c693f616ba4d08414aea823f51
[ "MIT" ]
null
null
null
from os.path import join FAAS_ROOT="/lhome/trulsas/faas-profiler" WORKLOAD_SPECS=join(FAAS_ROOT, "specs", "workloads") #FAAS_ROOT="/home/truls/uni/phd/faas-profiler" WSK_PATH = "wsk" OPENWHISK_PATH = "/lhome/trulsas/openwhisk" #: Location of output data DATA_DIR = join(FAAS_ROOT, "..", "profiler_results") SYSTEM_CPU...
28.615385
61
0.736559
dbfb34040aab0e7552b68ecebacb85f0a1f7a601
211
py
Python
Chapter09/calc.py
LuisPereda/Learning_Python
e89e69346c5584be10d991010f39b59329793ba5
[ "MIT" ]
null
null
null
Chapter09/calc.py
LuisPereda/Learning_Python
e89e69346c5584be10d991010f39b59329793ba5
[ "MIT" ]
null
null
null
Chapter09/calc.py
LuisPereda/Learning_Python
e89e69346c5584be10d991010f39b59329793ba5
[ "MIT" ]
null
null
null
print divide(10,0) print sum1(10,0)
13.1875
34
0.635071
dbfbafe90d8d62c542ce03ef8a862cdef8687b06
5,288
py
Python
radssh/hostkey.py
Eli-Tarrago/radssh
ebf3c8f17c3768268dcd483e899a590698de4452
[ "BSD-3-Clause" ]
39
2015-05-11T15:06:58.000Z
2021-12-29T07:24:23.000Z
radssh/hostkey.py
Eli-Tarrago/radssh
ebf3c8f17c3768268dcd483e899a590698de4452
[ "BSD-3-Clause" ]
45
2015-01-05T22:11:18.000Z
2021-06-02T03:57:49.000Z
radssh/hostkey.py
eorochena/radssh
b1d1ee5822036445f26a34147452df5c3142caee
[ "BSD-3-Clause" ]
13
2015-05-05T12:42:09.000Z
2022-03-03T18:09:49.000Z
# # Copyright (c) 2014, 2016, 2018, 2020 LexisNexis Risk Data Management Inc. # # This file is part of the RadSSH software package. # # RadSSH is free software, released under the Revised BSD License. # You are permitted to use, modify, and redsitribute this software # according to the Revised BSD License, a copy of wh...
39.462687
167
0.625946
dbfc3c9f59db54005f9a1ad67dd376c6806f7fa6
14,153
py
Python
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
543
2016-07-07T15:31:01.000Z
2022-03-31T10:58:32.000Z
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
143
2016-07-07T16:56:38.000Z
2022-02-23T23:16:52.000Z
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
158
2016-07-07T16:41:49.000Z
2022-03-21T17:57:28.000Z
''' pymmh3 was written by Fredrik Kihlander and enhanced by Swapnil Gusani, and is placed in the public domain. The authors hereby disclaim copyright to this source code. pure python implementation of the murmur3 hash algorithm https://code.google.com/p/smhasher/wiki/MurmurHash3 This was written for the times when y...
31.311947
104
0.464283
dbfc56fb832ee5fc9af604dacd2a35c059519b31
950
py
Python
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
10
2020-04-08T06:25:27.000Z
2022-03-15T06:54:53.000Z
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
117
2019-12-16T14:43:41.000Z
2022-03-21T19:46:58.000Z
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
5
2020-04-15T16:23:29.000Z
2021-12-07T08:40:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import dlite thisdir = os.path.abspath(os.path.dirname(__file__)) url = 'json://' + thisdir + '/Person.json' print('-- create: ExPerson') ExPerson = dlite.classfactory(Person, url=url) print('-- create: person1') person1 = Person('Jack Daniel', 42, ['distil...
25
78
0.671579
dbfcfb1df1954ace1963bc30983b96adb222d711
807
py
Python
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
1
2021-11-03T18:27:37.000Z
2021-11-03T18:27:37.000Z
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
null
null
null
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
1
2021-02-10T15:21:53.000Z
2021-02-10T15:21:53.000Z
''' nn , . , 8 . 1 2 -4 5 3 -2 9 -10 , . [1, 2, -4], [5, 3, -2, 9], [9, -10] . [5, 3, -2, 9] , . 5+3+(-2)+9 = 15 . 1 2 -4 5 3 -2 9 -10 15 100. ''' import sys def getSubsum(data) : ''' n list , . ''' dp = [0] * len(data) d...
17.170213
61
0.537794
dbfd1a602dd992f412e1700c617d5bbf9b239826
505
py
Python
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
null
null
null
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
6
2020-03-24T16:45:10.000Z
2021-02-13T10:03:53.000Z
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest from mockdock import dns
38.846154
168
0.708911
dbfd45a1262d4d81ad4ca682e226d591f37c7fd4
1,490
py
Python
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
6
2019-08-23T18:06:41.000Z
2020-05-06T18:26:53.000Z
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019, Amazon Web Services 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 law or agreed to in writing,...
29.8
73
0.769799
dbfd8140aa71c6ce6288cd86d96c8cf8754cf91f
26,845
py
Python
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
import asyncio import discord from datetime import datetime from operator import itemgetter from discord.ext import commands from Cogs import Nullify from Cogs import DisplayName from Cogs import UserTime from Cogs import Message
42.076803
254
0.537568
dbfdaede95b2536399d16c62c421baf5bd420ceb
6,688
py
Python
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
null
null
null
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
2
2020-08-30T22:47:54.000Z
2021-03-31T19:58:11.000Z
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
null
null
null
"""Mtodos de preprocessamento de testes individuais """ import pandas as pd import numpy as np import math def test_1(df, seed=0): """training: balanced; test: balanced training: 80k (40k 0, 40k 1) test: 20k (10k 0, 10k 1) """ df_ones = df[df['label'] == 1] df_zeros = df[df['label'] =...
36.546448
80
0.689145
dbfdb987e6de76d1f36bf0f8ce7f9d972b1cbaed
7,103
py
Python
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
# This file is automatically generated by the generate_constants_module.py script in wrappers/Python. # DO NOT MODIFY THE CONTENTS OF THIS FILE! from __future__ import absolute_import from . import _constants INVALID_PARAMETER = _constants.INVALID_PARAMETER igas_constant = _constants.igas_constant imolar_mass = _cons...
44.672956
120
0.887653
dbfe9381e4f6dcc57fd5c5d02265d7f565b40315
2,857
py
Python
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
import random import torch.utils.data.sampler
38.608108
147
0.637382
dbfe9b7374d292dd3a07ffc92b4ebb9e7af2ac5d
1,416
py
Python
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,664
2015-01-03T09:35:21.000Z
2022-03-31T04:55:24.000Z
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
3,018
2015-02-19T20:16:10.000Z
2021-11-13T20:47:48.000Z
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,673
2015-01-06T14:14:42.000Z
2022-03-31T07:22:30.000Z
#!/usr/bin/env python """ 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");...
33.714286
97
0.764831
dbff3b375851c03b4ae31fb20b30423a4b9c6ad5
1,162
py
Python
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
2
2017-09-24T02:29:48.000Z
2017-10-05T11:15:22.000Z
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
from sklearn import svm, metrics import random import re lines = open("iris.csv", "r", encoding="utf-8").read().split("\n") csv = list(map(to_columm, lines)) del csv[0] random.shuffle(csv) k = 5 csv_k = [[] for i in range(k)] scores = [] for i in range(len(csv)): csv_k[i % k].append(csv[i]) for test in...
16.84058
66
0.620482
e002150863388c3c73e7c985abca9ac6c4427a70
2,587
bzl
Python
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
3
2020-01-14T12:57:31.000Z
2021-06-06T20:47:57.000Z
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
20
2020-04-02T13:08:43.000Z
2020-11-05T11:27:40.000Z
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
1
2021-04-02T09:32:35.000Z
2021-04-02T09:32:35.000Z
load("@wix_oss_infra//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external")
37.492754
102
0.68535
e0023b6272774adf06f1384bdb4cb510043c4a82
224
py
Python
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
1
2019-09-29T14:19:54.000Z
2019-09-29T14:19:54.000Z
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
a = int(input()) b = int(input()) c = int(input()) d = int(input()) if a == 0 and b == 0: print("INF") else: if (d - b * c / a) != 0 and (- b / a) == (- b // a): print(- b // a) else: print("NO")
18.666667
56
0.397321
e0063a8b35dfc827fe158a159fe5d8b8ab703065
4,920
py
Python
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
32
2020-05-31T17:41:58.000Z
2022-03-28T18:38:11.000Z
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
1
2022-02-09T22:13:03.000Z
2022-02-09T23:55:28.000Z
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
9
2020-07-17T16:50:24.000Z
2021-12-13T11:29:12.000Z
import os import pathlib import sklearn.model_selection import tarfile import torch import torchaudio import urllib.request here = pathlib.Path(__file__).resolve().parent if __name__ == '__main__': main()
42.051282
120
0.566057
e008ab01b4020e37d916e20d303c66a51a23123e
5,652
py
Python
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from typing import List from flask import Blueprint, jsonify, request, json from app.models.products import Product, Category, products_categories from app import db products_blueprint = Blueprint('products', __name__) def create_or_get_categories(p: dict) -> List[Category]...
45.580645
120
0.608457
e008c8c892e467ea561589969c08eaa2c9b808db
1,701
py
Python
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import pytest from httmock import urlmatch, HTTMock from util.config import URLSchemeAndHostname from util.config.validator import ValidatorContext from util.config.validators import ConfigValidationException from util.config.validators.validate_bitbucket_trigger import BitbucketTriggerValidator from test.fixtures i...
29.842105
87
0.671958
e008cc40a9e990beff8a7a594350250e113f3691
2,414
py
Python
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 15 16:51:16 2019 @author: Silvan """ import numpy as np import scipy import matplotlib.pyplot as plt k=1000 n1=2.0 n2=1.0 alpha=np.pi/6.0 beta=np.arcsin(n2/n1*np.sin(alpha)) ya=1.0 xa=-ya*np.tan(alpha) yb=-1.0 xb=-yb*np.tan(beta) K2,x...
24.383838
95
0.583264
e0097d9cfd4f53f9d94ad08b373e659436909217
444
py
Python
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
italia/readthedocs.org
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
19
2018-03-28T12:28:35.000Z
2022-02-14T20:09:42.000Z
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
berez23/docs.italia.it
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
274
2017-10-10T07:59:04.000Z
2022-03-12T00:56:03.000Z
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
italia/readthedocs.org
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
13
2018-04-03T09:49:50.000Z
2021-04-18T22:04:15.000Z
"""Remove the readthedocs elasticsearch index.""" from __future__ import absolute_import from django.conf import settings from django.core.management.base import BaseCommand from elasticsearch import Elasticsearch
23.368421
51
0.725225
e00b9ee8e43ae71af00a3fe383bedc3df745f04d
7,574
py
Python
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
""" BigGAN: The Authorized Unofficial PyTorch release Code by A. Brock and A. Andonian This code is an unofficial reimplementation of "Large-Scale GAN Training for High Fidelity Natural Image Synthesis," by A. Brock, J. Donahue, and K. Simonyan (arXiv 1809.11096). Let's go. """ import datetime impor...
40.287234
103
0.597571
e00c71d6078595059b1d0af82650622e80499174
1,693
py
Python
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
4
2017-03-03T16:24:24.000Z
2018-06-24T05:50:40.000Z
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2021-09-29T17:17:30.000Z
2021-09-29T17:17:30.000Z
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2017-12-19T20:45:53.000Z
2017-12-19T20:45:53.000Z
# __BEGIN_LICENSE__ #Copyright (c) 2015, United States Government, as represented by the #Administrator of the National Aeronautics and Space Administration. #All rights reserved. # __END_LICENSE__ import os import time import random import shutil from glob import glob import traceback import sys from geocamUtil im...
27.306452
93
0.617247
e00d7dd12724a0363ee40d8c349e7cccfb71d6f4
5,752
py
Python
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
# Ce fichier contient (au moins) cinq erreurs. # Instructions: # - tester jusqu' atteindre 100% de couverture; # - corriger les bugs;" # - envoyer le diff ou le dpt git par email.""" import hypothesis from hypothesis import given, settings from hypothesis.strategies import integers, lists
31.26087
112
0.604312
e00dbb3c20046835e182d01718caf34d09944176
22,455
py
Python
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The ``snewpy.snowglobes`` module contains functions for interacting with SNOwGLoBES. `SNOwGLoBES <https://github.com/SNOwGLoBES/snowglobes>`_ can estimate detected event rates from a given input supernova neutrino flux. It supports many different neutrino detectors, detector materials and in...
46.298969
553
0.631485
e00e074bf789711cc01d53bcaa030d52c4e69f5b
4,621
py
Python
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
128
2020-06-29T01:40:36.000Z
2022-03-29T15:37:39.000Z
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
8
2020-06-29T03:51:50.000Z
2020-07-22T23:55:47.000Z
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
24
2020-07-02T06:03:03.000Z
2022-03-22T11:59:53.000Z
from typing import List, Tuple from omegaconf import DictConfig import torch import torch.nn as nn import torch.nn.functional as F from rlcycle.common.abstract.loss import Loss
34.485075
86
0.61069
e00f4579dad4a0f1f3310721291b602f532b6bf5
12,518
py
Python
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
3
2020-11-19T10:28:57.000Z
2021-04-15T17:16:24.000Z
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
null
null
null
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
null
null
null
"""viewer application which allows to interactively view spatio-temporal gap filling results""" import os import argparse from datetime import datetime, timedelta from tkinter import Canvas, Tk, Button, RAISED, DISABLED, SUNKEN, NORMAL import numpy as np from PIL import Image, ImageTk import probgf.media as media pa...
51.941909
158
0.616552
e00f57f732929e05a58cd0ef2eae47d08e8561a9
4,946
py
Python
paypal/pro/tests.py
pdfcrowd/django-paypal
0ea56dc6c799204f0f8719481f94d0c79de6eff5
[ "Unlicense", "MIT" ]
1
2019-06-13T15:59:48.000Z
2019-06-13T15:59:48.000Z
pro/tests.py
sirmmo/django-paypal
0c8aeec1c319a08ce1bfdf828534d01b69b8fa27
[ "MIT", "Unlicense" ]
null
null
null
pro/tests.py
sirmmo/django-paypal
0c8aeec1c319a08ce1bfdf828534d01b69b8fa27
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from django.conf import settings from django.core.handlers.wsgi import WSGIRequest from django.forms import ValidationError from django.http import QueryDict from django.test import TestCase from django.test.client import Client from paypal.pro.fields import CreditCardField fr...
32.973333
234
0.593207
e00f75413d6a65ba71109974edd248bc1533ce8f
1,010
py
Python
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 7 19:46:40 2020 @author: Intel """ m = int(input()) grid = [] for i in range(0, m): grid.append(input().strip()) displayPathtoPrincess(m,grid)
22.954545
40
0.372277
e01063b5b93496a8c88b374770c28bc942feb23d
65,397
py
Python
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import pybedtools import pandas as pnd import numpy as np import tabix import matplotlib.ticker as ticker from matplotlib.patches import Rectangle from matplotlib.patches import Arrow from matplotlib.path import Path from matplotlib.patches import PathPatch import matplotlib.cm as cm imp...
35.254447
80
0.545101
e010b163b6fbc347a75063de7760418370bb37d6
31,171
py
Python
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
""" File containing DFA and NFA public classes """ import collections.abc from itertools import product, chain, combinations from string import printable from typing import ( AbstractSet, Container, FrozenSet, Iterable, List, Mapping, MutableMapping, Optional, Set, Tuple, Uni...
39.506971
91
0.595939
e0112c386596780c5a86b0d6086dc2f7b6c2be8a
429
py
Python
Numbers/Roman Number Generator/tests.py
fossabot/IdeaBag2-Solutions
73b554d9796510fc86e5fc55016732aa866266c6
[ "MIT" ]
10
2018-07-06T22:05:45.000Z
2021-05-22T11:29:04.000Z
Numbers/Roman Number Generator/tests.py
jarik-marwede/IdeaBag2-Projects
c5fe9524ef03a6ebc098ab8aaee7448f5b877828
[ "MIT" ]
22
2018-07-13T17:16:43.000Z
2022-01-11T11:16:08.000Z
Numbers/Roman Number Generator/tests.py
jarik-marwede/IdeaBag2-Projects
c5fe9524ef03a6ebc098ab8aaee7448f5b877828
[ "MIT" ]
1
2020-06-13T18:53:51.000Z
2020-06-13T18:53:51.000Z
#!/usr/bin/env python3 import unittest from roman_number_generator import arabic_to_roman if __name__ == "__main__": unittest.main()
23.833333
60
0.717949
e012a92e1f872614d01a6331fee5e35c430a31f7
261
py
Python
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
from infrastructure.satnogClient import SatnogClient import os
29
66
0.762452
e013ea72c2e27425fa2415a60a17282e347acbb7
45,537
py
Python
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Oregano - a lightweight Ergon client # CashFusion - an advanced coin anonymizer # # Copyright (C) 2020 Mark B. Lundeberg # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the So...
45.310448
174
0.599798
e014451ff2d26b3e408bb00a4f1a954adc75daa5
2,229
py
Python
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt #Funcio per a l'excercici 4.4
31.842857
154
0.674742
e0161b99cffb06588c8cd2a39e9f07abf59540ea
18,987
bzl
Python
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
9
2020-05-31T10:24:57.000Z
2021-12-21T10:07:51.000Z
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
2
2021-11-09T23:25:01.000Z
2021-11-10T08:42:22.000Z
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
2
2020-06-03T13:21:33.000Z
2021-12-01T20:17:46.000Z
# Copyright (C) 2020 Google Inc. # # This file has been licensed under Apache 2.0 license. Please see the LICENSE # file at the root of the repository. # Build rules for building ebooks. # This is the container CONTAINER = "filipfilmar/ebook-buildenv:1.1" # Use this for quick local runs. #CONTAINER = "ebook-builden...
32.126904
103
0.599357
e0164a1f4fee849a8bca46fb970244ecbfd603fe
715
py
Python
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
n = int(input()) coelho = rato = sapo = contador = 0 for i in range(0, n): q, t = input().split(' ') t = t.upper() q = int(q) if 1 <= q <= 15: contador += q if t == 'C': coelho += q elif t == 'R': rato += q elif t == 'S': sapo += q po...
25.535714
51
0.544056
e016b94fa3454d62f7b448ca14631899dd78dc4c
299
py
Python
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
3
2015-07-20T17:56:21.000Z
2017-10-22T05:52:13.000Z
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
null
null
null
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) 2015 Fabian Barkhau <fabian.barkhau@gmail.com> # License: MIT (see LICENSE file) from kivy.uix.boxlayout import BoxLayout from gravur.common.labelbox import LabelBox # NOQA from gravur.utils import load_widget
21.357143
62
0.772575
e018a8edf8d16988caad3f9660a381b73b1f97c4
17,156
py
Python
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
62
2017-02-16T02:16:22.000Z
2022-02-07T08:26:12.000Z
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
77
2017-10-26T20:17:35.000Z
2022-03-25T22:56:32.000Z
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
19
2017-01-27T16:37:37.000Z
2021-12-12T13:52:01.000Z
import datetime class Process(object):
47.392265
148
0.6199
e01a18c1d0d2ecbc1fcb6159c9f9c87becb0c6cc
1,458
py
Python
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
# -*- coding: utf8 -*- # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import os import platform import time import pytest import zmq from zmq.tests import BaseZMQTestCase, skip_pypy
29.16
71
0.593964
e01cbf8a1a1ab981a1d993596c3a332451dcd74d
367
py
Python
pythonlibs/mantis/templates/webapp/src/webapp/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
22
2019-10-28T07:28:12.000Z
2022-03-19T15:36:41.000Z
AliceBackend/src/AliceBackend/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
1
2019-11-07T04:54:14.000Z
2019-11-07T07:12:48.000Z
AliceBackend/src/AliceBackend/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
13
2019-10-28T07:29:07.000Z
2021-11-03T06:53:12.000Z
#coding:utf-8
24.466667
80
0.643052
e01cd6185b052b2c9153c8eec135e9e3a2cf7572
667
py
Python
base/site-packages/django_qbe/urls.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/django_qbe/urls.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/django_qbe/urls.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
# -*- coding: utf-8 -*- from django.conf.urls.defaults import patterns, url from django_qbe.exports import formats urlpatterns = patterns('django_qbe.views', url(r'^$', 'qbe_form', name="qbe_form"), url(r'^js/$', 'qbe_js', name="qbe_js"), url(r'^results/bookmark/$', 'qbe_bookmark', name="qbe_bookma...
37.055556
73
0.611694
e01d041f8b5c1564d154529462e58e50b56f4910
5,264
py
Python
augment.py
docongminh/Text-Image-Augmentation-python
da27e8346ce2339f801335923faf7b14e026fd90
[ "Apache-2.0" ]
217
2020-02-09T07:44:18.000Z
2022-03-24T03:52:51.000Z
ocraug/augment.py
lzmisscc/Text-Image-Augmentation-python
12f104452e939444eb0fd4ac96143b78d091845b
[ "Apache-2.0" ]
5
2020-03-23T02:24:33.000Z
2022-03-13T07:02:04.000Z
ocraug/augment.py
lzmisscc/Text-Image-Augmentation-python
12f104452e939444eb0fd4ac96143b78d091845b
[ "Apache-2.0" ]
42
2020-02-10T06:42:31.000Z
2022-03-13T11:54:18.000Z
# -*- coding:utf-8 -*- # Author: RubanSeven # import cv2 import numpy as np # from transform import get_perspective_transform, warp_perspective from warp_mls import WarpMLS # def distort(src, segment): # img_h, img_w = src.shape[:2] # dst = np.zeros_like(src, dtype=np.uint8) # # cut = im...
33.74359
107
0.586816
e01de102906f7a6f8c39855d08b6adaa53f5663c
1,347
py
Python
Graph/print all paths from two vertices in a directed graph.py
ikaushikpal/DS-450-python
9466f77fb9db9e6a5bb3f20aa89ba6332f49e848
[ "MIT" ]
3
2021-06-28T12:04:19.000Z
2021-09-07T07:23:41.000Z
Graph/print all paths from two vertices in a directed graph.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
null
null
null
Graph/print all paths from two vertices in a directed graph.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
1
2021-06-28T15:42:55.000Z
2021-06-28T15:42:55.000Z
from collections import defaultdict if __name__ == "__main__": g = Graph() g.addEdge("A", "B") g.addEdge("B", "D") g.addEdge("A", "D") g.addEdge("C", "A") g.addEdge("C", "B") g.addEdge("A", "C") paths = g.printAllPaths("A", "B") print(paths)
28.659574
85
0.628062
e01e00717692398432049be3d51d551f012c222e
1,958
py
Python
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
1
2016-03-04T18:30:48.000Z
2016-03-04T18:30:48.000Z
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
# testing the output of pipegeojson against different input types import berrl as bl import itertools # making line with csv file location line1=bl.make_line('csvs/line_example.csv') # making line with list testlist=bl.read('csvs/line_example.csv') line2=bl.make_line(testlist,list=True) # testing each line geojson ...
22.25
65
0.759959
e01f044aab30cbd5165bae297a319d57b579704e
912
py
Python
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
9
2021-01-11T10:49:21.000Z
2022-02-28T15:48:00.000Z
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
18
2020-05-08T15:43:08.000Z
2022-03-23T10:19:24.000Z
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
10
2019-12-18T12:10:12.000Z
2022-01-05T09:12:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 8 16:19:07 2017 @author: ajaver """ import os import cv2 import sys import glob import threading from functools import partial main_dir = '/Volumes/behavgenom_archive$/Celine/raw/' fnames = glob.glob(os.path.join(main_dir, '**', '*.avi')) fnames =...
21.714286
71
0.663377
e0201884251a727105b3a8b3946ca3bc3aefd73d
480
py
Python
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
199
2016-08-18T23:33:05.000Z
2019-12-24T07:08:48.000Z
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
949
2016-04-25T11:41:34.000Z
2019-12-27T10:43:40.000Z
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
78
2016-08-30T07:42:34.000Z
2019-12-13T20:34:45.000Z
from devito.ir import Call from devito.passes.iet.definitions import DataManager from devito.passes.iet.langbase import LangBB __all__ = ['CBB', 'CDataManager']
21.818182
53
0.591667
e0215d4c222f248ad7105000615a748c88340354
2,026
py
Python
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Test methods about image process Make sure the existance of the images """ from ell import * import numpy as np _filter = Filter.from_name('db4')
28.535211
109
0.605133
e02439282d17416800f4bfd8e050f404bc4d7706
5,991
py
Python
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
1,100
2017-01-18T16:08:33.000Z
2018-11-04T00:42:54.000Z
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
199
2016-12-20T07:45:16.000Z
2018-11-01T02:30:12.000Z
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
521
2017-01-10T21:53:24.000Z
2018-11-01T18:17:52.000Z
# PyTorch import torch from torch.utils.data import IterableDataset, DataLoader from donkeycar.utils import train_test_split from donkeycar.parts.tub_v2 import Tub from torchvision import transforms from typing import List, Any from donkeycar.pipeline.types import TubRecord, TubDataset from donkeycar.pipeline.sequence ...
37.21118
95
0.633951
e0251d7f1fc5a3340792a778c923482bb49bcf13
316
py
Python
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
import os from tornado.template import Template __SNIPPET__ = os.path.join(os.path.dirname(os.path.abspath(__file__)), '_snippet')
31.6
86
0.686709
e025cd2fbcd0226b08e7474394109f24f199f13c
3,857
py
Python
homeassistant/components/sensor/hddtemp.py
mdonoughe/home-assistant
d9805160bc787146bff0c434fdcab995716f0f8c
[ "Apache-2.0" ]
2
2020-02-20T18:47:55.000Z
2021-11-09T11:33:28.000Z
homeassistant/components/sensor/hddtemp.py
mdonoughe/home-assistant
d9805160bc787146bff0c434fdcab995716f0f8c
[ "Apache-2.0" ]
1
2021-02-08T20:56:06.000Z
2021-02-08T20:56:06.000Z
homeassistant/components/sensor/hddtemp.py
diophung/home-assistant
a5aa1118937702ca8bec050614ee52dc14f8466b
[ "Apache-2.0" ]
1
2020-11-21T09:37:47.000Z
2020-11-21T09:37:47.000Z
""" Support for getting the disk temperature of a host. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.hddtemp/ """ import logging from datetime import timedelta from telnetlib import Telnet import voluptuous as vol import homeassistant.helpers....
29.219697
79
0.637283
e026ba13c5f7c12090e3dee6c5f9a4f65eca3bb7
1,402
py
Python
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2019-07-07T01:46:55.000Z
2019-07-07T01:46:55.000Z
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2019-07-26T18:34:02.000Z
2019-07-26T18:34:02.000Z
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2020-05-10T01:27:48.000Z
2020-05-10T01:27:48.000Z
import random prefix = [ 'Look at you! ', 'Bless ', 'Bless! ', 'I heard about that! ', 'Amen!', 'You and the kids doing alright?', 'Miss ya\'ll!' ] suffix = [ '. Amen!', '. God bless america', '. God bless!', ' haha', '. love ya!', '. love ya\'ll!', ]
23.366667
76
0.53067
e026dd61a71f4c0236cf71cd04ff440228426371
1,303
py
Python
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
null
null
null
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
5
2020-03-19T17:49:50.000Z
2021-06-10T20:06:14.000Z
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
null
null
null
import telegram from django.conf import settings from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.generic import View from django.views.decorators.csrf import csrf_exempt from braces.views import CsrfExemptMixin from rest_framework.authentication import Bas...
29.613636
61
0.692249
e026df5666a9c260f8a2d313e1edc3eee3cad4f7
9,053
py
Python
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
import os from datetime import datetime from os.path import join import pathlib from tqdm import tqdm import argparse import torch from torch import nn, optim from torch.autograd import Variable import torchvision from torchvision.transforms import Pad from torchvision.utils import make_grid import repackage repackage...
37.720833
98
0.629515