hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a10657a3f0b0b5d7635da0ce3ad16bf8a298af4
13,543
py
Python
moto/ec2/responses/route_tables.py
oakbramble/moto
6350d8ec4c59eaf12b83385b6acd386e5c2f5593
[ "Apache-2.0" ]
null
null
null
moto/ec2/responses/route_tables.py
oakbramble/moto
6350d8ec4c59eaf12b83385b6acd386e5c2f5593
[ "Apache-2.0" ]
null
null
null
moto/ec2/responses/route_tables.py
oakbramble/moto
6350d8ec4c59eaf12b83385b6acd386e5c2f5593
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from moto.core.responses import BaseResponse from moto.ec2.utils import filters_from_querystring class RouteTables(BaseResponse): def associate_route_table(self): route_table_id = self._get_param("RouteTableId") gateway_id = self._get_param("GatewayId") ...
41.928793
108
0.631249
4a1065c4767e0aa76a4c87f6f21ed6ad6fa5fd1b
17,823
py
Python
src/datahandler/denoise_dataset.py
wooseoklee4/AP-BSN
210013cfe0657e678e4b940fd4d5719ac0ac87c6
[ "MIT" ]
8
2022-03-23T08:07:19.000Z
2022-03-30T17:08:17.000Z
src/datahandler/denoise_dataset.py
wooseoklee4/AP-BSN
210013cfe0657e678e4b940fd4d5719ac0ac87c6
[ "MIT" ]
1
2022-03-25T13:26:58.000Z
2022-03-26T10:35:04.000Z
src/datahandler/denoise_dataset.py
wooseoklee4/AP-BSN
210013cfe0657e678e4b940fd4d5719ac0ac87c6
[ "MIT" ]
1
2022-03-29T03:34:38.000Z
2022-03-29T03:34:38.000Z
import random, os import cv2 import numpy as np from scipy.io import savemat import torch from torch.utils.data import Dataset from ..util.util import rot_hflip_img, tensor2np, np2tensor, mean_conv2d class DenoiseDataSet(Dataset): def __init__(self, add_noise:str=None, crop_size:list=None, aug:list=None, n...
42.536993
198
0.579981
4a106896f60218b26cebcc867c868caca5b72ea7
6,671
py
Python
tpubar/cli.py
trisongz/tpubar
adf44909a9a1afb30aeb38664200f372a1d7f34d
[ "MIT" ]
3
2020-12-13T00:58:33.000Z
2021-02-17T22:30:44.000Z
tpubar/cli.py
trisongz/tpubar
adf44909a9a1afb30aeb38664200f372a1d7f34d
[ "MIT" ]
1
2020-12-09T00:01:59.000Z
2020-12-09T00:01:59.000Z
tpubar/cli.py
trisongz/tpubar
adf44909a9a1afb30aeb38664200f372a1d7f34d
[ "MIT" ]
1
2021-02-17T22:30:47.000Z
2021-02-17T22:30:47.000Z
import click import json import sys import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '0' import time from tpubar.utils import run_command @click.group() @click.pass_context def cli(ctx, **kws): ctx.obj = kws @cli.command('monitor') @click.argument('tpu_name', type=click.STRING, default=os.environ.get('TPU_NAME', N...
40.92638
163
0.678759
4a10689fdc09a9153cb6101952a3b446246734e1
1,905
py
Python
video_transformation_numpy/test/video_io_test.py
skeselj/video-transformation-numpy
6b27e11ea1051e0c63be9de4f441bfd6dbcbd571
[ "MIT" ]
null
null
null
video_transformation_numpy/test/video_io_test.py
skeselj/video-transformation-numpy
6b27e11ea1051e0c63be9de4f441bfd6dbcbd571
[ "MIT" ]
null
null
null
video_transformation_numpy/test/video_io_test.py
skeselj/video-transformation-numpy
6b27e11ea1051e0c63be9de4f441bfd6dbcbd571
[ "MIT" ]
null
null
null
"""Tests for the video_io.py.""" import numpy as np import os from unittest import main from unittest import TestCase from video_transformation_numpy import video_io TEMP_DIR = './tmp' class TestVideoIo(TestCase): def setUp(self): os.mkdir(TEMP_DIR) def tearDown(self): os.rmdir(TEMP_DIR) ...
31.75
97
0.685039
4a106982850027ae5df76b5b2d006fd18ea907ca
3,338
py
Python
tensorflow/contrib/distributions/python/kernel_tests/bijectors/inline_test.py
CupOfNormal/tensorflow
ac5bde122fff9cc12efbc0a38dd7098c9ff3b1c6
[ "Apache-2.0" ]
1
2017-02-24T05:09:40.000Z
2017-02-24T05:09:40.000Z
tensorflow/contrib/distributions/python/kernel_tests/bijectors/inline_test.py
snowluliang/tensorflow
ac5bde122fff9cc12efbc0a38dd7098c9ff3b1c6
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/distributions/python/kernel_tests/bijectors/inline_test.py
snowluliang/tensorflow
ac5bde122fff9cc12efbc0a38dd7098c9ff3b1c6
[ "Apache-2.0" ]
1
2021-02-16T15:38:50.000Z
2021-02-16T15:38:50.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.216867
86
0.673158
4a1069f737ce564924b5060004b809624f83b228
12,338
py
Python
src/transformers/tokenization_camembert.py
12190143/transformers
6faca88ee0c472de8207e648b0999a1ee01ff127
[ "Apache-2.0" ]
480
2019-10-14T02:22:34.000Z
2022-03-29T18:07:00.000Z
src/transformers/tokenization_camembert.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
20
2019-10-15T16:18:05.000Z
2022-02-27T21:23:55.000Z
src/transformers/tokenization_camembert.py
hmason/transformers
ab90353f1abfd15f8d21f99395658d060679a08c
[ "Apache-2.0" ]
42
2019-10-14T21:29:59.000Z
2021-12-28T15:25:58.000Z
# coding=utf-8 # Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team. # # 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://ww...
41.965986
119
0.639731
4a106c870868fabf71427f1614a9691985104475
12,973
py
Python
gector/gec_model.py
nymwa/gector
9ce717570e81fabfc437d7ca45d27fd011c8fc5a
[ "Apache-2.0" ]
1
2021-04-20T14:06:58.000Z
2021-04-20T14:06:58.000Z
gector/gec_model.py
nymwa/gector
9ce717570e81fabfc437d7ca45d27fd011c8fc5a
[ "Apache-2.0" ]
null
null
null
gector/gec_model.py
nymwa/gector
9ce717570e81fabfc437d7ca45d27fd011c8fc5a
[ "Apache-2.0" ]
null
null
null
"""Wrapper of AllenNLP model. Fixes errors based on model predictions""" import logging import os import sys from time import time import torch from allennlp.data.dataset import Batch from allennlp.data.fields import TextField from allennlp.data.instance import Instance from allennlp.data.tokenizers import Token from ...
40.164087
115
0.574501
4a106e56eb8acc9879d5e2e84ed289dd909ff74d
6,124
py
Python
app/scrapers/codechef.py
Starscream-11813/CpZen
211f7322dbd02d484f1782e941cb202dd0c20443
[ "MIT" ]
5
2021-10-19T16:01:27.000Z
2022-02-14T01:05:39.000Z
app/scrapers/codechef.py
Starscream-11813/CpZen
211f7322dbd02d484f1782e941cb202dd0c20443
[ "MIT" ]
null
null
null
app/scrapers/codechef.py
Starscream-11813/CpZen
211f7322dbd02d484f1782e941cb202dd0c20443
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import urllib3 from datetime import datetime, timedelta class CodeChef: contests = {} url = "" def __init__(self): #self.url = 'https://www.codechef.com/contests' #self.url = 'https://www.stopstalk.com/contests' self.url...
40.026144
407
0.502776
4a106e997f7017cac41c0a3a964a73a155e48baa
752
py
Python
resources/carservice.py
Ayobami-00/Car-Service-Api
2d17798b8e3d0cbd2764ef101e3c5225b1b2e825
[ "MIT" ]
null
null
null
resources/carservice.py
Ayobami-00/Car-Service-Api
2d17798b8e3d0cbd2764ef101e3c5225b1b2e825
[ "MIT" ]
null
null
null
resources/carservice.py
Ayobami-00/Car-Service-Api
2d17798b8e3d0cbd2764ef101e3c5225b1b2e825
[ "MIT" ]
null
null
null
from flask import Response, request from database.models import CarServiceDataModel, User from flask_jwt_extended import jwt_required, get_jwt_identity from flask_restful import Resource from resources.errors import InternalServerError,NoAuthorizationError import random class CarService(Resource): @jwt_requir...
31.333333
74
0.704787
4a106eb02042ed9143826646faeea92b520d8a98
13,890
py
Python
BERT/Multi-column/train.py
amurto/nlp-scripts
f1158221a87838589ccff4eaa4db5349e6ec1c8d
[ "MIT" ]
1
2020-06-15T05:46:42.000Z
2020-06-15T05:46:42.000Z
BERT/Multi-column/train.py
amurto/nlp-scripts
f1158221a87838589ccff4eaa4db5349e6ec1c8d
[ "MIT" ]
null
null
null
BERT/Multi-column/train.py
amurto/nlp-scripts
f1158221a87838589ccff4eaa4db5349e6ec1c8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """BERT_train.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1UbYB9XAAcumx3wz2FFirnvt3hM_6dV5Y """ # install mxnet-cu100 because google colab supports version 100, if gpu not available run "!pip install mxnet" instead !pi...
25.769944
160
0.649316
4a106f620e0595a6f0bf5460f00bc550ed8006d9
404
py
Python
day8/a.py
bujiie/adventofcode2021
0e42c01f536bdfe66fd679cb05233ae2293a72c0
[ "MIT" ]
1
2021-12-12T03:44:35.000Z
2021-12-12T03:44:35.000Z
day8/a.py
bujiie/adventofcode2021
0e42c01f536bdfe66fd679cb05233ae2293a72c0
[ "MIT" ]
null
null
null
day8/a.py
bujiie/adventofcode2021
0e42c01f536bdfe66fd679cb05233ae2293a72c0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import argv I=[] with open(argv[1]) as fp: for i, l in enumerate(fp): l=l.strip() left,right=l.split(' | ') lp=left.split(' ') rp=right.split(' ') I.append((lp,rp)) count=0 for i in I: _,r=i for rr in r: if len(rr) in [2,3,...
13.931034
33
0.440594
4a10701e6b25efbdbbb0cd02ca18b669c934ff42
1,163
py
Python
187_repeated_dna_sequences.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
187_repeated_dna_sequences.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
187_repeated_dna_sequences.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 187. Repeated DNA Sequences # # All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". # When studying DNA, it is sometimes useful to identify repeated sequences within the DNA. # # Write a function to find all the 10-letter-long sequences (substrings) # that occur mo...
28.365854
106
0.60877
4a10706b52e2e5fd896378c64e8aef5b1d2c9d00
7,374
py
Python
slutils/Pano.py
0b3d/Image-Map-Embeddings
a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f
[ "MIT" ]
2
2022-02-11T06:05:35.000Z
2022-03-14T02:10:31.000Z
slutils/Pano.py
0b3d/Image-Map-Embeddings
a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f
[ "MIT" ]
null
null
null
slutils/Pano.py
0b3d/Image-Map-Embeddings
a9fc65ac92094bcfcd0f19a3604f0b9d8bd3174f
[ "MIT" ]
null
null
null
import os, sys import numpy as np import cv2 import pandas as pd from slutils.equirec2perspec import Equirec2Perspec as E2P class Pano(): """ Create object panorama""" def __init__(self, panoDir, ID): """Initialize the Pano class. Parameters: panoDir (str) -- Path to the d...
41.661017
164
0.556821
4a10715ccf80b2eed8317a749ac2c2e60f83ace0
285
py
Python
prototype/KnowledgeBase/migrations/0017_merge_20200417_1524.py
Woods-Taylor2/Cybersecurity-based-Knowledge-Management-System
53aa5bc3878051392a7cebb605e3333efceb4791
[ "PostgreSQL" ]
null
null
null
prototype/KnowledgeBase/migrations/0017_merge_20200417_1524.py
Woods-Taylor2/Cybersecurity-based-Knowledge-Management-System
53aa5bc3878051392a7cebb605e3333efceb4791
[ "PostgreSQL" ]
null
null
null
prototype/KnowledgeBase/migrations/0017_merge_20200417_1524.py
Woods-Taylor2/Cybersecurity-based-Knowledge-Management-System
53aa5bc3878051392a7cebb605e3333efceb4791
[ "PostgreSQL" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-17 15:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('KnowledgeBase', '0003_auto_20200416_1652'), ('KnowledgeBase', '0016_auto_20200405_1726'), ] operations = [ ]
19
53
0.663158
4a1072f7fe37176cb17a193d926074b950a6eb81
38
py
Python
venv/Lib/site-packages/IPython/kernel/threaded.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
venv/Lib/site-packages/IPython/kernel/threaded.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
venv/Lib/site-packages/IPython/kernel/threaded.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
from jupyter_client.threaded import *
19
37
0.842105
4a107389b4629200e3996efe55036315452598ea
5,787
py
Python
pyParallelSingleCellNet/utils.py
gavehan/pyParallelSingleCellNet
0d59eb445a71219504171cc7fd76094446b7f3fc
[ "MIT" ]
null
null
null
pyParallelSingleCellNet/utils.py
gavehan/pyParallelSingleCellNet
0d59eb445a71219504171cc7fd76094446b7f3fc
[ "MIT" ]
null
null
null
pyParallelSingleCellNet/utils.py
gavehan/pyParallelSingleCellNet
0d59eb445a71219504171cc7fd76094446b7f3fc
[ "MIT" ]
null
null
null
import datetime import numpy as np import pandas as pd import scipy.stats as stats from anndata import AnnData import scanpy as sc def ctMerge(sampTab, annCol, ctVect, newName): oldRows = np.isin(sampTab[annCol], ctVect) newSampTab = sampTab.copy() newSampTab.loc[oldRows, annCol] = newName return newSa...
31.622951
99
0.656817
4a1073e1b186116a2f84119609d420f9118482db
7,848
py
Python
setup.py
JamesLinus/pyopencl
e1456850465c5904baee4e5e0047e098c1269c1c
[ "Apache-2.0" ]
1
2019-04-22T09:09:18.000Z
2019-04-22T09:09:18.000Z
setup.py
JamesLinus/pyopencl
e1456850465c5904baee4e5e0047e098c1269c1c
[ "Apache-2.0" ]
null
null
null
setup.py
JamesLinus/pyopencl
e1456850465c5904baee4e5e0047e098c1269c1c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function __copyright__ = """ Copyright (C) 2009-15 Andreas Kloeckner Copyright (C) 2013 Marko Bencun Copyright (C) 2013 Marko Bencun """ __license__ = """ Permission is hereby granted, free of charge, to any person obtaining ...
33.395745
85
0.587156
4a1075637a5ef95c542f4e6c4bcd93e38f56d9ce
1,588
py
Python
40. Combination Sum II/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
40. Combination Sum II/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
40. Combination Sum II/solution2.py
sunshot/LeetCode
8f6503201831055f1d49ed3abb25be44a13ec317
[ "MIT" ]
null
null
null
from typing import List import collections class Solution: def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]: ans = [] if not candidates or len(candidates) == 0: return ans if len(candidates) == 1: if target == candidates[0]: ...
28.872727
85
0.479219
4a107623ccbbbfb4b769121365873eec39f3f37a
236
py
Python
Python-3/basic_examples/python_object_examples.py
ghiloufibelgacem/jornaldev
b9b27f9f7da595892520314b4ed1d2675556310a
[ "MIT" ]
1,139
2018-05-09T11:54:36.000Z
2022-03-31T06:52:50.000Z
Python-3/basic_examples/python_object_examples.py
iamharshverma/journaldev
af24242a1ac1b7dc3e8e2404ec916b77ccf5044a
[ "MIT" ]
56
2018-06-20T03:52:53.000Z
2022-02-09T22:57:41.000Z
Python-3/basic_examples/python_object_examples.py
iamharshverma/journaldev
af24242a1ac1b7dc3e8e2404ec916b77ccf5044a
[ "MIT" ]
2,058
2018-05-09T09:32:17.000Z
2022-03-29T13:19:42.000Z
obj = object() print(type(obj)) print(dir(obj)) print(obj.__hash__()) # obj.i = 10 # AttributeError: 'object' object has no attribute 'i' # setattr(obj, 'name', 'pankaj') # AttributeError: 'object' object has no attribute 'name'
19.666667
91
0.673729
4a1076ad4284b0ca966e6f42c2127c7fb6d20987
1,622
py
Python
docs/test_doc_production_use.py
yanhuixie/iommi
b6ae39c270b10b553a7ef2ab52e8c1c96489db0b
[ "BSD-3-Clause" ]
192
2020-01-30T14:29:56.000Z
2022-03-28T19:55:30.000Z
docs/test_doc_production_use.py
yanhuixie/iommi
b6ae39c270b10b553a7ef2ab52e8c1c96489db0b
[ "BSD-3-Clause" ]
105
2020-03-29T21:59:01.000Z
2022-03-24T12:29:09.000Z
docs/test_doc_production_use.py
yanhuixie/iommi
b6ae39c270b10b553a7ef2ab52e8c1c96489db0b
[ "BSD-3-Clause" ]
28
2020-02-02T20:51:09.000Z
2022-03-08T16:23:42.000Z
from tests.helpers import req request = req('get') def test_production_use(): # language=rst """ Production use -------------- You probably want to define your own `Style` in a production scenario. See :doc:`How to create a Style <styles>`, and especially the section on how to integrate into...
21.064935
94
0.618989
4a1076f6700c2f7d12ad9125ca91b9ac8c57d9e1
3,499
py
Python
test/functional/p2p_timeouts.py
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
10
2019-03-08T04:10:37.000Z
2021-08-20T11:55:14.000Z
test/functional/p2p_timeouts.py
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
69
2018-11-09T20:29:29.000Z
2021-10-05T00:08:36.000Z
test/functional/p2p_timeouts.py
tradecraftio/tradecraft
a014fea4d4656df67aef19e379f10322386cf6f8
[ "MIT" ]
7
2019-01-21T06:00:18.000Z
2021-12-19T16:18:00.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Copyright (c) 2010-2021 The Freicoin Developers # # This program is free software: you can redistribute it and/or modify it under # the terms of version 3 of the GNU Affero General Public License as published # by the Free Software Foundatio...
36.072165
116
0.712203
4a107701a10aad2391de741cba9392bf26aa21c1
187
py
Python
posts/urls.py
kuter/django-saml2-auth-example
dc920020b5529f0e8bd692b43a3af3707aee1770
[ "MIT" ]
null
null
null
posts/urls.py
kuter/django-saml2-auth-example
dc920020b5529f0e8bd692b43a3af3707aee1770
[ "MIT" ]
null
null
null
posts/urls.py
kuter/django-saml2-auth-example
dc920020b5529f0e8bd692b43a3af3707aee1770
[ "MIT" ]
null
null
null
from django.urls import path from django.contrib.auth.decorators import login_required from . import views urlpatterns = [ path('', login_required(views.PostListView.as_view())), ]
20.777778
59
0.764706
4a1077c43e6fc42e1448c2259282745030f7f8d1
7,543
py
Python
packetselector.py
androdev4u/XFLTReaT
17d4ec857dd1b98d8f57fec2edc540fce7087b21
[ "MIT" ]
315
2017-08-25T04:17:56.000Z
2022-03-03T14:28:46.000Z
packetselector.py
FDlucifer/XFLTReaT
17d4ec857dd1b98d8f57fec2edc540fce7087b21
[ "MIT" ]
8
2017-09-10T21:03:06.000Z
2020-01-24T15:48:58.000Z
packetselector.py
FDlucifer/XFLTReaT
17d4ec857dd1b98d8f57fec2edc540fce7087b21
[ "MIT" ]
71
2017-08-25T06:01:43.000Z
2022-03-24T15:35:53.000Z
# MIT License # Copyright (c) 2017 Balazs Bucsay # 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, merge, ...
32.097872
99
0.702108
4a107873b1cd837477d4c6949b4ea931bad64944
2,867
py
Python
occurrences/migrations/0022_study_level.py
City-of-Helsinki/palvelutarjotin
4ad67cbf4062832aba8080cb96ac785bdbbe9aa8
[ "MIT" ]
2
2020-11-10T16:31:26.000Z
2021-02-19T10:33:27.000Z
occurrences/migrations/0022_study_level.py
City-of-Helsinki/palvelutarjotin
4ad67cbf4062832aba8080cb96ac785bdbbe9aa8
[ "MIT" ]
239
2020-04-23T07:36:17.000Z
2022-03-15T08:38:38.000Z
occurrences/migrations/0022_study_level.py
City-of-Helsinki/palvelutarjotin
4ad67cbf4062832aba8080cb96ac785bdbbe9aa8
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2021-01-14 14:22 from django.db import migrations, models import django.db.models.deletion import parler.models class Migration(migrations.Migration): dependencies = [ ("occurrences", "0021_palvelutarjotinevent_mandatory_additional_information"), ] operations = [...
32.954023
88
0.436693
4a1078c525eb687a6f9956b905dbea29483c4d41
12,998
py
Python
cirq-google/cirq_google/api/v1/programs_test.py
mmcewen-g/Cirq
fe80da777401defd177aab38ce2b844912eca6e9
[ "Apache-2.0" ]
1
2022-01-21T01:55:48.000Z
2022-01-21T01:55:48.000Z
cirq-google/cirq_google/api/v1/programs_test.py
mmcewen-g/Cirq
fe80da777401defd177aab38ce2b844912eca6e9
[ "Apache-2.0" ]
null
null
null
cirq-google/cirq_google/api/v1/programs_test.py
mmcewen-g/Cirq
fe80da777401defd177aab38ce2b844912eca6e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 to in ...
32.333333
100
0.616556
4a1078e945fe56927eeaf08f57033ba8df4583f4
35,967
py
Python
venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine_scaleset.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine_scaleset.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine_scaleset.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2016 Sertac Ozercan, <seozerca@microsoft.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
41.968495
199
0.533044
4a10795dbb40b3862eceed11241cc46cbc74f1c9
1,316
py
Python
Advance_Python/searching_and_sorting/Quick_Sort3.py
siddharth-143/Python
293f4643a3a13e3b82d23fd8922db54dbb0f12bc
[ "MIT" ]
null
null
null
Advance_Python/searching_and_sorting/Quick_Sort3.py
siddharth-143/Python
293f4643a3a13e3b82d23fd8922db54dbb0f12bc
[ "MIT" ]
null
null
null
Advance_Python/searching_and_sorting/Quick_Sort3.py
siddharth-143/Python
293f4643a3a13e3b82d23fd8922db54dbb0f12bc
[ "MIT" ]
null
null
null
# Python program to implement quick sort # using median of 3 values import statistics def pivot_place(list1, first, last): low = list1[first] high = list1[last] mid = (first + last)//2 pivot_val = statistics.median([low, list1[mid], high]) if pivot_val == low: pindex = first elif piv...
24.830189
66
0.575988
4a107af80a9021ebbd9a5ed47fc719ec2a89e026
574
py
Python
mysite/polls/admin.py
meli-lewis/django_tutorial
c1f04a9d281ebb150d32d766174380bc0e7defb2
[ "MIT" ]
4
2018-04-11T17:54:27.000Z
2018-04-12T06:14:29.000Z
mysite/polls/admin.py
meli-lewis/django_tutorial
c1f04a9d281ebb150d32d766174380bc0e7defb2
[ "MIT" ]
null
null
null
mysite/polls/admin.py
meli-lewis/django_tutorial
c1f04a9d281ebb150d32d766174380bc0e7defb2
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Choice, Question class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): list_display = ('question_text', 'pub_date', 'was_published_recently') fieldsets = [ (None, {'fields':...
24.956522
80
0.655052
4a107c704866ef6bc179a673b69a5a04802d02a0
1,887
py
Python
tests/py_grpc_prometheus/test_grpc_server_started.py
RyanSiu1995/py-grpc-prometheus
eb9dee1f0a4e57cef220193ee48021dc9a9f3d82
[ "Apache-2.0" ]
40
2018-12-05T15:35:52.000Z
2022-01-31T09:02:12.000Z
tests/py_grpc_prometheus/test_grpc_server_started.py
RyanSiu1995/py-grpc-prometheus
eb9dee1f0a4e57cef220193ee48021dc9a9f3d82
[ "Apache-2.0" ]
12
2019-08-06T12:14:20.000Z
2021-08-09T14:53:37.000Z
tests/py_grpc_prometheus/test_grpc_server_started.py
RyanSiu1995/py-grpc-prometheus
eb9dee1f0a4e57cef220193ee48021dc9a9f3d82
[ "Apache-2.0" ]
9
2019-12-18T08:49:37.000Z
2022-03-30T17:08:15.000Z
import pytest from tests.py_grpc_prometheus.utils import get_server_metric from tests.integration.hello_world import hello_world_pb2 @pytest.mark.parametrize("target_count", [1, 10, 100]) def test_grpc_server_started_with_normal( target_count, grpc_server, grpc_stub ): # pylint: disable=unused-argument for i ...
34.309091
82
0.765766
4a107c763a8297f156ecdd78eb02113beb9fb2ac
2,661
py
Python
movies/views.py
shershen08/django-rest-framework-crud
f83edcd746c71b5ee717932c48173214d3efc131
[ "MIT" ]
null
null
null
movies/views.py
shershen08/django-rest-framework-crud
f83edcd746c71b5ee717932c48173214d3efc131
[ "MIT" ]
null
null
null
movies/views.py
shershen08/django-rest-framework-crud
f83edcd746c71b5ee717932c48173214d3efc131
[ "MIT" ]
null
null
null
from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework import status from rest_framework.parsers import JSONParser from .models import Movie from .serializers import MovieSerializer from ....
37.478873
96
0.659526
4a107ca1f19ec60ef21d3c3f2c805d46aff92d02
36
py
Python
__init__.py
sickless/flask_private_area
09b2f9382c0426f5ed63488f9fd8ca6d4b3f751c
[ "BSD-3-Clause" ]
null
null
null
__init__.py
sickless/flask_private_area
09b2f9382c0426f5ed63488f9fd8ca6d4b3f751c
[ "BSD-3-Clause" ]
null
null
null
__init__.py
sickless/flask_private_area
09b2f9382c0426f5ed63488f9fd8ca6d4b3f751c
[ "BSD-3-Clause" ]
null
null
null
from .flask_private_area import app
18
35
0.861111
4a107d35aef936b52825fffa019946bb204ef3d4
5,768
py
Python
azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py
AlexanderYukhanov/azure-sdk-for-python
41e37c8a10876db40697a63e828ed7cafc19c7d6
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py
AlexanderYukhanov/azure-sdk-for-python
41e37c8a10876db40697a63e828ed7cafc19c7d6
[ "MIT" ]
null
null
null
azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py
AlexanderYukhanov/azure-sdk-for-python
41e37c8a10876db40697a63e828ed7cafc19c7d6
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
51.5
376
0.678745
4a107e505a3b8ee2e5ae08ba6aa77e3b55857b04
5,181
py
Python
bertmap/extend/onto_extend.py
KRR-Oxford/BERTMap
26eb78288885b8749c5bd970d44fa0ec18c6f417
[ "Apache-2.0" ]
10
2021-12-07T09:09:18.000Z
2022-03-28T22:54:25.000Z
bertmap/extend/onto_extend.py
KRR-Oxford/BERTMap
26eb78288885b8749c5bd970d44fa0ec18c6f417
[ "Apache-2.0" ]
null
null
null
bertmap/extend/onto_extend.py
KRR-Oxford/BERTMap
26eb78288885b8749c5bd970d44fa0ec18c6f417
[ "Apache-2.0" ]
1
2022-03-24T09:39:36.000Z
2022-03-24T09:39:36.000Z
""" Mapping Extension class """ from typing import List, Tuple, Dict, Union import bertmap from bertmap.onto import OntoBox from owlready2.entity import ThingClass from pandas.core.frame import DataFrame import pandas as pd from itertools import product from copy import deepcopy import time class OntoExtend: n...
39.25
127
0.625748
4a108003076393db6e7f6d4f284e5787cc4dfef2
843
py
Python
inventory/migrations/0005_auto_20171111_1552.py
ohing504/django-inventory
1a262b826e8e904a7196fe0f0c0645dcd428f3f9
[ "MIT" ]
null
null
null
inventory/migrations/0005_auto_20171111_1552.py
ohing504/django-inventory
1a262b826e8e904a7196fe0f0c0645dcd428f3f9
[ "MIT" ]
2
2020-06-05T17:12:32.000Z
2021-06-10T18:12:45.000Z
inventory/migrations/0005_auto_20171111_1552.py
ohing504/django-inventory
1a262b826e8e904a7196fe0f0c0645dcd428f3f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-11 06:52 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('administrator', '0001_initial'), ('inventory', '000...
31.222222
140
0.648873
4a10800a6c9560814d8904de25a9430048654169
41
py
Python
tests/__init__.py
johnsmith400/bunny-storm
2bec24bc475dc84ff83f8415de4a836a9356c949
[ "MIT" ]
16
2021-09-15T07:08:14.000Z
2022-01-24T15:25:29.000Z
tests/__init__.py
johnsmith400/bunny-storm
2bec24bc475dc84ff83f8415de4a836a9356c949
[ "MIT" ]
1
2021-08-07T17:45:22.000Z
2021-08-07T17:45:22.000Z
tests/__init__.py
johnsmith400/bunny-storm
2bec24bc475dc84ff83f8415de4a836a9356c949
[ "MIT" ]
4
2021-09-14T13:47:34.000Z
2022-03-23T19:36:32.000Z
"""Unit test package for bunny_storm."""
20.5
40
0.707317
4a108033785ba0c02f9f9d467dc0f8b6760aba7f
3,342
py
Python
4_simple_models/interactive_scripts/recall3.py
ReyhaneAskari/SLA_violation_classification
258a3c415cebcd04601e4d794d42d664471df668
[ "MIT" ]
2
2019-03-25T18:07:10.000Z
2022-03-06T08:49:49.000Z
4_simple_models/interactive_scripts/recall3.py
ReyhaneAskari/SLA_violation_classification
258a3c415cebcd04601e4d794d42d664471df668
[ "MIT" ]
null
null
null
4_simple_models/interactive_scripts/recall3.py
ReyhaneAskari/SLA_violation_classification
258a3c415cebcd04601e4d794d42d664471df668
[ "MIT" ]
2
2018-10-10T01:18:10.000Z
2018-10-10T03:05:53.000Z
# -*- coding: utf-8 -*- import csv import numpy as np from sklearn.metrics import roc_curve, auc from sklearn.cross_validation import train_test_split import matplotlib.pyplot as plt from sklearn import metrics import pandas as pd from os import chdir, listdir from pandas import read_csv from os import path from random...
37.133333
118
0.708259
4a10836167fce0f11dcbca07368e7818114edeb8
818
py
Python
python/code.py
arnoldxiao/BuildPackage-iOS
ff9a7715af40a302eac02df95112680506555ac9
[ "MIT" ]
null
null
null
python/code.py
arnoldxiao/BuildPackage-iOS
ff9a7715af40a302eac02df95112680506555ac9
[ "MIT" ]
null
null
null
python/code.py
arnoldxiao/BuildPackage-iOS
ff9a7715af40a302eac02df95112680506555ac9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # @Author: xiaochenghua # @Date: 2019/08/01 import coloredlogs import logging from git import Repo from utils import Utils repo = 'https://github.com/arnoldxiao/BuildPackage-Example.git' class Code(object): logger = logging.getLogger(__name__) coloredlogs.insta...
20.974359
78
0.650367
4a108377cf0f5dbdfd8a79087fc2255b8874224a
2,599
py
Python
SafeCracker.py
epollinger/python
26b500ace6e9ec743c6046be3e191262fb5eb1e9
[ "MIT" ]
null
null
null
SafeCracker.py
epollinger/python
26b500ace6e9ec743c6046be3e191262fb5eb1e9
[ "MIT" ]
null
null
null
SafeCracker.py
epollinger/python
26b500ace6e9ec743c6046be3e191262fb5eb1e9
[ "MIT" ]
null
null
null
# Solution for the SafeCracker 50 Puzzle from Creative Crafthouse # By: Eric Pollinger # 9/11/2016 # # Function to handle the addition of a given slice def add(slice): if row1Outer[(index1 + slice) % 16] != -1: valRow1 = row1Outer[(index1 + slice) % 16] else: valRow1 = row0Inner[slice] ...
41.253968
147
0.485571
4a1084b5ed81c2f5bb975bf891573a267174cea3
3,454
py
Python
day3.py
nichochar/advent-of-code-2021
3abe2f30afee2b0bfcdbecdf414b48a3d953d7ed
[ "MIT" ]
null
null
null
day3.py
nichochar/advent-of-code-2021
3abe2f30afee2b0bfcdbecdf414b48a3d953d7ed
[ "MIT" ]
null
null
null
day3.py
nichochar/advent-of-code-2021
3abe2f30afee2b0bfcdbecdf414b48a3d953d7ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os LENGTH = 12 def read(relative_filepath): """For day 3, returns... """ with open(relative_filepath, 'r+') as f: data = f.read() clean_data = data.strip() lines = clean_data.split('\n') return lines def bitsToInt(bitstring): """Takes a st...
25.585185
80
0.588882
4a10868bdc1b6992642482100cdfc0365c832f7a
2,601
py
Python
base/views.py
kunsaeedan01/To-Do-App
a81a4ab0ce84e42e6097a549ccbf2d41c5a1d3af
[ "MIT" ]
null
null
null
base/views.py
kunsaeedan01/To-Do-App
a81a4ab0ce84e42e6097a549ccbf2d41c5a1d3af
[ "MIT" ]
null
null
null
base/views.py
kunsaeedan01/To-Do-App
a81a4ab0ce84e42e6097a549ccbf2d41c5a1d3af
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView, FormView from django.urls import reverse_lazy from django.contrib.auth.views import LoginView from dj...
30.964286
85
0.708189
4a108792fd6537bfa82f461f964bff9d42e74138
351
py
Python
25-django/ProyectoWP/blog/processor.py
wparedesgt/Master-Python
b0e8963a5a95d479ef929c2d482be50a1959a18f
[ "BSD-3-Clause" ]
null
null
null
25-django/ProyectoWP/blog/processor.py
wparedesgt/Master-Python
b0e8963a5a95d479ef929c2d482be50a1959a18f
[ "BSD-3-Clause" ]
null
null
null
25-django/ProyectoWP/blog/processor.py
wparedesgt/Master-Python
b0e8963a5a95d479ef929c2d482be50a1959a18f
[ "BSD-3-Clause" ]
null
null
null
from blog.models import Category, Article def get_categories(request): categories_in_use = Article.objects.filter(public= True).values_list('categories', flat=True) categories = Category.objects.filter(id__in=categories_in_use).values_list('id', 'name') return { 'categories': categories, ...
29.25
97
0.717949
4a1087ac3aeb508f51824ec27c4345e7f9547140
1,982
py
Python
conftest.py
CameronSBell/knausj_talon
3e57e0165257cf07b0e21880d44a91e79cb3ef16
[ "MIT" ]
298
2020-02-23T03:00:51.000Z
2022-03-30T02:11:00.000Z
conftest.py
CameronSBell/knausj_talon
3e57e0165257cf07b0e21880d44a91e79cb3ef16
[ "MIT" ]
521
2020-02-21T18:21:17.000Z
2022-03-31T16:40:34.000Z
conftest.py
CameronSBell/knausj_talon
3e57e0165257cf07b0e21880d44a91e79cb3ef16
[ "MIT" ]
499
2020-03-07T05:43:52.000Z
2022-03-28T12:24:54.000Z
""" Configuration file for pytest See also https://docs.pytest.org/en/6.2.x/writing_plugins.html#writing-hook-functions """ import os import sys import importlib class UnitTestPathFinder(importlib.machinery.PathFinder): """ Makes the knausj_talon repo root directory available under knausj_talon_pkg and ...
30.492308
85
0.603431
4a1087efc58a2128e17398a0c907b1b065e7e302
2,435
py
Python
setup.py
Schenng/color-wave-ml-training
614b6de11810c4c143434568edf8a4d4204eac8d
[ "MIT" ]
2,990
2017-01-31T04:36:11.000Z
2022-03-23T08:54:30.000Z
setup.py
laihub/PaintsChainer
aa6679444b75b550de17b2cfe78a47e3c98364ff
[ "MIT" ]
103
2017-01-31T04:42:44.000Z
2021-11-22T04:42:37.000Z
setup.py
laihub/PaintsChainer
aa6679444b75b550de17b2cfe78a47e3c98364ff
[ "MIT" ]
516
2017-01-31T04:58:35.000Z
2022-02-14T09:18:50.000Z
''' This is the setup script for cxfreeze cxfreeze does not support pkg_resource, to compile, please modify chainer to hardcode version name and remove pkg_resources track cxfreeze branch https://github.com/grahamrjuk/cx_Freeze/tree/process_import for process support Process.pyc is to be renamed to process.pyc cupy...
25.631579
98
0.669815
4a1088d4314afed33eb512a1f190a0ab65316dc2
8,244
py
Python
pandaharvester/harvesterworkermaker/simple_worker_maker.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
null
null
null
pandaharvester/harvesterworkermaker/simple_worker_maker.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
null
null
null
pandaharvester/harvesterworkermaker/simple_worker_maker.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
null
null
null
from __future__ import division import math import random from pandaharvester.harvestercore.work_spec import WorkSpec from pandaharvester.harvestercore.job_spec import JobSpec from pandaharvester.harvestercore import core_utils from pandaharvester.harvestermisc.info_utils import PandaQueuesDict from pandaharvester.ha...
44.562162
130
0.613052
4a10890d27ef341668def68e370b59fceeefc435
370
py
Python
Lambda_cs_week1/day_one/sorted_example.py
toneiobufon/Python_Practice
6f97cc9d7ee6f919f76aecff547fa5e4aa66588f
[ "MIT" ]
null
null
null
Lambda_cs_week1/day_one/sorted_example.py
toneiobufon/Python_Practice
6f97cc9d7ee6f919f76aecff547fa5e4aa66588f
[ "MIT" ]
null
null
null
Lambda_cs_week1/day_one/sorted_example.py
toneiobufon/Python_Practice
6f97cc9d7ee6f919f76aecff547fa5e4aa66588f
[ "MIT" ]
null
null
null
#create a function that sorts a list of strings by length in ascending order def sort_by_length(lst): #sort items, shorter items first #the .sort method on lists in python sorts in place # new =sorted(lst) # return new #same result return sorted(lst) print(sort_by_length(['name', 'nam', 'name...
28.461538
76
0.683784
4a1089862d6a2d4e5fd779677dac51c86303c9fb
4,150
py
Python
src/AnimationEditor.py
hmoraldo/AnimationEditor
56df0d6a9813abc5258072b7cef6e907c0a15dd3
[ "MIT" ]
6
2016-09-05T19:28:50.000Z
2022-02-11T10:03:41.000Z
src/AnimationEditor.py
hmoraldo/AnimationEditor
56df0d6a9813abc5258072b7cef6e907c0a15dd3
[ "MIT" ]
null
null
null
src/AnimationEditor.py
hmoraldo/AnimationEditor
56df0d6a9813abc5258072b7cef6e907c0a15dd3
[ "MIT" ]
4
2016-12-12T18:50:28.000Z
2019-12-15T03:07:29.000Z
import json, glob from PIL import Image, ImageTk import Tkinter as tk import Utils canvas = None lblImage = None lblVertex = None FileName = None CurrentFrame = None # current frame number CurrentVertex = None FrameName = None Images = None # the image names ImageGlob = None Vertices = None Lines = None Frames = None ...
25.776398
115
0.740482
4a108a0c5e4a7250a8c299ff8e94675edc1547b3
9,895
py
Python
framework/SupervisedLearning/ScikitLearn/Tree/DecisionTreeClassifier.py
FlanFlanagan/raven
bd7fca18af94376a28e2144ba1da72c01c8d343c
[ "Apache-2.0" ]
1
2022-03-10T18:54:09.000Z
2022-03-10T18:54:09.000Z
framework/SupervisedLearning/ScikitLearn/Tree/DecisionTreeClassifier.py
FlanFlanagan/raven
bd7fca18af94376a28e2144ba1da72c01c8d343c
[ "Apache-2.0" ]
null
null
null
framework/SupervisedLearning/ScikitLearn/Tree/DecisionTreeClassifier.py
FlanFlanagan/raven
bd7fca18af94376a28e2144ba1da72c01c8d343c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, 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 t...
73.843284
167
0.551187
4a108a52ad60a04840910a4b5ac5560213498e89
10,083
py
Python
networks.py
TOMeoww/STGAN
090a4024999e68f017140312ecfdd0d4dc3dc425
[ "MIT" ]
null
null
null
networks.py
TOMeoww/STGAN
090a4024999e68f017140312ecfdd0d4dc3dc425
[ "MIT" ]
1
2020-12-06T08:06:56.000Z
2020-12-06T08:26:23.000Z
networks.py
TOMeoww/STGAN
090a4024999e68f017140312ecfdd0d4dc3dc425
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from torch.nn.init import kaiming_normal_,xavier_normal_ from torchsummary import summary class Conv2dBlock(nn.Module): def __init__(self,in_channels,out_channels, kernel_size = 4, stride = 2,us...
36.139785
131
0.553605
4a108b671cb3231466f03677b176ce941f8bd768
22,244
py
Python
VESIcal/models/allison.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
16
2020-06-22T09:07:32.000Z
2022-01-12T13:42:12.000Z
build/lib/VESIcal/models/allison.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
136
2020-05-22T21:43:23.000Z
2022-03-07T22:06:33.000Z
VESIcal/models/allison.py
kaylai/VESIcal
3ea18b0ce30b30fb55786346c37ef8f428ee5034
[ "MIT" ]
3
2021-05-18T08:21:02.000Z
2022-03-25T01:08:10.000Z
from VESIcal import activity_models from VESIcal import calibration_checks from VESIcal import core from VESIcal import fugacity_models from VESIcal import model_classes from VESIcal import sample_class import numpy as np import warnings as w from scipy.optimize import root_scalar class carbon(model_classes.Model): ...
41.890772
99
0.603983
4a108c198ed6bdf236c8b188c9d0e0f792650520
3,996
py
Python
src/inline_requests/generator.py
starrify/scrapy-inline-requests
2cbbb66e6e97260b7e126aa9d8ecde1393a554c9
[ "MIT" ]
58
2017-07-31T06:17:56.000Z
2021-12-13T07:10:18.000Z
src/inline_requests/generator.py
darkrho/scrapy-inline-requests
2cbbb66e6e97260b7e126aa9d8ecde1393a554c9
[ "MIT" ]
11
2016-04-25T11:17:14.000Z
2017-02-20T15:50:59.000Z
src/inline_requests/generator.py
darkrho/scrapy-inline-requests
2cbbb66e6e97260b7e126aa9d8ecde1393a554c9
[ "MIT" ]
8
2017-09-01T19:32:51.000Z
2021-02-05T14:35:49.000Z
import logging import warnings from functools import partial from types import GeneratorType from scrapy.http import Request from scrapy.utils.spider import iterate_spider_output logger = logging.getLogger(__name__) class RequestGenerator(object): """This is the core class that wraps the callback and outputs ...
36
87
0.59985
4a108d28a9a992adff12abfb55b8e2a4cd439f01
39,841
py
Python
FTIR_to_electrolyte_composition/management/commands/Constant_run.py
Samuel-Buteau/Electrolyte_Analysis_FTIR
26c844547718b33fe317c3efa392712d8d119c6b
[ "MIT" ]
9
2019-11-15T06:39:50.000Z
2022-01-19T14:18:56.000Z
FTIR_to_electrolyte_composition/management/commands/Constant_run.py
Samuel-Buteau/Electrolyte_Analysis_FTIR
26c844547718b33fe317c3efa392712d8d119c6b
[ "MIT" ]
12
2020-02-12T01:07:23.000Z
2022-02-10T00:14:24.000Z
FTIR_to_electrolyte_composition/management/commands/Constant_run.py
Samuel-Buteau/Electrolyte_Analysis_FTIR
26c844547718b33fe317c3efa392712d8d119c6b
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand import numpy from FTIR_to_electrolyte_composition.models import FTIRSpectrum, FTIRSample, HUMAN,ROBOT,CELL import matplotlib.pyplot as plt import os import tensorflow as tf import random import contextlib import pickle import math wanted_wavenumbers = [] from mpl_to...
41.762055
213
0.568359
4a108dda70f51ac61f80b9f918fa694a6bbd8d41
944
py
Python
setup.py
ixc/glamkit-url-breadcrumbs
4838df55fe65aff7d5cdd66316533bcc0a28805c
[ "BSD-3-Clause" ]
null
null
null
setup.py
ixc/glamkit-url-breadcrumbs
4838df55fe65aff7d5cdd66316533bcc0a28805c
[ "BSD-3-Clause" ]
null
null
null
setup.py
ixc/glamkit-url-breadcrumbs
4838df55fe65aff7d5cdd66316533bcc0a28805c
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os from setuptools import setup, find_packages setup( name='glamkit-url-breadcrumbs', version=__import__('url_breadcrumbs').__version__, description=u' '.join( __import__('url_breadcrumbs').__doc__.splitlines()).strip(), long_description=os.path.join( os.pa...
31.466667
68
0.65678
4a108e588f1e3a0a3918ef124b3e4e06d0ae79eb
956
py
Python
Certification/Python (Basic)/shape_classes_with_area_method.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Certification/Python (Basic)/shape_classes_with_area_method.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Certification/Python (Basic)/shape_classes_with_area_method.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys class Rectangle: def __init__(self, length, width): self.length = length self.width = width def area(self): return self.length * self.width class Circle: def __init__(self, radius): self.radius = ra...
21.244444
63
0.553347
4a108f01ed36c85ef98f9d0a0fd9f0590f2781d8
3,443
py
Python
massweb/pnk_net/find_post.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
massweb/pnk_net/find_post.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
massweb/pnk_net/find_post.py
acaceres2176/massweb
153d1e00ee293f467e88e7f5ce98617a5c13cfb7
[ "Apache-2.0" ]
null
null
null
import os from bs4 import BeautifulSoup, SoupStrainer import sys from urlparse import urlparse, urlunparse import traceback from requests.exceptions import ConnectionError import urllib import requests from massweb.targets.fuzzy_target import FuzzyTarget from massweb.targets.target import Target from massweb.pnk_net.p...
40.988095
111
0.682544
4a108f01edefb1ee5f4d12d83df795f30b9a38b0
2,117
py
Python
python3.4Smartforest/lib/python3.4/site-packages/django/conf/locale/en_AU/formats.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/conf/locale/en_AU/formats.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
python3.4Smartforest/lib/python3.4/site-packages/django/conf/locale/en_AU/formats.py
letouriste001/SmartForest_2.0
109b78bf1e8c8404800f377ab969395ccbb617be
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- # This file is distributed under the same license as the Django package. # from __future__ import unicode_literals # The *_FORMAT strings use the Django date format syntax, # see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = 'j M Y' # '25 Oc...
2,117
2,117
0.465753
4a1090557aebdd9ce4821d258c630f109f3a2877
9,903
py
Python
main.py
KitHaywood/Gecko
92f322d5248229ca11b1a5b7fd43028e0ac66f39
[ "Apache-2.0" ]
null
null
null
main.py
KitHaywood/Gecko
92f322d5248229ca11b1a5b7fd43028e0ac66f39
[ "Apache-2.0" ]
null
null
null
main.py
KitHaywood/Gecko
92f322d5248229ca11b1a5b7fd43028e0ac66f39
[ "Apache-2.0" ]
null
null
null
try: from pycoingecko import CoinGeckoAPI except ImportError: print('please install pycoingecko in the CLI') import datetime as dt try: import pandas as pd except ImportError: print('please install pandas in the CLI') import time import requests import json import tqdm import sys import os from utils ...
37.653992
141
0.562658
4a1090b4280f9677aab9c021fb43db231a0b5ed0
906
py
Python
setup.py
ladsantos/starcross
47b4258e5d4b3b7abc0559e3460a7ff7963baa77
[ "MIT" ]
null
null
null
setup.py
ladsantos/starcross
47b4258e5d4b3b7abc0559e3460a7ff7963baa77
[ "MIT" ]
null
null
null
setup.py
ladsantos/starcross
47b4258e5d4b3b7abc0559e3460a7ff7963baa77
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == "publish": os.system("python setup.py sdist upload") sys.exit() setup( name="starcross", version="0.1a", author="L...
25.885714
65
0.625828
4a10918c85de089525569d378f36ec597b2f5b93
15,472
py
Python
featuretools/primitives/primitive_base.py
bentona/featuretools
798007d0bd137bc27e168480a10bc3bbee065b54
[ "BSD-3-Clause" ]
null
null
null
featuretools/primitives/primitive_base.py
bentona/featuretools
798007d0bd137bc27e168480a10bc3bbee065b54
[ "BSD-3-Clause" ]
null
null
null
featuretools/primitives/primitive_base.py
bentona/featuretools
798007d0bd137bc27e168480a10bc3bbee065b54
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import copy import logging from builtins import zip from numpy import nan from featuretools.entityset import Entity, EntitySet from featuretools.utils.wrangle import ( _check_time_against_column, _check_timedelta ) from featuretools.variable_types import ( Datetime,...
32.504202
86
0.62849
4a1093092121c331a2a5dd34eafd7b5f48c16fa6
20,584
py
Python
rmgpy/speciesTest.py
pw0908/RMG-Py
3846fcce701f2a5fd12dbfa429687e9fcd647298
[ "MIT" ]
1
2022-01-24T05:08:32.000Z
2022-01-24T05:08:32.000Z
rmgpy/speciesTest.py
pw0908/RMG-Py
3846fcce701f2a5fd12dbfa429687e9fcd647298
[ "MIT" ]
null
null
null
rmgpy/speciesTest.py
pw0908/RMG-Py
3846fcce701f2a5fd12dbfa429687e9fcd647298
[ "MIT" ]
1
2021-08-17T09:11:14.000Z
2021-08-17T09:11:14.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
55.037433
288
0.56748
4a1093d3fabd9731581d487bcbee63acf0dbcea3
117
py
Python
saleor/search/backends/postgresql.py
angeles-ricardo-89/saleor
5fab7a883d025bff83320fbdd557ed7afa2923a9
[ "BSD-3-Clause" ]
4
2021-03-27T16:38:48.000Z
2021-10-18T12:54:15.000Z
saleor/search/backends/postgresql.py
DuongHieuMAI/saleor
e20b6283182f3a2886fe36fcdef8e47e4fcf7a14
[ "CC-BY-4.0" ]
51
2019-12-06T08:06:07.000Z
2021-05-06T02:10:50.000Z
saleor/search/backends/postgresql.py
DuongHieuMAI/saleor
e20b6283182f3a2886fe36fcdef8e47e4fcf7a14
[ "CC-BY-4.0" ]
12
2019-03-21T03:24:58.000Z
2022-01-13T10:55:34.000Z
from . import postgresql_storefront def search_storefront(phrase): return postgresql_storefront.search(phrase)
19.5
47
0.820513
4a1093f24a67169d946e958ff7e9ea14bd5a5cb8
1,528
py
Python
cleaner.py
gokaykucuk/password_cleaner
5dd651f920d61f3ce4f7d85a75df053b40f93a5d
[ "MIT" ]
null
null
null
cleaner.py
gokaykucuk/password_cleaner
5dd651f920d61f3ce4f7d85a75df053b40f93a5d
[ "MIT" ]
8
2021-02-02T22:44:24.000Z
2022-03-12T00:22:09.000Z
cleaner.py
gokaykucuk/valut_cleaner
5dd651f920d61f3ce4f7d85a75df053b40f93a5d
[ "MIT" ]
null
null
null
# To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% [markdown] # ### Setup # # %% import re import pandas as pd import numpy as np from tldextract import extract dirty_passwords_file = "in.csv" passwords_df = pd.read_csv(dirty_passwords_file) # %% [markdown] # ### Clean Uri's ...
20.931507
94
0.683901
4a1094d47e8a4e7b94679f78b5de6f4e6a5b2b18
518
py
Python
shopit/admin/customer.py
dinoperovic/djangoshop-shopit
b42a2bf0ec319817eb37ef939608b04498fc4ff2
[ "BSD-3-Clause" ]
14
2016-11-25T16:06:20.000Z
2018-08-30T19:20:41.000Z
shopit/admin/customer.py
dinoperovic/django-shop
b42a2bf0ec319817eb37ef939608b04498fc4ff2
[ "BSD-3-Clause" ]
3
2018-11-30T10:47:39.000Z
2019-10-21T10:21:24.000Z
shopit/admin/customer.py
dinoperovic/django-shop
b42a2bf0ec319817eb37ef939608b04498fc4ff2
[ "BSD-3-Clause" ]
6
2019-04-07T23:52:54.000Z
2020-09-20T05:30:07.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from django.contrib import admin from shop.admin.customer import CustomerAdminBase, CustomerInlineAdminBase, CustomerProxy class CustomerInlineAdmin(CustomerInlineAdminBase): readonly_fields = ['get_number', 'salutation', 'phone_num...
32.375
89
0.774131
4a10974cefa65abd9b25e1f03e80f0460d4b0096
46,586
py
Python
src/util/k5test.py
Bhanuprakash-ch/kerberos
bb3c878d5034210c656a97562065612611c5a6d2
[ "Apache-2.0" ]
2
2018-01-09T18:23:08.000Z
2018-07-24T23:14:15.000Z
src/util/k5test.py
Bhanuprakash-ch/kerberos
bb3c878d5034210c656a97562065612611c5a6d2
[ "Apache-2.0" ]
null
null
null
src/util/k5test.py
Bhanuprakash-ch/kerberos
bb3c878d5034210c656a97562065612611c5a6d2
[ "Apache-2.0" ]
3
2017-03-21T18:34:02.000Z
2020-01-22T19:11:53.000Z
# Copyright (C) 2010 by the Massachusetts Institute of Technology. # All rights reserved. # Export of this software from the United States of America may # require a specific license from the United States Government. # It is the responsibility of any person or organization contemplating # export to obtain such ...
38.692691
79
0.645237
4a1097be4aecc12c4770815b2bc22cd38ddf8c06
2,818
py
Python
SSDBM_figures/runtime_eval/add_explicit_runtimes.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
null
null
null
SSDBM_figures/runtime_eval/add_explicit_runtimes.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
1
2019-12-12T09:20:00.000Z
2019-12-12T09:20:00.000Z
SSDBM_figures/runtime_eval/add_explicit_runtimes.py
dennlinger/hypergraph-document-store
72b90119b163b92254c73442bee52cde55e58517
[ "MIT" ]
1
2021-07-22T14:16:47.000Z
2021-07-22T14:16:47.000Z
""" Attempt at a first template script to evaluate runtimes for the explicit model in Postgres. """ from PostgresConnector_SSDBM import PostgresConnector import json if __name__ == "__main__": print("Evaluation for Full Explicit Model") fn = "./entities.json" with open(fn) as f: data = json.load(...
44.03125
104
0.518453
4a1099066a9494c23100bd6ba1b51dd90f9f600e
1,355
py
Python
pardal/keyboard.py
anapaulagomes/pardal-python
d67ba1e0e67677320f37cab1288881ad7845612b
[ "MIT" ]
2
2019-01-30T22:35:44.000Z
2019-01-30T22:41:06.000Z
pardal/keyboard.py
anapaulagomes/pardal-python
d67ba1e0e67677320f37cab1288881ad7845612b
[ "MIT" ]
null
null
null
pardal/keyboard.py
anapaulagomes/pardal-python
d67ba1e0e67677320f37cab1288881ad7845612b
[ "MIT" ]
null
null
null
import configparser from pynput import keyboard keyboard_mapping = { 'command': keyboard.Key.cmd, 'windows': keyboard.Key.cmd, 'up': keyboard.Key.up, 'down': keyboard.Key.down, 'ctrl': keyboard.Key.ctrl, 'esc': keyboard.Key.esc, } def string_to_hotkeys(string): """Convert a hotkey string...
25.092593
67
0.6
4a10991653585f00ea819164d0e8a2496f418ed6
4,237
py
Python
markdown_generator/talks.py
gijswijnholds/gijswijnholds.github.io
0d6e1b95e6e73539c4dd900e321aace6e613ec87
[ "MIT" ]
null
null
null
markdown_generator/talks.py
gijswijnholds/gijswijnholds.github.io
0d6e1b95e6e73539c4dd900e321aace6e613ec87
[ "MIT" ]
4
2020-02-25T16:08:46.000Z
2022-02-26T04:41:34.000Z
markdown_generator/talks.py
gijswijnholds/gijswijnholds.github.io
0d6e1b95e6e73539c4dd900e321aace6e613ec87
[ "MIT" ]
null
null
null
# coding: utf-8 # # Talks markdown generator for academicpages # # Takes a TSV of talks with metadata and converts them for use with [academicpages.github.io](academicpages.github.io). This is an interactive Jupyter notebook ([see more info here](http://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/what_is...
34.447154
420
0.650224
4a10994246362c25f988aa6fc6f3f4deae5af122
753
py
Python
hackerrank/Algorithms/Gaming Array/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerrank/Algorithms/Gaming Array/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerrank/Algorithms/Gaming Array/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
#!/bin/python3 import os # # Complete the 'gamingArray' function below. # # The function is expected to return a STRING. # The function accepts INTEGER_ARRAY arr as parameter. # def gamingArray(arr): # Write your code here count = 0 # Keeps track of number of turns played m = 0 # Maximum Number fo...
19.307692
54
0.583001
4a1099bc0b60e16602e56f680a7402e154277819
4,707
py
Python
core/controllers/classroom_test.py
davehenton/oppia
62a9e9ea8458632e39b8ab4cf15b0489ac1acad9
[ "Apache-2.0" ]
2
2019-12-02T18:56:49.000Z
2020-03-14T17:14:15.000Z
core/controllers/classroom_test.py
Ketan-Suthar/oppia
0eed7bb069b55396d0908ba232d8ef4517231dc2
[ "Apache-2.0" ]
2
2019-09-11T23:11:48.000Z
2019-11-29T06:04:52.000Z
core/controllers/classroom_test.py
Ketan-Suthar/oppia
0eed7bb069b55396d0908ba232d8ef4517231dc2
[ "Apache-2.0" ]
2
2019-12-02T18:56:56.000Z
2020-03-16T08:03:45.000Z
# Copyright 2018 The Oppia 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 ...
40.930435
78
0.682813
4a109a257eb79270c0876f2813c66dfa92b0019e
1,585
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GLE/exceptional.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GLE/exceptional.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/GLE/exceptional.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
"""GLE exceptional functions (specialised signatures""" from OpenGL.raw import GLE as raw from OpenGL.raw.GLE import annotations as simple from OpenGL import wrapper, arrays class _lengthOfArgname( object ): """Calculates the length of a given argname over a divisor value""" def __init__( self, arrayName, divisor, ...
36.022727
81
0.756467
4a109aada44d4c3ddb502144bb035c7d94c7d33f
2,463
py
Python
Blackjack/main.py
rahul1981b/PY
8b73e9e8df9cd75a28dc00f66b28b461c43d0352
[ "Apache-2.0" ]
null
null
null
Blackjack/main.py
rahul1981b/PY
8b73e9e8df9cd75a28dc00f66b28b461c43d0352
[ "Apache-2.0" ]
null
null
null
Blackjack/main.py
rahul1981b/PY
8b73e9e8df9cd75a28dc00f66b28b461c43d0352
[ "Apache-2.0" ]
null
null
null
## The deck is unlimited in size. ## There are no jokers. ## The Jack/Queen/King all count as 10. ## The the Ace can count as 11 or 1. ## Use the following list as the deck of cards: ## cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] ## The cards in the list have equal probability of being drawn. ## Cards are no...
30.036585
85
0.667479
4a109ae6759cd35826eda9107679c7e6484331db
7,828
py
Python
tests/unit/test_CountingUtils.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_CountingUtils.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
null
null
null
tests/unit/test_CountingUtils.py
ylipacbio/pbtranscript
6b4ef164f191ffd4201feb62b951d9eeac3315b6
[ "BSD-3-Clause" ]
1
2021-02-26T10:08:09.000Z
2021-02-26T10:08:09.000Z
"""Test classes defined within pbtranscript.counting.CountUtils.""" import unittest import os.path as op from pbcore.util.Process import backticks from pbtranscript.Utils import rmpath, mkdir from pbtranscript.io import ReadStatReader, AbundanceReader from pbtranscript.counting.CountingUtils import read_group_file, \ ...
52.536913
102
0.655468
4a109b410640620267f0d134ed68c60d0b592699
1,977
py
Python
src/aks-preview/azext_aks_preview/__init__.py
Santhoshstark06/azure-cli-extensions
bff1ad5cffea31a9e0f597a11b0c72c49d826f52
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/__init__.py
Santhoshstark06/azure-cli-extensions
bff1ad5cffea31a9e0f597a11b0c72c49d826f52
[ "MIT" ]
null
null
null
src/aks-preview/azext_aks_preview/__init__.py
Santhoshstark06/azure-cli-extensions
bff1ad5cffea31a9e0f597a11b0c72c49d826f52
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.019231
99
0.634294
4a109b9a102b2bde3ba94b7d8c4cbdaa1038af58
239,859
py
Python
pysnmp-with-texts/DC-ISIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DC-ISIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DC-ISIS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DC-ISIS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DC-ISIS-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:37:06 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
163.169388
10,882
0.786587
4a109c3263b87f4410d949343dc5e48ad36945b9
7,056
py
Python
ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
ask-smapi-model/ask_smapi_model/v1/audit_logs/request_filters.py
Signal-Kinetics/alexa-apis-for-python
abb8d3dce18a5510c48b215406ed36c024f01495
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
45.522581
224
0.671627
4a109c9c1614774e3067e716f300377c9e54b0a7
24,167
py
Python
dopamine/agents/dqn/dqn_agent.py
szk9876/dopamine
7176aefbdaa880893bbde89350de7a9b42d81a31
[ "Apache-2.0" ]
null
null
null
dopamine/agents/dqn/dqn_agent.py
szk9876/dopamine
7176aefbdaa880893bbde89350de7a9b42d81a31
[ "Apache-2.0" ]
null
null
null
dopamine/agents/dqn/dqn_agent.py
szk9876/dopamine
7176aefbdaa880893bbde89350de7a9b42d81a31
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Dopamine Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
40.211314
129
0.703645
4a109e75b30c9ffd59ff2445e9567bc5bf2d6287
1,384
py
Python
test/ts4/abstract/common.py
tonred/auction
a5660d3d901708e28a84d7af79aa2c711d7d759c
[ "Apache-2.0" ]
1
2021-05-13T20:25:30.000Z
2021-05-13T20:25:30.000Z
test/ts4/abstract/common.py
tonred/auction
a5660d3d901708e28a84d7af79aa2c711d7d759c
[ "Apache-2.0" ]
null
null
null
test/ts4/abstract/common.py
tonred/auction
a5660d3d901708e28a84d7af79aa2c711d7d759c
[ "Apache-2.0" ]
1
2022-01-12T10:35:26.000Z
2022-01-12T10:35:26.000Z
from tonos_ts4 import ts4 from abstract.base import BaseAuctionTest from utils.phase import Phase class CommonAuctionTest(BaseAuctionTest): START_TIME = 10 OPEN_DURATION = 40 def test_open_time(self): open_time = self.contract.call_getter('getOpenTime') open_time_expected = { ...
34.6
77
0.653902
4a109eda8fafdbb2313fd6b82b0bdd80f618301d
162
py
Python
src/robusta/runner/not_found_exception.py
kandahk/robusta
61a2001cb1c4e90e8a74b810463ec99e6cb80787
[ "MIT" ]
273
2021-12-28T20:48:48.000Z
2022-03-31T16:03:13.000Z
src/robusta/runner/not_found_exception.py
kandahk/robusta
61a2001cb1c4e90e8a74b810463ec99e6cb80787
[ "MIT" ]
103
2022-01-10T11:45:47.000Z
2022-03-31T16:31:11.000Z
src/robusta/runner/not_found_exception.py
kandahk/robusta
61a2001cb1c4e90e8a74b810463ec99e6cb80787
[ "MIT" ]
35
2021-12-30T15:30:14.000Z
2022-03-28T11:43:57.000Z
from requests import RequestException class NotFoundException(RequestException): """The resource was not found, and the operation could not be completed"""
27
78
0.790123
4a109ee9bd01c9b75eb2cd26c53a2496907b7cfe
3,274
py
Python
base/gui.py
jandecaluwe/ca
33a763a8a8d181801d06fc4f12250173de29a8ca
[ "MIT" ]
2
2015-03-08T04:39:51.000Z
2016-07-25T21:30:44.000Z
base/gui.py
jandecaluwe/ca
33a763a8a8d181801d06fc4f12250173de29a8ca
[ "MIT" ]
null
null
null
base/gui.py
jandecaluwe/ca
33a763a8a8d181801d06fc4f12250173de29a8ca
[ "MIT" ]
null
null
null
from Tkinter import * import colorsys from ca.base.universe import Universe class CellGui(Label): def __init__(self, parent, cell, colormap): Label.__init__(self, parent, relief="raised", width=2, borderwidth=1) self.cell = cell self.colormap = colormap self.bind("<Bu...
30.314815
77
0.587049
4a109f54c53b7dd059210fa97e248ec7fb176f85
1,035
py
Python
build/_downloads/dad14b12bc3f8f308412fda21618b628/two_layer_net_numpy.py
ScorpioDoctor/antares02
631b817d2e98f351d1173b620d15c4a5efed11da
[ "BSD-3-Clause" ]
null
null
null
build/_downloads/dad14b12bc3f8f308412fda21618b628/two_layer_net_numpy.py
ScorpioDoctor/antares02
631b817d2e98f351d1173b620d15c4a5efed11da
[ "BSD-3-Clause" ]
null
null
null
build/_downloads/dad14b12bc3f8f308412fda21618b628/two_layer_net_numpy.py
ScorpioDoctor/antares02
631b817d2e98f351d1173b620d15c4a5efed11da
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ 热身: numpy -------------- 一个完全连接的ReLU网络,只有一个隐藏层,没有偏置,最小化欧氏误差训练从x预测y。 此实现使用numpy手动计算向前传递、损失和反向传递。 numpy数组是一个通用的n维数组;它不知道任何关于深度学习、梯度或计算图的知识,它只是执行通用数字计算的一种方法。 """ import numpy as np # N is batch size; D_in is input dimension; # H is hidden dimension; D_out is output dimension. N, D_in, H, D_...
21.5625
58
0.646377
4a109f7b5508f50e52f108016556109a39e36468
1,339
py
Python
oui_lookup.py
bahbyega/arp-sniffer
fc1ce391d953aadf40e7417f98a1c4f908797782
[ "MIT" ]
null
null
null
oui_lookup.py
bahbyega/arp-sniffer
fc1ce391d953aadf40e7417f98a1c4f908797782
[ "MIT" ]
null
null
null
oui_lookup.py
bahbyega/arp-sniffer
fc1ce391d953aadf40e7417f98a1c4f908797782
[ "MIT" ]
null
null
null
import os import re import time from getpass import getuser from typing import ByteString from urllib.request import urlopen USER_HOME = "~" + getuser() OUI_FILE_STORE = os.path.join(os.path.expanduser(USER_HOME), ".oui-cache") CACHE_TIME = 2592000 # 30 days update IEEE_URL = "http://standards-oui.ieee.org/oui/oui....
24.796296
74
0.643017
4a109f8f12dbf45618f8e68495fb94901d112c0d
11,071
py
Python
Gaussian_Mixture_Model.py
BrunoDatoMeneses/Pattern-Recognition-vowel-work
9eed7db4fb8818880339341d9599fa3e1df61ec5
[ "CC0-1.0" ]
null
null
null
Gaussian_Mixture_Model.py
BrunoDatoMeneses/Pattern-Recognition-vowel-work
9eed7db4fb8818880339341d9599fa3e1df61ec5
[ "CC0-1.0" ]
null
null
null
Gaussian_Mixture_Model.py
BrunoDatoMeneses/Pattern-Recognition-vowel-work
9eed7db4fb8818880339341d9599fa3e1df61ec5
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Bruno Dato """ import math import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import itertools from sklearn.metrics import confusion_matrix from mpl_toolkits.mplot3d import Axes3D from sklearn.decomposition import PCA from sklearn.preprocessing import sca...
31.99711
138
0.646464
4a109f904e28bf0d5ad1e17e9fad7e818daef3f1
1,321
py
Python
autobahn/wamp/gen/wamp/proto/Message.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
1,670
2015-10-12T15:46:22.000Z
2022-03-30T22:12:53.000Z
autobahn/wamp/gen/wamp/proto/Message.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
852
2015-10-16T22:11:03.000Z
2022-03-27T07:57:01.000Z
autobahn/wamp/gen/wamp/proto/Message.py
rapyuta-robotics/autobahn-python
c08e9e352d526a7fd0885bb94706366a432ada1a
[ "MIT" ]
790
2015-10-15T08:46:12.000Z
2022-03-30T12:22:13.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: proto import flatbuffers class Message(object): __slots__ = ['_tab'] @classmethod def GetRootAsMessage(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Message() ...
31.452381
127
0.665405
4a10a05b5038a996c27a4a48af5ec8dd0ec21f02
20
py
Python
app/aandete/model/__init__.py
stefanv/aandete
bb2833914e47389a735f11c683203d1243e44cb6
[ "BSD-3-Clause" ]
null
null
null
app/aandete/model/__init__.py
stefanv/aandete
bb2833914e47389a735f11c683203d1243e44cb6
[ "BSD-3-Clause" ]
null
null
null
app/aandete/model/__init__.py
stefanv/aandete
bb2833914e47389a735f11c683203d1243e44cb6
[ "BSD-3-Clause" ]
null
null
null
from model import *
10
19
0.75
4a10a077d5add06d8cdf7a9651fc6742f87d810b
4,722
py
Python
tests/test_output_json.py
woodruffw-forks/cyclonedx-python-lib
395a0ec14ebcba8e0849a0ced30ec4163c42fa7a
[ "Apache-2.0" ]
null
null
null
tests/test_output_json.py
woodruffw-forks/cyclonedx-python-lib
395a0ec14ebcba8e0849a0ced30ec4163c42fa7a
[ "Apache-2.0" ]
null
null
null
tests/test_output_json.py
woodruffw-forks/cyclonedx-python-lib
395a0ec14ebcba8e0849a0ced30ec4163c42fa7a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # This file is part of CycloneDX Python Lib # # 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 applic...
47.69697
114
0.69928
4a10a1dd1421c69672b170a0bb0565c9b9e20a56
503
py
Python
rss-reader/rss_reader/models/base.py
mrR2D2/rss-tg-bot
0400595e6f2ea7dce975cadbd50e3ac05400b9ec
[ "MIT" ]
null
null
null
rss-reader/rss_reader/models/base.py
mrR2D2/rss-tg-bot
0400595e6f2ea7dce975cadbd50e3ac05400b9ec
[ "MIT" ]
null
null
null
rss-reader/rss_reader/models/base.py
mrR2D2/rss-tg-bot
0400595e6f2ea7dce975cadbd50e3ac05400b9ec
[ "MIT" ]
null
null
null
""" Module with the Base model. """ import sqlalchemy as sa from sqlalchemy.ext import declarative from rss_reader import utils @declarative.as_declarative() class Base: """ Base model. """ id = sa.Column(sa.Integer, primary_key=True) @declarative.declared_attr def __tablename__(cls) -> str...
20.958333
71
0.666004
4a10a21fca5c84d9c2050765ba35d7aba75c6bef
3,190
py
Python
tests/algorithms/multiway/test_quickmatch.py
fxdupe/graphmatchingtools
4503a04c4a0822315535e6ab3cd698417859908d
[ "MIT" ]
null
null
null
tests/algorithms/multiway/test_quickmatch.py
fxdupe/graphmatchingtools
4503a04c4a0822315535e6ab3cd698417859908d
[ "MIT" ]
null
null
null
tests/algorithms/multiway/test_quickmatch.py
fxdupe/graphmatchingtools
4503a04c4a0822315535e6ab3cd698417859908d
[ "MIT" ]
1
2022-02-25T09:11:19.000Z
2022-02-25T09:11:19.000Z
from unittest import TestCase import numpy as np import networkx as nx import graph_matching_tools.algorithms.multiway.quickmatch as qm import graph_matching_tools.algorithms.kernels.gaussian as kern import graph_matching_tools.algorithms.kernels.utils as utils class TestQuickMatch(TestCase): def test_compute_d...
34.301075
112
0.549216
4a10a31013cbc172b28bf15298e7caa33b9c2727
28,746
py
Python
aries_cloudagent/ledger/indy.py
DibbsZA/aries-cloudagent-python
a094dd7697023721ac2a2fd4e58b04d4b37d1f44
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/ledger/indy.py
DibbsZA/aries-cloudagent-python
a094dd7697023721ac2a2fd4e58b04d4b37d1f44
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/ledger/indy.py
DibbsZA/aries-cloudagent-python
a094dd7697023721ac2a2fd4e58b04d4b37d1f44
[ "Apache-2.0" ]
null
null
null
"""Indy ledger implementation.""" import asyncio import json import logging import re import tempfile from hashlib import sha256 from os import path from datetime import datetime, date from typing import Sequence, Type import indy.anoncreds import indy.ledger import indy.pool from indy.error import IndyError, ErrorCo...
36.619108
88
0.59403
4a10a34f705caa3081620f43c76c888ecf0d855e
1,547
py
Python
pipeline_plugins/components/http.py
SHUN-YI/bk-sops
a4a841bdc44a18518c6c53c04a02996ddc7da2be
[ "Apache-2.0" ]
2
2019-08-15T10:06:26.000Z
2019-09-17T11:49:20.000Z
pipeline_plugins/components/http.py
SHUN-YI/bk-sops
a4a841bdc44a18518c6c53c04a02996ddc7da2be
[ "Apache-2.0" ]
null
null
null
pipeline_plugins/components/http.py
SHUN-YI/bk-sops
a4a841bdc44a18518c6c53c04a02996ddc7da2be
[ "Apache-2.0" ]
1
2020-07-03T06:45:07.000Z
2020-07-03T06:45:07.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
38.675
305
0.714932
4a10a4a2023f62e318ebaa311cc8c86bf4676ac0
1,894
py
Python
proyectoFinal/preprocessing.py
dcabezas98/AA
c849f0453347eda34a114a217077934a0c2f41fc
[ "MIT" ]
null
null
null
proyectoFinal/preprocessing.py
dcabezas98/AA
c849f0453347eda34a114a217077934a0c2f41fc
[ "MIT" ]
null
null
null
proyectoFinal/preprocessing.py
dcabezas98/AA
c849f0453347eda34a114a217077934a0c2f41fc
[ "MIT" ]
null
null
null
# Aprendizaje Automático: Proyecto Final # Clasificación de símbolos Devanagari # Patricia Córdoba Hidalgo # David Cabezas Berrido # preprocessing.py # Preprocesado de imágenes: centrado y eliminación de dimensionalidad # promediando por bloques import numpy as np from skimage.filters import threshold_otsu from skim...
29.59375
81
0.717529
4a10a4a2b4e6679e023e2ce8440aede494281d6c
32,618
py
Python
src/azure-cli-core/azure/cli/core/util.py
digimaun/azure-cli
298994660f0fde6863cb45a7c3142141ed10f923
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/util.py
digimaun/azure-cli
298994660f0fde6863cb45a7c3142141ed10f923
[ "MIT" ]
null
null
null
src/azure-cli-core/azure/cli/core/util.py
digimaun/azure-cli
298994660f0fde6863cb45a7c3142141ed10f923
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
37.665127
172
0.64259
4a10a52f287ba27619c4a56d4743c9443260c758
5,121
py
Python
tests/schemas/test_well_schema.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
null
null
null
tests/schemas/test_well_schema.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
null
null
null
tests/schemas/test_well_schema.py
la-mar/prodstats
4ff5a6e0b0d6152af2d7e1f3844ede2d33ad4824
[ "MIT" ]
1
2021-01-05T18:58:08.000Z
2021-01-05T18:58:08.000Z
import logging from datetime import date, datetime import pytest from pydantic import ValidationError import schemas.well as sch logger = logging.getLogger(__name__) class TestWellDates: @pytest.fixture def dates(self): yield { "permit": "2018-06-28", "permit_expiration": "2...
29.431034
71
0.548526
4a10a638f04acb9d7e10a92bc1a9211c8368cdb6
4,236
py
Python
LeetCode/hard/reverse_nodes_in_k_group.py
hnc01/online-judge
d306dc32c9d8600a987affbe4e4b80809f0b0982
[ "MIT" ]
null
null
null
LeetCode/hard/reverse_nodes_in_k_group.py
hnc01/online-judge
d306dc32c9d8600a987affbe4e4b80809f0b0982
[ "MIT" ]
null
null
null
LeetCode/hard/reverse_nodes_in_k_group.py
hnc01/online-judge
d306dc32c9d8600a987affbe4e4b80809f0b0982
[ "MIT" ]
null
null
null
''' https://leetcode.com/problems/reverse-nodes-in-k-group/ 25. Reverse Nodes in k-Group Given the head of a linked list, reverse the nodes of the list k at a time, and return the modified list. k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes...
31.849624
110
0.574127
4a10a67061345a12c7b65badb32dd08a4b4754a5
5,990
gyp
Python
device/bluetooth/bluetooth.gyp
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-01-16T03:57:39.000Z
2019-01-16T03:57:39.000Z
device/bluetooth/bluetooth.gyp
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
device/bluetooth/bluetooth.gyp
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:23:37.000Z
2020-11-04T07:23:37.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, }, 'targets': [ { # GN version: //device/bluetooth 'target_name': 'device_bluetooth', 't...
35.654762
97
0.609683
4a10a7947add883a72cedaafd08e4af9654b346b
44,367
py
Python
test/test_ui.py
stragu/beets
da46a62772ab7a88c5799c84841f744dfc0f0a20
[ "MIT" ]
null
null
null
test/test_ui.py
stragu/beets
da46a62772ab7a88c5799c84841f744dfc0f0a20
[ "MIT" ]
null
null
null
test/test_ui.py
stragu/beets
da46a62772ab7a88c5799c84841f744dfc0f0a20
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 t...
34.473193
79
0.608966
4a10a8f71f19e8fbfb9bce36eec2b1ffd5ada600
1,739
py
Python
moviepy/video/fx/margin.py
antiboredom/moviepy
3b797c6967a0dcd8a4b04b328d7d7a769c2058b4
[ "MIT" ]
1
2015-03-07T01:16:15.000Z
2015-03-07T01:16:15.000Z
moviepy/video/fx/margin.py
antiboredom/moviepy
3b797c6967a0dcd8a4b04b328d7d7a769c2058b4
[ "MIT" ]
null
null
null
moviepy/video/fx/margin.py
antiboredom/moviepy
3b797c6967a0dcd8a4b04b328d7d7a769c2058b4
[ "MIT" ]
null
null
null
import numpy as np from moviepy.decorators import apply_to_mask from moviepy.video.VideoClip import ImageClip @apply_to_mask def margin(clip, mar=None, left=0, right=0, top=0, bottom=0, color=(0, 0, 0), opacity = 1.0): """ Draws an external margin all around the frame. :param mar: if not `...
28.983333
70
0.529615
4a10a9332d4d085a4676b18b04eec3fa26f4aa84
705
py
Python
cased_django/tests/test_app/settings.py
cased/cased-django
017347124c2773fe54f46ed9dd8c65d74e9c760e
[ "MIT" ]
2
2021-01-30T07:52:07.000Z
2021-02-26T23:06:37.000Z
cased_django/tests/test_app/settings.py
cased/cased-django
017347124c2773fe54f46ed9dd8c65d74e9c760e
[ "MIT" ]
null
null
null
cased_django/tests/test_app/settings.py
cased/cased-django
017347124c2773fe54f46ed9dd8c65d74e9c760e
[ "MIT" ]
null
null
null
import os DB_NAME = os.path.abspath(os.path.dirname(__name__)) + "/cased_test_db" CASED_PUBLISH_KEY = "test-key-123" CASED_API_BASE = "https://api.example.com" CASED_PUBLISH_BASE = "https://publish.example.com" CASED_DISABLE_PUBLISHING = True CASED_RELIABILITY_BACKEND = "redis" SECRET_KEY = "test-key" CASED_SENSITIVE...
23.5
82
0.737589
4a10a94b7e65d4b2fe826d99fad6f62c5381092c
423
py
Python
top/urls.py
inunekousapon/stored_diff
1cc2cf1fb8a6ef4f839b5ecef0014f4d230d8d01
[ "MIT" ]
1
2021-09-27T13:23:29.000Z
2021-09-27T13:23:29.000Z
top/urls.py
inunekousapon/stored_diff
1cc2cf1fb8a6ef4f839b5ecef0014f4d230d8d01
[ "MIT" ]
6
2020-06-05T22:25:10.000Z
2022-02-10T12:24:56.000Z
top/urls.py
inunekousapon/stored_diff
1cc2cf1fb8a6ef4f839b5ecef0014f4d230d8d01
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("", views.IndexView.as_view()), path("sync", views.sync, name="sync"), path("<str:name>", views.DetailView.as_view(), name="detail"), path("<str:name>/<str:target>/raw", views.RawView.as_view(), name="raw"), path( "<str:...
26.4375
77
0.600473
4a10a99ab33f0bfe814eb50be561431d8b03112c
1,853
py
Python
demos/nn_regression_demo2.py
fire-breathing-rubber-lemons/cs207-FinalProject
92d1d7d70637e2478effb01c9ce56199e0f873c9
[ "MIT" ]
null
null
null
demos/nn_regression_demo2.py
fire-breathing-rubber-lemons/cs207-FinalProject
92d1d7d70637e2478effb01c9ce56199e0f873c9
[ "MIT" ]
31
2019-10-18T16:14:07.000Z
2019-12-10T16:38:34.000Z
demos/nn_regression_demo2.py
fire-breathing-rubber-lemons/cs207-FinalProject
92d1d7d70637e2478effb01c9ce56199e0f873c9
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from pyad.nn import NeuralNet from sklearn.datasets import load_boston from sklearn.model_selection import train_test_split from sklearn import preprocessing np.random.seed(0) X, y = load_boston(return_X_y=True) X_scaled = preprocessing.scale(X) y_scaled = preproces...
27.656716
72
0.704263
4a10a9c203b57cdc71847902fef8b753124c5541
497
py
Python
server/curriculum/service.py
kenny-skaggs/apella
6591724b33ec5249f31f73e09a9532472ba2c7cd
[ "MIT" ]
null
null
null
server/curriculum/service.py
kenny-skaggs/apella
6591724b33ec5249f31f73e09a9532472ba2c7cd
[ "MIT" ]
null
null
null
server/curriculum/service.py
kenny-skaggs/apella
6591724b33ec5249f31f73e09a9532472ba2c7cd
[ "MIT" ]
null
null
null
from curriculum import html_processing, model, repository def store_page(page: model.Page): # TODO: have a way to parse/modify and save the html in the same upsert transaction upsert_page = repository.PageRepository.upsert(page) parser = html_processing.QuestionParser(page_id=upsert_page.id) upsert_...
35.5
87
0.790744
4a10a9eb8659ef470ecba83fd1dde28745fa1d73
2,717
py
Python
search/podcast.py
FaazAbidi/data-enrichment-service
7c8203f17d70fea533cb83ee34a714114234e0b6
[ "MIT" ]
2
2021-02-19T06:05:46.000Z
2021-07-17T10:01:13.000Z
search/podcast.py
FaazAbidi/data-enrichment-service
7c8203f17d70fea533cb83ee34a714114234e0b6
[ "MIT" ]
52
2020-05-08T20:52:20.000Z
2020-08-06T10:30:29.000Z
search/podcast.py
FaazAbidi/data-enrichment-service
7c8203f17d70fea533cb83ee34a714114234e0b6
[ "MIT" ]
null
null
null
import spotipy from spotipy.oauth2 import SpotifyClientCredentials import difflib from concurrent.futures import ThreadPoolExecutor import os spotify_client_id = os.getenv('SPOTIFY_CLIENT_ID') spotify_client_skey = os.getenv('SPOTIFY_CLIENT_SKEY') spotify = spotipy.Spotify( client_credentials_manager=Sp...
28.904255
87
0.599926