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
d8aa39d9d29606bfc3d0bf3b107305b6d1c667aa
3,406
py
Python
metallic/metalearners/mbml/base.py
Renovamen/metallic
c3992e4b322f9d41d9b7997c472baf99c843046c
[ "MIT" ]
5
2021-04-14T07:31:06.000Z
2021-12-11T08:12:10.000Z
metallic/metalearners/mbml/base.py
Renovamen/metallic
c3992e4b322f9d41d9b7997c472baf99c843046c
[ "MIT" ]
1
2021-04-14T07:44:36.000Z
2021-04-15T14:01:52.000Z
metallic/metalearners/mbml/base.py
Renovamen/metallic
c3992e4b322f9d41d9b7997c472baf99c843046c
[ "MIT" ]
null
null
null
import os from abc import ABC, abstractmethod from typing import Callable, Optional, Tuple import torch from torch import nn, optim from ..base import MetaLearner
26.818898
75
0.579272
d8aa62a69b511bd6fe8eb61dcb1de9e114c05f4a
8,331
py
Python
backend/app/settings.py
draihal/main-pr
81814c5370b592963e91ad0683caa560b0ea9579
[ "MIT" ]
2
2021-01-28T08:23:15.000Z
2021-03-09T06:06:58.000Z
backend/app/settings.py
draihal/main-pr
81814c5370b592963e91ad0683caa560b0ea9579
[ "MIT" ]
9
2020-01-02T15:31:04.000Z
2021-12-09T01:59:26.000Z
backend/app/settings.py
draihal/main-pr
81814c5370b592963e91ad0683caa560b0ea9579
[ "MIT" ]
1
2021-03-09T06:11:16.000Z
2021-03-09T06:11:16.000Z
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.2.5. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ from datetime im...
31.79771
119
0.706638
d8aadfacb7f4de5abfc2dccb19ef5736e4d36538
593
py
Python
python/sorting/group_0s_1s.py
amitsaha/playground
82cb5ac02ac90d3fa858a5153b0a5705187c14ce
[ "Unlicense" ]
4
2018-04-14T16:28:39.000Z
2021-11-14T12:08:02.000Z
python/sorting/group_0s_1s.py
amitsaha/playground
82cb5ac02ac90d3fa858a5153b0a5705187c14ce
[ "Unlicense" ]
3
2022-02-14T10:38:51.000Z
2022-02-27T16:01:16.000Z
python/sorting/group_0s_1s.py
amitsaha/playground
82cb5ac02ac90d3fa858a5153b0a5705187c14ce
[ "Unlicense" ]
4
2015-07-07T01:01:27.000Z
2019-04-12T05:38:26.000Z
''' Groups the 0s and 1s together from a random array Reference: http://www.geeksforgeeks.org/segregate-0s-and-1s-in-an-array-by-traversing-array-once/ ''' from __future__ import print_function print(rearrange([0, 0, 1, 1])) print(rearrange([1, 0, 0, 1, 1])) print(rearrange([1, 0, 0, 0, 1, 0, 0])) print(rearrange([0,...
21.962963
97
0.548061
d8ad33478b60fc223af35de65ba50412bd1bf355
3,039
py
Python
GABClient/GAB.Client/wwwroot/ml/pipeline1/mu.py
intelequia/GAB2019ScienceLab.Client
982bcfacc31c25201755eb2353aef2204923261b
[ "MIT" ]
null
null
null
GABClient/GAB.Client/wwwroot/ml/pipeline1/mu.py
intelequia/GAB2019ScienceLab.Client
982bcfacc31c25201755eb2353aef2204923261b
[ "MIT" ]
null
null
null
GABClient/GAB.Client/wwwroot/ml/pipeline1/mu.py
intelequia/GAB2019ScienceLab.Client
982bcfacc31c25201755eb2353aef2204923261b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np from scipy.signal import savgol_filter import sys
29.504854
102
0.524844
d8ad658c4df19c485095900714b12cbc63dc40bd
544
py
Python
setup.py
farouk-muha/pav_bsc
f12e2365e97146d05a1e60f1a6112bb3e08295dd
[ "MIT" ]
null
null
null
setup.py
farouk-muha/pav_bsc
f12e2365e97146d05a1e60f1a6112bb3e08295dd
[ "MIT" ]
null
null
null
setup.py
farouk-muha/pav_bsc
f12e2365e97146d05a1e60f1a6112bb3e08295dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in pav_bsc/__init__.py from pav_bsc import __version__ as version setup( name='pav_bsc', version=version, description='Pa...
25.904762
65
0.766544
d8adc735050a0fd5a61d2b42aa76a945a006c221
2,957
py
Python
components/resnet-cmle/resnet/deploy.py
cbreuel/pipelines
22a85b4af642b896b57293c0d15d0f20c995be99
[ "Apache-2.0" ]
9
2019-03-28T02:20:45.000Z
2021-12-01T22:43:36.000Z
components/resnet-cmle/resnet/deploy.py
cbreuel/pipelines
22a85b4af642b896b57293c0d15d0f20c995be99
[ "Apache-2.0" ]
2
2019-10-17T16:51:43.000Z
2019-10-18T01:18:35.000Z
components/resnet-cmle/resnet/deploy.py
cbreuel/pipelines
22a85b4af642b896b57293c0d15d0f20c995be99
[ "Apache-2.0" ]
4
2019-04-11T12:09:59.000Z
2020-10-11T15:53:53.000Z
# Copyright 2018 Google LLC # # 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, ...
41.069444
131
0.600609
d8adf264910375ea507ebd88b7147dd9829ca904
3,506
py
Python
tests/test_quickbooks_payroll.py
fulfilio/trytond-quickbooks-payroll
18148e6f366025268b4335a89f07d2506ad5f446
[ "BSD-3-Clause" ]
null
null
null
tests/test_quickbooks_payroll.py
fulfilio/trytond-quickbooks-payroll
18148e6f366025268b4335a89f07d2506ad5f446
[ "BSD-3-Clause" ]
null
null
null
tests/test_quickbooks_payroll.py
fulfilio/trytond-quickbooks-payroll
18148e6f366025268b4335a89f07d2506ad5f446
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ tests/test_quickbooks_payroll.py """ import csv import tempfile
31.303571
78
0.553622
d8aed52f5f4d4d6a14a346f71946749b037d0d84
4,284
py
Python
general/cc12m.py
robvanvolt/DALLE-datasets
527e54aeac879bc4da669fa5c5b64c9354890728
[ "MIT" ]
60
2021-05-09T02:51:10.000Z
2022-03-27T06:36:04.000Z
general/cc12m.py
robvanvolt/DALLE-datasets
527e54aeac879bc4da669fa5c5b64c9354890728
[ "MIT" ]
4
2021-07-07T21:24:33.000Z
2021-11-17T21:54:17.000Z
general/cc12m.py
robvanvolt/DALLE-datasets
527e54aeac879bc4da669fa5c5b64c9354890728
[ "MIT" ]
9
2021-05-20T14:38:59.000Z
2022-02-18T11:51:20.000Z
import pandas as pd import os import requests from pathlib import Path from PIL import Image from tqdm import tqdm from multiprocessing import Pool import gc import glob cc_url = 'https://storage.googleapis.com/conceptual_12m/cc12m.tsv' root_folder = './' total = 12423374 maxwidth = 256 maxheight = 256 thread_count = ...
37.578947
137
0.635854
d8afbaf2b23594f1f8428b9469b3f739261f7278
518
py
Python
jwtauthenticator/test_jwtauthenticator.py
YuanZhencai/jwtauthenticator
0be5e45a3c63f479758ea2768035266d3de5ec41
[ "Apache-2.0" ]
null
null
null
jwtauthenticator/test_jwtauthenticator.py
YuanZhencai/jwtauthenticator
0be5e45a3c63f479758ea2768035266d3de5ec41
[ "Apache-2.0" ]
null
null
null
jwtauthenticator/test_jwtauthenticator.py
YuanZhencai/jwtauthenticator
0be5e45a3c63f479758ea2768035266d3de5ec41
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from jose import jwt
37
207
0.835907
d8b00b965eee02af4b8f3676c77e8a154d98eecb
5,707
py
Python
src/itint/widget.py
ColorsWind/iTint
48d18ed42d9ca44caa2c71104cf4f489fe54d98d
[ "MIT" ]
1
2022-01-15T07:01:41.000Z
2022-01-15T07:01:41.000Z
src/itint/widget.py
ColorsWind/iTint
48d18ed42d9ca44caa2c71104cf4f489fe54d98d
[ "MIT" ]
null
null
null
src/itint/widget.py
ColorsWind/iTint
48d18ed42d9ca44caa2c71104cf4f489fe54d98d
[ "MIT" ]
null
null
null
import numpy as np from PySide2.QtCore import Qt, QUrl, QSize, QEventLoop from PySide2.QtGui import QPixmap, QDropEvent, QDragEnterEvent, QMouseEvent, QResizeEvent, QHideEvent from PySide2.QtWidgets import QApplication, QWidget, QHBoxLayout, QFileDialog, QWidgetItem from itint.octree import Octree from itint.ui_widge...
39.909091
109
0.656913
d8b1d59e248305d321ae1893e6fe00d702a94519
4,480
py
Python
public/PushPrices.py
efalken/OracleSwap
4884cf06f809103a22e39486fcc83c0b956ca7f5
[ "MIT" ]
5
2020-03-11T07:18:36.000Z
2020-09-14T23:57:21.000Z
public/PushPrices.py
efalken/OracleSwap
4884cf06f809103a22e39486fcc83c0b956ca7f5
[ "MIT" ]
null
null
null
public/PushPrices.py
efalken/OracleSwap
4884cf06f809103a22e39486fcc83c0b956ca7f5
[ "MIT" ]
1
2020-08-18T00:01:46.000Z
2020-08-18T00:01:46.000Z
import requests from datetime import datetime, timedelta import os from pathlib import Path from web3 import Web3, HTTPProvider import time import json # put real private key and address here wallet_private_key = "0x00000000000000000000000000000000" wallet_address = "0x000000000000000000000000000000" # put personal in...
36.422764
114
0.707143
d8b41261c2c681fcdb62fde84ac5266ed078c65f
816
py
Python
hwtLib/examples/statements/constDriver_test.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
hwtLib/examples/statements/constDriver_test.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
hwtLib/examples/statements/constDriver_test.py
optical-o/hwtLib
edad621f5ad4cdbea20a5751ff4468979afe2f77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from hwt.hdl.constants import Time from hwt.simulator.simTestCase import SingleUnitSimTestCase from hwtLib.examples.statements.constDriver import ConstDriverUnit if __name__ == "__main__": import unittest suite = unittest.TestSuite() # suite.addTest(TwoCntr...
26.322581
66
0.699755
d8b43126c4341230aae3fa4c8b5aa73490e76164
356
py
Python
uebung/bmi.py
wieerwill/Python-Intro
6b6f1d8b1b5c95590ffe15b0b4ddf188b680b491
[ "MIT" ]
3
2019-03-02T16:34:53.000Z
2021-11-15T11:43:53.000Z
uebung/bmi.py
wieerwill/Python-Intro
6b6f1d8b1b5c95590ffe15b0b4ddf188b680b491
[ "MIT" ]
null
null
null
uebung/bmi.py
wieerwill/Python-Intro
6b6f1d8b1b5c95590ffe15b0b4ddf188b680b491
[ "MIT" ]
null
null
null
# Calculate your Body-Mass-Index with Python print("BMI - Calculator!") weight_str = input("Please insert your weight (in kg): ") height_str = input("Please insert your bodys height(in m): ") weight = float(weight_str.replace(",", ".")) height = float(height_str.replace(",", ".")) bmi = weight / height ** 2 print("...
29.666667
61
0.668539
d8b44009ab655e1119911f81cd812061c34aa19f
491
py
Python
tutorial_web_scraper.py
mariusciurea/webscraping-tutorials
9fb53252c4cc08d5e2b8b0d46e67c2374e7c84c5
[ "Unlicense" ]
null
null
null
tutorial_web_scraper.py
mariusciurea/webscraping-tutorials
9fb53252c4cc08d5e2b8b0d46e67c2374e7c84c5
[ "Unlicense" ]
null
null
null
tutorial_web_scraper.py
mariusciurea/webscraping-tutorials
9fb53252c4cc08d5e2b8b0d46e67c2374e7c84c5
[ "Unlicense" ]
null
null
null
import requests from bs4 import BeautifulSoup # with open('index.html', 'rb') as hf: # soup = BeautifulSoup(hf, 'html.parser') # print(soup.prettify()) # print(soup.head.title.text) # print(soup.li.a.h2.text) # print(soup.li.a.p.text) source_code = requests.get('https://mariusciurea.github.io/links/') ...
28.882353
83
0.684318
d8b44da55092c3a84cde6a1b4d363471d58fc94a
333
py
Python
PBO_18126/tugas 3.1.py
nurhumairaabri21/PBO
12bbc2e3ca408330ac5ff2e02492bfa56b21c3eb
[ "MIT" ]
null
null
null
PBO_18126/tugas 3.1.py
nurhumairaabri21/PBO
12bbc2e3ca408330ac5ff2e02492bfa56b21c3eb
[ "MIT" ]
null
null
null
PBO_18126/tugas 3.1.py
nurhumairaabri21/PBO
12bbc2e3ca408330ac5ff2e02492bfa56b21c3eb
[ "MIT" ]
null
null
null
#input--> berfungsi untuk menerima baris input dari user dan mengembalikan dalam bentuk string #int--> berfungsi untuk menkonversi bilangan maupun string angka menjadi bilangan bulat a=int(input("masukan nilai A: ")) b=int(input("masukan nilai B: ")) a +=3 print(a) b -=10 print(b) a *=4 print(a) b *...
19.588235
95
0.684685
d8b5512902d4771f78aff0209b9c30789409995b
21,636
py
Python
tests/6_performance.py
Lucieno/SEAL-Python
9be8f65e945f43de03669a6550c26de0b098326b
[ "MIT" ]
3
2019-12-24T07:08:33.000Z
2020-05-13T17:40:28.000Z
tests/6_performance.py
adi-ar/LogisticRegression_SEAL-Python
047bcf7e2142bbdca178754de26cace4298c5936
[ "MIT" ]
null
null
null
tests/6_performance.py
adi-ar/LogisticRegression_SEAL-Python
047bcf7e2142bbdca178754de26cace4298c5936
[ "MIT" ]
null
null
null
import time import math import random from seal import * from seal_helper import * if __name__ == '__main__': print_example_banner("Example: Performance Test") example_bfv_performance_default() example_bfv_performance_custom() example_ckks_performance_default() example_ckks_performance_cus...
36.921502
123
0.650259
d8b7b5fb9877032f2872e9552bf777e9672ad149
452
py
Python
semestr7/subd/model/client.py
ffedoroff/omgtu
0cad61a2ce6a7c9bb5c9cac72c16eccf33bb4b77
[ "MIT" ]
1
2017-08-01T03:49:15.000Z
2017-08-01T03:49:15.000Z
semestr7/subd/model/client.py
ffedoroff/omgtu
0cad61a2ce6a7c9bb5c9cac72c16eccf33bb4b77
[ "MIT" ]
null
null
null
semestr7/subd/model/client.py
ffedoroff/omgtu
0cad61a2ce6a7c9bb5c9cac72c16eccf33bb4b77
[ "MIT" ]
4
2020-05-22T17:10:38.000Z
2021-12-08T00:52:00.000Z
# -*- coding: utf-8 -*- from django.db import models from django.db.models import DateTimeField, GenericIPAddressField
22.6
65
0.650442
d8ba6e17bc85f2ea591e7b78c0b6ba596ae2eb60
2,866
py
Python
google_assist.py
eholic/dash-assistant
97204e1402fbb742fb7838e995110a22ea814ab5
[ "MIT" ]
null
null
null
google_assist.py
eholic/dash-assistant
97204e1402fbb742fb7838e995110a22ea814ab5
[ "MIT" ]
null
null
null
google_assist.py
eholic/dash-assistant
97204e1402fbb742fb7838e995110a22ea814ab5
[ "MIT" ]
null
null
null
import os import sys import requests import logging import json import google.auth.transport.grpc import google.auth.transport.requests import google.oauth2.credentials from google.assistant.embedded.v1alpha2 import ( embedded_assistant_pb2, embedded_assistant_pb2_grpc ) from config import Config # Ref: htt...
34.95122
135
0.665736
d8bab771f310012235c06cb7dfdf54237fe96981
125
py
Python
src/pycrds/__init__.py
lokamigauti/metroclima-crds
70ad9d13810ed551deba1363e475e6a7271f3af1
[ "BSD-3-Clause" ]
null
null
null
src/pycrds/__init__.py
lokamigauti/metroclima-crds
70ad9d13810ed551deba1363e475e6a7271f3af1
[ "BSD-3-Clause" ]
null
null
null
src/pycrds/__init__.py
lokamigauti/metroclima-crds
70ad9d13810ed551deba1363e475e6a7271f3af1
[ "BSD-3-Clause" ]
null
null
null
__all__ = ["datafile", "flags", "graphs"] for module in __all__: __import__(__name__ + "." + module, globals(), locals())
41.666667
60
0.648
d8bbf917cb0bbef6cac30c8d90613ab18336f8eb
2,145
py
Python
d3d/box/__init__.py
minghanz/d3d
1d08013238b300489f61be57cdd20a105d16a632
[ "MIT" ]
null
null
null
d3d/box/__init__.py
minghanz/d3d
1d08013238b300489f61be57cdd20a105d16a632
[ "MIT" ]
null
null
null
d3d/box/__init__.py
minghanz/d3d
1d08013238b300489f61be57cdd20a105d16a632
[ "MIT" ]
null
null
null
import torch from .box_impl import ( iou2d as iou2d_cc, iou2d_cuda, nms2d as nms2d_cc, nms2d_cuda, rbox_2d_crop as rbox_2d_crop_cc, IouType, SupressionType) def box2d_iou(boxes1, boxes2, method="box"): ''' :param method: 'box' - normal box, 'rbox' - rotated box ''' if len(boxes1.shape) ...
34.047619
175
0.673193
d8bd67134893a262683665a0dbc9878a51447c79
15,809
py
Python
menu.py
Jasonlmx/Touhou-Star-Salvation
a8804450625957af7b81d0075873a68708374db8
[ "MIT" ]
4
2021-10-15T13:18:43.000Z
2022-03-05T10:49:47.000Z
menu.py
Jasonlmx/Touhou-Star-Salvation
a8804450625957af7b81d0075873a68708374db8
[ "MIT" ]
null
null
null
menu.py
Jasonlmx/Touhou-Star-Salvation
a8804450625957af7b81d0075873a68708374db8
[ "MIT" ]
1
2021-11-29T04:17:32.000Z
2021-11-29T04:17:32.000Z
import pygame,sys import random import math from pygame.locals import * from pygame.sprite import Group import gF import Bullet import DADcharacter import Slave import global_var import Effect import Item import gameRule
42.727027
161
0.567651
d8bd8bd8d533ca30262aba2bf7317396c7dab909
443
py
Python
blender/arm/logicnode/native/LN_read_storage.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
2,583
2016-07-27T08:25:47.000Z
2022-03-31T10:42:17.000Z
blender/arm/logicnode/native/LN_read_storage.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
2,122
2016-07-31T14:20:04.000Z
2022-03-31T20:44:14.000Z
blender/arm/logicnode/native/LN_read_storage.py
onelsonic/armory
55cfead0844923d419d75bf4bd677ebed714b4b5
[ "Zlib" ]
451
2016-08-12T05:52:58.000Z
2022-03-31T01:33:07.000Z
from arm.logicnode.arm_nodes import *
26.058824
52
0.677201
d8bfc1ac4a0ba5561449846faf72e97b38a7b701
320
py
Python
apolo/apolo/apps/adopcion/models.py
XeresRed/TrabajoGrado
3d7135732ea76410995ed3b5c3332eb83881677c
[ "MIT" ]
null
null
null
apolo/apolo/apps/adopcion/models.py
XeresRed/TrabajoGrado
3d7135732ea76410995ed3b5c3332eb83881677c
[ "MIT" ]
null
null
null
apolo/apolo/apps/adopcion/models.py
XeresRed/TrabajoGrado
3d7135732ea76410995ed3b5c3332eb83881677c
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here.
26.666667
59
0.759375
d8c1279c1f035fd1c0ca93502531ba20b1cf610a
2,323
py
Python
app/product/tests/test_product_api.py
RamzeyXD/varanus-ecommerce-api
4688fc393b73d70a4923d471006caee2ec624f68
[ "MIT" ]
null
null
null
app/product/tests/test_product_api.py
RamzeyXD/varanus-ecommerce-api
4688fc393b73d70a4923d471006caee2ec624f68
[ "MIT" ]
5
2021-03-19T04:52:44.000Z
2021-09-22T19:12:07.000Z
app/product/tests/test_product_api.py
RamzeyXD/varanus-ecommerce-api
4688fc393b73d70a4923d471006caee2ec624f68
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Product from product.serializers import ProductSerializer PRODUCTS_URL = reverse('product:product-list'...
28.679012
71
0.671545
d8c141a49a479e74699dc9b65661ce60383e9e67
4,686
py
Python
src/face_feature.py
ryota0051/facial_expressions
763f1108fc56f5360fbd6603e0dc3e40c27a3d1b
[ "MIT" ]
null
null
null
src/face_feature.py
ryota0051/facial_expressions
763f1108fc56f5360fbd6603e0dc3e40c27a3d1b
[ "MIT" ]
null
null
null
src/face_feature.py
ryota0051/facial_expressions
763f1108fc56f5360fbd6603e0dc3e40c27a3d1b
[ "MIT" ]
null
null
null
import os from typing import Dict, Tuple, List import json import time import tensorflow as tf import numpy as np from type_def import BOUNDARY_BOX_TYPE, PERSONAL_INFO_TYPE
28.573171
116
0.522621
d8c15c388c58bbae49aac02c97bdee96b885e94e
3,234
py
Python
app/main/routes.py
Tsolmon1/company
270d88e40e0c709247a7338cd41942b0ceb67c5e
[ "MIT" ]
null
null
null
app/main/routes.py
Tsolmon1/company
270d88e40e0c709247a7338cd41942b0ceb67c5e
[ "MIT" ]
null
null
null
app/main/routes.py
Tsolmon1/company
270d88e40e0c709247a7338cd41942b0ceb67c5e
[ "MIT" ]
null
null
null
from datetime import datetime from flask import render_template, flash, redirect, url_for, request, g, \ jsonify, current_app from flask_login import current_user, login_required from flask_babel import _, get_locale #from guess_language import guess_language from app import db from app.main.forms import CompanyFor...
32.019802
141
0.682746
d8c4609c13c1b5b024cb78f178101d21b07a60ae
31,034
py
Python
opentisim/containers/container_defaults.py
TUDelft-CITG/OpenTISim
443b20572eb2aae2f1909a8a01e95e31be53b675
[ "MIT" ]
7
2020-02-15T01:34:29.000Z
2022-02-28T01:24:05.000Z
opentisim/containers/container_defaults.py
TUDelft-CITG/OpenTISim
443b20572eb2aae2f1909a8a01e95e31be53b675
[ "MIT" ]
2
2020-02-14T18:44:31.000Z
2020-04-06T15:39:17.000Z
opentisim/containers/container_defaults.py
TUDelft-CITG/OpenTISim
443b20572eb2aae2f1909a8a01e95e31be53b675
[ "MIT" ]
2
2019-07-19T08:50:31.000Z
2020-02-05T11:14:07.000Z
""" Main generic object classes: - 1. Quay_wall - 2. Berth - 3. Cyclic_Unloader - STS crane - 4. Horizontal transport - Tractor trailer - 5. Commodity - TEU - 6. Containers - Laden - Reefer - Empty - OOG - 7. Laden and reefer stack - 8. Stack equipment - 9. Empty stack - 10. OOG stack - 11. ...
43.343575
142
0.444512
d8c6bd57ec5db427c92f2222ca7c809d32503546
571
py
Python
src/arrays/combination-sum-2.py
vighnesh153/ds-algo
79c401dad2d2e575ce1913184ca8665f2712a5b8
[ "MIT" ]
null
null
null
src/arrays/combination-sum-2.py
vighnesh153/ds-algo
79c401dad2d2e575ce1913184ca8665f2712a5b8
[ "MIT" ]
null
null
null
src/arrays/combination-sum-2.py
vighnesh153/ds-algo
79c401dad2d2e575ce1913184ca8665f2712a5b8
[ "MIT" ]
1
2020-08-09T06:37:21.000Z
2020-08-09T06:37:21.000Z
A = [10, 1, 2, 7, 6, 1, 5] B = 8 print(solve(A, B))
22.84
70
0.607706
d8c794bc8aa2a91941f9265c3fe17da6aef9d56a
472
py
Python
mmhuman3d/core/visualization/__init__.py
ttxskk/mmhuman3d
f6d39e24a2d5cc216448fc3bd82832ff45eee436
[ "Apache-2.0" ]
1
2021-12-03T04:17:52.000Z
2021-12-03T04:17:52.000Z
mmhuman3d/core/visualization/__init__.py
ttxskk/mmhuman3d
f6d39e24a2d5cc216448fc3bd82832ff45eee436
[ "Apache-2.0" ]
null
null
null
mmhuman3d/core/visualization/__init__.py
ttxskk/mmhuman3d
f6d39e24a2d5cc216448fc3bd82832ff45eee436
[ "Apache-2.0" ]
null
null
null
from .visualize_keypoints2d import visualize_kp2d from .visualize_keypoints3d import visualize_kp3d from .visualize_smpl import ( render_smpl, visualize_smpl_calibration, visualize_smpl_hmr, visualize_smpl_pose, visualize_smpl_vibe, visualize_T_pose, ) __all__ = [ 'visualize_kp2d', 'visuali...
27.764706
62
0.777542
d8c9e071e19e41968b2a38fb82cb08379e2983f3
12,413
py
Python
pyoogle/preprocessing/crawl/crawler.py
DanDits/Pyoogle
f860dffb574f8629d3e894074450fdcb76547a03
[ "Apache-2.0" ]
null
null
null
pyoogle/preprocessing/crawl/crawler.py
DanDits/Pyoogle
f860dffb574f8629d3e894074450fdcb76547a03
[ "Apache-2.0" ]
null
null
null
pyoogle/preprocessing/crawl/crawler.py
DanDits/Pyoogle
f860dffb574f8629d3e894074450fdcb76547a03
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 6 12:49:02 2016 @author: daniel """ import logging import threading # For main processing thread import urllib # For downloading websites import urllib.error import urllib.request from concurrent.futures import ThreadPoolExecutor # each downloads a website from http....
42.077966
112
0.634174
d8caaf44d7f053ff6f28f609749087b123ec4b34
2,965
py
Python
13.part2.py
elp2/advent_of_code_2018
0d359422dd04b0849481796005e97d05c30e9eb4
[ "Apache-2.0" ]
1
2021-12-02T15:19:36.000Z
2021-12-02T15:19:36.000Z
13.part2.py
elp2/advent_of_code_2018
0d359422dd04b0849481796005e97d05c30e9eb4
[ "Apache-2.0" ]
null
null
null
13.part2.py
elp2/advent_of_code_2018
0d359422dd04b0849481796005e97d05c30e9eb4
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict REAL=open("13.txt").readlines() SAMPLE=open("13.sample2").readlines() CARTS = "^>v<" DIRS = [(0, -1), (1, 0), (0, 1), (-1, 0)] sample = solve(SAMPLE) assert sample == "6,4" print("*** SAMPLE PASSED ***") print(solve(REAL)) # not 93,59
27.201835
77
0.43204
d8cb54d17428f4a861ab1eb4f8524561f2936c44
844
py
Python
docs/_downloads/485d1a22616717976d2f85cbaf046db3/plot__jitterdodge_position.py
IKupriyanov-HORIS/lets-plot-docs
30fd31cb03dc649a03518b0c9348639ebfe09d53
[ "MIT" ]
null
null
null
docs/_downloads/485d1a22616717976d2f85cbaf046db3/plot__jitterdodge_position.py
IKupriyanov-HORIS/lets-plot-docs
30fd31cb03dc649a03518b0c9348639ebfe09d53
[ "MIT" ]
null
null
null
docs/_downloads/485d1a22616717976d2f85cbaf046db3/plot__jitterdodge_position.py
IKupriyanov-HORIS/lets-plot-docs
30fd31cb03dc649a03518b0c9348639ebfe09d53
[ "MIT" ]
null
null
null
""" Jitterdodge Position ==================== Position adjustments determine how to arrange geoms that would otherwise occupy the same space. Simultaneously dodge and jitter in one function: ``position_jitterdodge()``. See `position_jitterdodge() <https://jetbrains.github.io/lets-plot-docs/pages...
27.225806
151
0.703791
d8ceaa47207dcd451d3a6b75d0d1b483e1ba9218
2,537
py
Python
mask_example/classification_vars.py
ami-a/MaskDetection
9df329a24a987e63331c17db154319b3ebcaad74
[ "MIT" ]
1
2021-04-09T09:08:33.000Z
2021-04-09T09:08:33.000Z
mask_example/classification_vars.py
ami-a/MaskDetection
9df329a24a987e63331c17db154319b3ebcaad74
[ "MIT" ]
null
null
null
mask_example/classification_vars.py
ami-a/MaskDetection
9df329a24a987e63331c17db154319b3ebcaad74
[ "MIT" ]
null
null
null
"""loading the classification model variables for the detector object""" import numpy as np import cv2 from TrackEverything.tool_box import ClassificationVars def get_class_vars(class_model_path): """loading the classification model variables for the detector object We define here the model interpolation functi...
41.590164
97
0.658652
d8d26259abf1d70bfe1abffb2493230cee42b319
668
py
Python
detector/urls.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
detector/urls.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
detector/urls.py
SPIN-RD/data_analysis
b2ec9ca008781f3015ec3780a858de0dac4549b9
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( MeasurementCreateView, MeasurementRetrieveView, energy_spectrum_analysis, half_life_analysis, index, ) urlpatterns = [ path("api/measurements/", MeasurementCreateView.as_view()), path( "api/measurements/<str:device_id>/<str:mode>", ...
23.857143
88
0.646707
d8d3a26759da05b4ac662c9a2c7f47a9af51214a
166
py
Python
site_repo/utils/requests.py
Aviah/one-click-django-server
ddce7181f025b7f8d0979d725f85f8124add6adf
[ "MIT" ]
10
2016-03-22T22:14:40.000Z
2021-07-23T22:00:02.000Z
site_repo/utils/requests.py
Aviah/one-click-django-server
ddce7181f025b7f8d0979d725f85f8124add6adf
[ "MIT" ]
null
null
null
site_repo/utils/requests.py
Aviah/one-click-django-server
ddce7181f025b7f8d0979d725f85f8124add6adf
[ "MIT" ]
4
2016-04-05T05:41:15.000Z
2017-01-08T10:03:25.000Z
# requests utils
16.6
52
0.596386
d8d3a3c4c4228610d78f5c857adca30a66a1762a
142
py
Python
backend/app/views/GetConstructsAsGenbankView/__init__.py
Edinburgh-Genome-Foundry/dab
7eabf76adf3a0b9332c3651b5d0e5e6d98237d2b
[ "MIT" ]
7
2019-04-11T20:36:07.000Z
2020-03-24T07:12:13.000Z
backend/app/views/GetConstructsAsGenbankView/__init__.py
Edinburgh-Genome-Foundry/dab
7eabf76adf3a0b9332c3651b5d0e5e6d98237d2b
[ "MIT" ]
null
null
null
backend/app/views/GetConstructsAsGenbankView/__init__.py
Edinburgh-Genome-Foundry/dab
7eabf76adf3a0b9332c3651b5d0e5e6d98237d2b
[ "MIT" ]
null
null
null
from .GetConstructsAsGenbank import (GetConstructsAsGenbankView, construct_data_to_assemblies_sequences)
47.333333
76
0.676056
d8d3e8f353c9df0eca02ab9d7ac5d28b32d4bbb1
1,287
py
Python
newsletter/models.py
doctsystems/newsletter
7355ad7bca5f2d082abf9703a20fc91a0c325454
[ "MIT" ]
null
null
null
newsletter/models.py
doctsystems/newsletter
7355ad7bca5f2d082abf9703a20fc91a0c325454
[ "MIT" ]
null
null
null
newsletter/models.py
doctsystems/newsletter
7355ad7bca5f2d082abf9703a20fc91a0c325454
[ "MIT" ]
null
null
null
from django.db import models
30.642857
72
0.79798
d8d46c16be9da8396527eb259a0965644da2d48d
37
py
Python
veintitres/__init__.py
joelalejandro/veintitres-python
18fa7aa66688cce3f2c42ebc96ddb780bcd6d4bf
[ "MIT" ]
null
null
null
veintitres/__init__.py
joelalejandro/veintitres-python
18fa7aa66688cce3f2c42ebc96ddb780bcd6d4bf
[ "MIT" ]
null
null
null
veintitres/__init__.py
joelalejandro/veintitres-python
18fa7aa66688cce3f2c42ebc96ddb780bcd6d4bf
[ "MIT" ]
null
null
null
from .client import VeintitresClient
18.5
36
0.864865
d8d586caec5e48f58983b527adfdcf89eb123054
6,604
py
Python
bin/pylint_runner.py
PickBas/meta-social
f6fb0a50c30e240086a75917b705dfdc71dbebf9
[ "MIT" ]
null
null
null
bin/pylint_runner.py
PickBas/meta-social
f6fb0a50c30e240086a75917b705dfdc71dbebf9
[ "MIT" ]
15
2020-06-07T07:58:05.000Z
2022-01-19T16:53:47.000Z
bin/pylint_runner.py
PickBas/meta-social
f6fb0a50c30e240086a75917b705dfdc71dbebf9
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2015 Matthew Peveler Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, mer...
36.087432
139
0.629164
d8d6b40e4e24a3388d3de220686239dd259ccfe1
2,141
py
Python
util/intensity_scaling.py
LeHenschel/DeepFCD
494c92dfd80b55aa2369095853bfea84b770acdc
[ "MIT" ]
3
2020-03-24T11:16:50.000Z
2022-01-21T14:50:41.000Z
util/intensity_scaling.py
LeHenschel/DeepFCD
494c92dfd80b55aa2369095853bfea84b770acdc
[ "MIT" ]
null
null
null
util/intensity_scaling.py
LeHenschel/DeepFCD
494c92dfd80b55aa2369095853bfea84b770acdc
[ "MIT" ]
3
2022-01-07T10:53:45.000Z
2022-03-02T15:31:29.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Apr 7 17:24:20 2020 Rescaling exported synthetic PNGs to the intensity range of real PNGs. MinMax-Scaling not recommended. Better use Histogram Matching TODO: Integrate directly into apply_GAN notebook @author: bdavid """ import os import numpy as n...
32.439394
98
0.744512
d8d6b4d53e13b0fd18dcd2609163a130f5b31c93
1,311
py
Python
mysite/polls/migrations/0007_auto_20150314_0332.py
aaronkrolik/rule46
20d3e384768caced5b76f37e8fdefc2e9fb129d6
[ "Apache-2.0" ]
null
null
null
mysite/polls/migrations/0007_auto_20150314_0332.py
aaronkrolik/rule46
20d3e384768caced5b76f37e8fdefc2e9fb129d6
[ "Apache-2.0" ]
null
null
null
mysite/polls/migrations/0007_auto_20150314_0332.py
aaronkrolik/rule46
20d3e384768caced5b76f37e8fdefc2e9fb129d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
29.133333
114
0.536995
d8d72c5cdaafc3330e3c8acc96c27ff888c380fc
2,549
py
Python
ceraon/api/v1/meals/schema.py
Rdbaker/Mealbound
37cec6b45a632ac26a5341a0c9556279b6229ea8
[ "BSD-3-Clause" ]
1
2018-11-03T17:48:50.000Z
2018-11-03T17:48:50.000Z
ceraon/api/v1/meals/schema.py
Rdbaker/Mealbound
37cec6b45a632ac26a5341a0c9556279b6229ea8
[ "BSD-3-Clause" ]
3
2021-03-09T09:47:04.000Z
2022-02-12T13:04:41.000Z
ceraon/api/v1/meals/schema.py
Rdbaker/Mealbound
37cec6b45a632ac26a5341a0c9556279b6229ea8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Meal schema.""" from datetime import datetime as dt from marshmallow import Schema, ValidationError, fields, validates from ceraon.api.v1.locations.schema import LocationSchema from ceraon.api.v1.users.schema import UserSchema from ceraon.api.v1.tags.schema import TagSchema from ceraon.cons...
34.445946
69
0.640251
d8d7c06e5b65b400c9d18a38d0705a519de0d5e6
506
py
Python
Vbox_postgres_conn.py
RajasKhokle/Drug_Web
e59496fc4af69e34a5b0b4d3acb498a038ad831c
[ "BSD-3-Clause" ]
null
null
null
Vbox_postgres_conn.py
RajasKhokle/Drug_Web
e59496fc4af69e34a5b0b4d3acb498a038ad831c
[ "BSD-3-Clause" ]
null
null
null
Vbox_postgres_conn.py
RajasKhokle/Drug_Web
e59496fc4af69e34a5b0b4d3acb498a038ad831c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 29 08:14:44 2019 Purpose: Connect to the Postgresql Drug Database on local virtual machine on UBUNTU @author: Rajas Khokle """ import pandas as pd from sqlalchemy import create_engine # Create Connection to the database engine = create_engine('postgres://postgres:raj_d...
28.111111
92
0.758893
d8d80406f757e14704187e04f0b5d07b32575e58
1,071
py
Python
core/objs/zona.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
null
null
null
core/objs/zona.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
null
null
null
core/objs/zona.py
aanacleto/erp-
9c2d5388248cfe4b8cdb8454f6f47df4cb521f0e
[ "MIT" ]
2
2017-12-04T14:59:22.000Z
2018-12-06T18:50:29.000Z
# !/usr/bin/env python3 # -*- encoding: utf-8 -*- """ ERP+ """ __author__ = 'Antnio Anacleto' __credits__ = [] __version__ = "1.0" __maintainer__ = "Antnio Anacleto" __status__ = "Development" __model_name__ = 'zona.Zona' import auth, base_models from orm import * from form import *
29.75
164
0.605042
d8d85cecefde2c0134f937fbe84f1d254b9a273b
4,383
py
Python
biothings/hub/upgrade.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/hub/upgrade.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
biothings/hub/upgrade.py
sirloon/biothings.api
8a981fa2151e368d0ca76aaf226eb565d794d4fb
[ "Apache-2.0" ]
null
null
null
import sys from biothings.utils.hub_db import get_src_dump, get_data_plugin, get_hub_db_conn, backup, restore from biothings import config logging = config.logger def migrate_0dot1_to_0dot2(): """ mongodb src_dump/data_plugin changed: 1. "data_folder" and "release" under "download" 2. "data_fo...
44.72449
145
0.531371
d8d8d4bab6bca93fe7ec5b879bc940d20a949497
22,052
py
Python
capirca/lib/gce.py
supertylerc/capirca
31235e964c9893f3f3432d84604fbaa727384047
[ "Apache-2.0" ]
null
null
null
capirca/lib/gce.py
supertylerc/capirca
31235e964c9893f3f3432d84604fbaa727384047
[ "Apache-2.0" ]
null
null
null
capirca/lib/gce.py
supertylerc/capirca
31235e964c9893f3f3432d84604fbaa727384047
[ "Apache-2.0" ]
null
null
null
# 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 required by applicable law or a...
38.02069
83
0.640169
d8dab0f4aacf85ce7a8eb87b58a351fa764a3691
134,339
py
Python
myhabitatagent.py
karkuspeter/habitat-challenge
4b61be2b24b43d03246c94435febc691b6172ab6
[ "MIT" ]
null
null
null
myhabitatagent.py
karkuspeter/habitat-challenge
4b61be2b24b43d03246c94435febc691b6172ab6
[ "MIT" ]
null
null
null
myhabitatagent.py
karkuspeter/habitat-challenge
4b61be2b24b43d03246c94435febc691b6172ab6
[ "MIT" ]
null
null
null
import argparse import habitat import random import numpy as np import scipy import os import cv2 import time from habitat.tasks.nav.shortest_path_follower import ShortestPathFollower from habitat.utils.visualizations import maps from gibsonagents.expert import Expert from gibsonagents.pathplanners import Dstar_planner...
54.78752
241
0.615592
d8db1da409aa926ae0d4a1dd1326712356ef588d
2,890
py
Python
examples/nightlight/nightlight.py
pimoroni/breakout-garden
15f6886a1d011363cc660df1a350fd23d6cf4b78
[ "MIT" ]
68
2018-08-20T21:45:01.000Z
2022-03-17T20:45:47.000Z
examples/nightlight/nightlight.py
pimoroni/breakout-garden
15f6886a1d011363cc660df1a350fd23d6cf4b78
[ "MIT" ]
24
2018-08-20T14:04:13.000Z
2022-03-09T12:26:24.000Z
examples/nightlight/nightlight.py
pimoroni/breakout-garden
15f6886a1d011363cc660df1a350fd23d6cf4b78
[ "MIT" ]
14
2018-08-25T13:33:49.000Z
2021-12-09T09:02:35.000Z
#!/usr/bin/env python3 import time from ltr559 import LTR559 from rgbmatrix5x5 import RGBMatrix5x5 print("""This Pimoroni Breakout Garden example requires an LTR-559 Light and Proximity Breakout and a 5x5 RGB Matrix Breakout. This example creates a little nightlight that can be toggled on or off by tapping the proxi...
27.788462
67
0.623529
d8dd3e6986ec9de4d911cd084dbaeaf781af98b0
186
py
Python
python_for_everybody/for_in_range.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
null
null
null
python_for_everybody/for_in_range.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
null
null
null
python_for_everybody/for_in_range.py
timothyyu/p4e-prac
f978b71ce147b6e9058372929f2666c2e67d0741
[ "BSD-3-Clause" ]
1
2020-04-18T16:09:04.000Z
2020-04-18T16:09:04.000Z
x = 0 for y in range(5): print(x,y) x = x + y # x = 0 + 0 # x = 0 + 1 ==> x = 1 # x = 1 + 2 ==> x = 3 # x = 3 + 3 ==> x = 6 # x = 6 + 4 ==> x = 10 print(x)
15.5
27
0.290323
d8de1a0557c16a820290ec65f2861645cf8269e4
6,595
py
Python
leaguedirector/sequence/sequenceTrackView.py
santutu/league-director
631ab416e31a0391ab207f9b657638c8e350a48c
[ "Apache-2.0" ]
null
null
null
leaguedirector/sequence/sequenceTrackView.py
santutu/league-director
631ab416e31a0391ab207f9b657638c8e350a48c
[ "Apache-2.0" ]
null
null
null
leaguedirector/sequence/sequenceTrackView.py
santutu/league-director
631ab416e31a0391ab207f9b657638c8e350a48c
[ "Apache-2.0" ]
null
null
null
import copy import statistics from operator import attrgetter from PySide2.QtCore import Signal, Qt, QEvent from PySide2.QtGui import QPen, QMouseEvent from PySide2.QtWidgets import QGraphicsView, QGraphicsScene, QAbstractScrollArea, QApplication, QGraphicsItem from leaguedirector.libs.memoryCache import MemoryCache ...
40.962733
112
0.660197
d8de56f1954539d2d33e25fa9d9007b69553e370
23,746
py
Python
annealed_flow_transport/flows.py
LaudateCorpus1/annealed_flow_transport
28f348bb41e3acec5bc925355063d476f2e2aea2
[ "Apache-2.0" ]
23
2021-08-13T14:00:10.000Z
2022-02-15T12:44:20.000Z
annealed_flow_transport/flows.py
deepmind/annealed_flow_transport
28f348bb41e3acec5bc925355063d476f2e2aea2
[ "Apache-2.0" ]
1
2021-10-05T16:19:25.000Z
2021-10-05T16:19:25.000Z
annealed_flow_transport/flows.py
LaudateCorpus1/annealed_flow_transport
28f348bb41e3acec5bc925355063d476f2e2aea2
[ "Apache-2.0" ]
4
2021-10-05T16:14:58.000Z
2022-01-03T15:17:36.000Z
# Copyright 2020 DeepMind Technologies Limited. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
38.361874
88
0.67902
d8debc26659ca852de091f669c8c62e62434b95f
3,208
py
Python
EMD_ensembled_data_prepare_Test_server.py
NahianHasan/Cardiovascular_Disease_Classification_Employing_EMD
57bf6425808bcff4f1c54e6be2e1df9c14b61313
[ "MIT" ]
6
2019-10-10T18:53:13.000Z
2020-08-13T08:39:43.000Z
EMD_ensembled_data_prepare_Test_server.py
NahianHasan/Cardiovascular_Disease_Classification_Employing_EMD
57bf6425808bcff4f1c54e6be2e1df9c14b61313
[ "MIT" ]
null
null
null
EMD_ensembled_data_prepare_Test_server.py
NahianHasan/Cardiovascular_Disease_Classification_Employing_EMD
57bf6425808bcff4f1c54e6be2e1df9c14b61313
[ "MIT" ]
1
2020-04-22T07:50:49.000Z
2020-04-22T07:50:49.000Z
import pyhht from pyhht.emd import EMD from pyhht.visualization import plot_imfs import numpy as np import math from pyhht.utils import extr from pyhht.utils import get_envelops import matplotlib.pyplot as plt from pyhht.utils import inst_freq import wfdb import os import sys import glob Training",default...
37.302326
155
0.7101
d8df2a64ed17e68830f228cf62337f3dea5df521
7,373
py
Python
2.ReinforcementLearning/CartPole/CartPole-PPO/cartpole_ppo.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
null
null
null
2.ReinforcementLearning/CartPole/CartPole-PPO/cartpole_ppo.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
11
2020-01-28T22:33:49.000Z
2022-03-11T23:41:08.000Z
2.ReinforcementLearning/CartPole/CartPole-PPO/cartpole_ppo.py
link-kut/deeplink_public
688c379bfeb63156e865d78d0428f97d7d203cc1
[ "MIT" ]
2
2019-06-01T04:14:52.000Z
2020-05-31T08:13:23.000Z
# Initial framework taken from https://github.com/OctThe16th/PPO-Keras/blob/master/Main.py import numpy as np import gym from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Dense from tensorflow.keras import backend as K from tensorflow.keras.optimizers import Adam import tensorflow as...
30.720833
104
0.563814
d8df48a2c6778c32363c444430a9dcd1859230a7
8,721
py
Python
models/san_lowrank.py
LegionChang/CoTNet
b1bc456c0b13b282b807d1082a1598b71014b4fe
[ "Apache-2.0" ]
360
2021-07-26T07:23:29.000Z
2022-03-16T03:03:25.000Z
python_developer_tools/cv/bases/conv/CoTNet/CoTNet-master/models/san_lowrank.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
22
2021-07-29T15:05:00.000Z
2022-03-17T04:28:14.000Z
python_developer_tools/cv/bases/conv/CoTNet/CoTNet-master/models/san_lowrank.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
47
2021-07-27T02:14:21.000Z
2022-02-25T09:15:12.000Z
import math import numpy as np import torch from torch import nn as nn from config import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD from .helpers import build_model_with_cfg from .layers import SelectiveKernelConv, ConvBnAct, create_attn from .registry import register_model from .resnet import ResNet from .layers im...
44.269036
155
0.624928
d8e095732d43409e05f872611e0a25bf01b9a971
471
py
Python
d1lod/d1lod/__init__.py
DataONEorg/slinky
1f0f774b7b5556126d75524ac9fd328ad0fc1ba2
[ "Apache-2.0" ]
2
2019-03-07T21:14:27.000Z
2021-03-30T00:24:13.000Z
d1lod/d1lod/__init__.py
DataONEorg/slinky
1f0f774b7b5556126d75524ac9fd328ad0fc1ba2
[ "Apache-2.0" ]
64
2021-03-11T22:28:45.000Z
2022-03-17T18:41:08.000Z
d1lod/d1lod/__init__.py
DataONEorg/slinky
1f0f774b7b5556126d75524ac9fd328ad0fc1ba2
[ "Apache-2.0" ]
2
2018-09-05T16:38:42.000Z
2021-03-12T18:07:20.000Z
from . import people from . import dataone from . import util from . import validator from . import metadata from .graph import Graph from .interface import Interface # Set default logging handler to avoid "No handler found" warnings. import logging try: # Python 2.7+ from logging import NullHandler except Import...
24.789474
67
0.7431
d8e1107cf7ccb8c88d2d79f53d1ffccc5940049b
1,262
py
Python
qa/admin.py
thebenwaters/openclickio
c5e08d89b37c5f415810dca088803dba25af5e1a
[ "MIT" ]
null
null
null
qa/admin.py
thebenwaters/openclickio
c5e08d89b37c5f415810dca088803dba25af5e1a
[ "MIT" ]
1
2017-10-21T19:29:18.000Z
2017-10-21T19:29:18.000Z
qa/admin.py
thebenwaters/openclickio
c5e08d89b37c5f415810dca088803dba25af5e1a
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Answer, AnswerOption, AnswerInstance, Question,\ OpenEndedResponse, ClosedEndedQuestion # Register your models here. def activate(modeladmin, request, queryset): for obj in queryset: obj.activate()
29.348837
88
0.759113
d8e180bf8b4b157c9e27b0c8c553c612b8e2d1ec
6,212
py
Python
Bot/Cogs/jisho.py
No767/Rin-Bot
b4c64e0ebccc9465100006ec2cb023eecb425570
[ "Apache-2.0" ]
null
null
null
Bot/Cogs/jisho.py
No767/Rin-Bot
b4c64e0ebccc9465100006ec2cb023eecb425570
[ "Apache-2.0" ]
null
null
null
Bot/Cogs/jisho.py
No767/Rin-Bot
b4c64e0ebccc9465100006ec2cb023eecb425570
[ "Apache-2.0" ]
null
null
null
import re import discord import requests import ujson from discord.ext import commands from dotenv import load_dotenv from jamdict import Jamdict load_dotenv() jam = Jamdict() # Use Array Loop Instead # old kanji lookup system. use the function kanjiv2 instead
33.042553
195
0.56246
d8e1c9d0e3a88657f33d1a06132b17c2fdbfdca9
40
py
Python
cs-224n/assn2/utils/__init__.py
PranjalGupta2199/nlp-dl
7e2290c82602cb2ff863f2513c54dfb0412affd0
[ "MIT" ]
null
null
null
cs-224n/assn2/utils/__init__.py
PranjalGupta2199/nlp-dl
7e2290c82602cb2ff863f2513c54dfb0412affd0
[ "MIT" ]
null
null
null
cs-224n/assn2/utils/__init__.py
PranjalGupta2199/nlp-dl
7e2290c82602cb2ff863f2513c54dfb0412affd0
[ "MIT" ]
null
null
null
from . import gradcheck, treebank, utils
40
40
0.8
d8e326a0842502832eb889a12acb3aa9cc0f3dbc
679
py
Python
simple_import/forms.py
smcoll/django-simple-import
fcdaaf61196fb7c596c3383159d49f11a8dd518e
[ "BSD-3-Clause" ]
null
null
null
simple_import/forms.py
smcoll/django-simple-import
fcdaaf61196fb7c596c3383159d49f11a8dd518e
[ "BSD-3-Clause" ]
null
null
null
simple_import/forms.py
smcoll/django-simple-import
fcdaaf61196fb7c596c3383159d49f11a8dd518e
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.contrib.contenttypes.models import ContentType from simple_import.models import ImportLog, ColumnMatch, RelationalMatch
27.16
76
0.664212
d8e4dee2464dfe2fbd5f649c5d1fede75cf0bf21
3,198
py
Python
src/main/python/utils/handle_null.py
meowpunch/bobsim-research
4411ac6eaf5b760611f689b0a9e290546e2f5435
[ "MIT" ]
2
2020-03-01T17:42:44.000Z
2020-03-09T06:13:34.000Z
src/main/python/utils/handle_null.py
meowpunch/bobsim-research
4411ac6eaf5b760611f689b0a9e290546e2f5435
[ "MIT" ]
2
2020-04-01T16:48:06.000Z
2020-04-04T11:04:10.000Z
src/main/python/utils/handle_null.py
meowpunch/bobsim-research
4411ac6eaf5b760611f689b0a9e290546e2f5435
[ "MIT" ]
null
null
null
import sys from functools import reduce import pandas as pd from utils.logging import init_logger from utils.s3_manager.manage import S3Manager def fill_nan(self): """ :return: list of pd DataFrame filled nan by each method """ method_list = self.strategy.keys() return l...
26.213115
107
0.583177
d8e67ae78b6e8735abac8eb28c78858b399f444d
1,207
py
Python
scripts/executor_action.py
rezhajulio/azkaban
974e2e45f4e2f1cd14a3e160f9326aa067b606c2
[ "Apache-2.0" ]
3
2019-12-19T00:04:36.000Z
2020-05-07T02:54:56.000Z
scripts/executor_action.py
rezhajulio/azkaban
974e2e45f4e2f1cd14a3e160f9326aa067b606c2
[ "Apache-2.0" ]
null
null
null
scripts/executor_action.py
rezhajulio/azkaban
974e2e45f4e2f1cd14a3e160f9326aa067b606c2
[ "Apache-2.0" ]
3
2018-03-15T04:54:50.000Z
2019-07-15T06:33:58.000Z
#!/usr/bin/python3 import requests import sys import time from wait_for_port_ready import wait_for_port_ready import traceback import json action = sys.argv[1] assert action in ('activate', 'deactivate', 'getStatus', 'shutdown') url = 'http://localhost:12321/executor?action={action}'.format(action=action) if actio...
24.632653
77
0.591549
d8e730bb375940f9f3582e34ab7d4585a0799ed3
80
py
Python
T26-04/program.py
tiagomendes7/SSof-Project1920
9b026763a492683ab982aa769f2a381ed02930aa
[ "MIT" ]
2
2019-11-20T19:26:07.000Z
2019-11-22T00:42:23.000Z
T26-04/program.py
tiagomendes7/SSof-Project1920
9b026763a492683ab982aa769f2a381ed02930aa
[ "MIT" ]
2
2019-11-28T05:21:24.000Z
2019-11-28T05:21:58.000Z
T26-04/program.py
tiagomendes7/SSof-Project1920
9b026763a492683ab982aa769f2a381ed02930aa
[ "MIT" ]
25
2019-11-27T01:40:56.000Z
2019-12-04T23:38:59.000Z
src = source() src2 = src src3 = src2 src5 = src2 src4 = src3 src4 = sink(src4)
11.428571
17
0.65
d8e84bbf2e79e843bed9f808b75020d51a48d30f
3,855
py
Python
faker/providers/barcode/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
4
2020-09-23T15:48:00.000Z
2021-02-25T07:55:23.000Z
faker/providers/barcode/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
7
2021-03-05T23:08:02.000Z
2022-03-12T00:47:19.000Z
faker/providers/barcode/__init__.py
StabbarN/faker
57882ff73255cb248d8f995b2abfce5cfee45ab3
[ "MIT" ]
1
2022-03-10T16:25:33.000Z
2022-03-10T16:25:33.000Z
from .. import BaseProvider localized = True
33.232759
102
0.597925
d8e8a2245da2f5f3c3aaee9fd554b9ee96a551e9
22,494
py
Python
axonius_api_client/http.py
geransmith/axonius_api_client
09fd564d62f0ddf7aa44db14a509eaafaf0c930f
[ "MIT" ]
null
null
null
axonius_api_client/http.py
geransmith/axonius_api_client
09fd564d62f0ddf7aa44db14a509eaafaf0c930f
[ "MIT" ]
null
null
null
axonius_api_client/http.py
geransmith/axonius_api_client
09fd564d62f0ddf7aa44db14a509eaafaf0c930f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """HTTP client.""" import logging import warnings from urllib.parse import urlparse, urlunparse import requests from .constants import ( LOG_LEVEL_HTTP, MAX_BODY_LEN, REQUEST_ATTR_MAP, RESPONSE_ATTR_MAP, TIMEOUT_CONNECT, TIMEOUT_RESPONSE, ) from .exceptions import HttpE...
35.479495
88
0.563973
d8edf7cbcf7cedddc71ad9cf461c4f588b745f8c
427
py
Python
tests/test.py
alex-panda/PDFCompiler
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
[ "MIT" ]
null
null
null
tests/test.py
alex-panda/PDFCompiler
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
[ "MIT" ]
null
null
null
tests/test.py
alex-panda/PDFCompiler
3454ee01a6e5ebb2d2bccdcdc32678bf1def895d
[ "MIT" ]
null
null
null
from fpdf import FPDF import os pdf = FPDF() pdf.add_page() #pdf.add_font('CMUSerif-UprightItalic', fname=os.path.abspath('./src/Fonts/Computer Modern/cmunui.ttf'), uni=True) #pdf.set_font('CMUSerif-UprightItalic', size=16) pdf.add_font('BerlinSansFB-Bold', fname='C:\\Windows\\Fonts\\VINERITC.TTF', uni=True) pdf.set_f...
35.583333
114
0.735363
d8ee816a339e470ff77545c7b6f55ec86374feb8
362
py
Python
examinations/serializers.py
CASDON-MYSTERY/studentapp
0fd942e963a10a02a6c9f358dd362cfd646eecc3
[ "MIT" ]
null
null
null
examinations/serializers.py
CASDON-MYSTERY/studentapp
0fd942e963a10a02a6c9f358dd362cfd646eecc3
[ "MIT" ]
null
null
null
examinations/serializers.py
CASDON-MYSTERY/studentapp
0fd942e963a10a02a6c9f358dd362cfd646eecc3
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Examination, Exam_day_and_venue
25.857143
65
0.762431
d8f1c63452f9e657da2dce69409e74cc04262524
2,008
py
Python
server/settings.py
codingismycraft/pinta
bbeb721f5d365cf2643d01e1f3196e90e2658d05
[ "MIT" ]
null
null
null
server/settings.py
codingismycraft/pinta
bbeb721f5d365cf2643d01e1f3196e90e2658d05
[ "MIT" ]
null
null
null
server/settings.py
codingismycraft/pinta
bbeb721f5d365cf2643d01e1f3196e90e2658d05
[ "MIT" ]
null
null
null
"""Exposes the configuration settings.""" import os import json settings = _Settings()
25.417722
74
0.616036
d8f2c334a4aedf8eab7e4c82a7180f26920b4989
2,533
py
Python
pages/header_page.py
Morjus/kinoposk_ui_tests
0e5c0660593731529db7df5912e10a81e80a55ea
[ "MIT" ]
null
null
null
pages/header_page.py
Morjus/kinoposk_ui_tests
0e5c0660593731529db7df5912e10a81e80a55ea
[ "MIT" ]
null
null
null
pages/header_page.py
Morjus/kinoposk_ui_tests
0e5c0660593731529db7df5912e10a81e80a55ea
[ "MIT" ]
null
null
null
import allure import logging from selenium.webdriver.common.by import By from pages.base_page import BasePage
43.672414
79
0.658113
d8f4b8a4abb68a6dab26dbeb1dd2c937dba8e5c5
1,911
py
Python
modules/data/warehouse/tools/import_record.py
Shokoofeh/apollo
71d6ea753b4595eb38cc54d6650c8de677b173df
[ "Apache-2.0" ]
7
2017-07-07T07:56:13.000Z
2019-03-06T06:27:00.000Z
modules/data/warehouse/tools/import_record.py
Shokoofeh/apollo
71d6ea753b4595eb38cc54d6650c8de677b173df
[ "Apache-2.0" ]
null
null
null
modules/data/warehouse/tools/import_record.py
Shokoofeh/apollo
71d6ea753b4595eb38cc54d6650c8de677b173df
[ "Apache-2.0" ]
2
2017-07-07T07:56:15.000Z
2018-08-10T17:13:34.000Z
#!/usr/bin/env python # -*- coding: UTF-8-*- ############################################################################### # Copyright 2018 The Apollo 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. # ...
30.822581
79
0.641549
d8f50d17f9a52ee96a7037b851918cf13a2ca3ae
96
py
Python
enthought/mayavi/core/ui/mayavi_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/mayavi/core/ui/mayavi_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/mayavi/core/ui/mayavi_scene.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import from mayavi.core.ui.mayavi_scene import *
24
41
0.833333
d8f564b8365eed4a07a4dd31237eb8da98838a5f
3,064
py
Python
docs/talks/xdc2016/compare_cairo.py
juhapekka/ezbench_work
ac0cb9ccbc205746d4790a9e33e598fbd5732741
[ "BSD-3-Clause" ]
3
2019-06-25T16:49:25.000Z
2021-04-30T06:36:54.000Z
docs/talks/xdc2016/compare_cairo.py
juhapekka/ezbench_work
ac0cb9ccbc205746d4790a9e33e598fbd5732741
[ "BSD-3-Clause" ]
4
2019-12-10T00:50:49.000Z
2022-03-10T06:18:42.000Z
docs/talks/xdc2016/compare_cairo.py
juhapekka/ezbench_work
ac0cb9ccbc205746d4790a9e33e598fbd5732741
[ "BSD-3-Clause" ]
1
2021-04-30T06:36:36.000Z
2021-04-30T06:36:36.000Z
#!/usr/bin/env python3 """ Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions an...
41.972603
126
0.72748
d8f89ca57ebf1d8154f7f2629edeea9594a44b41
9,541
py
Python
generator/blocks/write_back/base/memory_block_base.py
biarmic/OpenCache
bb9e110e434deb83900de328cc76b63901ba582f
[ "BSD-3-Clause" ]
null
null
null
generator/blocks/write_back/base/memory_block_base.py
biarmic/OpenCache
bb9e110e434deb83900de328cc76b63901ba582f
[ "BSD-3-Clause" ]
null
null
null
generator/blocks/write_back/base/memory_block_base.py
biarmic/OpenCache
bb9e110e434deb83900de328cc76b63901ba582f
[ "BSD-3-Clause" ]
null
null
null
# See LICENSE for licensing information. # # Copyright (c) 2021 Regents of the University of California and The Board # of Regents for the Oklahoma Agricultural and Mechanical College # (acting for and on behalf of Oklahoma State University) # All rights reserved. # from block_base import block_base from amaranth impor...
42.977477
110
0.570276
d8f8b4873e2a9d706b1b4b89de4220f8b9ddd61d
731
py
Python
concordia/migrations/0002_auto_20181004_1848.py
juliecentofanti172/juliecentofanti.github.io
446ea8522b9f4a6709124ebb6e0f675acf7fe205
[ "CC0-1.0" ]
134
2018-05-23T14:00:29.000Z
2022-03-10T15:47:53.000Z
concordia/migrations/0002_auto_20181004_1848.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
1,104
2018-05-22T20:18:22.000Z
2022-03-31T17:28:40.000Z
concordia/migrations/0002_auto_20181004_1848.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
32
2018-05-22T20:22:38.000Z
2021-12-21T14:11:44.000Z
# Generated by Django 2.0.9 on 2018-10-04 18:48 from django.db import migrations, models
27.074074
82
0.603283
d8fb835e064c6068c174aaab9d60c797f66b3c26
319
py
Python
combinatorics/p11069.py
sajjadt/competitive-programming
fb0844afba95383441f0c4c0c3b1a38078d24ec9
[ "MIT" ]
10
2019-03-29T08:37:10.000Z
2021-12-29T14:06:57.000Z
combinatorics/p11069.py
sajjadt/competitive-programming
fb0844afba95383441f0c4c0c3b1a38078d24ec9
[ "MIT" ]
1
2020-07-03T08:25:38.000Z
2020-07-03T08:25:38.000Z
combinatorics/p11069.py
sajjadt/competitive-programming
fb0844afba95383441f0c4c0c3b1a38078d24ec9
[ "MIT" ]
4
2019-05-30T16:04:48.000Z
2020-10-22T21:42:25.000Z
# f(n) = number of valid sequencess with n items # f(n) = {"attaching n to"} f(n-2) + {"attaching n-1 to "} f(n-3) LIMIT = 76 + 1 f_table = [0, 1, 2, 2] for i in range(LIMIT): f_table.append(f_table[-2] + f_table[-3]) while True: try: n = int(input()) print(f_table[n]) except(EOFError): break
19.9375
69
0.579937
d8fbe81e9f1a510748c80f8dc8a1b42b637b2f92
207
py
Python
kartverket_tide_api/exceptions/__init__.py
matsjp/kartverket_tide_api
b4be15e9c8f077ef6ec0747fe67f0a64383cfa30
[ "MIT" ]
null
null
null
kartverket_tide_api/exceptions/__init__.py
matsjp/kartverket_tide_api
b4be15e9c8f077ef6ec0747fe67f0a64383cfa30
[ "MIT" ]
null
null
null
kartverket_tide_api/exceptions/__init__.py
matsjp/kartverket_tide_api
b4be15e9c8f077ef6ec0747fe67f0a64383cfa30
[ "MIT" ]
null
null
null
from .apierrorexception import NoTideDataErrorException, UnknownApiErrorException,\ ApiErrorException, InvalidStationTypeErrorException from .cannotfindelementexception import CannotFindElementException
51.75
83
0.898551
d8fee123a93215beee41ff7185b11c6c92c2b7c1
3,566
py
Python
aita/api/course.py
ze-lin/AITA
0f2fe4e630c37fcc566a54621880b78ec67eefa6
[ "MIT" ]
null
null
null
aita/api/course.py
ze-lin/AITA
0f2fe4e630c37fcc566a54621880b78ec67eefa6
[ "MIT" ]
null
null
null
aita/api/course.py
ze-lin/AITA
0f2fe4e630c37fcc566a54621880b78ec67eefa6
[ "MIT" ]
1
2020-12-29T19:45:28.000Z
2020-12-29T19:45:28.000Z
import datetime, time, os from flask import Blueprint, jsonify, request, g from aita.auth import login_required from aita.db import get_collection from werkzeug.utils import secure_filename bp = Blueprint('course', __name__, url_prefix='/course')
26.029197
66
0.633763
d8ff3f9b9d076df28a9f625cded5efea0322cd15
16,309
py
Python
apps/dash-baseball-statistics/layouts.py
JeroenvdSande/dash-sample-apps
106fa24693cfdaf47c06466a0aed78e642344f91
[ "MIT" ]
2,332
2019-05-10T18:24:20.000Z
2022-03-30T21:46:29.000Z
apps/dash-baseball-statistics/layouts.py
JeroenvdSande/dash-sample-apps
106fa24693cfdaf47c06466a0aed78e642344f91
[ "MIT" ]
384
2019-05-09T19:19:56.000Z
2022-03-12T00:58:24.000Z
apps/dash-baseball-statistics/layouts.py
JeroenvdSande/dash-sample-apps
106fa24693cfdaf47c06466a0aed78e642344f91
[ "MIT" ]
3,127
2019-05-16T17:20:45.000Z
2022-03-31T17:59:07.000Z
# Dash components, html, and dash tables import dash_core_components as dcc import dash_html_components as html import dash_table # Import Bootstrap components import dash_bootstrap_components as dbc # Import custom data.py import data # Import data from data.py file teams_df = data.teams # Hardcoded list that conta...
35.843956
139
0.365565
2b028209a00a7c4331c52f1ca61c13b4b8eaf902
107
py
Python
parquet_metadata/test_parquet_metadata.py
dzamo/parquet-metadata
221bff0253bcaefc7c95e6e16ae376e3bba6ee9f
[ "Apache-2.0" ]
11
2018-09-11T02:56:32.000Z
2022-02-16T18:49:39.000Z
parquet_metadata/test_parquet_metadata.py
dzamo/parquet-metadata
221bff0253bcaefc7c95e6e16ae376e3bba6ee9f
[ "Apache-2.0" ]
null
null
null
parquet_metadata/test_parquet_metadata.py
dzamo/parquet-metadata
221bff0253bcaefc7c95e6e16ae376e3bba6ee9f
[ "Apache-2.0" ]
4
2019-05-30T22:44:33.000Z
2022-02-16T18:49:40.000Z
from . import parquet_metadata
21.4
51
0.785047
2b05abd8c972d299aef12d9ffb9c918cfcc45604
5,956
py
Python
src/pylightnix/repl.py
stagedml/pylightnix
b475057f03db1d0b975500d079745c4de9c42069
[ "Apache-2.0" ]
9
2020-01-25T12:03:12.000Z
2021-10-12T08:22:33.000Z
src/pylightnix/repl.py
stagedml/pylightnix
b475057f03db1d0b975500d079745c4de9c42069
[ "Apache-2.0" ]
1
2020-02-16T10:47:34.000Z
2020-02-20T17:11:45.000Z
src/pylightnix/repl.py
stagedml/pylightnix
b475057f03db1d0b975500d079745c4de9c42069
[ "Apache-2.0" ]
null
null
null
# Copyright 2020, Sergey Mironov # # 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 writi...
34.427746
81
0.712727
2b078da4ba018d0ed23b38cf26025965f628a808
3,658
py
Python
main.py
AuroraBTH/minecraft-modpack-randomizer
797fb6a438a3365da69fbcbc22d856668a90ed27
[ "MIT" ]
null
null
null
main.py
AuroraBTH/minecraft-modpack-randomizer
797fb6a438a3365da69fbcbc22d856668a90ed27
[ "MIT" ]
null
null
null
main.py
AuroraBTH/minecraft-modpack-randomizer
797fb6a438a3365da69fbcbc22d856668a90ed27
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from requests import get import json user_version = input("0: 1.7.10\n1: 1.12.2\n_________\n->") file_name = input("Name on file output (default is data.json):\n->") if file_name == "": file_name = "data.json" if user_version == "0": minecraft_1_7_10 = "2020709689%3A4...
43.547619
146
0.642701
2b09394715e3c0dcf590faefc51ab0a74f18287b
540
py
Python
product/views/brand_details.py
Rafeen/Inventory-Management-and-POS
c6b93fd83e76d8cdee1bdbe1042a29b23bfc36ac
[ "MIT" ]
null
null
null
product/views/brand_details.py
Rafeen/Inventory-Management-and-POS
c6b93fd83e76d8cdee1bdbe1042a29b23bfc36ac
[ "MIT" ]
10
2019-07-03T21:28:41.000Z
2022-01-13T01:13:35.000Z
product/views/brand_details.py
Rafeen/Inventory-Management-and-POS
c6b93fd83e76d8cdee1bdbe1042a29b23bfc36ac
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from product.models.brand_model import Brand from django.contrib.auth.decorators import login_required
21.6
74
0.709259
2b0a6f1bbc8afafe4db77b3247308ff00dd67a64
1,264
py
Python
1-100q/40.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
1-100q/40.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
1-100q/40.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target. Each number in candidates may only be used once in the combination. Note: All numbers (including target) will be positive integers. The so...
26.893617
170
0.609968
2b0caaaf1b41e4b4941d55d16c265dd9df819b1f
8,651
py
Python
src/clustar_project/clustarray.py
jz5jx/Test_Repo
8796f45021943984ed02232fd34ff02e17123d71
[ "MIT" ]
1
2021-04-24T21:52:53.000Z
2021-04-24T21:52:53.000Z
src/clustar_project/clustarray.py
jz5jx/Test_Repo
8796f45021943984ed02232fd34ff02e17123d71
[ "MIT" ]
null
null
null
src/clustar_project/clustarray.py
jz5jx/Test_Repo
8796f45021943984ed02232fd34ff02e17123d71
[ "MIT" ]
null
null
null
import warnings import numpy as np import itertools
35.310204
136
0.573229
2b0d1ad6e91ffdcea74efa0272a18d860ad0c2ae
7,151
py
Python
rpa_logger/task.py
kangasta/rpa_logger
63fb9d2472cc8039b6d794c5a09f4fbb77f5ac23
[ "MIT" ]
null
null
null
rpa_logger/task.py
kangasta/rpa_logger
63fb9d2472cc8039b6d794c5a09f4fbb77f5ac23
[ "MIT" ]
null
null
null
rpa_logger/task.py
kangasta/rpa_logger
63fb9d2472cc8039b6d794c5a09f4fbb77f5ac23
[ "MIT" ]
null
null
null
'''Constants and helpers for describing RPA tasks and their status. ''' from collections import Counter from dataclasses import dataclass from typing import Any, Dict, Hashable, List, Union from uuid import uuid4 from .utils import timestamp from .utils.output import OutputText STARTED = 'STARTED' SUCCESS = 'SUCCESS'...
29.549587
78
0.586212
2b0d8b35ff7e943b202f21481e50e5769f2ff2f4
13,760
py
Python
src/graph_construction.py
chrisdxie/rice
c3e42822226af9ac28d95d434cd582386122b679
[ "MIT" ]
16
2021-07-01T16:18:26.000Z
2022-02-21T05:19:39.000Z
src/graph_construction.py
chrisdxie/rice
c3e42822226af9ac28d95d434cd582386122b679
[ "MIT" ]
1
2022-02-22T22:46:37.000Z
2022-02-22T22:46:37.000Z
src/graph_construction.py
chrisdxie/rice
c3e42822226af9ac28d95d434cd582386122b679
[ "MIT" ]
1
2021-11-08T19:52:40.000Z
2021-11-08T19:52:40.000Z
import sys, os import numpy as np import cv2 import torch import torch.nn.functional as F from torch_geometric.data import Data, Batch import torchvision.transforms as transforms from . import constants from .util import utilities as util_ def get_resnet50_fpn_model(pretrained=True, trainable_layer_names=[]): "...
38.328691
142
0.622892
2b0eda6bd56eca2e8afd3f6bc6ca556e0abd44cd
374
py
Python
Learning+Misc/Quantum-Circuits/deutsch_oracle.py
Gregory-Eales/QA-Reimplementations
bef0b3e67397a73c468e539c426c6629d398433b
[ "MIT" ]
1
2019-05-03T21:48:29.000Z
2019-05-03T21:48:29.000Z
Learning+Misc/Quantum-Circuits/deutsch_oracle.py
Gregory-Eales/QA-Reimplementations
bef0b3e67397a73c468e539c426c6629d398433b
[ "MIT" ]
null
null
null
Learning+Misc/Quantum-Circuits/deutsch_oracle.py
Gregory-Eales/QA-Reimplementations
bef0b3e67397a73c468e539c426c6629d398433b
[ "MIT" ]
null
null
null
import cirq import numpy as np
23.375
80
0.639037
2b0f54ec033255faf4b2fe939082f385da0b5246
263
py
Python
example.py
pnsn/python_template
1e09b87149407ee8e5f5ed78f57244470cb1415d
[ "MIT" ]
null
null
null
example.py
pnsn/python_template
1e09b87149407ee8e5f5ed78f57244470cb1415d
[ "MIT" ]
null
null
null
example.py
pnsn/python_template
1e09b87149407ee8e5f5ed78f57244470cb1415d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' All projects should use python 3 virtualenv symlinks python, python3, python3.x to environments python envoke with either python example.py or ./example.py ''' if __name__ == "__main__": main()
18.785714
69
0.711027
2b1231e92f21f35984d0911fe8b686f6f0ee27b3
4,272
py
Python
python/tests/wind_settings_test.py
anth-dj/geog5003m_project
51caa4255a04cc7043dde9ff94e654c41fc1620c
[ "MIT" ]
null
null
null
python/tests/wind_settings_test.py
anth-dj/geog5003m_project
51caa4255a04cc7043dde9ff94e654c41fc1620c
[ "MIT" ]
null
null
null
python/tests/wind_settings_test.py
anth-dj/geog5003m_project
51caa4255a04cc7043dde9ff94e654c41fc1620c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Wind Settings unit tests @author: Anthony Jarrett """ import unittest from python.src.simulation import particleframework
27.037975
75
0.617041
2b12bcc09d43893147348ccc3696625e690b010c
3,817
py
Python
src/views/botones/informacion/boton_informacion.py
julianVelandia/UI_RETEDECON
87b707f5c1553446fc92265db9da50f292e2f2d1
[ "MIT" ]
3
2022-02-27T02:15:52.000Z
2022-02-28T15:16:40.000Z
src/views/botones/informacion/boton_informacion.py
julianVelandia/UI_RETEDECON
87b707f5c1553446fc92265db9da50f292e2f2d1
[ "MIT" ]
null
null
null
src/views/botones/informacion/boton_informacion.py
julianVelandia/UI_RETEDECON
87b707f5c1553446fc92265db9da50f292e2f2d1
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * #locals from .funciones_informacion import Funcion_informacion from src.views.botones.inicio.funciones import *
59.640625
113
0.632172
2b14e1f101cb9c3f4df93b0023935c69cc41ca60
6,801
py
Python
Malt/SourceTranspiler.py
panthavma/Malt
918bce21a131e472db7a136a3cb851bda9237a7f
[ "MIT-0", "MIT" ]
null
null
null
Malt/SourceTranspiler.py
panthavma/Malt
918bce21a131e472db7a136a3cb851bda9237a7f
[ "MIT-0", "MIT" ]
null
null
null
Malt/SourceTranspiler.py
panthavma/Malt
918bce21a131e472db7a136a3cb851bda9237a7f
[ "MIT-0", "MIT" ]
null
null
null
import textwrap #TODO: Send transpiler along graph types
32.385714
121
0.624761
2b157c7b02563c277a3b074729ba1a44f8eb0df3
113
py
Python
endpoints/projects.py
FLUX-SE/TrackedHQ_python_wrapper
d35f868698d0ba0cb2fdb820317f7460b154a6d0
[ "MIT" ]
null
null
null
endpoints/projects.py
FLUX-SE/TrackedHQ_python_wrapper
d35f868698d0ba0cb2fdb820317f7460b154a6d0
[ "MIT" ]
null
null
null
endpoints/projects.py
FLUX-SE/TrackedHQ_python_wrapper
d35f868698d0ba0cb2fdb820317f7460b154a6d0
[ "MIT" ]
null
null
null
from .base import Resource
16.142857
37
0.672566
2b15e166bdadb8379f269e4e1a5eb613b13e1d82
3,173
py
Python
src/feature_creation.py
aswain571/m5_forecasting
3b7fccd56a4c14c38bbcff6b11f82cd440132730
[ "MIT" ]
null
null
null
src/feature_creation.py
aswain571/m5_forecasting
3b7fccd56a4c14c38bbcff6b11f82cd440132730
[ "MIT" ]
null
null
null
src/feature_creation.py
aswain571/m5_forecasting
3b7fccd56a4c14c38bbcff6b11f82cd440132730
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import pickle from preprocess import process_ds from sklearn.preprocessing import LabelEncoder def transform_cat_feats(df): """makes null columns into unknown and cat columns are label encoded Args: df (pd.DataFrame): Dataframe with the sales data. Returns: ...
25.58871
78
0.632524
2b175fc4f0131469f592b2c384a3aa753931cdfb
294
py
Python
setup.py
bzdvdn/sipuni-api-wrapper
44c799244388e65e9f455ed21dd16481be36f5f6
[ "MIT" ]
1
2019-12-05T14:28:31.000Z
2019-12-05T14:28:31.000Z
setup.py
bzdvdn/sipuni-api-wrapper
44c799244388e65e9f455ed21dd16481be36f5f6
[ "MIT" ]
3
2020-03-24T17:55:25.000Z
2021-02-02T22:22:17.000Z
setup.py
bzdvdn/sipuni-api-wrapper
44c799244388e65e9f455ed21dd16481be36f5f6
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='sipuni-api', version='0.0.1.1', packages=find_packages(), install_requires=[ 'requests' ], author='bzdvdn', author_email='bzdv.dn@gmail.com', url='https://github.com/bzdvdn/sipuni-api-wrapper', )
21
55
0.642857
2b178eeae032ec25548f56cb6c96df9b289d22b5
6,545
py
Python
cosmosis/output/fits_output.py
annis/cosmosis
55efc1bc2260ca39298c584ae809fa2a8e72a38e
[ "BSD-2-Clause" ]
2
2021-06-18T14:11:59.000Z
2022-02-23T19:19:36.000Z
cosmosis/output/fits_output.py
annis/cosmosis
55efc1bc2260ca39298c584ae809fa2a8e72a38e
[ "BSD-2-Clause" ]
2
2021-11-02T12:44:24.000Z
2022-03-30T15:09:48.000Z
cosmosis/output/fits_output.py
annis/cosmosis
55efc1bc2260ca39298c584ae809fa2a8e72a38e
[ "BSD-2-Clause" ]
2
2022-03-25T21:26:27.000Z
2022-03-29T06:37:46.000Z
from .output_base import OutputBase from . import utils import numpy as np import os from glob import glob from collections import OrderedDict try: import fitsio except ImportError: fitsio = None comment_indicator = "_cosmosis_comment_indicator_" final_metadata_indicator = "FINALMETA" unreserve_indicator = "UN...
33.055556
201
0.603209
2b17cbd8a9488937054f8a24306f05f58eb7a8b6
2,757
py
Python
micromath/fibonacci/test_fibonacci.py
hedrox/micromath
0f300da914c844e5ff0775f25119909f748de635
[ "MIT" ]
null
null
null
micromath/fibonacci/test_fibonacci.py
hedrox/micromath
0f300da914c844e5ff0775f25119909f748de635
[ "MIT" ]
null
null
null
micromath/fibonacci/test_fibonacci.py
hedrox/micromath
0f300da914c844e5ff0775f25119909f748de635
[ "MIT" ]
null
null
null
import logging import json from server import app app.testing = True logging.disable(logging.ERROR)
33.621951
64
0.564019
2b1c1953cad2c24ae38087460d540f5ab88ef710
278
py
Python
app.py
M3nin0/selectToTex
423cfdafdd0bd391c30cbbf70386f74e93844c2f
[ "BSD-2-Clause" ]
4
2018-06-06T15:35:51.000Z
2020-01-19T15:47:23.000Z
app.py
M3nin0/selectToTex
423cfdafdd0bd391c30cbbf70386f74e93844c2f
[ "BSD-2-Clause" ]
null
null
null
app.py
M3nin0/selectToTex
423cfdafdd0bd391c30cbbf70386f74e93844c2f
[ "BSD-2-Clause" ]
null
null
null
from selecttotex.totex import Totex # Criando instncia do SelectToTex tt = Totex() # Comandos que sero utilizados commands = ['SELECT * FROM aluno;', 'SELECT * FROM materia;', 'SELECT * FROM matricula;'] # Chama a funo para a converso tt.to_tex(commands, 'tabelas.txt')
25.272727
89
0.733813
2b1d50c991de2a9641935aabe9ff1cac8d06aaa8
506
py
Python
demo/blog/migrations/0003_auto_20200424_2258.py
erdem/django-marshmallow
3b9f3cefd70d98e9348f5a69fa61837ca28be7a6
[ "MIT" ]
3
2020-05-05T16:17:34.000Z
2021-05-13T19:05:12.000Z
demo/blog/migrations/0003_auto_20200424_2258.py
erdem/django-marshmallow
3b9f3cefd70d98e9348f5a69fa61837ca28be7a6
[ "MIT" ]
3
2021-09-08T02:12:25.000Z
2022-03-12T00:36:59.000Z
demo/blog/migrations/0003_auto_20200424_2258.py
erdem/django-marshmallow
3b9f3cefd70d98e9348f5a69fa61837ca28be7a6
[ "MIT" ]
null
null
null
# Generated by Django 2.2.11 on 2020-04-24 22:58 from django.db import migrations, models
22
67
0.571146
2b1da2d3ed1a52018f6ec06f4c582bd00a0d9184
6,682
py
Python
python/vtool/maya_lib/ui.py
louisVottero/vtool
4e2592df5841829e790251dc6923e45c8d013091
[ "MIT" ]
3
2022-02-22T01:00:59.000Z
2022-03-07T16:19:27.000Z
python/vtool/maya_lib/ui.py
louisVottero/vtool
4e2592df5841829e790251dc6923e45c8d013091
[ "MIT" ]
4
2022-03-04T05:25:44.000Z
2022-03-11T04:51:35.000Z
python/vtool/maya_lib/ui.py
louisVottero/vtool
4e2592df5841829e790251dc6923e45c8d013091
[ "MIT" ]
1
2022-03-31T23:07:09.000Z
2022-03-31T23:07:09.000Z
# Copyright (C) 2022 Louis Vottero louis.vot@gmail.com All rights reserved. from __future__ import absolute_import import maya.cmds as cmds import maya.utils import maya.mel as mel from maya.app.general.mayaMixin import MayaQWidgetBaseMixin, MayaQWidgetDockableMixin from maya import OpenMayaUI as omui ...
28.678112
140
0.611344
2b1e286ea315966366a86b5a9f5142b3ebdb896b
4,748
py
Python
xtbservice/models.py
cheminfo-py/xtbservice
d9227ea9e4647fe302cc3c1e9d57838fff938cd4
[ "MIT" ]
2
2022-01-28T02:59:28.000Z
2022-01-31T15:47:30.000Z
xtbservice/models.py
cheminfo-py/xtbservice
d9227ea9e4647fe302cc3c1e9d57838fff938cd4
[ "MIT" ]
17
2021-09-13T12:26:57.000Z
2022-01-31T22:35:49.000Z
xtbservice/models.py
cheminfo-py/xtbservice
d9227ea9e4647fe302cc3c1e9d57838fff938cd4
[ "MIT" ]
1
2022-01-26T08:17:50.000Z
2022-01-26T08:17:50.000Z
# -*- coding: utf-8 -*- from dataclasses import dataclass from typing import Dict, List, Optional import numpy as np from ase import Atoms from pydantic import BaseModel, Field, validator ALLOWED_METHODS = ("GFNFF", "GFN2xTB", "GFN1xTB") ALLOWED_FF = ("uff", "mmff94", "mmff94s")
40.931034
502
0.68829
2b1f7bce8113efac8c0084ee01c17879a8efac3c
4,590
py
Python
heat/tests/test_common_param_utils.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/tests/test_common_param_utils.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/tests/test_common_param_utils.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
45.9
79
0.579956