hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
131ebdee55bb427354a422cace3807e8ec4ae9ed
3,039
py
Python
src/production_ecommerce/account/models.py
sheriffbarrow/production-ecommerce
cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350
[ "MIT" ]
1
2020-08-18T16:23:03.000Z
2020-08-18T16:23:03.000Z
src/production_ecommerce/account/models.py
sheriffbarrow/production-ecommerce
cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350
[ "MIT" ]
8
2020-06-06T01:06:35.000Z
2021-09-08T01:35:58.000Z
src/production_ecommerce/account/models.py
sheriffbarrow/production-ecommerce
cb1a29795ff8e9b4aa95a78df50bb8aa3e5f4350
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager class MyAccountManager(BaseUserManager): def create_user(self, email, username, password=None): if not email: raise ValueError('Users must have an email address') if not username: raise ValueError('Users m...
33.395604
103
0.763738
2,927
0.963146
0
0
0
0
0
0
698
0.229681
13209dfae3637157d917f9f553a882a2aac83180
758
py
Python
dbtmetabase/models/config.py
fernandobrito/dbt-metabase
a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83
[ "MIT" ]
null
null
null
dbtmetabase/models/config.py
fernandobrito/dbt-metabase
a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83
[ "MIT" ]
1
2021-08-01T19:29:59.000Z
2021-08-01T19:29:59.000Z
dbtmetabase/models/config.py
fernandobrito/dbt-metabase
a1fa5a2c7c5e3cf12ead8806d39f6bd3a212fb83
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional, Iterable, Union @dataclass class MetabaseConfig: # Metabase Client database: str host: str user: str password: str # Metabase additional connection opts use_http: bool = False verify: Union[str, bool] = True # Me...
24.451613
59
0.700528
644
0.849604
0
0
666
0.878628
0
0
100
0.131926
1321da1b77c6741566badad243b4f02ccf184f31
2,510
py
Python
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
1
2019-07-22T03:43:49.000Z
2019-07-22T03:43:49.000Z
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
null
null
null
src/plot_timeseries_outstanding_bytes.py
arunksaha/heap_tracker
0755c6b9c3e4e621efda31c144421a1e67e51a9c
[ "BSD-3-Clause" ]
null
null
null
# # Copyright 2018, Arun Saha <[email protected]> # import matplotlib import matplotlib.pyplot as plt import matplotlib.dates as md import datetime as dt import sys import os # Open the file, read the string contents into a list, # and return the list. def GetLinesListFromFile(filename): with open(filename) as f: ...
28.202247
78
0.712749
0
0
0
0
0
0
0
0
1,036
0.412749
1324d01927785e4ef25103f8dd91f9cf2502dddb
722
py
Python
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
null
null
null
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
1
2022-02-07T12:06:59.000Z
2022-02-07T12:06:59.000Z
import.py
vmariano/meme-classifier
e8d6e73e4a843542143f20381c0741df16d3945d
[ "BSD-3-Clause" ]
1
2022-02-07T02:38:04.000Z
2022-02-07T02:38:04.000Z
from dotenv import load_dotenv load_dotenv() import sys import os import re import json import psycopg2 from meme_classifier.images import process_image path = sys.argv[1] data = json.load(open(os.path.join(path, 'result.json'), 'r')) chat_id = data['id'] conn = psycopg2.connect(os.getenv('POSTGRES_CREDENTIALS')) ...
26.740741
140
0.67036
0
0
0
0
0
0
0
0
188
0.260388
1325914730cb3ee047b3e9ac93790891768376c5
4,269
py
Python
nps/migrations/0013_auto_20180314_1805.py
jak0203/nps-dash
9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f
[ "MIT" ]
null
null
null
nps/migrations/0013_auto_20180314_1805.py
jak0203/nps-dash
9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f
[ "MIT" ]
1
2018-03-19T04:08:10.000Z
2018-03-19T04:08:10.000Z
nps/migrations/0013_auto_20180314_1805.py
jak0203/nps-dash
9a3bdb0e55e0c857bcce8ed8df04b52a2b71872f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-15 01:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nps', '0012_auto_20180314_1600'), ] operations = [ migrations.CreateModel( name='ClientAggregations', fields=[ ...
36.177966
114
0.575076
4,176
0.978215
0
0
0
0
0
0
1,155
0.270555
1325fa5a7b424ce8ba5d22a0e7ac2e6be5ce3b49
9,890
py
Python
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
1
2020-11-01T00:04:04.000Z
2020-11-01T00:04:04.000Z
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
null
null
null
docs/schema_mapping.py
NoAnyLove/pydantic
50fd2c5b48ffe611b5c4feb24f26f7202217faab
[ "MIT" ]
1
2021-03-02T02:49:05.000Z
2021-03-02T02:49:05.000Z
#!/usr/bin/env python3 """ Build a table of Python / Pydantic to JSON Schema mappings. Done like this rather than as a raw rst table to make future edits easier. Please edit this file directly not .tmp_schema_mappings.rst """ table = [ [ 'bool', 'boolean', '', 'JSON Schema Core', ...
23.491686
120
0.458544
0
0
0
0
0
0
0
0
6,024
0.6091
13261dbcef738304d7319335d93a1caa3393465f
2,798
py
Python
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
1
2019-02-25T01:09:51.000Z
2019-02-25T01:09:51.000Z
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
hubspot3/test/test_broadcast.py
kevin2357/hubspot3
488f6ff4195034317d99431439087443bca1469f
[ "MIT" ]
null
null
null
import time import unittest from nose.plugins.attrib import attr from hubspot3.test import helper from hubspot3.broadcast import Broadcast, BroadcastClient class BroadcastClientTest(unittest.TestCase): """ Unit tests for the HubSpot Broadcast API Python client. This file contains some unittest tests for the ...
34.121951
78
0.651537
2,590
0.925661
0
0
2,004
0.716226
0
0
722
0.258041
1326b5cc799b2031e2e9803af2d0899c97761474
5,166
py
Python
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
null
null
null
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
26
2021-12-01T07:46:53.000Z
2022-03-30T23:40:43.000Z
benchmark/benchmarks/testdata.py
theroggy/geofile_ops
1b5ab42169d5c3332c0d8298c5a036257cfd68d5
[ "BSD-3-Clause" ]
1
2021-11-30T17:51:34.000Z
2021-11-30T17:51:34.000Z
# -*- coding: utf-8 -*- """ Module to prepare test data for benchmarking geo operations. """ import enum import logging from pathlib import Path import pprint import shutil import sys import tempfile from typing import Optional import urllib.request import zipfile # Add path so the benchmark packages are found sys.pa...
34.44
196
0.587108
1,188
0.229965
0
0
0
0
0
0
2,303
0.445799
13275a03cfbb8b9a14ddc59598aea372c23ea6fb
6,461
py
Python
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
relocation/depth/setup_relocation_dir.py
ziyixi/SeisScripts
a484bc1747eae52b2441f0bfd47ac7e093150f1d
[ "MIT" ]
null
null
null
""" setup earthquake depth relocation directory """ import obspy import sh import numpy as np import click from os.path import join from glob import glob import copy def generate_new_cmtsolution_files(cmts_dir, generated_cmts_dir, depth_perturbation_list): cmt_names = glob(join(cmts_dir, "*")) for cmt_file i...
45.181818
207
0.625445
0
0
0
0
1,102
0.170562
0
0
2,172
0.336171
132764a2c0f4e72e8781ad3a0b75e85eb885eb90
12,911
py
Python
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
1
2016-04-05T21:57:16.000Z
2016-04-05T21:57:16.000Z
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
python-client/trustedanalytics/core/atktypes.py
blbarker/atk
bcb747d053e801820233a6439c88a457c8cf2438
[ "Apache-2.0" ]
null
null
null
# vim: set encoding=utf-8 # # Copyright (c) 2015 Intel Corporation  # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # #       http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
31.036058
191
0.629386
9,005
0.693279
0
0
6,432
0.495188
0
0
5,079
0.391023
132884f1556370e07396101f0cb65bd3696963c4
6,530
py
Python
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
srd/pageaggregator.py
poikilos/tabletopManualMiner
94a824feabdf0a8efa1bf28670af44820aff9923
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import math try: # from PDFPageDetailedAggregator: from pdfminer.pdfdocument import PDFDocument, PDFNoOutlines from pdfminer.pdfparser import PDFParser from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.converter import PDFPageAggregator ...
36.077348
91
0.467994
5,217
0.798928
0
0
0
0
0
0
2,051
0.314089
1328be197a55352f7669047e01b9ed9e941d72e5
1,131
py
Python
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
ctrltest.py
dkim286/cpsc454-proj
16314802bae3cfbd4d1bf6d7f75a9e6adeb6700d
[ "FTL", "CNRI-Python" ]
null
null
null
from pox.core import core import pox.openflow.libopenflow_01 as of from forwarding.l2_learning import * from tkinter import * from project.firewall import TestFW from project.ui import UI def setup(): top = Toplevel() # quit POX when window is killed top.protocol("WM_DELETE_WINDOW", core.quit) t...
23.5625
82
0.654288
0
0
0
0
0
0
0
0
201
0.177719
1328cd1366c0161d1070168617ce0f27d9f43e15
246
py
Python
virtual/lib/python3.6/site-packages/mako/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
1
2019-04-24T21:53:37.000Z
2019-04-24T21:53:37.000Z
virtual/lib/python3.6/site-packages/mako/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
5
2021-03-19T00:19:04.000Z
2022-01-13T01:12:44.000Z
virtual/lib/python3.6/site-packages/mako/__init__.py
kenmutuma001/Blog
6b19a77b71694bbe9f5e84207de46c68f87ebc5e
[ "Unlicense" ]
2
2019-11-30T10:33:16.000Z
2021-02-03T06:29:40.000Z
# mako/__init__.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php __version__ = '1.0.9'
27.333333
78
0.743902
0
0
0
0
0
0
0
0
224
0.910569
1328eb00ae7fa054c34be04f558ebc32d9e45ce4
10,911
py
Python
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
image_classification/T2T_ViT/load_pytorch_weights.py
RangeKing/PaddleViT
0e25958686e04ed8872cf67fba0dfd6918e9b4dd
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
38.284211
93
0.563926
0
0
0
0
0
0
0
0
3,931
0.360279
1329bbbf79a71f88d6626330a68385f854fb0eef
479
py
Python
estimators/__init__.py
j-bac/id-concentration
372bacc846d3d5dd5f99178863fa214fb8d3b292
[ "MIT" ]
null
null
null
estimators/__init__.py
j-bac/id-concentration
372bacc846d3d5dd5f99178863fa214fb8d3b292
[ "MIT" ]
null
null
null
estimators/__init__.py
j-bac/id-concentration
372bacc846d3d5dd5f99178863fa214fb8d3b292
[ "MIT" ]
null
null
null
from ._FisherS import randsphere, preprocessing, SeparabilityAnalysis, point_inseparability_to_pointID from ._call_estimators import TwoNN, run_singleGMST,run_singleCorrDim,runDANCo, runDANCoStats, runDANColoop,runANOVAglobal,runANOVAlocal,radovanovic_estimators_matlab,Hidalgo from ._DANCo import dancoDimEst as danco_p...
59.875
174
0.868476
0
0
0
0
0
0
0
0
0
0
132a98c8a3d62474bea30c75b83e6ea4827d2ca4
265
py
Python
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
71
2019-12-04T03:58:33.000Z
2022-03-19T11:38:54.000Z
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
6
2020-01-03T09:56:45.000Z
2022-03-10T09:29:04.000Z
examples/get_message.py
NeroAsmarr/fz-api
d688277b4c616e93c809381ab082cba834964681
[ "MIT" ]
12
2019-11-23T03:37:39.000Z
2021-08-15T09:41:21.000Z
# 获取调课、改课通知例子 from zfnew import GetInfo, Login base_url = '学校教务系统的主页url' lgn = Login(base_url=base_url) lgn.login('账号', '密码') cookies = lgn.cookies # cookies获取方法 person = GetInfo(base_url=base_url, cookies=cookies) message = person.get_message() print(message)
20.384615
52
0.754717
0
0
0
0
0
0
0
0
104
0.323988
132acdacf1ba08411631ef7d5debcacf7e313231
1,030
py
Python
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
input/gera_entradas.py
AtilioA/Sort-merge-join
6ed3199aada921973833cafffc8cbde5062b76fb
[ "Unlicense" ]
null
null
null
import sys import random from faker import Faker def gera(nLinhas=100, nCampos=None): with open(f"{path}/file{nLinhas}-{nCampos}_python.txt", "w+", encoding="utf8") as file: if not nCampos: nCampos = random.randint(2, 10) camposFuncs = [ fake.name, fake.date, ...
23.953488
91
0.523301
0
0
0
0
0
0
0
0
129
0.125243
132ade11b48d56eee57560835a5c3f4f30719ed6
1,639
py
Python
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
lessons 20/HomeWork/task9.py
zainllw0w/skillbox
896287b6f7f5612cf589094131fd1a12b0b192ba
[ "MIT" ]
null
null
null
def sort(data, time): tt = False ft = True st = False is_find = True winers_name = set() index = 0 while is_find: index += 1 for key, values in data.items(): if time[0 - index] == int(values[1]) and ft and values[0] not in winers_name: first_id = k...
32.78
90
0.534472
0
0
0
0
0
0
0
0
259
0.149366
132ba0fc5dd29581ad43ebacaf74b8069bf64ef6
5,072
py
Python
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2021-08-10T12:08:31.000Z
2021-08-10T12:08:31.000Z
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-04-30T05:38:44.000Z
2020-04-30T05:38:44.000Z
src/test-apps/happy/test-templates/WeaveInetDNS.py
aiw-google/openweave-core
5dfb14b21d0898ef95bb62ff564cadfeea4b4702
[ "Apache-2.0" ]
1
2020-06-15T01:50:59.000Z
2020-06-15T01:50:59.000Z
#!/usr/bin/env python # # Copyright (c) 2016-2017 Nest Labs, 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/lice...
29.317919
123
0.636632
3,799
0.749014
0
0
0
0
0
0
1,746
0.344243
132bada4fd58d52bb6e1891b67b8d0c493944002
6,243
py
Python
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
funcoes.py
ZezaoDev/Circtrigo
5e5f6be0bdee17d30c2993478ca25409b82b6af3
[ "MIT" ]
null
null
null
import turtle as t import math class circTrigo: def __init__(self): self.raio = 0 self.grau = 0 self.seno = 0 self.cosseno = 0 self.tangente = 0 self.quadrante = 0 self.tema = '' t.bgcolor("black") t.pencolor("white") def seta(s...
30.014423
149
0.492712
6,204
0.993753
0
0
0
0
0
0
431
0.069037
132bcf51e26ca1f03ed60b32fc0ad65159783864
107
py
Python
examples/catapi/feeder.py
IniZio/py-skygear
88479678f91e678fd931c28295189bfea2148c79
[ "Apache-2.0" ]
8
2016-06-24T03:26:45.000Z
2018-05-12T09:06:33.000Z
examples/catapi/feeder.py
IniZio/py-skygear
88479678f91e678fd931c28295189bfea2148c79
[ "Apache-2.0" ]
183
2016-03-23T08:03:28.000Z
2018-08-14T05:49:45.000Z
examples/catapi/feeder.py
IniZio/py-skygear
88479678f91e678fd931c28295189bfea2148c79
[ "Apache-2.0" ]
24
2016-03-21T02:39:39.000Z
2020-09-17T12:28:58.000Z
def pick_food(name): if name == "chima": return "chicken" else: return "dry food"
15.285714
25
0.53271
0
0
0
0
0
0
0
0
26
0.242991
132c604ed66d104dc1d0fc33432f244eb013965a
7,620
py
Python
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
1
2021-01-21T17:54:20.000Z
2021-01-21T17:54:20.000Z
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
null
null
null
esm/model.py
crochereau/esm
881a3b924d3f74e3cddeb6929e91ee7224ef2ebd
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import torch import torch.nn as nn import torch.nn.functional as F from .modules import ( TransformerLayer, LearnedPosit...
38.1
121
0.600656
7,178
0.941995
0
0
873
0.114567
0
0
888
0.116535
132d17111128f658179267c44013a769265d45f3
3,392
py
Python
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
python/tink/aead/kms_envelope_aead.py
bfloch/tink
aac780590902f726a8e7d6c4e3aa1cd75f4b0ed5
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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,...
36.085106
79
0.740861
2,439
0.719045
0
0
0
0
0
0
1,726
0.508844
132da230699a189c6467f4c2e09699a5bd87f139
2,168
py
Python
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
tests/pyb/can.py
LabAixBidouille/micropython
11aa6ba456287d6c80598a7ebbebd2887ce8f5a2
[ "MIT" ]
null
null
null
from pyb import CAN CAN.initfilterbanks(14) can = CAN(1) print(can) can.init(CAN.LOOPBACK) print(can) print(can.any(0)) # Catch all filter can.setfilter(0, CAN.MASK16, 0, (0, 0, 0, 0)) can.send('abcd', 123) print(can.any(0)) print(can.recv(0)) can.send('abcd', -1) print(can.recv(0)) can.send('abcd', 0x7FF + 1) pr...
17.626016
45
0.600092
0
0
0
0
0
0
0
0
426
0.196494
132f2f1fcc81be862b19147ccbf0e1ac78045127
8,995
py
Python
quarkchain/cluster/tests/test_miner.py
TahiG/pyquarkchain
30da626ef6b50bd07b230aac05a3cef7fd7f23cf
[ "MIT" ]
17
2018-12-25T03:41:25.000Z
2020-08-11T06:06:26.000Z
quarkchain/cluster/tests/test_miner.py
TahiG/pyquarkchain
30da626ef6b50bd07b230aac05a3cef7fd7f23cf
[ "MIT" ]
null
null
null
quarkchain/cluster/tests/test_miner.py
TahiG/pyquarkchain
30da626ef6b50bd07b230aac05a3cef7fd7f23cf
[ "MIT" ]
5
2018-12-25T07:55:56.000Z
2019-09-11T23:19:59.000Z
import asyncio import time import unittest from typing import Optional from quarkchain.cluster.miner import DoubleSHA256, Miner, MiningWork, validate_seal from quarkchain.config import ConsensusType from quarkchain.core import RootBlock, RootBlockHeader from quarkchain.p2p import ecies from quarkchain.utils import sha...
35
90
0.585103
8,684
0.963497
0
0
252
0.02796
3,789
0.420393
948
0.105181
133006e28697a9c060805e03e6080858eb027007
4,782
py
Python
analysis/networks/autoencoder/train_eval.py
nriesterer/iccm-neural-bound
e14b103ba2c81a197de5b0edf948c19d57f0d3ba
[ "MIT" ]
null
null
null
analysis/networks/autoencoder/train_eval.py
nriesterer/iccm-neural-bound
e14b103ba2c81a197de5b0edf948c19d57f0d3ba
[ "MIT" ]
null
null
null
analysis/networks/autoencoder/train_eval.py
nriesterer/iccm-neural-bound
e14b103ba2c81a197de5b0edf948c19d57f0d3ba
[ "MIT" ]
null
null
null
""" Evaluates the training performance of the autoencoder. """ import time import pandas as pd import numpy as np import torch import torch.optim as optim import torch.nn as nn import ccobra import onehot import autoencoder # General settings training_datafile = '../../data/Ragni-train.csv' test_datafile = '../....
32.310811
94
0.669385
0
0
0
0
0
0
0
0
909
0.190088
13319b518cfc2b51d7dc1b3515004faa2aab4919
2,170
py
Python
Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py
Aver58/ColaFrameWork
04c6750305ad734b30eceb95b463695b8373845a
[ "MIT" ]
1
2020-12-30T00:33:31.000Z
2020-12-30T00:33:31.000Z
Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py
wtb521thl/ColaFrameWork
0a8cc589740e045ebde668a76c4a35366b38e62e
[ "MIT" ]
null
null
null
Tools/GAutomator/wpyscripts/uiautomator/uiautomator_manager.py
wtb521thl/ColaFrameWork
0a8cc589740e045ebde668a76c4a35366b38e62e
[ "MIT" ]
1
2020-07-27T12:28:56.000Z
2020-07-27T12:28:56.000Z
#-*- coding: UTF-8 -*- """ Tencent is pleased to support the open source community by making GAutomator available. Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a...
35
305
0.723502
0
0
0
0
0
0
0
0
1,105
0.505027
1334b7e4ac98033a8f1ce868857f5028fcae2b7d
2,261
py
Python
IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
IMU/VTK-6.2.0/Filters/Core/Testing/Python/TestSynchronizedTemplates3D.py
timkrentz/SunTracker
9a189cc38f45e5fbc4e4c700d7295a871d022795
[ "MIT" ]
null
null
null
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() class TestSynchronizedTemplates3D(Testing.vtkTest): def testAll(self): reader = vtk.vtkImageReader() reader.SetDataByteOrderToLittleEndian() reader.SetDataExte...
35.888889
81
0.707651
2,030
0.897833
0
0
0
0
0
0
350
0.154799
1335259eff2620253efdbb6cb8199b32e7ccadf8
14,913
py
Python
deserialize/__init__.py
iAndriy/deserialize
3552517873d68d3bb953b44dd9512f0e0d045191
[ "MIT" ]
null
null
null
deserialize/__init__.py
iAndriy/deserialize
3552517873d68d3bb953b44dd9512f0e0d045191
[ "MIT" ]
null
null
null
deserialize/__init__.py
iAndriy/deserialize
3552517873d68d3bb953b44dd9512f0e0d045191
[ "MIT" ]
null
null
null
"""A module for deserializing data to Python objects.""" # pylint: disable=unidiomatic-typecheck # pylint: disable=protected-access # pylint: disable=too-many-branches # pylint: disable=wildcard-import import enum import functools import typing from typing import Any, Callable, Dict, List, Optional, Union from deser...
35.507143
148
0.644002
1,157
0.077583
0
0
0
0
0
0
4,439
0.29766
1335675a9f3e2654ba5bacc0a704284147b3d912
2,518
py
Python
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
3
2020-10-07T18:28:12.000Z
2020-10-09T15:24:53.000Z
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
15
2020-10-09T15:23:03.000Z
2020-10-29T04:34:17.000Z
tests/test_get_set.py
snoopyjc/ssf
b995cae0e90d38e3758d4944fb144831f9bae0a5
[ "Apache-2.0" ]
null
null
null
from ssf import SSF ssf = SSF(errors='raise') def test_get_set_days(): dn = ssf.get_day_names() assert isinstance(dn, tuple) assert dn == (('Mon', 'Monday'), ('Tue', 'Tuesday'), ('Wed', 'Wednesday'), ('Thu', 'Thursday'), ('Fri', 'Friday'), ('Sat',...
31.475
100
0.496029
0
0
0
0
0
0
0
0
780
0.30977
13356a393bf8946042480c6de66561dc06a9116f
3,796
py
Python
script.py
devppratik/Youtube-Downloader
ccdf31b83fbce2d05711c64dbad729c935c72b8a
[ "MIT" ]
null
null
null
script.py
devppratik/Youtube-Downloader
ccdf31b83fbce2d05711c64dbad729c935c72b8a
[ "MIT" ]
null
null
null
script.py
devppratik/Youtube-Downloader
ccdf31b83fbce2d05711c64dbad729c935c72b8a
[ "MIT" ]
null
null
null
import os import pyfiglet from pytube import YouTube, Playlist file_size = 0 folder_name = "" # Progress Bar def print_progress_bar(iteration, total, prefix='', suffix='', decimals=1, length=100, fill='#', print_end="\r"): percent = ("{0:." + str(decimals) + "f}").format(100 * ...
33.008696
113
0.670443
0
0
0
0
0
0
0
0
861
0.226818
13372002afbafad592f6b286397c1829136d9e66
1,547
py
Python
test/python/test.py
alex952/cdr
e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16
[ "MIT" ]
null
null
null
test/python/test.py
alex952/cdr
e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16
[ "MIT" ]
null
null
null
test/python/test.py
alex952/cdr
e8dce20c2cc635e5ad8bf16a16ec4f7d9a86ac16
[ "MIT" ]
null
null
null
# # Copyright 2014-2018 Neueda Ltd. # from cdr import Cdr import unittest field1 = 1 field2 = 2 field3 = 55 class TestCdr(unittest.TestCase): def get_a_cdr(self): d = Cdr() d.setInteger(field1, 123) d.setString(field2, "Hello") d.setString(field3, "World") return d ...
20.355263
59
0.541694
1,385
0.895281
0
0
0
0
0
0
94
0.060763
1337486fb7ecdf7c5699a609f50b6301a5037cab
32,947
py
Python
vendor/mo_times/vendor/dateutil/tz.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_times/vendor/dateutil/tz.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
vendor/mo_times/vendor/dateutil/tz.py
klahnakoski/auth0-api
eda9c2554c641da76687f64445b8d35543d012d9
[ "MIT" ]
null
null
null
""" Copyright (c) 2003-2007 Gustavo Niemeyer <[email protected]> This module offers extensions to the standard Python datetime module. """ import datetime import os import struct import sys import time from mo_future import PY3, string_types __license__ = "Simplified BSD" __all__ = ["tzutc", "tzoffset", "tzloca...
34.284079
89
0.521049
29,278
0.888639
0
0
606
0.018393
0
0
7,280
0.220961
1338002c0bb58e1ef6c0115a4fcc0293761a19a5
764
py
Python
example/first_example/window/inputWindow/view.py
suuperhu/Pyside2MVCFramework
c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6
[ "MIT" ]
1
2021-03-11T13:34:41.000Z
2021-03-11T13:34:41.000Z
example/first_example/window/inputWindow/view.py
suuperhu/Pyside2MVCFramework
c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6
[ "MIT" ]
null
null
null
example/first_example/window/inputWindow/view.py
suuperhu/Pyside2MVCFramework
c28bd0fbb6b53bb2cdad8d0723b4251fc93319d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ # @SoftwareIDE : PyCharm2020Pro # @ProjectName : PySide2MVCFramework # @FileName : view.py # @Author : 胡守杰 # @Email : [email protected] # @ZhFileDescription : # @EnFileDescription : """ import os from pyside2mvcframework.core.v...
26.344828
84
0.649215
113
0.146753
0
0
0
0
0
0
362
0.47013
133a869b28cf9968a719e243a3266dfb25b637ba
18,998
py
Python
src/finn/custom_op/fpgadataflow/streamingfifo.py
AlexMontgomerie/finn
ec5f67b333ad4db4acf6191c3b5ab5e9067347aa
[ "BSD-3-Clause" ]
283
2019-09-26T10:09:34.000Z
2022-03-09T16:36:23.000Z
src/finn/custom_op/fpgadataflow/streamingfifo.py
AlexMontgomerie/finn
ec5f67b333ad4db4acf6191c3b5ab5e9067347aa
[ "BSD-3-Clause" ]
238
2019-10-04T12:20:26.000Z
2022-03-31T04:50:53.000Z
src/finn/custom_op/fpgadataflow/streamingfifo.py
AlexMontgomerie/finn
ec5f67b333ad4db4acf6191c3b5ab5e9067347aa
[ "BSD-3-Clause" ]
144
2019-09-23T13:46:14.000Z
2022-03-18T12:55:07.000Z
# Copyright (c) 2020, Xilinx # All rights reserved. # # 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 and the follow...
40.25
88
0.600326
17,135
0.901937
0
0
0
0
0
0
6,135
0.322929
133a8d431ec24410c6b47b396ebee9494e39f0e3
3,403
py
Python
android_fonts.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
1
2022-01-13T01:47:45.000Z
2022-01-13T01:47:45.000Z
android_fonts.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
2
2022-01-13T03:54:39.000Z
2022-03-12T01:00:20.000Z
android_fonts.py
chrissimpkins/android_fonts
f904147774836468a8c011b1596f85577220b140
[ "Apache-2.0" ]
1
2022-03-25T20:01:56.000Z
2022-03-25T20:01:56.000Z
import ast import emoji import os import pandas as pd _SUPPORT_CACHE_CSV = emoji.datafile('emoji_support.csv') _API_LEVELS = { 1: ("(no codename)", "1.0"), 2: ("(no codename)", "1.1"), 3: ("Cupcake", "1.5 "), 4: ("Donut", "1.6 "), 5: ("Eclair", "2.0"), 6: ("Eclair", "2.0.1"), 7: ("Eclair", "2.1 "), 8:...
27.666667
82
0.590949
0
0
0
0
0
0
0
0
1,304
0.383191
133cca4be64ff28929df70bc44eae2ffd26907ef
5,889
py
Python
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
3
2020-11-11T11:28:47.000Z
2022-03-16T11:27:39.000Z
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
null
null
null
tests/test_list.py
amikrop/django-paste
109f6e5a42bdc20f3cb671471b3ce5c9e329148b
[ "MIT" ]
1
2021-01-05T15:01:06.000Z
2021-01-05T15:01:06.000Z
import json from django.urls import reverse from rest_framework import status from rest_framework.test import APITestCase from paste import constants from tests.mixins import SnippetListTestCaseMixin from tests.utils import constant, create_snippet, create_user class SnippetListTestCase(SnippetListTestCaseMixin, ...
37.993548
78
0.652742
5,620
0.954322
0
0
0
0
0
0
2,134
0.362371
133e3e1f16ff977c264f6c6b6c2854d7503259d9
1,082
py
Python
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
Algorithmic Toolbox/Greedy Algorithms/Maximum Advertisement Revenue/maximum_ad_revenue.py
ganeshbhandarkar/Python-Projects
a4df933122a6694d249c69d1e8e95b592cf036a0
[ "MIT" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
# python3 from itertools import permutations def max_dot_product_naive(first_sequence, second_sequence): assert len(first_sequence) == len(second_sequence) assert len(first_sequence) <= 10 ** 3 assert all(0 <= f <= 10 ** 5 for f in first_sequence) assert all(0 <= s <= 10 ** 5 for s in second_sequence...
30.914286
97
0.675601
0
0
0
0
0
0
0
0
19
0.01756
133ed5289cb6b6aa42d9780aa225db43b59d7e06
154
py
Python
HelloWorldPython/IfStatements.py
SamIge7/Tutorials
7a3361768432a6493313d1f0ea1ccc8b2b916aa2
[ "MIT" ]
null
null
null
HelloWorldPython/IfStatements.py
SamIge7/Tutorials
7a3361768432a6493313d1f0ea1ccc8b2b916aa2
[ "MIT" ]
null
null
null
HelloWorldPython/IfStatements.py
SamIge7/Tutorials
7a3361768432a6493313d1f0ea1ccc8b2b916aa2
[ "MIT" ]
null
null
null
hasGoodCredit = True price = 1000000 deposit = 0 if hasGoodCredit: deposit = price/10 else: deposit = price/5 print(f"Deposit needed: £{deposit}")
19.25
36
0.707792
0
0
0
0
0
0
0
0
30
0.193548
133faca593d6fb1ce0fd475b5ad4b709b64db3a7
1,970
py
Python
main.py
vsundesha/documentation-hub-dependencies
3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01
[ "Apache-2.0" ]
null
null
null
main.py
vsundesha/documentation-hub-dependencies
3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01
[ "Apache-2.0" ]
null
null
null
main.py
vsundesha/documentation-hub-dependencies
3cdb7c28ceefb7c4ece60fd5e9d3e89640bb0d01
[ "Apache-2.0" ]
null
null
null
import config as props import sys import getopt from GitHubDataFetcher import GitHubDataFetcher from DependencyFile import DependencyFile from ErrorFile import ErrorFile # Github Token TOKEN = props.token OWNER = "" REPOSITORY = "" OUTPUTFILE = "" def showHelp(): print('-r or --repo The name of t...
30.78125
117
0.579695
0
0
0
0
0
0
0
0
670
0.340102
133fae22a7b7ebcd7d6ca9fc3157fb56fb5b1062
6,036
py
Python
inference_realesrgan.py
blabra/Real-ESRGAN
bd5c69d2ef30f27cc2a510443451a2dc841aec28
[ "BSD-3-Clause" ]
null
null
null
inference_realesrgan.py
blabra/Real-ESRGAN
bd5c69d2ef30f27cc2a510443451a2dc841aec28
[ "BSD-3-Clause" ]
null
null
null
inference_realesrgan.py
blabra/Real-ESRGAN
bd5c69d2ef30f27cc2a510443451a2dc841aec28
[ "BSD-3-Clause" ]
null
null
null
import argparse import cv2 import glob import os from basicsr.archs.rrdbnet_arch import RRDBNet import time from realesrgan import RealESRGANer from realesrgan.archs.srvgg_arch import SRVGGNetCompact def main(): """Inference demo for Real-ESRGAN. """ parser = argparse.ArgumentParser() parser.add_argu...
43.73913
117
0.647614
0
0
0
0
0
0
0
0
2,020
0.334659
1340144aae426a1da982a7084f1832cdca8e0a63
515
py
Python
examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
examples/Fe__vasp/Fe_fcc_afm_D/Fe_fcc_afm_D_vac_A/clean_vasp.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import os filenames_delete = [ 'CHG', 'CHGCAR', 'CONTCAR', 'DOSCAR', 'EIGENVAL', 'IBZKPT', 'job.err', 'job.out', 'OSZICAR', 'PCDAT', 'REPORT', 'vasp.log', 'vasprun.xml', 'WAVECAR', 'XDATCAR' ] for filename in filenames_delete: try: ...
17.166667
51
0.518447
0
0
0
0
0
0
0
0
164
0.318447
1340c125093f2e5f053bbf9519f4a5c3e3aa6a2e
1,195
py
Python
binary_trees/largest_values_in_tree_rows.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
binary_trees/largest_values_in_tree_rows.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
binary_trees/largest_values_in_tree_rows.py
ethyl2/code_challenges
3c9ccca1782f92728e60a515a7ca797f6d470e81
[ "MIT" ]
null
null
null
''' Sean Chen's solution. See mine in largest_values_in_each_row.py ''' from collection import deque def largest_values_in_tree_rows(t): rv = [] if t is None: return rv current_depth = 0 current_max = t.value q = deque() # add the root node to the queue at a depth of 0 q.append...
24.895833
61
0.594979
0
0
0
0
0
0
0
0
453
0.379079
13422bb3478f929cfdd7d39790b4b35df0ba961e
7,034
py
Python
src/infer/_ExtractSimpleDeformTTA.py
RamsteinWR/PneumoniaRSNA1
08bdba51292307a78ef711c6be4a63faea240ddf
[ "MIT" ]
null
null
null
src/infer/_ExtractSimpleDeformTTA.py
RamsteinWR/PneumoniaRSNA1
08bdba51292307a78ef711c6be4a63faea240ddf
[ "MIT" ]
null
null
null
src/infer/_ExtractSimpleDeformTTA.py
RamsteinWR/PneumoniaRSNA1
08bdba51292307a78ef711c6be4a63faea240ddf
[ "MIT" ]
null
null
null
import json import os import re import numpy as np import pandas as pd from src.infer.ExtractDeformableTTA import MAPPINGS_PATH, test_image_set, METADATA_PATH, RCNN0_DETS_DIR WDIR = os.path.dirname(os.path.abspath(__file__)) def get_results(det_folder, test_set, suffix): filepath = os.path.join(det_folder, tes...
44.238994
115
0.598806
0
0
0
0
0
0
0
0
748
0.106341
1342626b945cae1f2c60f3de7811ba70848e89f4
1,896
py
Python
pool4.py
yfii/yfiiapi
2c0341b66108f99005dc5a40e3d1d30267f50bb5
[ "MIT" ]
4
2020-09-11T12:31:37.000Z
2020-12-14T04:42:05.000Z
pool4.py
yfii/yfiiapi
2c0341b66108f99005dc5a40e3d1d30267f50bb5
[ "MIT" ]
1
2020-10-07T11:03:07.000Z
2020-10-07T11:03:07.000Z
pool4.py
yfii/yfiiapi
2c0341b66108f99005dc5a40e3d1d30267f50bb5
[ "MIT" ]
9
2020-09-25T17:54:50.000Z
2021-06-05T05:36:14.000Z
from web3 import Web3, HTTPProvider import json w3url = "https://mainnet.infura.io/v3/998f64f3627548bbaf2630599c1eefca" w3 = Web3(HTTPProvider(w3url)) WETH = "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" YFII = "0xa1d0E215a23d7030842FC67cE582a6aFa3CCaB83" DAI = "0x6B175474E89094C44Da98b954EedeAC495271d0F" iUSDT = "0x...
29.169231
86
0.730485
0
0
0
0
0
0
0
0
438
0.231013
13427c6b2da4367eae23b3d65430a2f826b58232
106,827
py
Python
obswebsocket/requests.py
PanBartosz/obs-websocket-py
e92960a475d3f1096a4ea41763cbc776b23f0a37
[ "MIT" ]
123
2017-06-19T05:34:58.000Z
2022-03-23T12:48:19.000Z
obswebsocket/requests.py
PanBartosz/obs-websocket-py
e92960a475d3f1096a4ea41763cbc776b23f0a37
[ "MIT" ]
67
2017-06-20T11:31:08.000Z
2022-03-25T20:30:41.000Z
obswebsocket/requests.py
PanBartosz/obs-websocket-py
e92960a475d3f1096a4ea41763cbc776b23f0a37
[ "MIT" ]
51
2017-10-09T19:03:12.000Z
2022-03-28T19:25:02.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # THIS FILE WAS GENERATED BY generate_classes.py - DO NOT EDIT # # (Generated on 2020-12-20 18:26:33.661372) # from .base_classes import Baserequests class GetVersion(Baserequests): """Returns the latest version of the plugin and the API. :Returns: *vers...
29.682412
417
0.601075
106,261
0.994702
0
0
0
0
0
0
68,193
0.63835
134494ea81ba3a532d6b1f91e17ecbbfebb61032
157
py
Python
simple_history/tests/custom_user/admin.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
911
2015-01-05T13:21:17.000Z
2020-06-07T07:11:53.000Z
simple_history/tests/custom_user/admin.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
492
2015-01-01T18:20:20.000Z
2020-06-06T17:34:01.000Z
simple_history/tests/custom_user/admin.py
rdurica/django-simple-history
84d17f40be68e9ac7744b773451be83720c4c13a
[ "BSD-3-Clause" ]
307
2015-02-01T00:45:51.000Z
2020-06-06T15:39:29.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from .models import CustomUser admin.site.register(CustomUser, UserAdmin)
22.428571
47
0.834395
0
0
0
0
0
0
0
0
0
0
1345874b0ae4768978973e82f88c986754ca58f9
7,109
py
Python
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
1
2019-05-31T14:01:42.000Z
2019-05-31T14:01:42.000Z
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
null
null
null
tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/mtcnn_evaluator_utils.py
Pandinosaurus/open_model_zoo
2543996541346418919c5cddfb71e33e2cdef080
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2018-2022 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
39.494444
120
0.623435
0
0
0
0
0
0
0
0
779
0.109579
134646519d68e17184a83f90eaeb23182da3950c
8,849
py
Python
pytests/Atomicity/basic_ops.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
pytests/Atomicity/basic_ops.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
pytests/Atomicity/basic_ops.py
ashwin2002/TAF
4223787a1f4c0fe9fa841543020b48ada9ade9e3
[ "Apache-2.0" ]
null
null
null
from Cb_constants import DocLoading from basetestcase import ClusterSetup from couchbase_helper.documentgenerator import DocumentGenerator, doc_generator from couchbase_helper.tuq_generators import JsonGenerator from remote.remote_util import RemoteMachineShellConnection from sdk_client3 import SDKClient from com.couc...
42.138095
79
0.600181
8,428
0.952424
0
0
344
0.038874
0
0
1,518
0.171545
1346bfc37ba0726e8df79447049dc235a411088d
509
py
Python
reverseWord.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
null
null
null
reverseWord.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
null
null
null
reverseWord.py
lovefov/Python
ba8fc49e6e503927dc1f827f37b77f3e43b5d0c8
[ "MIT" ]
1
2021-02-08T08:48:44.000Z
2021-02-08T08:48:44.000Z
#!/usr/bin/env python3 #-*- coding:utf-8 -*- #Author:贾江超 def spin_words(sentence): list1=sentence.split() l=len(list1) for i in range(l): relen = len(sentence.split()[i:][0]) if relen > 5: list1[i]=list1[i][::-1] return ' '.join(list1) ''' 注意 在2.x版本可以用len()得到list的长度 3.x版本就不行...
19.576923
81
0.569745
0
0
0
0
0
0
0
0
367
0.618887
1346de71efda2a56a9fe39787dfce52620463eb1
3,461
py
Python
src/scs_host/comms/network_socket.py
south-coast-science/scs_host_cpc
08b4a28c022936462b60823cca136ba6746eac57
[ "MIT" ]
null
null
null
src/scs_host/comms/network_socket.py
south-coast-science/scs_host_cpc
08b4a28c022936462b60823cca136ba6746eac57
[ "MIT" ]
null
null
null
src/scs_host/comms/network_socket.py
south-coast-science/scs_host_cpc
08b4a28c022936462b60823cca136ba6746eac57
[ "MIT" ]
null
null
null
""" Created on 30 May 2017 @author: Bruno Beloff ([email protected]) A network socket abstraction, implementing ProcessComms """ import socket import time from scs_core.sys.process_comms import ProcessComms # ----------------------------------------------------------------------------------------...
27.251969
118
0.428489
3,110
0.898584
389
0.112395
0
0
0
0
1,041
0.30078
13470b2018f5f54dbcfea9b085e57cd30b1be672
15,182
py
Python
dateparser/date.py
JKhakpour/dateparser
7f324cfd3de04e91752979cf65ae0dedc622375f
[ "BSD-3-Clause" ]
2
2019-03-12T10:50:15.000Z
2021-07-07T14:38:58.000Z
dateparser/date.py
JKhakpour/dateparser
7f324cfd3de04e91752979cf65ae0dedc622375f
[ "BSD-3-Clause" ]
null
null
null
dateparser/date.py
JKhakpour/dateparser
7f324cfd3de04e91752979cf65ae0dedc622375f
[ "BSD-3-Clause" ]
1
2018-03-07T13:25:16.000Z
2018-03-07T13:25:16.000Z
# -*- coding: utf-8 -*- import calendar import collections from datetime import datetime, timedelta from warnings import warn import six import regex as re from dateutil.relativedelta import relativedelta from dateparser.date_parser import date_parser from dateparser.freshness_date_parser import freshness_date_parser...
38.338384
114
0.640364
9,581
0.631035
1,766
0.116314
1,653
0.108872
0
0
4,497
0.296187
1347a75f9a9bad0cfccf1c5a976700bd26f857d2
8,817
py
Python
src/models/functions/connection/mixture_density_network.py
kristofbc/handwriting-synthesis
16505e89fd7275d4cd3ed9c4388c9f3c153a0397
[ "FTL" ]
null
null
null
src/models/functions/connection/mixture_density_network.py
kristofbc/handwriting-synthesis
16505e89fd7275d4cd3ed9c4388c9f3c153a0397
[ "FTL" ]
null
null
null
src/models/functions/connection/mixture_density_network.py
kristofbc/handwriting-synthesis
16505e89fd7275d4cd3ed9c4388c9f3c153a0397
[ "FTL" ]
null
null
null
import chainer import chainer.functions from chainer.utils import type_check from chainer import cuda from chainer import function import numpy as np #from chainer import function_node from utils import clip_grad #class MixtureDensityNetworkFunction(function_node.FunctionNode): class MixtureDensityNetworkFunction(fu...
40.260274
142
0.576613
7,606
0.862652
0
0
0
0
0
0
2,476
0.280821
134809d310a2c2bc00124d8b1a5104d5d2cb92b6
939
py
Python
flask__webservers/bootstrap_4__toggle_switch__examples/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
flask__webservers/bootstrap_4__toggle_switch__examples/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
flask__webservers/bootstrap_4__toggle_switch__examples/main.py
DazEB2/SimplePyScripts
1dde0a42ba93fe89609855d6db8af1c63b1ab7cc
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'ipetrash' # SOURCE: https://github.com/twbs/bootstrap # SOURCE: https://github.com/gitbrent/bootstrap4-toggle # SOURCE: https://gitbrent.github.io/bootstrap4-toggle/ from flask import Flask, render_template app = Flask(__name__) import logging logging.b...
22.357143
87
0.631523
0
0
0
0
69
0.073482
0
0
573
0.610224
134951456249066bc57415ee60860d0f10fe18d8
160
py
Python
dev/phonts/visualization/phonts.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
4
2018-01-18T19:59:56.000Z
2020-08-25T11:56:52.000Z
dev/phonts/visualization/phonts.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2018-04-22T23:02:13.000Z
2018-04-22T23:02:13.000Z
dev/phonts/visualization/phonts.py
eragasa/pypospack
21cdecaf3b05c87acc532d992be2c04d85bfbc22
[ "MIT" ]
1
2019-09-14T07:04:42.000Z
2019-09-14T07:04:42.000Z
import pypospack.io.phonts as phonts # <---- additional classes and functions in which to add top # <---- pypospack.io.phonts if __name__ == "__main__":
20
60
0.6875
0
0
0
0
0
0
0
0
101
0.63125
13495c72390c53605e37531f81078eacc3f25cd2
30,078
py
Python
omegaconf/_utils.py
sugatoray/omegaconf
edf9e86493a14b0e909e956d9bae59b9861ef9c5
[ "BSD-3-Clause" ]
1,091
2018-09-06T17:27:12.000Z
2022-03-31T13:47:45.000Z
omegaconf/_utils.py
sugatoray/omegaconf
edf9e86493a14b0e909e956d9bae59b9861ef9c5
[ "BSD-3-Clause" ]
624
2019-06-11T20:53:19.000Z
2022-03-30T20:44:25.000Z
omegaconf/_utils.py
sugatoray/omegaconf
edf9e86493a14b0e909e956d9bae59b9861ef9c5
[ "BSD-3-Clause" ]
71
2019-06-14T05:32:45.000Z
2022-03-27T19:52:35.000Z
import copy import os import re import string import sys import warnings from contextlib import contextmanager from enum import Enum from textwrap import dedent from typing import ( Any, Dict, Iterator, List, Optional, Tuple, Type, Union, get_type_hints, ) import yaml from .errors ...
30.849231
109
0.619423
1,406
0.046745
82
0.002726
439
0.014595
0
0
6,954
0.231199
134ae941abed7aefa64cace4d2b745626ee1b2ee
28,935
py
Python
darc/amber_clustering.py
loostrum/darc
977f43652ff4fc873340d09ac0fddeb81b889541
[ "Apache-2.0" ]
null
null
null
darc/amber_clustering.py
loostrum/darc
977f43652ff4fc873340d09ac0fddeb81b889541
[ "Apache-2.0" ]
47
2019-08-27T08:07:06.000Z
2022-03-04T10:10:40.000Z
darc/amber_clustering.py
loostrum/darc
977f43652ff4fc873340d09ac0fddeb81b889541
[ "Apache-2.0" ]
1
2020-11-24T09:27:56.000Z
2020-11-24T09:27:56.000Z
#!/usr/bin/env python3 # # AMBER Clustering import os from time import sleep import yaml import ast import threading import multiprocessing as mp import numpy as np from astropy.time import Time, TimeDelta import astropy.units as u from astropy.coordinates import SkyCoord from darc import DARCBase, VOEventQueueServe...
44.930124
118
0.55718
28,456
0.983446
0
0
0
0
0
0
10,009
0.345913
134b9c14653c7fb4e1904d66229452a0dbe85152
9,811
py
Python
tools/load_demo_data.py
glenn2763/skyportal
79dc11bfe08076d9c1f920bad85681ab001e22c8
[ "BSD-3-Clause" ]
null
null
null
tools/load_demo_data.py
glenn2763/skyportal
79dc11bfe08076d9c1f920bad85681ab001e22c8
[ "BSD-3-Clause" ]
null
null
null
tools/load_demo_data.py
glenn2763/skyportal
79dc11bfe08076d9c1f920bad85681ab001e22c8
[ "BSD-3-Clause" ]
null
null
null
import datetime import os import subprocess import base64 from pathlib import Path import shutil import pandas as pd import signal import requests from baselayer.app.env import load_env from baselayer.app.model_util import status, create_tables, drop_tables from social_tornado.models import TornadoStorage from skyport...
37.446565
88
0.428804
0
0
0
0
0
0
0
0
2,038
0.207726
134f9288b26ce3d17a1dc1a42f04cbaea4914dea
1,537
py
Python
framework/Exploits/CUTEFLOW_0024.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2019-01-25T21:32:42.000Z
2019-01-25T21:32:42.000Z
framework/Exploits/CUTEFLOW_0024.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
null
null
null
framework/Exploits/CUTEFLOW_0024.py
UncleWillis/BugBox
25682f25fc3222db383649a4924bcd65f2ddcb34
[ "BSD-3-Clause" ]
1
2021-06-23T04:44:25.000Z
2021-06-23T04:44:25.000Z
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import sys import os import time from selenium.common.exceptions import NoAlertPresentException import framework class Exploit (framework.Exploit...
29
134
0.582954
1,248
0.811971
0
0
0
0
0
0
570
0.370852
134fbec769aed9e0795c724b3dcc54286150a284
10,720
py
Python
telethon/tl/custom/button.py
HosseyNJF/Telethon
0b0a1dc6a1a3f2fc8593526549889fba2884e8b8
[ "MIT" ]
4
2020-11-28T08:50:07.000Z
2020-12-13T03:44:05.000Z
telethon/tl/custom/button.py
HosseyNJF/Telethon
0b0a1dc6a1a3f2fc8593526549889fba2884e8b8
[ "MIT" ]
4
2020-10-11T15:40:17.000Z
2020-10-22T09:06:58.000Z
telethon/tl/custom/button.py
HosseyNJF/Telethon
0b0a1dc6a1a3f2fc8593526549889fba2884e8b8
[ "MIT" ]
2
2020-01-16T12:21:02.000Z
2021-12-16T01:30:11.000Z
from .. import types from ... import utils class Button: """ .. note:: This class is used to **define** reply markups, e.g. when sending a message or replying to events. When you access `Message.buttons <telethon.tl.custom.message.Message.buttons>` they are actually `MessageBu...
40.916031
79
0.638619
10,676
0.99571
0
0
8,921
0.832028
0
0
7,961
0.742492
134fdc98faac6c7e555a1d8a47d4c15e48a09ce5
1,575
py
Python
src/main/resources/pys/join.py
addUsername/javaBoring
d576adbd21447085f56719e8cc871faf94d8a369
[ "MIT" ]
null
null
null
src/main/resources/pys/join.py
addUsername/javaBoring
d576adbd21447085f56719e8cc871faf94d8a369
[ "MIT" ]
null
null
null
src/main/resources/pys/join.py
addUsername/javaBoring
d576adbd21447085f56719e8cc871faf94d8a369
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jul 7 20:14:22 2020 Simple script to join json files @author: SERGI """ import json import sys import os def readJson(path): with open(path, "r") as file: return json.load(file) def writeJson(path, dicc): with open(path, "w") as file...
28.125
82
0.533333
0
0
0
0
0
0
0
0
516
0.327619
1351156463c6a25e82b73e57ee20368b3d832d46
2,017
py
Python
app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
1
2021-02-09T10:30:44.000Z
2021-02-09T10:30:44.000Z
app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/challenges/migrations/0023_auto_20200123_1102.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.2 on 2020-01-23 11:02 import re import django.contrib.postgres.fields.citext import django.core.validators from django.db import migrations import grandchallenge.challenges.models class Migration(migrations.Migration): dependencies = [ ("challenges", "0022_auto_20200121_1639"...
36.017857
103
0.543877
1,813
0.895309
0
0
0
0
0
0
496
0.244938
13513f9e059c5209134cdb28c07c7e40eb9e7c97
8,756
py
Python
autosk_dev_test/component/LinReg.py
hmendozap/master-arbeit-files
5c1b90bc4a424313234b84bad405799de6f8d2ed
[ "MIT" ]
2
2018-01-18T06:25:21.000Z
2018-12-11T07:43:09.000Z
autosk_dev_test/component/LinReg.py
hmendozap/master-arbeit-files
5c1b90bc4a424313234b84bad405799de6f8d2ed
[ "MIT" ]
1
2016-03-29T07:55:18.000Z
2016-03-29T07:55:18.000Z
autosk_dev_test/component/LinReg.py
hmendozap/master-arbeit-files
5c1b90bc4a424313234b84bad405799de6f8d2ed
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp from HPOlibConfigSpace.configuration_space import ConfigurationSpace from HPOlibConfigSpace.conditions import EqualsCondition, InCondition from HPOlibConfigSpace.hyperparameters import UniformFloatHyperparameter, \ UniformIntegerHyperparameter, CategoricalHyperparameter...
44.222222
102
0.489721
8,296
0.947465
0
0
4,169
0.476131
0
0
480
0.05482
13526b6d17cc702b79611d77af35c9e1a3a2bf4e
278
py
Python
python_work/Chapter5/exe3_alien_color.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
1
2020-08-25T18:42:30.000Z
2020-08-25T18:42:30.000Z
python_work/Chapter5/exe3_alien_color.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
python_work/Chapter5/exe3_alien_color.py
Elektra-2/python_crash_course_2nd
1c8beaddfe037faa3a36e7c384a6ea2f9d560060
[ "MIT" ]
null
null
null
# Creating a elif chain alien_color = 'red' if alien_color == 'green': print('Congratulations! You won 5 points!') elif alien_color == 'yellow': print('Congratulations! You won 10 points!') elif alien_color == 'red': print('Congratulations! You won 15 points!')
25.272727
48
0.683453
0
0
0
0
0
0
0
0
160
0.57554
13532d8edfc3e8c0a315f5cb2ba2e9ad01f479b5
2,427
py
Python
DigiPsych_API/Data_Science_API/evaluate_model.py
larryzhang95/Voice-Analysis-Pipeline
264ac5c70d0baab47b81718ea5b895be30a683e9
[ "Apache-2.0" ]
7
2019-06-22T21:03:50.000Z
2021-11-21T19:46:55.000Z
DigiPsych_API/Data_Science_API/evaluate_model.py
larryzhang95/Voice-Analysis-Pipeline
264ac5c70d0baab47b81718ea5b895be30a683e9
[ "Apache-2.0" ]
null
null
null
DigiPsych_API/Data_Science_API/evaluate_model.py
larryzhang95/Voice-Analysis-Pipeline
264ac5c70d0baab47b81718ea5b895be30a683e9
[ "Apache-2.0" ]
3
2019-09-15T01:50:39.000Z
2021-12-22T02:36:36.000Z
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.model_selection import learning_curve # Plot learning curve def plot_learning_curve(estimator, title, X, y, ylim=None, cv=None, n_jobs=1, train_sizes=np.linspace(.1, 1.0, 5)): plt.figu...
42.578947
115
0.674083
0
0
0
0
0
0
0
0
215
0.088587
13539ceb0c44529e049d271d3d684efaaf1e9dee
121
py
Python
oomi/__init__.py
sremes/oomi
312317aa2ef68f1481b2447652a7d47c5f2e3f56
[ "MIT" ]
null
null
null
oomi/__init__.py
sremes/oomi
312317aa2ef68f1481b2447652a7d47c5f2e3f56
[ "MIT" ]
null
null
null
oomi/__init__.py
sremes/oomi
312317aa2ef68f1481b2447652a7d47c5f2e3f56
[ "MIT" ]
null
null
null
"""Utilities for downloading comsumption data from Oomi.""" from oomi.oomi_downloader import OomiDownloader, OomiConfig
30.25
59
0.818182
0
0
0
0
0
0
0
0
59
0.487603
1354ab456ba9280a4363560bf56997305ed54a5f
3,692
py
Python
BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
KaoTuz/edk2-stable202108
49d9306e7bf64b2f07d8473be1f2faea49d0a012
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
9
2021-07-26T17:02:51.000Z
2021-12-30T10:49:46.000Z
BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
ESdove/edk2_exploring
34ff32b45f43d233d9696e7c8e3de68ea3000a7b
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
BaseTools/Source/Python/UPT/Object/Parser/InfMisc.py
ESdove/edk2_exploring
34ff32b45f43d233d9696e7c8e3de68ea3000a7b
[ "Python-2.0", "Zlib", "BSD-2-Clause", "MIT", "BSD-2-Clause-Patent", "BSD-3-Clause" ]
null
null
null
## @file # This file is used to define class objects of INF file miscellaneous. # Include BootMode/HOB/Event and others. It will consumed by InfParser. # # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent ''' InfMisc ''' import Logger.Log as Logge...
25.818182
77
0.628115
2,606
0.70585
0
0
0
0
0
0
452
0.122427
13570cde1e5c8c95a0a1cd4eb53d4d9f0d94d653
297
py
Python
21-08/Starters8/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
21-08/Starters8/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
21-08/Starters8/1.py
allenalvin333/Codechef_Competitions
44c3626de33cd9e17d1acfc74abe0aab809efbad
[ "MIT" ]
null
null
null
# https://www.codechef.com/START8C/problems/PENALTY for T in range(int(input())): n=list(map(int,input().split())) a=b=0 for i in range(len(n)): if(n[i]==1): if(i%2==0): a+=1 else: b+=1 if(a>b): print(1) elif(b>a): print(2) else: print(0)
24.75
51
0.501684
0
0
0
0
0
0
0
0
51
0.171717
13583e5f15c53f390db50be7afda1b1e9f5ec33e
859
py
Python
util/eval.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
7
2021-11-26T01:15:23.000Z
2022-03-15T10:51:47.000Z
util/eval.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
4
2022-01-15T09:46:00.000Z
2022-02-05T07:10:18.000Z
util/eval.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
1
2021-09-18T16:50:14.000Z
2021-09-18T16:50:14.000Z
import matplotlib.pyplot as plt from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix def save_confusion_matrix(truth, pred, out_file, norm=None): label_names = list(set(truth) | set(pred)) label_names.sort() truth_compact = [label_names.index(x) for x in truth] pred_compact = [label_na...
35.791667
74
0.690338
0
0
0
0
0
0
0
0
18
0.020955
135906a75c8644d17899cd5046a70589324b71a2
3,595
py
Python
python/py3study/pytorch-lab/demo-cifar.py
sillyemperor/langstudy
937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1
[ "MIT" ]
null
null
null
python/py3study/pytorch-lab/demo-cifar.py
sillyemperor/langstudy
937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1
[ "MIT" ]
null
null
null
python/py3study/pytorch-lab/demo-cifar.py
sillyemperor/langstudy
937a11d97984e10e4ead54f3b7b7d6a1f2ef24a1
[ "MIT" ]
null
null
null
import torch import torchvision import torchvision.transforms as transforms import os.path BASE_DIR = os.path.dirname(os.path.abspath(__file__)) transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))]) root = os.path.join(BASE_DIR, '../data/') trainset ...
28.307087
75
0.585535
754
0.209736
0
0
0
0
0
0
1,756
0.488456
135933f07f224fa858e30bebe4b7db897823355d
995
py
Python
astroquery/neodys/tests/test_neodys_remote.py
B612-Asteroid-Institute/astroquery
4bc8002639e80f7356306f4e000334da5e086091
[ "BSD-3-Clause" ]
null
null
null
astroquery/neodys/tests/test_neodys_remote.py
B612-Asteroid-Institute/astroquery
4bc8002639e80f7356306f4e000334da5e086091
[ "BSD-3-Clause" ]
1
2021-03-19T14:06:50.000Z
2021-03-19T14:06:50.000Z
astroquery/neodys/tests/test_neodys_remote.py
B612-Asteroid-Institute/astroquery
4bc8002639e80f7356306f4e000334da5e086091
[ "BSD-3-Clause" ]
null
null
null
from ... import neodys def test_neodys_query(): test_object = "2018VP1" res_kep_0 = neodys.core.NEODyS.query_object( test_object, orbital_element_type="ke", epoch_near_present=0) res_kep_1 = neodys.core.NEODyS.query_object( test_object, orbital_element_type="ke", epoch_near_present=1) ...
41.458333
79
0.711558
0
0
0
0
0
0
0
0
215
0.21608
1359a8c4afe9581f59876f936fb68313f28865c1
1,028
py
Python
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/accounting/migrations/0026_auto_20180508_1956.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.13 on 2018-05-08 19:56 from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations def noop(*args, **kwargs): pass def _convert_emailed_to_array_field(apps, schema_editor): BillingRecord = apps.get_model...
27.783784
80
0.689689
224
0.217899
0
0
0
0
0
0
177
0.172179
1359c0fa6a8b2dda6889c4d23c5bb6bc6ad1f0c0
9,806
py
Python
tensor2tensor/rl/evaluator.py
SouBanerjee/tensor2tensor
8b88b13dd65bf52b3c27663a128adb7b0a5773fb
[ "Apache-2.0" ]
1
2019-12-11T14:43:49.000Z
2019-12-11T14:43:49.000Z
tensor2tensor/rl/evaluator.py
SouBanerjee/tensor2tensor
8b88b13dd65bf52b3c27663a128adb7b0a5773fb
[ "Apache-2.0" ]
null
null
null
tensor2tensor/rl/evaluator.py
SouBanerjee/tensor2tensor
8b88b13dd65bf52b3c27663a128adb7b0a5773fb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.528986
112
0.730879
0
0
0
0
442
0.045074
0
0
2,679
0.2732
135a363584e253a0fd487ab5902e769a0e03931f
1,236
py
Python
src/part_2_automation/test_test1.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/part_2_automation/test_test1.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
null
null
null
src/part_2_automation/test_test1.py
AndreiHustiuc/IT_Factory_Course
c6f3e4a9282a1c19c0f52c79f0c81f026814a02a
[ "MIT" ]
1
2022-03-16T10:39:03.000Z
2022-03-16T10:39:03.000Z
# Generated by Selenium IDE import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWa...
38.625
89
0.768608
781
0.631877
0
0
0
0
0
0
210
0.169903
135abe65fc98dab6544eb64993951b1e91db47a2
732
py
Python
app/grandchallenge/components/admin.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
1
2021-02-09T10:30:44.000Z
2021-02-09T10:30:44.000Z
app/grandchallenge/components/admin.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
app/grandchallenge/components/admin.py
njmhendrix/grand-challenge.org
9bc36f5e26561a78bd405e8ea5e4c0f86c95f011
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from grandchallenge.components.models import ( ComponentInterface, ComponentInterfaceValue, ) class ComponentInterfaceAdmin(admin.ModelAdmin): list_display = ( "pk", "title", "slug", "kind", "default_value", "relative_path",...
23.612903
74
0.67623
448
0.612022
0
0
0
0
0
0
149
0.203552
135ad256377f1febc7ff1ea7598a8c696743a758
165
py
Python
publishtimer/__init__.py
paragguruji/publishtimer
b0b68d6c4d450a2cc22d29725e43c2a1261f0f74
[ "BSD-2-Clause" ]
null
null
null
publishtimer/__init__.py
paragguruji/publishtimer
b0b68d6c4d450a2cc22d29725e43c2a1261f0f74
[ "BSD-2-Clause" ]
null
null
null
publishtimer/__init__.py
paragguruji/publishtimer
b0b68d6c4d450a2cc22d29725e43c2a1261f0f74
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 28 15:28:24 2016 @author: Parag Guruji, [email protected] """ from .helpers import setup_env done = setup_env()
16.5
44
0.678788
0
0
0
0
0
0
0
0
112
0.678788
135d785a425446491b59ae18c63cdcf06bf42dd8
278
py
Python
netdisco/discoverables/nanoleaf_aurora.py
jjlawren/netdisco
ffc3cd092bff359b1c1fc1ed51940624b3c8076b
[ "Apache-2.0" ]
1
2020-01-05T21:36:10.000Z
2020-01-05T21:36:10.000Z
env/lib/python3.7/site-packages/netdisco/discoverables/nanoleaf_aurora.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
null
null
null
env/lib/python3.7/site-packages/netdisco/discoverables/nanoleaf_aurora.py
seanmitch/UPnP
f3cb1ef62657f166971c1c470ce5dfd58bdeeac9
[ "Unlicense" ]
null
null
null
"""Discover Nanoleaf Aurora devices.""" from . import MDNSDiscoverable class Discoverable(MDNSDiscoverable): """Add support for discovering Nanoleaf Aurora devices.""" def __init__(self, nd): super(Discoverable, self).__init__(nd, '_nanoleafapi._tcp.local.')
27.8
74
0.726619
204
0.733813
0
0
0
0
0
0
123
0.442446
135f17354c6a575112f9dd1ee2ae823d8e499637
2,299
py
Python
debug/compute_score_common_ts_RETREAT.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
1
2020-12-18T06:10:16.000Z
2020-12-18T06:10:16.000Z
debug/compute_score_common_ts_RETREAT.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
null
null
null
debug/compute_score_common_ts_RETREAT.py
DavidSabbagh/meeg_power_regression
d9cd5e30028ffc24f08a52966c7641f611e92ee6
[ "BSD-3-Clause" ]
2
2021-03-01T01:36:38.000Z
2021-03-01T13:44:02.000Z
import os.path as op import numpy as np import pandas as pd from sklearn.pipeline import make_pipeline from sklearn.linear_model import RidgeCV from sklearn.preprocessing import StandardScaler from sklearn.model_selection import KFold, cross_val_score import mne from pyriemann.tangentspace import TangentSpace import ...
31.930556
77
0.651588
0
0
0
0
0
0
0
0
251
0.109178
135f22f80a61bf2986149f078e69c6a03f73a3a5
1,161
py
Python
bter/publish.py
mengalong/bter
7fa56f9c83429bc564e6d123498b14aae5c390b1
[ "Apache-2.0" ]
1
2017-08-30T01:01:50.000Z
2017-08-30T01:01:50.000Z
bter/publish.py
mengalong/bter
7fa56f9c83429bc564e6d123498b14aae5c390b1
[ "Apache-2.0" ]
null
null
null
bter/publish.py
mengalong/bter
7fa56f9c83429bc564e6d123498b14aae5c390b1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017~ mengalong <[email protected]> # # 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 ...
33.171429
77
0.709733
428
0.368648
0
0
0
0
0
0
637
0.548665
135f9b393c2da1b1ae7cb6b4ea51c6e47c87c3b3
2,976
py
Python
web3/_utils/module_testing/math_contract.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
web3/_utils/module_testing/math_contract.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
web3/_utils/module_testing/math_contract.py
y19818/web3.py
32a85a287ab63220d1e0c06d77be74de595ff02f
[ "MIT" ]
null
null
null
MATH_BYTECODE = ( "606060405261022e806100126000396000f360606040523615610074576000357c01000000000000" "000000000000000000000000000000000000000000009004806316216f391461007657806361bc22" "1a146100995780637cf5dab0146100bc578063a5f3c23b146100e8578063d09de08a1461011d5780" "63dcf537b11461014057610074565b...
32.347826
87
0.576949
0
0
0
0
0
0
0
0
1,873
0.629368
135f9d0a7a2f751997f717a3c72579433fa4791e
4,269
py
Python
dnsdb/config.py
nuby/open_dnsdb
7fec703d8458083f0e6826393656055556e9f0b2
[ "Apache-2.0" ]
1
2019-09-27T01:06:55.000Z
2019-09-27T01:06:55.000Z
dnsdb/config.py
cclauss/open_dnsdb
28c2055685be1c173d77eaa2a05d8e156ccbbbf2
[ "Apache-2.0" ]
null
null
null
dnsdb/config.py
cclauss/open_dnsdb
28c2055685be1c173d77eaa2a05d8e156ccbbbf2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from datetime import timedelta from oslo.config import cfg CONF = cfg.CONF CONF.register_opts([ cfg.StrOpt('log-dir'), cfg.StrOpt('log-file'), cfg.StrOpt('debug'), cfg.StrOpt('verbose'), ], 'log') CONF.register_opts([ cfg.StrOpt('connection'), cf...
31.160584
92
0.594284
1,059
0.248067
0
0
0
0
0
0
1,337
0.313188
136018fcec6b4476406646ec76b683c9bf3950c1
1,148
py
Python
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
rover/rover.py
cloudy/osr-rover-code
07d370ae1cde75eaf2d279fcc7f220c95cf6d736
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import time from rover import Robot from connections import Connections class Rover(Robot, Connections): def __init__( self, config, bt_flag = 0, xbox_flag = 0, unix_flag = 0 ): self.bt_flag = bt_flag self.xbox_flag = xbox_flag self.unix_flag =...
19.457627
110
0.674216
1,030
0.897213
0
0
0
0
0
0
95
0.082753
136335a62a6f24cad26390348c87d9d3bbbba896
14,534
py
Python
aswiki/parser.py
scanner/django-aswiki
318908eeccc8da324846ac5ffc4d4a206f560521
[ "BSD-3-Clause" ]
null
null
null
aswiki/parser.py
scanner/django-aswiki
318908eeccc8da324846ac5ffc4d4a206f560521
[ "BSD-3-Clause" ]
1
2020-09-25T05:40:38.000Z
2020-09-28T05:41:27.000Z
aswiki/parser.py
scanner/django-aswiki
318908eeccc8da324846ac5ffc4d4a206f560521
[ "BSD-3-Clause" ]
null
null
null
# # File: $Id: parser.py 1865 2008-10-28 00:47:27Z scanner $ # """ This is where the logic and definition of our wiki markup parser lives. We use the Python Creoleparser (which requires Genshi) We make a custom dialect so that the parser can know the URL base for all of the topics (pages) in the wiki and some additio...
37.848958
96
0.597083
5,115
0.351933
0
0
0
0
0
0
9,617
0.66169
1365f047bda189ac06139ef3c589483027732b74
13,825
py
Python
oauth_api/validators.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
oauth_api/validators.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
null
null
null
oauth_api/validators.py
anobi/django-oauth-api
95bf9b500dab326553a5a8a17d5c6da1a34f6ac4
[ "BSD-2-Clause" ]
4
2015-07-30T11:03:54.000Z
2017-11-13T15:30:48.000Z
import base64 import binascii from datetime import timedelta from django.contrib.auth import authenticate from django.utils import timezone from oauthlib.oauth2 import RequestValidator from oauth_api.models import get_application_model, AccessToken, AuthorizationCode, RefreshToken, AbstractApplication from oauth_api...
37.364865
124
0.636166
13,063
0.944882
0
0
0
0
0
0
3,640
0.263291
13662d9d6240c63c9a734dfc856cbc7f4107d5e2
160
py
Python
objects/fun_return.py
padmacho/pythontutorial
80c58d2d6efc0c3598f92b627338c6cd9fda1759
[ "Apache-2.0" ]
null
null
null
objects/fun_return.py
padmacho/pythontutorial
80c58d2d6efc0c3598f92b627338c6cd9fda1759
[ "Apache-2.0" ]
null
null
null
objects/fun_return.py
padmacho/pythontutorial
80c58d2d6efc0c3598f92b627338c6cd9fda1759
[ "Apache-2.0" ]
null
null
null
def modify(y): return y # returns same reference. No new object is created x = [1, 2, 3] y = modify(x) print("x == y", x == y) print("x == y", x is y)
26.666667
65
0.55625
0
0
0
0
0
0
0
0
67
0.41875
1366f50a70db89f7b6f66ff4d8a7cc0516afcf2f
6,471
py
Python
edx_gen/_write_comps.py
hberndl70/mooc-generator
58ff77ece12b456887ec24db79d8baa87ecd5621
[ "MIT" ]
null
null
null
edx_gen/_write_comps.py
hberndl70/mooc-generator
58ff77ece12b456887ec24db79d8baa87ecd5621
[ "MIT" ]
null
null
null
edx_gen/_write_comps.py
hberndl70/mooc-generator
58ff77ece12b456887ec24db79d8baa87ecd5621
[ "MIT" ]
null
null
null
import sys, os import tarfile import shutil from edx_gen import _edx_consts from edx_gen import _read_metadata from edx_gen import _write_structure from edx_gen import _write_comps from edx_gen import _write_comp_html from edx_gen import _write_comp_checkboxes from edx_gen import _write_comp_video from edx_gen i...
38.064706
117
0.641323
0
0
0
0
0
0
0
0
2,803
0.433163
1367201e3118f25640a5bbd95836976d130709a4
2,403
py
Python
grading_program.py
ByeonghoonJeon/Student-Grading
eee55638aee4390d7758c1204b85cce7279ccdf7
[ "MIT" ]
null
null
null
grading_program.py
ByeonghoonJeon/Student-Grading
eee55638aee4390d7758c1204b85cce7279ccdf7
[ "MIT" ]
null
null
null
grading_program.py
ByeonghoonJeon/Student-Grading
eee55638aee4390d7758c1204b85cce7279ccdf7
[ "MIT" ]
null
null
null
# 1. Create students score dictionary. students_score = {} # 2. Input student's name and check if input is correct. (Alphabet, period, and blank only.) # 2.1 Creat a function that evaluate the validity of name. def check_name(name): # 2.1.1 Remove period and blank and check it if the name is comprised with on...
36.969231
100
0.646275
0
0
0
0
0
0
0
0
1,095
0.45568
136832386a64df8b748feecd13c99a4dc30fc9d5
735
py
Python
test/test_utils.py
by46/recipe
203abd2141a536b66b4e57d073169a49395be1f0
[ "MIT" ]
null
null
null
test/test_utils.py
by46/recipe
203abd2141a536b66b4e57d073169a49395be1f0
[ "MIT" ]
null
null
null
test/test_utils.py
by46/recipe
203abd2141a536b66b4e57d073169a49395be1f0
[ "MIT" ]
null
null
null
import unittest from recipe import utils class UtilTestCase(unittest.TestCase): def test_valid_project_slug(self): project_slug = "Recipe0123456789_mock" self.assertTrue(utils.valid_project_slug(project_slug)) project_slug = 'Recipe00000000000000000000000000000000000000000000' ...
33.409091
77
0.719728
684
0.930612
0
0
0
0
0
0
145
0.197279
1368b69e2269d6b7303299c5097db81eca903217
6,708
py
Python
extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
1
2022-02-07T06:12:26.000Z
2022-02-07T06:12:26.000Z
extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
extern/smplx_kinect/smplx_kinect/common/avakhitov_utils.py
wangxihao/rgbd-kinect-pose
03180723c99759ba2500bcd42b5fe7a1d26eb507
[ "MIT" ]
null
null
null
import numpy as np import cv2 import os.path as osp import json from human_body_prior.tools.model_loader import load_vposer import torch vposer_ckpt = '/Vol1/dbstore/datasets/a.vakhitov/projects/pykinect_fresh/smplify-x/smplify-x-data/vposer_v1_0/' def load_avakhitov_fits_vposer(vposer, part_path, dev_lbl): po...
35.120419
118
0.570662
0
0
0
0
0
0
0
0
1,164
0.173524
1368b793b823b3bd0b461ed385d6e6b6434e1e68
3,455
py
Python
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
1
2021-03-24T17:54:51.000Z
2021-03-24T17:54:51.000Z
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
18
2021-03-08T13:38:37.000Z
2022-02-14T15:06:28.000Z
scripts/dev/dockerutil.py
axelbarjon/mongodb-kubernetes-operator
13eb844c55774ce8a6de51edde1a66b4371f3ef6
[ "RSA-MD" ]
1
2021-03-25T13:37:02.000Z
2021-03-25T13:37:02.000Z
import docker from dockerfile_generator import render import os import json from tqdm import tqdm from typing import Union, Any, Optional def build_image(repo_url: str, tag: str, path: str) -> None: """ build_image builds the image with the given tag """ client = docker.from_env() print(f"Buildin...
32.28972
108
0.636758
0
0
0
0
0
0
0
0
1,042
0.301592
136925370fda5dbcb2e2d6d5e61c676370502bb7
904
py
Python
scripts/VCF/UTILS/select_variants.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
3
2018-04-20T15:04:34.000Z
2022-03-30T06:36:02.000Z
scripts/VCF/UTILS/select_variants.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
7
2019-06-06T09:22:20.000Z
2021-11-23T17:41:52.000Z
scripts/VCF/UTILS/select_variants.py
elowy01/igsr_analysis
ffea4885227c2299f886a4f41e70b6e1f6bb43da
[ "Apache-2.0" ]
5
2017-11-02T11:17:35.000Z
2021-12-11T19:34:09.000Z
from VcfFilter import VcfFilter import argparse import os #get command line arguments parser = argparse.ArgumentParser(description='Script to select a certain variant type from a VCF file') #parameters parser.add_argument('--bcftools_folder', type=str, required=True, help='Folder containing the Bcftools binary' ) p...
39.304348
275
0.766593
0
0
0
0
0
0
0
0
441
0.487832
13695de67e652f576d889f205ef664189b73d45b
14,680
py
Python
site/tests/unittests/test/test_base64.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
652
2015-07-26T00:00:17.000Z
2022-02-24T18:30:04.000Z
site/tests/unittests/test/test_base64.py
martinphellwig/brython_wf
e169afc1e048cba0c12118b4cd6f109df6fe67c9
[ "BSD-3-Clause" ]
8
2015-09-07T03:38:19.000Z
2021-05-23T03:18:51.000Z
check-python33-manual/samples/standard_library_337/Lib/test/test_base64.py
DaveKaretnyk/parsing-utils2
40085bbd399fa605f2f2a4708d385a64ffc907de
[ "MIT" ]
40
2015-07-24T19:45:08.000Z
2021-11-01T14:54:56.000Z
import unittest from test import support import base64 import binascii import os import sys import subprocess class LegacyBase64TestCase(unittest.TestCase): def test_encodebytes(self): eq = self.assertEqual eq(base64.encodebytes(b"www.python.org"), b"d3d3LnB5dGhvbi5vcmc=\n") eq(base64.enc...
41.586402
83
0.570981
14,460
0.985014
0
0
0
0
0
0
4,212
0.286921
1369857b721c52701d49ebb99393f03d4c246712
569
py
Python
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
3
2015-08-04T20:53:41.000Z
2020-02-14T22:58:20.000Z
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
103
2015-01-15T14:21:00.000Z
2022-03-31T19:14:20.000Z
appliance_catalog/migrations/0015_appliance_icon_py3.py
ChameleonCloud/portal
92a06fb926dc36e997b94fb8dcd22b7e0d24d3ee
[ "Apache-2.0" ]
4
2016-02-22T16:48:20.000Z
2021-01-08T17:13:21.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-02-25 20:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): """Updates ImageField syntax for later version. """ dependencies = [ ('appliance_catalog', '0014_auto_...
24.73913
86
0.644991
410
0.720562
0
0
0
0
0
0
224
0.393673
136a5b3d51a58e910193de0d1a2f38a488d4801a
1,435
py
Python
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
1
2021-09-23T22:04:09.000Z
2021-09-23T22:04:09.000Z
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
null
null
null
twitoff/twitter.py
ChristopherKchilton/twitoff-ChristopherKchilton
fbac9899feff256ededab009b28e2f6ebd67f476
[ "MIT" ]
null
null
null
"""Retrieve and request tweets from the DS API""" import requests import spacy from .models import DB, Tweet, User nlp = spacy.load("my_model") def vectorize_tweet(tweet_text): return nlp(tweet_text).vector # Add and updates tweets def add_or_update_user(username): """Adds and updates the user with twiter ...
25.175439
78
0.608362
0
0
0
0
0
0
0
0
504
0.35122
136a6f790e3bad7ef05103763b29d85ab9987e87
595
py
Python
day22.py
p88h/aoc2017
a929a8c0894559b0d7dd3d0b58c076295087f4c8
[ "Unlicense" ]
1
2021-12-26T21:28:47.000Z
2021-12-26T21:28:47.000Z
day22.py
p88h/aoc2017
a929a8c0894559b0d7dd3d0b58c076295087f4c8
[ "Unlicense" ]
null
null
null
day22.py
p88h/aoc2017
a929a8c0894559b0d7dd3d0b58c076295087f4c8
[ "Unlicense" ]
null
null
null
import io grid = {} y = 0 x = 0 for l in io.open("day22.in").read().splitlines(): for x in range(len(l)): grid[(y,x)] = l[x] y += 1 y = y // 2 x = x // 2 dx = 0 dy = -1 r = 0 for iter in range(10000000): if (y,x) not in grid or grid[(y,x)] == '.': (dy, dx) = (-dx, dy) grid[(y,x)] = ...
19.833333
49
0.381513
0
0
0
0
0
0
0
0
34
0.057143
136b2299eb41b7ded97c6048734842406f59258d
3,437
py
Python
ansys/dpf/core/errors.py
TheGoldfish01/pydpf-core
75ca8a180454f94cedafbc68c1d6f20dcfc4c795
[ "MIT" ]
11
2021-01-31T15:50:02.000Z
2021-10-01T23:15:38.000Z
ansys/dpf/core/errors.py
TheGoldfish01/pydpf-core
75ca8a180454f94cedafbc68c1d6f20dcfc4c795
[ "MIT" ]
46
2021-01-14T05:00:50.000Z
2021-10-06T18:30:37.000Z
ansys/dpf/core/errors.py
TheGoldfish01/pydpf-core
75ca8a180454f94cedafbc68c1d6f20dcfc4c795
[ "MIT" ]
3
2021-06-30T07:18:30.000Z
2021-09-15T08:43:11.000Z
from grpc._channel import _InactiveRpcError, _MultiThreadedRendezvous from functools import wraps _COMPLEX_PLOTTING_ERROR_MSG = """ Complex fields cannot be plotted. Use operators to get the amplitude or the result at a defined sweeping phase before plotting. """ _FIELD_CONTAINER_PLOTTING_MSG = """" This fields_conta...
28.882353
78
0.672971
2,343
0.681699
0
0
478
0.139075
0
0
1,348
0.392203
136b533fe267643a58604244ebaf15ea2c8117bd
11
py
Python
ls10.py
yu961549745/pynote
5976aeeca6368c0956baddf6a9ccb93ae8e0612a
[ "MIT" ]
null
null
null
ls10.py
yu961549745/pynote
5976aeeca6368c0956baddf6a9ccb93ae8e0612a
[ "MIT" ]
null
null
null
ls10.py
yu961549745/pynote
5976aeeca6368c0956baddf6a9ccb93ae8e0612a
[ "MIT" ]
null
null
null
''' IO '''
2.75
3
0.181818
0
0
0
0
0
0
0
0
10
0.909091
136b5475110947f42e139d24c848b375d4d0e140
2,144
py
Python
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
deep_disfluency/feature_extraction/wer_calculation_from_final_asr_results.py
askender/deep_disfluency
bea8403ed954df8eadd3e2b9d98bb7c2b416a665
[ "MIT" ]
null
null
null
from mumodo.mumodoIO import open_intervalframe_from_textgrid import numpy from deep_disfluency.utils.accuracy import wer final_file = open('wer_test.text', "w") ranges1 = [line.strip() for line in open( "/media/data/jh/simple_rnn_disf/rnn_disf_detection/data/disfluency_detection/swda_divisions_disfluency_detectio...
36.965517
158
0.619403
0
0
0
0
0
0
0
0
901
0.420243
136b8fe5a8aa80e827bc10eb9537bdf94b4fdc81
1,541
py
Python
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
13
2020-08-30T10:52:29.000Z
2021-08-18T12:20:39.000Z
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
null
null
null
newsweec/utils/_dataclasses.py
Adwaith-Rajesh/newsweec
f3b66fb6f74cb68be4e716269032db340abe8320
[ "MIT" ]
1
2021-06-07T04:01:37.000Z
2021-06-07T04:01:37.000Z
from dataclasses import dataclass from dataclasses import field from time import time from typing import Any from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Tuple @dataclass class NewUser: """Deals with the commands the user is currently ...
22.661765
81
0.668397
1,233
0.80013
0
0
1,288
0.835821
0
0
513
0.332901
136bbda00809274a9f8b16997fd9b06b349771f8
3,754
py
Python
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
5
2015-09-23T10:05:29.000Z
2016-04-07T17:08:38.000Z
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
null
null
null
vivo2notld/definitions/person_definition.py
gwu-libraries/vivo2notld
3f579f8aad28c60119864757e1fe66c2d64a0149
[ "MIT" ]
null
null
null
from .document_summary import definition as document_summary_definition from .organization_summary import definition as organization_summmary_definition definition = { "where": "?subj a foaf:Person .", "fields": { "name": { "where": "?subj rdfs:label ?obj ." }, #Contact info...
33.221239
80
0.34017
0
0
0
0
0
0
0
0
2,229
0.593767