hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
d6640fe2dcd11b0460e228747652381b73af179f
1,685
py
Python
src/api/proxy/proxy.py
HaoJiangGuo/fp-server
9c00b8f0ee64049eb9f214c3efe1fdee977542a6
[ "MIT" ]
2
2018-08-17T06:56:21.000Z
2019-01-08T03:10:32.000Z
src/api/proxy/proxy.py
HaoJiangGuo/fp-server
9c00b8f0ee64049eb9f214c3efe1fdee977542a6
[ "MIT" ]
null
null
null
src/api/proxy/proxy.py
HaoJiangGuo/fp-server
9c00b8f0ee64049eb9f214c3efe1fdee977542a6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ API for proxy """ from core import exceptions from core.web import WebHandler from service.proxy.serializers import ProxySerializer from service.proxy.proxy import proxy_srv from utils import log as logger from utils.routes import route
23.402778
68
0.591691
d66723dcef2bb7193246b5983ca2285df66c7c28
2,058
py
Python
projects/crawler_for_prodect_category/category_output/to_html.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
projects/crawler_for_prodect_category/category_output/to_html.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
projects/crawler_for_prodect_category/category_output/to_html.py
ice-melt/python-lib
345e34fff7386d91acbb03a01fd4127c5dfed037
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from projects.crawler_for_prodect_category.category_output import output_utils import codecs Logger = output_utils.Logger def output(filename, datas): """ html :return: """ Logger.info('Output to html file, please wait ...') # object_serialize('object.pkl',self.datas) #...
43.787234
113
0.573372
d66748bfb42fb82f0c12adab0e031e9250276edd
2,947
py
Python
build/lib/WORC/featureprocessing/SelectIndividuals.py
Sikerdebaard/PREDICTFastr
e1f172c3606e6f33edf58008f958dcd1c0ac5b7b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/lib/WORC/featureprocessing/SelectIndividuals.py
Sikerdebaard/PREDICTFastr
e1f172c3606e6f33edf58008f958dcd1c0ac5b7b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
build/lib/WORC/featureprocessing/SelectIndividuals.py
Sikerdebaard/PREDICTFastr
e1f172c3606e6f33edf58008f958dcd1c0ac5b7b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016-2019 Biomedical Imaging Group Rotterdam, Departments of # Medical Informatics and Radiology, Erasmus MC, Rotterdam, The Netherlands # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obt...
35.506024
88
0.635562
d667529945c63e9ee84e1cddf5e8de3b084ac4c0
5,567
py
Python
hsv.py
FarinaMatteo/siv-project
fbac7c7c114db51d9fdcf90aba296906abdf91af
[ "MIT" ]
null
null
null
hsv.py
FarinaMatteo/siv-project
fbac7c7c114db51d9fdcf90aba296906abdf91af
[ "MIT" ]
null
null
null
hsv.py
FarinaMatteo/siv-project
fbac7c7c114db51d9fdcf90aba296906abdf91af
[ "MIT" ]
1
2021-04-13T11:22:06.000Z
2021-04-13T11:22:06.000Z
""" Background vs Foreground Image segmentation. The goal is to produce a segmentation map that imitates videocalls tools like the ones implemented in Google Meet, Zoom without using Deep Learning- or Machine Learning- based techniques. This script does the following: - builds a background model using the first 3s ...
43.492188
126
0.623496
d6690698841bc39fcf328d809c1ae9a9943d7b0f
1,279
py
Python
src/entities/relativeentity.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
3
2016-10-10T18:34:55.000Z
2017-08-02T15:18:28.000Z
src/entities/relativeentity.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
null
null
null
src/entities/relativeentity.py
alisonbento/steering-all
99797f99180dd64189ea5ed85ff71b66bfd9cf6f
[ "MIT" ]
null
null
null
from entity import Entity
22.839286
63
0.641908
d66b1cd60139d9cc3f50ee9f63aec7859add227e
6,967
py
Python
cuchem/cuchem/wf/cluster/gpurandomprojection.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
cuchem/cuchem/wf/cluster/gpurandomprojection.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
cuchem/cuchem/wf/cluster/gpurandomprojection.py
dorukozturk/cheminformatics
c0fa66dd4f4e6650d7286ae2be533c66b7a2b270
[ "Apache-2.0" ]
null
null
null
#!/opt/conda/envs/rapids/bin/python3 # # Copyright (c) 2020, NVIDIA 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 ...
35.912371
98
0.68724
d66bd0ab7aebd9b29dfa99993c201e892a501872
4,688
py
Python
calculate_iHSproportion.py
evodify/population-genetic-analyses
5295f9d68736ac02fc5f3ece43dadd5bf4e98e6f
[ "MIT" ]
3
2018-01-31T09:57:10.000Z
2021-02-03T18:34:01.000Z
calculate_iHSproportion.py
evodify/population-genetic-analyses
5295f9d68736ac02fc5f3ece43dadd5bf4e98e6f
[ "MIT" ]
null
null
null
calculate_iHSproportion.py
evodify/population-genetic-analyses
5295f9d68736ac02fc5f3ece43dadd5bf4e98e6f
[ "MIT" ]
1
2019-09-02T06:13:29.000Z
2019-09-02T06:13:29.000Z
#! /usr/bin/env python ''' This script calculates fractions of SNPs with iHS values above 2.0 over genomic windows of specified size. #Example input: #CHROM POS iHS chr1 14548 -3.32086 chr1 14670 -2.52 chr1 19796 0.977669 chr1 19798 3.604374 chr1 29412 -0.308192 chr1 29813 2.231736 chr1 29847 0.6594 chr1 29873 -2.0...
24.544503
73
0.600256
d66c0ed5c84f564a500b3ce340b852c977ab112f
2,176
py
Python
pkg/azure/resource_group.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
10
2021-01-02T11:59:46.000Z
2021-06-14T04:38:45.000Z
pkg/azure/resource_group.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
12
2021-01-06T07:02:22.000Z
2021-03-11T06:34:07.000Z
pkg/azure/resource_group.py
NihilBabu/xmigrate
c33d0b506a86a0ebef22df8ce299cd84f560d034
[ "Apache-2.0" ]
3
2021-01-10T12:33:52.000Z
2021-04-12T14:29:13.000Z
# Import the needed management objects from the libraries. The azure.common library # is installed automatically with the other libraries. from azure.common.client_factory import get_client_from_cli_profile from azure.mgmt.resource import ResourceManagementClient from utils.dbconn import * from utils.logger import * fr...
50.604651
108
0.68704
d66c1cc1ba3efab7c88083eacb18abf18bab0b53
1,049
py
Python
forexml.py
brawnydawg/forexml
62e623e6e7219ad8c7fbca05bf29ea79401741c5
[ "MIT" ]
2
2022-01-15T03:13:07.000Z
2022-01-15T03:13:14.000Z
forexml.py
brawnydawg/forex.ml
62e623e6e7219ad8c7fbca05bf29ea79401741c5
[ "MIT" ]
null
null
null
forexml.py
brawnydawg/forex.ml
62e623e6e7219ad8c7fbca05bf29ea79401741c5
[ "MIT" ]
null
null
null
import numpy from scipy import stats from modules import controler # To compile, us Auto Py to Exe: # Step 1 - install Auto Py to Exe, if not already done # To install the application run this line in cmd: # pip install auto-py-to-exe # To open the application run this line in cmd: # auto-py-to-exe # Step 2 - read the...
26.897436
74
0.653003
d66c664f346efdc6281f1b27109ddcac09232372
694
py
Python
bench/bench_argcomplete.py
solackerman/pytest
0fc00c02a7a39ebd6c57886a85580ea3341e76eb
[ "MIT" ]
4
2020-09-09T15:28:01.000Z
2021-12-01T00:59:56.000Z
bench/bench_argcomplete.py
solackerman/pytest
0fc00c02a7a39ebd6c57886a85580ea3341e76eb
[ "MIT" ]
7
2018-04-04T19:02:43.000Z
2018-04-11T19:03:58.000Z
bench/bench_argcomplete.py
solackerman/pytest
0fc00c02a7a39ebd6c57886a85580ea3341e76eb
[ "MIT" ]
1
2021-04-06T20:06:58.000Z
2021-04-06T20:06:58.000Z
# 10000 iterations, just for relative comparison # 2.7.5 3.3.2 # FilesCompleter 75.1109 69.2116 # FastFilesCompleter 0.7383 1.0760 if __name__ == '__main__': import sys import timeit from argcomplete.completers import FilesCompleter from _pytest._argcomplete im...
34.7
80
0.631124
d67095b77014549df9449d344e41a1c0d2d60ab6
374
py
Python
catalog/bindings/gmd/valid_time.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/valid_time.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/valid_time.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.time_edge_property_type import TimePrimitivePropertyType __NAMESPACE__ = "http://www.opengis.net/gml"
23.375
74
0.727273
d670c4735ca674e296208c80467697f931ec147e
2,020
py
Python
docs/examples/arch/full_rhino.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
docs/examples/arch/full_rhino.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
docs/examples/arch/full_rhino.py
GeneKao/compas_assembly
92fde9cd3948c1b9bb41b4ea7fc866392905182d
[ "MIT" ]
null
null
null
import os from compas_assembly.datastructures import Assembly from compas_assembly.geometry import Arch from compas_assembly.rhino import AssemblyArtist from compas.rpc import Proxy proxy = Proxy() proxy.restart_server() try: HERE = os.path.dirname(__file__) except NameError: HERE = os.getcwd() DATA = os.p...
29.275362
97
0.517327
d67132389d902c05a7f58bf458cc631ca552cd15
8,840
py
Python
grinpy/functions/degree.py
somacdivad/grinpy
597f9109b84f1c1aa8c8dd2ac5b572a05ba474de
[ "BSD-3-Clause" ]
12
2019-08-27T11:04:09.000Z
2022-03-03T07:38:42.000Z
grinpy/functions/degree.py
somacdivad/grinpy
597f9109b84f1c1aa8c8dd2ac5b572a05ba474de
[ "BSD-3-Clause" ]
18
2017-12-03T20:20:11.000Z
2019-07-07T18:04:54.000Z
grinpy/functions/degree.py
somacdivad/grinpy
597f9109b84f1c1aa8c8dd2ac5b572a05ba474de
[ "BSD-3-Clause" ]
5
2017-11-28T22:43:05.000Z
2021-07-02T08:48:43.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2017-2019 by # David Amos <somacdivad@gmail.com> # Randy Davila <davilar@uhd.edu> # BSD license. # # Authors: David Amos <somacdivad@gmail.com> # Randy Davila <davilar@uhd.edu> """Assorted degree related graph utilities. """ import collections from grinpy i...
21.82716
119
0.602149
d67252401050d3b5004b1ab15ef96c5d2e1fedcf
76
py
Python
tests/app/controller/webhook/github/events/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
tests/app/controller/webhook/github/events/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
tests/app/controller/webhook/github/events/__init__.py
angeleneleow/rocket2
649f49a94d123e78bfd014189e8fede31fa007f6
[ "MIT" ]
null
null
null
"""Contain the tests for the handlers of each supported GitHub webhook."""
38
75
0.75
d673caa4093bd3809cb0be9e8da138d53b90b322
3,860
py
Python
test/domain_types/test_polygon.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
null
null
null
test/domain_types/test_polygon.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
6
2022-02-02T16:52:33.000Z
2022-02-09T09:40:50.000Z
test/domain_types/test_polygon.py
covjson/covjson-validator
97b6ee445bfcc70ad73d731dce3d67aa4aafaf3a
[ "BSD-3-Clause" ]
null
null
null
# Pytests to test the Polygon domain type in the domain.json schema file import pytest from jsonschema.exceptions import ValidationError pytestmark = pytest.mark.schema("/schemas/domain") def test_missing_composite_axis(validator, polygon_domain): ''' Invalid: Polygon domain with missing 'composite' axis ''' ...
33.275862
97
0.690933
d6756e24400a0d5ab6ef197f69d25560e3bddcc6
1,516
py
Python
accounts/models.py
akahard2dj/DjangoBlackberry
4e732d8650dc7d61cd79033d5072d836707b411f
[ "MIT" ]
null
null
null
accounts/models.py
akahard2dj/DjangoBlackberry
4e732d8650dc7d61cd79033d5072d836707b411f
[ "MIT" ]
null
null
null
accounts/models.py
akahard2dj/DjangoBlackberry
4e732d8650dc7d61cd79033d5072d836707b411f
[ "MIT" ]
null
null
null
from django.conf import settings from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.auth.models import BaseUserManager, AbstractBaseUser from django.utils import timezone from rest_framework.authtoken.models import Token
26.596491
72
0.711082
d6769c3069694a7ae83fbef15106d40f42aed309
1,012
py
Python
tests/test_post.py
Alice-Githui/Blogger
1ae481cc9f2af78e459314c0f09d1bd0ccff614d
[ "MIT" ]
null
null
null
tests/test_post.py
Alice-Githui/Blogger
1ae481cc9f2af78e459314c0f09d1bd0ccff614d
[ "MIT" ]
null
null
null
tests/test_post.py
Alice-Githui/Blogger
1ae481cc9f2af78e459314c0f09d1bd0ccff614d
[ "MIT" ]
null
null
null
import unittest from app.models import Post,User from app import db
37.481481
135
0.692688
d67a53433e748b3dfe2f8fbd06b9c917a36aef79
8,439
py
Python
Game.py
KRHS-GameProgramming-2015/Manpac
959bf7f5195a4edb528fbbf25b8896fcb28d5327
[ "BSD-2-Clause" ]
null
null
null
Game.py
KRHS-GameProgramming-2015/Manpac
959bf7f5195a4edb528fbbf25b8896fcb28d5327
[ "BSD-2-Clause" ]
3
2016-01-19T17:26:16.000Z
2016-02-10T16:59:25.000Z
Game.py
KRHS-GameProgramming-2015/Manpac
959bf7f5195a4edb528fbbf25b8896fcb28d5327
[ "BSD-2-Clause" ]
null
null
null
import sys, pygame, math, random from Wall import * from Ghost import * from Manpac import * from Norb import * from Score import * pygame.init() clock = pygame.time.Clock() width = 700 height = 700 size = width, height bgColor = r,g,b = 0, 0, 0 screen = pygame.display.set_mode(size) while True: ghosts = [Gh...
31.371747
87
0.426472
d67b5cb25f09a20e3140a3f45e07da0db110f262
11,871
py
Python
SNDG/WebServices/Offtarget.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
null
null
null
SNDG/WebServices/Offtarget.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
null
null
null
SNDG/WebServices/Offtarget.py
ezequieljsosa/sndg-bio
5f709b5b572564ec1dfa40d090eca9a34295743e
[ "MIT" ]
1
2020-09-01T15:57:54.000Z
2020-09-01T15:57:54.000Z
import logging import multiprocessing import sys from Bio import Entrez from tqdm import tqdm from SNDG import execute, mkdir from SNDG.WebServices import download_file from SNDG.WebServices.NCBI import NCBI Entrez.email = 'A.N.Other@example.com' _log = logging.getLogger(__name__) from collections import defaultdi...
29.6775
190
0.701289
d67c213b9a36706b9d0346fd0b72cfdc78942fe2
855
py
Python
palabox/processing/text/properly_cut_text.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
palabox/processing/text/properly_cut_text.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
palabox/processing/text/properly_cut_text.py
marcoboucas/palabox
d6e937db909daac0f9d3c5dff2309c29b5b68ea8
[ "MIT" ]
null
null
null
"""Cut properly some text.""" import re END_OF_SENTENCE_CHARACTERS = {".", ";", "!", "?"} def properly_cut_text( text: str, start_idx: int, end_idx: int, nbr_before: int = 30, nbr_after: int = 30 ) -> str: """Properly cut a text around some interval.""" str_length = len(text) start_idx = max(0, star...
27.580645
88
0.604678
d67c4663259aa37ae4097e44e2683c283befb25b
1,307
py
Python
Level2/Lessons17687/gamjapark.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level2/Lessons17687/gamjapark.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
null
null
null
Level2/Lessons17687/gamjapark.py
StudyForCoding/ProgrammersLevel
dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25
[ "MIT" ]
1
2021-04-05T07:35:59.000Z
2021-04-05T07:35:59.000Z
# [3] n import string tmp = string.digits+string.ascii_uppercase[:6] ''' . 1 (0.01ms, 10.3MB) 2 (0.02ms, 10.3MB) 3 (0.02ms, 10.3MB) 4 (0.03ms, 10.4MB) 5 (0.11ms, 10.3MB) 6 (0.11ms, 10.4MB) 7 (0.21ms, 10.3MB) 8 (0.14ms, 10.3MB) 9 (0.12ms, 10.2MB) 10 (0.14ms, 10.3MB) 11 (0.14ms, 10...
22.534483
46
0.553175
d67ed600e6c41963e2d457d2e537a8860f022e80
1,292
py
Python
models/base.py
IlyaBizyaev/Im2Vec
4fff000c84500c6e977c502519497e27e1f946f2
[ "Apache-2.0" ]
null
null
null
models/base.py
IlyaBizyaev/Im2Vec
4fff000c84500c6e977c502519497e27e1f946f2
[ "Apache-2.0" ]
null
null
null
models/base.py
IlyaBizyaev/Im2Vec
4fff000c84500c6e977c502519497e27e1f946f2
[ "Apache-2.0" ]
null
null
null
from abc import abstractmethod from typing import Any, List import torch def reparameterize(mu: torch.Tensor, log_var: torch.Tensor) -> torch.Tensor: """ Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D] :param log_var: (Tensor) S...
28.711111
84
0.648607
d67f25d3516ae26ca8b76017de005e34113a7d6e
7,293
py
Python
process/triplifier.py
biocodellc/ontology-data-pipeline
f89dc159ab710368b3054bf8e8d70fb4c967527c
[ "BSD-3-Clause" ]
13
2020-06-27T18:37:12.000Z
2022-03-07T16:19:14.000Z
process/triplifier.py
biocodellc/ontology-data-pipeline
f89dc159ab710368b3054bf8e8d70fb4c967527c
[ "BSD-3-Clause" ]
31
2019-01-05T18:39:37.000Z
2021-12-13T19:43:40.000Z
process/triplifier.py
biocodellc/ontology-data-pipeline
f89dc159ab710368b3054bf8e8d70fb4c967527c
[ "BSD-3-Clause" ]
1
2021-11-17T19:04:31.000Z
2021-11-17T19:04:31.000Z
# -*- coding: utf-8 -*- import re import pandas as pd import multiprocessing from multiprocessing.dummy import Pool as ThreadPool import logging from .utils import isNull
39.209677
127
0.574935
d680bcdee688777add2842ce0bdbc8ac9c241004
455
py
Python
core/urls.py
tyronedamasceno/coffe-api
8cbf48c35c5dbd9ddfbeb921140be1d96a48698f
[ "MIT" ]
null
null
null
core/urls.py
tyronedamasceno/coffe-api
8cbf48c35c5dbd9ddfbeb921140be1d96a48698f
[ "MIT" ]
8
2020-02-12T02:59:28.000Z
2022-02-10T14:02:04.000Z
core/urls.py
tyronedamasceno/coffe-api
8cbf48c35c5dbd9ddfbeb921140be1d96a48698f
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework import routers from core import views router = routers.DefaultRouter() router.register('coffe_types', views.CoffeTypeViewSet, base_name='coffe_types') router.register('harvests', views.HarvestViewSet, base_name='harvests') router.register( 'storage_repor...
22.75
79
0.771429
d6812fee96c936a6d4abcdec5e68b3b5abdd5c3f
409
py
Python
api/core/models.py
vrmartins/poc-django-rest-framework
a4914c25c7decbe16f5233233e9da4dce57f64d8
[ "MIT" ]
null
null
null
api/core/models.py
vrmartins/poc-django-rest-framework
a4914c25c7decbe16f5233233e9da4dce57f64d8
[ "MIT" ]
7
2020-04-05T14:25:37.000Z
2021-09-22T18:50:16.000Z
api/core/models.py
vrmartins/poc-django-rest-framework
a4914c25c7decbe16f5233233e9da4dce57f64d8
[ "MIT" ]
null
null
null
from django.db import models from core.utils.cnpj_is_valid import cnpj_is_valid
34.083333
108
0.750611
d681b7a1e2748c8e44788cf4efd924a9d9b41944
5,876
py
Python
ros/src/waypoint_updater/waypoint_updater.py
ryan-jonesford/CarND-Capstone
f8095bb2b7370b0825a89d419c19884431dfb754
[ "MIT" ]
null
null
null
ros/src/waypoint_updater/waypoint_updater.py
ryan-jonesford/CarND-Capstone
f8095bb2b7370b0825a89d419c19884431dfb754
[ "MIT" ]
3
2018-11-04T23:54:56.000Z
2018-11-18T19:37:11.000Z
ros/src/waypoint_updater/waypoint_updater.py
ryan-jonesford/CarND-Capstone
f8095bb2b7370b0825a89d419c19884431dfb754
[ "MIT" ]
2
2018-10-29T23:45:15.000Z
2018-11-04T21:43:16.000Z
#!/usr/bin/env python import rospy from geometry_msgs.msg import PoseStamped from styx_msgs.msg import Lane, Waypoint from scipy.spatial import KDTree import numpy as np from std_msgs.msg import Int32 import math ''' This node will publish waypoints from the car's current position to some `x` distance ahead. As men...
36.955975
131
0.615895
d681e5845812f47217df144a4c421bd1734a615c
1,633
py
Python
tools/configure.py
corrodedHash/sigmarsGarden
c6070005d9e01523c0b0deb2efbbfa5ffef0ce6f
[ "MIT" ]
null
null
null
tools/configure.py
corrodedHash/sigmarsGarden
c6070005d9e01523c0b0deb2efbbfa5ffef0ce6f
[ "MIT" ]
null
null
null
tools/configure.py
corrodedHash/sigmarsGarden
c6070005d9e01523c0b0deb2efbbfa5ffef0ce6f
[ "MIT" ]
null
null
null
from typing import Any import cv2 import numpy as np from sigmarsGarden.config import Configuration from sigmarsGarden.parse import circle_coords if __name__ == "__main__": main()
24.014706
77
0.590325
d682adb11768d513c2f5a3a5ae14d06fb88db0b8
4,847
py
Python
gpt2_generate.py
LindgeW/PreLM
39a6b1c2fc0ccff7e8143f14d113cdfa79f63d79
[ "Apache-2.0" ]
1
2022-03-09T14:40:24.000Z
2022-03-09T14:40:24.000Z
gpt2_generate.py
LindgeW/PreLM
39a6b1c2fc0ccff7e8143f14d113cdfa79f63d79
[ "Apache-2.0" ]
null
null
null
gpt2_generate.py
LindgeW/PreLM
39a6b1c2fc0ccff7e8143f14d113cdfa79f63d79
[ "Apache-2.0" ]
null
null
null
import torch from transformers import GPT2Tokenizer, GPT2LMHeadModel from torch.utils.data import TensorDataset, DataLoader # reference: \transformers\generation_utils.py tokenizer = GPT2Tokenizer.from_pretrained('gpt2/en') model = GPT2LMHeadModel.from_pretrained('gpt2/en') # ds = read_data('./romeo_and_juliet....
39.08871
101
0.676295
d6848f01064221cf2643bf09ab3bba76151a40d4
205
py
Python
main/PluginDemos/connectivityTest/Simulation/connectivityTest.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/connectivityTest/Simulation/connectivityTest.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
null
null
null
main/PluginDemos/connectivityTest/Simulation/connectivityTest.py
JulianoGianlupi/nh-cc3d-4x-base-tool
c0f4aceebd4c5bf3ec39e831ef851e419b161259
[ "CC0-1.0" ]
1
2021-02-26T21:50:29.000Z
2021-02-26T21:50:29.000Z
from cc3d import CompuCellSetup from connectivityTestSteppables import connectivityTestSteppable CompuCellSetup.register_steppable(steppable=connectivityTestSteppable(frequency=1)) CompuCellSetup.run()
25.625
83
0.887805
d6859b005c6f17914c88f345695e794297b1e815
59
py
Python
models/genetic_algorithms/__init__.py
njellinas/ai-steroids
40e0013bdacb8bee1236305c1384f6b5ac8bd807
[ "MIT" ]
null
null
null
models/genetic_algorithms/__init__.py
njellinas/ai-steroids
40e0013bdacb8bee1236305c1384f6b5ac8bd807
[ "MIT" ]
null
null
null
models/genetic_algorithms/__init__.py
njellinas/ai-steroids
40e0013bdacb8bee1236305c1384f6b5ac8bd807
[ "MIT" ]
null
null
null
from models.genetic_algorithms.population import Population
59
59
0.915254
d6876109b60f86d0c814c99a79b62726595f011e
167
py
Python
webapp/campaigns/urls.py
AKarbas/datachef-interview-assignment
04a69a0daf0ab5378a2e03913ac60818e3fb73d9
[ "Intel" ]
null
null
null
webapp/campaigns/urls.py
AKarbas/datachef-interview-assignment
04a69a0daf0ab5378a2e03913ac60818e3fb73d9
[ "Intel" ]
null
null
null
webapp/campaigns/urls.py
AKarbas/datachef-interview-assignment
04a69a0daf0ab5378a2e03913ac60818e3fb73d9
[ "Intel" ]
null
null
null
from django.urls import path from . import views app_name = 'campaigns' urlpatterns = [ path('<int:campaign_id>/', views.Campaign.as_view(), name='campaign'), ]
18.555556
74
0.700599
d687affcc64565d8faf1f33b4994b4b1b73c74f1
1,470
py
Python
src/test/test_imperfect_indicitive.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
src/test/test_imperfect_indicitive.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
src/test/test_imperfect_indicitive.py
shrutiichandra/spanish-conjugator
2ebf41b92c14c3e47a873c52fdf4ce1d17bff5e0
[ "MIT" ]
null
null
null
# -*- coding: iso-8859-15 -*- import spanishconjugator from spanishconjugator.SpanishConjugator import Conjugator # ----------------------------------- Imperfect Indicative ----------------------------------- #
39.72973
96
0.702041
d68824df1e94960138084688a7d3f88b19a19dff
8,044
py
Python
gradient_chaser.py
RobertOpitz/Gradient_Chaser
ca2011342d28798808769831655b74d9adfc6d26
[ "MIT" ]
null
null
null
gradient_chaser.py
RobertOpitz/Gradient_Chaser
ca2011342d28798808769831655b74d9adfc6d26
[ "MIT" ]
null
null
null
gradient_chaser.py
RobertOpitz/Gradient_Chaser
ca2011342d28798808769831655b74d9adfc6d26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 13 17:37:31 2020 @author: robertopitz """ import numpy as np from random import randrange from math import isnan import pygame as pg #==MAIN CODE================================================================== board = [list("x--------x---|-...
34.084746
80
0.441074
d6885aadfed2400899af0bca8750fa5677a2b1f3
1,092
py
Python
start.py
AlexeyProskuryakov/vknotifier
be58008dec0c967718fdbd70da615c1d4966d5b5
[ "MIT" ]
null
null
null
start.py
AlexeyProskuryakov/vknotifier
be58008dec0c967718fdbd70da615c1d4966d5b5
[ "MIT" ]
null
null
null
start.py
AlexeyProskuryakov/vknotifier
be58008dec0c967718fdbd70da615c1d4966d5b5
[ "MIT" ]
null
null
null
# coding:utf-8 import ConfigParser import sys __author__ = '4ikist' from core.engine import NotificatonIniter, TalkHandler, VKEventHandler if __name__ == '__main__': main()
34.125
106
0.655678
d689694bd6143417bf16953605dd1dede7dec316
1,375
py
Python
prior_config.py
ZENGXH/NPDRAW
339d1d9b4880cce891cafe7c20198ef7c121a29e
[ "MIT" ]
21
2021-06-28T18:29:28.000Z
2022-03-13T09:12:07.000Z
prior_config.py
ZENGXH/NPDRAW
339d1d9b4880cce891cafe7c20198ef7c121a29e
[ "MIT" ]
null
null
null
prior_config.py
ZENGXH/NPDRAW
339d1d9b4880cce891cafe7c20198ef7c121a29e
[ "MIT" ]
2
2021-07-05T02:29:32.000Z
2021-11-02T08:25:14.000Z
from utils.yacs_config import CfgNode as CN __C = CN() cfg = __C # cfg.canvas_init=0 cfg.use_vit=0 cfg.use_fast_vit=0 cfg.img_mean=-1 cfg.vit_mlp_dim=2048 cfg.vit_depth=8 cfg.vit_dropout=1 cfg.concat_one_hot=0 cfg.mask_out_prevloc_samples=0 #cfg.input_id_canvas=0 cfg.register_deprecated_key('input_id_canvas') cfg.use_...
22.177419
48
0.786909
d689def2b69b86b6725aa76fbe9f83cda3ccc692
1,769
py
Python
2021/09/main2.py
chirsz-ever/aoc
dbdc2e32fbef108752db87f3747ce5898a0775ce
[ "BSL-1.0" ]
null
null
null
2021/09/main2.py
chirsz-ever/aoc
dbdc2e32fbef108752db87f3747ce5898a0775ce
[ "BSL-1.0" ]
null
null
null
2021/09/main2.py
chirsz-ever/aoc
dbdc2e32fbef108752db87f3747ce5898a0775ce
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python3 import sys from itertools import repeat, product from operator import mul from functools import reduce inputFile = 'input' if len(sys.argv) >= 2: inputFile = sys.argv[1] heightmap : list[list[int]] = [] with open(inputFile) as fin: for line in fin: heightmap.append([int(c) for ...
26.80303
64
0.569248
d689f1e24c703d9de5c7460fe0778d147ec02403
974
py
Python
tpDcc/libs/qt/core/traymessage.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
3
2019-08-26T05:56:12.000Z
2019-10-03T11:35:53.000Z
tpDcc/libs/qt/core/traymessage.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
null
null
null
tpDcc/libs/qt/core/traymessage.py
tpDcc/tpQtLib
26b6e893395633a1b189a1b73654891b7688648d
[ "MIT" ]
1
2021-03-03T21:01:50.000Z
2021-03-03T21:01:50.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains custom tray balloon """ from __future__ import print_function, division, absolute_import from Qt.QtWidgets import QWidget, QSystemTrayIcon, QMenu
27.055556
68
0.677618
d68b45e4e7a07123f8215b18f29f9f415483134c
219
py
Python
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
list.py
TomckySan/python-training
7d5214d01e8844a314d4a5aea6a4e35afa19f729
[ "MIT" ]
null
null
null
# coding: utf-8 sales= [255, 100, 353, 400] print len(sales) print sales[2] sales[2] = 100 print sales[2] # print 100 in sales print 500 in sales # range print range(10) print range(3,10) print range(3,10,2)
13.6875
27
0.69863
d68d945342e1ae0d7e7a7a1d0a9e54406e6ceb70
18,034
py
Python
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
5
2017-03-03T13:53:51.000Z
2019-05-09T09:47:28.000Z
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
5
2017-10-07T11:15:09.000Z
2021-01-25T17:03:59.000Z
booltest/battery.py
sobuch/polynomial-distinguishers
5a007abd222d00cbf99f1083c3b537343d2fff56
[ "MIT" ]
6
2017-03-26T17:06:20.000Z
2021-11-15T22:22:33.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import coloredlogs import logging import json import itertools import shlex import time import queue import sys import os import collections import tempfile from jsonpath_ng import jsonpath, parse from .runner import AsyncRunner from .common import merge_p...
37.886555
182
0.523345
d68e21dba61d5cbeb398194248f4e63acb8aae21
8,346
py
Python
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
8
2021-02-08T22:12:53.000Z
2022-02-20T16:33:11.000Z
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
null
null
null
traincifar224.py
iitm-sysdl/FuSeConv
04cdf54abfdbf359235d1b4c0848f188b1abbf2d
[ "Apache-2.0" ]
4
2021-03-04T11:21:42.000Z
2022-02-15T07:47:19.000Z
''' FuSeConv: Fully Separable Convolutions for Fast Inference on Systolic Arrays Authors: Surya Selvam, Vinod Ganesan, Pratyush Kumar Email ID: selvams@purdue.edu, vinodg@cse.iitm.ac.in, pratyush@cse.iitm.ac.in ''' import os import torch import wandb import random import argparse import torchvision import torch.nn as ...
39.367925
149
0.606278
d69171373efa977663e506a9e0cd4ffbf706ae5a
2,590
py
Python
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
24
2015-02-03T00:04:06.000Z
2021-09-14T06:50:01.000Z
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
1
2021-03-23T10:44:18.000Z
2021-03-23T15:38:38.000Z
fabfile.py
prezi/snakebasket
8e2e91ef2c7d034fa45c8005e5217fec333808ee
[ "MIT" ]
5
2015-08-16T11:31:09.000Z
2021-12-27T13:31:33.000Z
import os.path from fabric.api import local, env from fabric.utils import fastprint from prezi.fabric.s3 import CommonTasks, S3Deploy, NoopServiceManager env.forward_agent = True env.user = 'publisher' env.roledefs = {'production': [], 'stage': [], 'local': []} tasks = CommonTasks(SingleVirtualenvS3Deploy, 'snake...
35.479452
130
0.660232
d69196f51793e1153bef57beef63e6af53ecc91a
706
py
Python
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals import warnings from django import get_version as get_django_version __title__ = "dj-stripe" __summary__ = "Django + Stripe Made Easy" __uri__ = "https://github.com/pydanny/dj-stripe/" __version__ = "0.5.0" __author__ = "Daniel Greenfeld" __email__ = "pydanny@gmail.com" __li...
29.416667
81
0.723796
d6946eb298801b23fec7b4b5e6de31aae00f1e3a
10,283
py
Python
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
autolamella/milling.py
Chlanda-Lab/autolamella
ab135eefd56770f326f90747ef4dafebff4e8f71
[ "MIT" ]
null
null
null
import logging import os import time import numpy as np from autolamella.acquire import ( grab_images, save_reference_images, save_final_images, ) from autolamella.align import realign from autolamella.autoscript import reset_state def _milling_coords(microscope, stage_settings, my_lamella, pattern): ...
38.950758
111
0.665565
d6979012b22ac73cacf5e578b3aa216da2c78397
2,210
py
Python
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
null
null
null
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
null
null
null
robots/SlowRobot.py
theGitRory/RoboWars
6121f13e3569c4699a93900a8a6f45301f01a98c
[ "MIT" ]
1
2021-12-16T22:49:29.000Z
2021-12-16T22:49:29.000Z
import pygame from Robot import Robot
32.5
70
0.466516
d6997f85637504050677de593bfdc5dfb24a288e
934
py
Python
istype/__init__.py
Cologler/typing-instancecheck-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
6
2018-07-08T09:38:35.000Z
2020-06-25T13:15:02.000Z
istype/__init__.py
Cologler/typing-instancecheck-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
1
2018-07-08T10:12:49.000Z
2018-07-08T11:31:18.000Z
istype/__init__.py
Cologler/istype-python
b4dcea88468b1ee43ebb36413b099e3e8508b3ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com> # ---------- # # ---------- from typing import Iterable from itertools import zip_longest from .internal import TypeMatcher from .g import isinstanceof, issubclassof def match(args: (list, tuple), types: Iterable...
19.87234
63
0.574946
d69b51ad69fd05add04bf2431b9d7c7e537e89f6
3,669
py
Python
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
10
2018-04-03T01:51:16.000Z
2022-02-07T04:27:26.000Z
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
19
2018-05-20T00:43:31.000Z
2021-03-18T20:36:52.000Z
aetherling/space_time/ram_st.py
David-Durst/aetherling
91bcf0579608ccbf7d42a7bddf90ccd4257d6571
[ "MIT" ]
1
2018-07-11T23:36:43.000Z
2018-07-11T23:36:43.000Z
from aetherling.space_time.space_time_types import * from aetherling.space_time.nested_counters import * from aetherling.modules.ram_any_type import * from aetherling.modules.term_any_type import TermAnyType from aetherling.modules.mux_any_type import DefineMuxAnyType from aetherling.modules.map_fully_parallel_sequenti...
42.662791
121
0.67021
d69d1551c5ade2888af4e328fc5206b21287212d
1,227
py
Python
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
yhteenlasku/Python/rose_images_plus.py
samuntiede/valokuvamatikka
adab47a93534bf0f83f39603a8744bf6e5923da4
[ "Apache-2.0" ]
null
null
null
# Process two rose images by summing them together # FIN Laske kaksi ruusukuvaa yhteen # # Samuli Siltanen April 2021 # Python-knns Ville Tilvis 2021 import numpy as np import matplotlib.pyplot as plt # Read in the images # FIN Lue kuvat levylt im1 = plt.imread('../_kuvat/ruusu1.png') im2 = plt.imread('../_kuvat/ruu...
22.309091
55
0.727791
d69d44bd20dc95ec5fff8e1985bdab256e11040d
6,931
py
Python
src/test.fastaHeaderMapper.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
1
2020-11-12T06:32:26.000Z
2020-11-12T06:32:26.000Z
src/test.fastaHeaderMapper.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
src/test.fastaHeaderMapper.py
dentearl/assemblAnalysis
c8524456dff720d37356c55d7640687415bc1df6
[ "MIT" ]
null
null
null
############################## # Copyright (C) 2009-2011 by # Dent Earl (dearl@soe.ucsc.edu, dent.earl@gmail.com) # Benedict Paten (benedict@soe.ucsc.edu, benedict.paten@gmail.com) # Mark Diekhans (markd@soe.ucsc.edu) # ... and other members of the Reconstruction Team of David Haussler's # lab (BME Dept. UCSC). # # ...
40.063584
87
0.578127
d69d82f810cb6e55ebc41352a4d82679e4b15e3c
5,712
py
Python
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
1
2019-11-05T15:00:51.000Z
2019-11-05T15:00:51.000Z
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
null
null
null
likebee/core/admin.py
klebercode/likebee
0a0dd6368ef43b53fb8315eb5eb14663067ef07c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from django.utils.html import format_html from datetime import date, datetime from django_summernote.admin import SummernoteModelAdmin from mptt.admin import MPTTModelAdmin, DraggableMPTTAdmin from .m...
31.558011
76
0.608193
d69dfab5d31344b304dc626b4e7eed938aa556de
369
py
Python
fivetran_api/Fivetran-REST-API-examples/connectorDetails.py
leootrusa/fivetran_example
50931b9fa9638a743531aae2cb10137284d6df17
[ "MIT" ]
35
2018-06-27T20:46:26.000Z
2022-01-03T01:46:12.000Z
fivetran_api/Fivetran-REST-API-examples/connectorDetails.py
dsdorazio/functions
d694ab4d1d0e68d5eaab8fd34df8decc66931cb9
[ "MIT" ]
6
2018-06-27T18:59:23.000Z
2021-06-09T04:47:51.000Z
fivetran_api/Fivetran-REST-API-examples/connectorDetails.py
dsdorazio/functions
d694ab4d1d0e68d5eaab8fd34df8decc66931cb9
[ "MIT" ]
18
2019-03-08T00:00:00.000Z
2022-02-21T22:29:14.000Z
# connectorDetails # Returns a connector object if a valid identifier was provided. # Reference: https://fivetran.com/docs/rest-api/connectors#retrieveconnectordetails import fivetran_api # Fivetran API URL (Replace {connector_id} with a valid connector id). url = "https://api.fivetran.com/v1/connectors/{connector_i...
33.545455
83
0.796748
d69f54878d575fc34023843ff11b4582ac0a48da
1,703
py
Python
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
1
2021-09-02T03:48:44.000Z
2021-09-02T03:48:44.000Z
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
null
null
null
shop/coreapp/admin.py
bsperezb/Django-Ecomerce
f061798fd6528997ec7c1874ab0a5bdec03137c6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Address, Coupon, Item, Order, OrderItem, Payment, Session make_refund_accepted.short_description = "Update orders to refound granted" admin.site.register(Item) admin.site.register(Order, OrderAdmin) admin.site.register(OrderItem) admin.site.register(Payment)...
22.706667
78
0.63946
d69f649c3051f59f0608bb308dcfe5aa1166fc96
37,194
py
Python
src/pudl/metadata/codes.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
src/pudl/metadata/codes.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
src/pudl/metadata/codes.py
rohithdesikan/pudl
0009afc2b31031f6cd50e60aec096421f7a9d3c7
[ "MIT" ]
null
null
null
"""Metadata for cleaning, re-encoding, and documenting coded data columns. These dictionaries are used to create Encoder instances. They contain the following keys: 'df': A dataframe associating short codes with long descriptions and other information. 'code_fixes': A dictionary mapping non-standard codes to canonical...
36.89881
649
0.37256
d6a2fa9382a12764e6a860268ebbd0f92fa8f439
1,179
py
Python
objectModel/Python/tests/utilities/test_storage_utils.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/tests/utilities/test_storage_utils.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/tests/utilities/test_storage_utils.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import unittest from cdm.utilities import StorageUtils
39.3
94
0.724343
d6a31066ae56fbab5790e025522ea654a924256a
36
py
Python
raguel/__init__.py
WireShoutLLC/piraguel
edbca6338d23735d7e1d6a63273f55851ef76518
[ "MIT" ]
null
null
null
raguel/__init__.py
WireShoutLLC/piraguel
edbca6338d23735d7e1d6a63273f55851ef76518
[ "MIT" ]
null
null
null
raguel/__init__.py
WireShoutLLC/piraguel
edbca6338d23735d7e1d6a63273f55851ef76518
[ "MIT" ]
null
null
null
import raguel.fptp import raguel.irv
18
18
0.861111
d6a34d6160e9405d0d8eb8de229e4504ff3e1406
18,624
py
Python
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
null
null
null
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
null
null
null
slugdetection/Data_Engineering.py
dapolak/acse-9-independent-research-project-dapolak
5ae2cfa7f63c739d419b1362c4aede451ae83eb1
[ "MIT" ]
2
2019-08-29T16:14:37.000Z
2019-08-30T08:52:03.000Z
# -*- coding: utf-8 -*- """ Part of slugdetection package @author: Deirdree A Polak github: dapolak """ import numpy as np import pandas as pd from datetime import datetime import matplotlib.pyplot as plt from pyspark.sql import functions as F from pyspark.sql.window import Window def confusion_mat(cm, labels, titl...
44.342857
120
0.574152
d6a35d2bfc2590a217cfcb8cbdd8bde2a6488383
2,632
py
Python
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
vietocr/predict.py
anhtv26062000/vietocr
b14a7d14cc37a969f73b27b2946b8680672c0fe5
[ "Apache-2.0" ]
null
null
null
import os import time import yaml import argparse from PIL import Image import matplotlib.pyplot as plt from vietocr.tool.predictor import Predictor from vietocr.tool.config import Cfg if __name__ == "__main__": main()
34.631579
111
0.665274
d6a502bc2ef1837bff69e8101cd965f9cb6f8ad1
12,231
py
Python
com/vmware/esx/settings/depot_content/components_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/esx/settings/depot_content/components_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
com/vmware/esx/settings/depot_content/components_client.py
adammillerio/vsphere-automation-sdk-python
c07e1be98615201139b26c28db3aa584c4254b66
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #--------------------------------------------------------------------------- # Copyright 2020 VMware, Inc. All rights reserved. # AUTO GENERATED FILE -- DO NOT MODIFY! # # vAPI stub file for package com.vmware.esx.settings.depot_content.components. #--------------------------------------------...
33.509589
94
0.575178
d6a7a396afccca6f90d97a49c348647708bf30b9
9,790
py
Python
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
MultiAtlasSegmenter/MultiAtlasSegmentation/EvaluateSegmentation.py
mabelzunce/MuscleSegmentation
390737ca1853e3c142a4fb7e186bc8b33bc4ade4
[ "MIT" ]
null
null
null
#! python3 # Multi-atlas segmentation scheme trying to give a platform to do tests before translating them to the plugin. from __future__ import print_function from GetMetricFromElastixRegistration import GetFinalMetricFromElastixLogFile from MultiAtlasSegmentation import MultiAtlasSegmentation from ApplyBiasCorrection...
60.432099
229
0.81236
d6a8326296ab6af0cd67cc06c386c30e1cff6c27
1,591
py
Python
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
jes/jes-v5.020-linux/jes/python/jes/gui/dialogs/intro.py
utv-teaching/foundations-computer-science
568e19fd83a3355dab2814229f335abf31bfd7e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ jes.gui.dialogs.intro ===================== The "intro" dialog, which displays the JESIntroduction.txt file. :copyright: (C) 2014 Matthew Frazier and Mark Guzdial :license: GNU GPL v2 or later, see jes/help/JESCopyright.txt for details """ from __future__ import with_statement import JES...
28.927273
74
0.672533
d6a8edcb5b2dcf22573395513ba3203eee17a175
15
py
Python
assist/__init__.py
jmlopez-rod/assist
6fb1c76dc3b0dc441faa7347285343e2e529651a
[ "BSD-2-Clause" ]
1
2015-10-30T23:33:11.000Z
2015-10-30T23:33:11.000Z
assist/__init__.py
jmlopez-rod/assist
6fb1c76dc3b0dc441faa7347285343e2e529651a
[ "BSD-2-Clause" ]
null
null
null
assist/__init__.py
jmlopez-rod/assist
6fb1c76dc3b0dc441faa7347285343e2e529651a
[ "BSD-2-Clause" ]
null
null
null
"""Assist """
3.75
9
0.4
d6aa6ef6511d2d3e5cb122c0409356c3cc693f88
678
py
Python
clioude-server/app.py
ccw630/CliOuDE
743540c7c14d7f95455219efe8be01817e96f96b
[ "MIT" ]
3
2020-07-22T02:17:23.000Z
2021-03-10T12:48:46.000Z
app.py
ccw630/CLIOUDE-Server
4dc129e5bc57caead2df0107f02671d74c7808f1
[ "MIT" ]
5
2020-07-24T07:39:43.000Z
2022-02-27T08:32:49.000Z
app.py
ccw630/CLIOUDE-Server
4dc129e5bc57caead2df0107f02671d74c7808f1
[ "MIT" ]
null
null
null
import tornado.web import tornado.websocket import tornado.httpserver import tornado.ioloop from worker_gateway.server import WebSocketChannelHandler from heartbeat.handler import HeartbeatHandler from orm import Worker if __name__ == '__main__': Worker.cull_worker() app = Application() server = tornad...
25.111111
57
0.718289
d6ac10b06dc3d01a44335f8890a997f31547f906
1,536
py
Python
server.py
guoyunlong16/python-websocket-server
81ec842f750726f5e1044305fcabbba831eca098
[ "MIT" ]
null
null
null
server.py
guoyunlong16/python-websocket-server
81ec842f750726f5e1044305fcabbba831eca098
[ "MIT" ]
null
null
null
server.py
guoyunlong16/python-websocket-server
81ec842f750726f5e1044305fcabbba831eca098
[ "MIT" ]
null
null
null
import time from websocket_server import WebsocketServer # Called for every client connecting (after handshake) # Called for every client disconnecting # Called when a client sends a message PORT=80 HOST='0.0.0.0' server = WebsocketServer(PORT, host=HOST) server.set_fn_new_client(new_client) server.set_fn_cli...
32
67
0.673828
d6ac72939accd121f9983c21fee472c5729238d1
899
py
Python
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
36-valid-sudoku/36-valid-sudoku.py
MayaScarlet/leetcode-python
8ef0c5cadf2e975957085c0ef84a8c3d90a64b6a
[ "MIT" ]
null
null
null
import collections
34.576923
103
0.463849
d6b10c402152179bd5b2001946c3c77a518e7627
9,375
py
Python
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
Crop Predictions With GUI.py
KRITGYA2001/Crop-Prediction-Model
81c2f0701c89ae6ed1f3b8ae48252c94670ee413
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import pandas as pd import seaborn as sns get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib.pyplot as plt # In[2]: from sklearn.preprocessing import LabelEncoder from sklearn.metrics import classification_report from sklearn.m...
22.865854
154
0.68192
d6b123a5d8064301b36365941fb80c50a959742e
3,950
py
Python
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/ZhimaCreditOrderRepaymentApplyModel.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.constant.ParamConstants import *
30.152672
75
0.591899
d6b14cabbd3bcb3a92d3115531acfa5bd337cbb3
36,170
py
Python
examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/generateBootImage.py
rick-yhchen1013/aditof-sdk-rework
911465dd1e05dd0b1c5107197b3b4dc3a10f77f9
[ "MIT" ]
5
2021-09-22T10:04:47.000Z
2022-02-08T17:55:09.000Z
examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/generateBootImage.py
rick-yhchen1013/aditof-sdk-rework
911465dd1e05dd0b1c5107197b3b4dc3a10f77f9
[ "MIT" ]
99
2021-02-01T12:45:09.000Z
2022-03-08T09:54:13.000Z
examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/generateBootImage.py
rick-yhchen1013/aditof-sdk-rework
911465dd1e05dd0b1c5107197b3b4dc3a10f77f9
[ "MIT" ]
4
2021-08-09T12:32:55.000Z
2021-12-13T05:38:55.000Z
#!/usr/bin/env python """ Newton Generate Boot Images Usage: generateBootImage.py <target> <file_name> [--sim][--frontdoor][--seed=<seed_value>][--count=<word_count>][--hsp_fw_0p97] Options: -h --help Shows this help message. Target is one of the following: useq_seq_ram : Microsequencer Sequence RAM ...
32.122558
161
0.617086
d6b2ed2144802e9da93811adc368ed32fd611400
1,503
py
Python
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/storage/json_storage.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import os, json __author__ = 'Manfred Minimair <manfred@minimair.org>'
28.358491
80
0.558217
d6b3222fc09c6aa5941c479f3ee01b911f781151
332
py
Python
scienz/setup.py
Vibrant-Planet/aorist
067e119ef4d0d40802ce74a8e47d882e557ce195
[ "MIT" ]
16
2021-08-14T10:20:16.000Z
2022-03-31T04:19:26.000Z
hub/setup.py
scie-nz/aorist
ac1e31251af7d851c4491a310b417de880b79d09
[ "MIT" ]
5
2021-08-15T23:19:10.000Z
2021-09-26T20:50:41.000Z
scienz/setup.py
Vibrant-Planet/aorist
067e119ef4d0d40802ce74a8e47d882e557ce195
[ "MIT" ]
1
2022-01-06T01:26:24.000Z
2022-01-06T01:26:24.000Z
from setuptools import setup setup( name="scienz", version="0.0.1", packages=["scienz"], zip_safe=False, include_package_data=True, package_data={"scienz": ["scienz/*"],}, long_description=""" Common dataset definitions for aorist package. """, long_description_content_type="tex...
20.75
50
0.656627
d6b3ca6a1ac3ed90a5486b776195623690a10478
2,219
py
Python
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
1
2021-07-09T19:32:16.000Z
2021-07-09T19:32:16.000Z
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
null
null
null
Trabalho_02/Trabalho/ELM_Q01.py
gabriel-rc-201/Trabalhos-Inteligencia-Computacional
c334f2fd66a31bacab0470b390782ce38dc2a100
[ "MIT" ]
null
null
null
#!-*- conding: utf8 -*- #coding: utf-8 """ Aluno: Gabriel Ribeiro Camelo Matricula: 401091 """ import matplotlib.pyplot as pplt # grficos import math # Matemtica import re # expresses regulares import numpy as np # matrizes from statistics import pstd...
24.384615
75
0.633168
d6b7e37b488f062925a4fc8dd11c3dc8a00b2e5d
4,424
py
Python
tools/weixin.py
GingerWWW/news_spider
51e1437cf9a58071cc5bd2c12f854ae84f96a5d5
[ "MIT" ]
208
2018-02-11T01:58:08.000Z
2022-03-28T07:15:12.000Z
tools/weixin.py
DeteMin/news_spider
9e29525a8bcb2310fca3bb4f9ca4b99b39ecfc9c
[ "MIT" ]
19
2018-04-17T11:03:28.000Z
2022-03-17T00:02:20.000Z
tools/weixin.py
DeteMin/news_spider
9e29525a8bcb2310fca3bb4f9ca4b99b39ecfc9c
[ "MIT" ]
44
2018-02-26T09:47:41.000Z
2022-03-22T13:34:27.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: weixin.py @time: 2018-02-10 17:55 """ import re import time import hashlib # from urlparse import urljoin # PY2 # from urllib.parse import urljoin # PY3 from future.moves.urllib.parse import urljoin ...
30.937063
141
0.614828
d6be2f5eba8bd47a690f4ce82ab27016a99d70c3
126
py
Python
Python/_16_Numpy/_02_Shape_and_Reshape/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
null
null
null
Python/_16_Numpy/_02_Shape_and_Reshape/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
null
null
null
Python/_16_Numpy/_02_Shape_and_Reshape/solution.py
avtomato/HackerRank
96f9cf770ac57d782bb05cccc23764a529bb27ae
[ "MIT" ]
2
2019-09-21T16:04:13.000Z
2020-03-25T09:07:47.000Z
import numpy arr = map(int, input().strip().split(' ')) d2_arr = numpy.array(list(arr)) d2_arr.shape = (3, 3) print(d2_arr)
15.75
42
0.650794
d6bfbf2d051a74fc9be123eeb1ea06791a6a5509
1,359
py
Python
source/Objects/XTRA_Scaling_Parameters.py
afarahi/XTRA
6550b216264abaa3ed705835aca0981f2934e069
[ "MIT" ]
2
2018-11-01T12:38:56.000Z
2019-10-22T07:02:54.000Z
source/Objects/XTRA_Scaling_Parameters.py
afarahi/XTRA
6550b216264abaa3ed705835aca0981f2934e069
[ "MIT" ]
null
null
null
source/Objects/XTRA_Scaling_Parameters.py
afarahi/XTRA
6550b216264abaa3ed705835aca0981f2934e069
[ "MIT" ]
null
null
null
import os.path import json
22.278689
89
0.56365
d6c240b9e93cb9ac402108e702d6f69b681de912
545
py
Python
script_concurent_cpd_example.py
gmetsov/slow-momentum-fast-reversion
861c13ff2ea1d9e0b24523356c574c3ceaacf5bb
[ "MIT" ]
1
2022-03-25T11:37:31.000Z
2022-03-25T11:37:31.000Z
script_concurent_cpd_example.py
gmetsov/slow-momentum-fast-reversion
861c13ff2ea1d9e0b24523356c574c3ceaacf5bb
[ "MIT" ]
null
null
null
script_concurent_cpd_example.py
gmetsov/slow-momentum-fast-reversion
861c13ff2ea1d9e0b24523356c574c3ceaacf5bb
[ "MIT" ]
null
null
null
import multiprocessing import os from settings.default import QUANDL_TICKERS, CPD_QUANDL_OUTPUT_FOLDER_DEFAULT N_WORKERS = len(QUANDL_TICKERS) if not os.path.exists(CPD_QUANDL_OUTPUT_FOLDER_DEFAULT): os.mkdir(CPD_QUANDL_OUTPUT_FOLDER_DEFAULT) all_processes = [ f'python script_cpd_example.py "{ticker}" "{os....
32.058824
140
0.801835
d6c44db13e9cf80092cf19bc3a381fd343fa5385
1,248
py
Python
events/migrations/0049_auto_20210308_1449.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
events/migrations/0049_auto_20210308_1449.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
events/migrations/0049_auto_20210308_1449.py
VadVergasov/clist
4afcdfe88250d224043b28efa511749347cec71c
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
# Generated by Django 3.1.7 on 2021-03-08 14:49 from django.db import migrations, models
28.363636
61
0.560897
d6c46aa5da8525586e87f2b472570c93ecfc9915
369
py
Python
cowin_settings/models/cowin_custom_model_data.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
cowin_settings/models/cowin_custom_model_data.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
cowin_settings/models/cowin_custom_model_data.py
shangdinvxu/cowinaddons
4e9d69894cd80e5427ccc9bac6c37b8bd67cadd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from odoo import models, fields, api
23.0625
75
0.639566
d6c7f2bc5030b6e6a1c3bad3cfc0eb72b6f4212f
172
py
Python
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
15
2019-08-15T07:22:44.000Z
2022-01-18T20:52:22.000Z
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
5
2020-05-29T04:58:34.000Z
2022-01-31T07:27:20.000Z
iex_parser_test/__init__.py
Cedric-Kram/iex_parser
b5aebe79b2125681ab0606f4f59ec325aadeebb9
[ "Apache-2.0" ]
4
2020-09-08T15:03:20.000Z
2022-01-18T13:33:56.000Z
"""iex_parser""" from .parser import Parser from .messages import DEEP_1_0, TOPS_1_6, TOPS_1_5 __all__ = [ 'Parser', 'DEEP_1_0', 'TOPS_1_5', 'TOPS_1_6' ]
14.333333
50
0.645349
d6ca0b78e18a4bf98def2fc3af39ef75294bf852
14,129
py
Python
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
tweezers/io/TxtMpiSource.py
DollSimon/tweezers
7c9b3d781c53f7728526a8242aa9e1d671f15688
[ "BSD-2-Clause" ]
null
null
null
from pathlib import Path import json import re import numpy as np import os from collections import OrderedDict from .TxtMpiFile import TxtMpiFile from .BaseSource import BaseSource from tweezers.meta import MetaDict, UnitDict def getData(self): """ Return the experiment data. Returns: ...
32.038549
119
0.55793
d6ca2315271e77162aceabe261d43740120a7244
232
py
Python
nslocapysation/constants.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
1
2018-11-25T16:56:31.000Z
2018-11-25T16:56:31.000Z
nslocapysation/constants.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
null
null
null
nslocapysation/constants.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
null
null
null
# keys IMPLEMENTATION_FILE_PATHS_KEY = r'implementation_file_paths' LPROJ_DIR_PATHS_KEY = r'lproj_file_paths' KEY_KEY = r'key' TRANSLATION_KEY = r'translation' # file names LOCALIZABLE_STRINGS_FILE_NAME = r'Localizable.strings'
19.333333
60
0.818966
d6ca4d4ba42af57fc033e9368f2ae8ef9b4d183f
6,482
py
Python
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
3
2017-12-18T06:37:50.000Z
2018-02-23T08:31:25.000Z
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
null
null
null
shexter_client/shexterd.py
tetchel/shexter-client
b1db3ac072fc9a53403a15b1f41188e0a09220f4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from threading import Thread from time import sleep import logging import shexter.requester import shexter.platform as platform import shexter.config """ This file is for the shexter daemon, which runs persistantly. Every 5 seconds, it polls the phone to see if there are unread messages. If t...
32.248756
149
0.631749
d6caa6b944d454c9401a57591872b8b05ba06ad2
7,218
py
Python
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
info_epd/mixins/salah.py
ibnadam/info_epd
3838cc30187dc10fd2c79fba2d51357d3dbbf47a
[ "MIT" ]
null
null
null
import sys import os import logging import time import datetime from PIL import ( Image, ImageDraw, ImageFont ) from config import * from util import * from info_epd import praytimes DEBUG_PRAYTIMES = False
34.371429
87
0.541563
d6cba202761b7405679a5ca3b25903c5029105ec
5,871
py
Python
tests/test_denstatbank.py
gmohandas/denstatbank
c82cdbafb934de40d106c1f0f94ef58b0962e25c
[ "BSD-3-Clause-Clear" ]
1
2020-05-28T14:59:04.000Z
2020-05-28T14:59:04.000Z
tests/test_denstatbank.py
gmohandas/denstatbank
c82cdbafb934de40d106c1f0f94ef58b0962e25c
[ "BSD-3-Clause-Clear" ]
null
null
null
tests/test_denstatbank.py
gmohandas/denstatbank
c82cdbafb934de40d106c1f0f94ef58b0962e25c
[ "BSD-3-Clause-Clear" ]
null
null
null
import pandas as pd import pytest from denstatbank.denstatbank import StatBankClient from denstatbank.utils import data_dict_to_df, add_list_to_dict from .mock_responses import ( mock_sub_resp_default, mock_sub_resp_2401, mock_tables_resp, mock_tableinfo_resp, mock_tableinfo_variable_resp, mock_...
33.169492
93
0.69971
d6cc154da2b05275462754e08a6a4fdca86447f1
473
py
Python
258-add-digits/258-add-digits.py
e-lin/LeetCode
1a00e187b5ccea3bddabf93a29164bf0ad928b7d
[ "Apache-2.0" ]
null
null
null
258-add-digits/258-add-digits.py
e-lin/LeetCode
1a00e187b5ccea3bddabf93a29164bf0ad928b7d
[ "Apache-2.0" ]
null
null
null
258-add-digits/258-add-digits.py
e-lin/LeetCode
1a00e187b5ccea3bddabf93a29164bf0ad928b7d
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': main()
17.518519
38
0.46723
d6cc317a27628be12980edb90d20e0b73593f693
205
py
Python
data/copy_license.py
dashingsoft/pyarmor-server
8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7
[ "MIT" ]
28
2020-07-02T22:12:32.000Z
2022-03-30T03:21:34.000Z
data/copy_license.py
dashingsoft/pyarmor-server
8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7
[ "MIT" ]
3
2020-03-09T09:43:48.000Z
2020-10-19T05:23:37.000Z
data/copy_license.py
dashingsoft/pyarmor-server
8ac1995d3a0b4ca4592a2a9fa255a7a420f36bc7
[ "MIT" ]
13
2020-04-27T13:31:00.000Z
2022-01-16T05:49:06.000Z
import sys from os.path import join, dirname with open(join(dirname(sys.executable), 'license.lic'), 'rb') as fs: with open(join(sys._MEIPASS, 'license.lic'), 'wb') as fd: fd.write(fs.read())
29.285714
68
0.663415
d6d00e0815efbd0fa8cd9dea45c88de5c7194783
2,689
py
Python
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
5
2018-03-08T17:22:27.000Z
2018-03-11T14:20:53.000Z
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
263
2018-03-08T18:05:12.000Z
2022-03-11T23:26:20.000Z
src/web/sistema/templatetags/number_to_text.py
fossabot/SIStema
1427dda2082688a9482c117d0e24ad380fdc26a6
[ "MIT" ]
6
2018-03-12T19:48:19.000Z
2022-01-14T04:58:52.000Z
from django.template import Library register = Library() hundreds = [ '', '', '', '', '', '', '', '', '', '' ] first_decade = [ '', ('', ''), ('', ''), '', '', '', '', '', '', '' ] second_decade = [ '', '', '', '', ...
22.040984
92
0.564522
d6d066071d6280fd212953aa9288f12b50467f48
1,577
py
Python
sympy/solvers.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2021-12-17T11:03:13.000Z
2021-12-17T11:03:13.000Z
sympy/solvers.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
1
2020-02-05T00:14:43.000Z
2020-02-06T09:22:49.000Z
sympy/solvers.py
Fernal73/LearnPython3
5288017c0dbf95633b84f1e6324f00dec6982d36
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from sympy import * x, y, z = symbols('x y z') init_printing(use_unicode=True) print(Eq(x, y)) print(solveset(Eq(x**2, 1), x)) print(solveset(Eq(x**2 - 1, 0), x)) print(solveset(x**2 - 1, x)) print(solveset(x**2 - x, x)) print(solveset(x - x, x, domain=S.Reals)) print(so...
31.54
64
0.551046
d6d18a1cdcb8a5f838db2879bdd4174a5798f34c
421
py
Python
setup.py
kelonye/python-twitter
9f8293b53c4f91de3f14510af8d18ad2ad7e8867
[ "MIT" ]
2
2015-05-29T02:10:56.000Z
2015-11-07T12:54:41.000Z
setup.py
kelonye/python-twitter
9f8293b53c4f91de3f14510af8d18ad2ad7e8867
[ "MIT" ]
null
null
null
setup.py
kelonye/python-twitter
9f8293b53c4f91de3f14510af8d18ad2ad7e8867
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='ptwitter', version='0.0.1', description="Tiny python library for Twitter's REST API.", author='Mitchel Kelonye', author_email='kelonyemitchel@gmail.com', url='https://github.com/kelonye/python-twitter', packages...
26.3125
62
0.674584
d6d4a59aaae6c52a8e517ab6fdf2ff853e934000
44
py
Python
python/testData/addImport/newFirstImportInBuiltinGroup/main.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/addImport/newFirstImportInBuiltinGroup/main.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/addImport/newFirstImportInBuiltinGroup/main.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
import sys import a print(datetime, sys, a)
11
23
0.75
d6d5022d562b8e05c89e7d039fdd54b153bdd856
10,444
py
Python
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
resdk/tests/unit/test_utils.py
tristanbrown/resolwe-bio-py
c911defde8a5e7e902ad1adf4f9e480f17002c18
[ "Apache-2.0" ]
null
null
null
""" Unit tests for resdk/resources/utils.py file. """ # pylint: disable=missing-docstring, protected-access import unittest import six from mock import MagicMock, call, patch from resdk.resources import Collection, Data, Process, Relation, Sample from resdk.resources.utils import ( _print_input_line, endswith_co...
37.035461
95
0.567503
d6d796c86f20ac0784cd2ab3c3a72578c896d385
1,674
py
Python
test/test_core_initializer.py
t-k-/tinynn
969eb96020406885d081a961084d9328e2939622
[ "MIT" ]
27
2019-09-16T01:54:19.000Z
2022-03-14T04:50:26.000Z
test/test_core_initializer.py
t-k-/tinynn
969eb96020406885d081a961084d9328e2939622
[ "MIT" ]
null
null
null
test/test_core_initializer.py
t-k-/tinynn
969eb96020406885d081a961084d9328e2939622
[ "MIT" ]
6
2019-09-16T01:54:33.000Z
2022-03-07T12:00:55.000Z
"""test unit for core/initializer.py""" import runtime_path # isort:skip from core.initializer import * TEST_SHAPE = (100000, 1) TOR = 1e-2
26.15625
65
0.643369
d6dd795a3bd40d81aa9b1e2a17911949cba95e34
14,321
py
Python
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
inventory/nova.py
forgeservicelab/ansible.account-cleanup
14a855f57c5d06c1114f18f561199f9a1534f707
[ "MIT" ]
null
null
null
#!/usr/bin/env python # (c) 2012, Marco Vito Moscaritolo <marco@agavee.com> # modified by Tomas Karasek <tomas.karasek@digile.fi> # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
33.46028
79
0.649047
d6de6584aa755891b400cead530c2e7d4744bf03
7,003
py
Python
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
mltc/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
from datetime import date import numpy as np from sklearn.metrics import ( roc_curve, auc, ) import torch from torch.utils.data import DataLoader from .metrics import accuracy_thresh, fbeta, pairwise_confusion_matrix import pandas as pd from tqdm import tqdm
34.497537
87
0.565472
d6df220a36694618699e66a95c74ab11a133b077
7,381
py
Python
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
synapse/lib/datapath.py
larrycameron80/synapse
24bf21c40b4a467e5dc28c8204aecaf502d5cddf
[ "Apache-2.0" ]
null
null
null
import collections import xml.etree.ElementTree as x_etree import synapse.common as s_common import synapse.lib.syntax as s_syntax # Special Element Handler Classes elemcls = { x_etree.Element: XmlDataElem, } def initelem(item, name=None, parent=None): ''' Construct a new DataElem from the given item u...
25.898246
75
0.520661
d6e3ab9d5ea800c6d75075d9a0c1f51418a5e6e8
1,851
py
Python
addon/blenderAddon/test.py
kazulagi/plantFEM
20bf2df8202d41aa5dc25d1cc820385dabbc604f
[ "MIT" ]
21
2020-06-21T08:21:44.000Z
2022-01-13T04:28:30.000Z
addon/blenderAddon/test.py
kazulagi/plantFEM_binary
32acf059a6d778307211718c2a512ff796b81c52
[ "MIT" ]
5
2021-05-08T05:20:06.000Z
2022-03-25T05:39:29.000Z
addon/blenderAddon/test.py
kazulagi/plantFEM_binary
32acf059a6d778307211718c2a512ff796b81c52
[ "MIT" ]
4
2020-10-20T18:28:59.000Z
2021-12-15T08:35:25.000Z
bl_info = { "name": "plantFEM (Seed)", "author": "Haruka Tomobe", "version": (1, 0), "blender": (2, 80, 0), "location": "View3D > Add > Mesh > plantFEM Object", "description": "Adds a new plantFEM Object", "warning": "", "wiki_url": "", "category": "Add Mesh", } import bpy from bp...
26.070423
68
0.670989
d6e3fe20726371350367db02dca201ae5e10d187
159
py
Python
ASSIGN-1/assignment_1/assignment_1/envs/__init__.py
ShivenTripathi/CS698-Deep-Reinforcement-Learning
184f7887cea3065d2bfa4ba05bfb249838c3dab4
[ "MIT" ]
null
null
null
ASSIGN-1/assignment_1/assignment_1/envs/__init__.py
ShivenTripathi/CS698-Deep-Reinforcement-Learning
184f7887cea3065d2bfa4ba05bfb249838c3dab4
[ "MIT" ]
null
null
null
ASSIGN-1/assignment_1/assignment_1/envs/__init__.py
ShivenTripathi/CS698-Deep-Reinforcement-Learning
184f7887cea3065d2bfa4ba05bfb249838c3dab4
[ "MIT" ]
null
null
null
from assignment_1.envs.gaussianBandit import gaussianBandit from assignment_1.envs.bernoulliBandit import bernoulliBandit from assignment_1.envs.RWE import RWE
53
61
0.893082
d6e576ee6650fb505b02888827826458811575c7
1,401
py
Python
tests/test_ftp_worker.py
BookOps-CAT/QCbotB
258a3dd4a0b346c0fee82fe332e368c0b5c91440
[ "MIT" ]
null
null
null
tests/test_ftp_worker.py
BookOps-CAT/QCbotB
258a3dd4a0b346c0fee82fe332e368c0b5c91440
[ "MIT" ]
15
2018-01-19T17:39:08.000Z
2020-12-16T17:57:12.000Z
tests/test_ftp_worker.py
BookOps-CAT/QCbotB
258a3dd4a0b346c0fee82fe332e368c0b5c91440
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from datetime import datetime, timedelta from context import aged_out_report, find_todays_file if __name__ == '__main__': unittest.main()
30.456522
83
0.577445
d6e578f9bf5ed9349829616902ed52c6a3a8e2e9
177
py
Python
get_version.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
get_version.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
get_version.py
sbacchio/tuneit
8d4771acbb56e07336e2aae66160a1f62777cb01
[ "BSD-3-Clause" ]
null
null
null
"Usage: python -m get_version ./setup.py" import setuptools import sys setuptools.setup = lambda *args, version=None, **kwargs: print(version) exec(open(sys.argv[1]).read())
19.666667
71
0.728814
d6e603f00a28c8cca2ac1585a148b957b90cf6ad
4,815
py
Python
java/javaClass.py
skylarkgit/sql2java
befd55180969b0ec68e242991c3260272d755cc9
[ "MIT" ]
2
2019-10-23T08:27:30.000Z
2019-10-23T09:58:45.000Z
java/javaClass.py
skylarkgit/sql2java
befd55180969b0ec68e242991c3260272d755cc9
[ "MIT" ]
null
null
null
java/javaClass.py
skylarkgit/sql2java
befd55180969b0ec68e242991c3260272d755cc9
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from dialectUtil import * from java.javaProperty import JAVAProperty from java.javaSnippets import * from java.javaLink import JAVALink import constants as CONST JAVA_PROPERTIES = {} JAVA_PROPERTIES['JAVA_AUTO_IMPORTABLE'] = ['created_by','last_modified_by','created_date', 'last_modified_date']
51.223404
158
0.622638
d6e6226b3673f32b61f24bf4e754297739bd3b2c
1,295
py
Python
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
gui1.py
aseemk11/Attendance-system-using-Face-recognization-
b7ca08a868c8b41d776eaa8e0c6ada7ab23df040
[ "Apache-2.0" ]
null
null
null
from tkinter import * import os main = Tk() main.geometry('{}x{}'.format(550, 550)) main.wm_title("Welcome to Face Recognition Based Attendence System ") svalue3= StringVar() # defines the widget state as string svalue2 = StringVar() #imagePath = PhotoImage(file="facerec.png") #widgetf = Label(main, image=imagePath)....
26.428571
115
0.713514
d6e6b0705f1fc5675687010c9694d9720c0c22e7
133
py
Python
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
null
null
null
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
1
2021-06-02T01:16:32.000Z
2021-06-02T01:16:32.000Z
app/extensions.py
vatsalag99/mapping_self-harm_risk_twitter
262c36f994c909714a738686b025633d832bc596
[ "MIT" ]
null
null
null
"""Extensions module - Set up for additional libraries can go in here.""" from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()
26.6
73
0.766917
d6e750c2e34d4d5c52e114e9bd8b810a1a5e2430
2,586
py
Python
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
14
2020-06-05T09:30:42.000Z
2022-01-19T00:26:48.000Z
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
6
2020-06-09T14:05:21.000Z
2021-03-18T13:55:15.000Z
src/tiden/apps/zookeeper/zookeeper_utils.py
mshonichev/example_pkg
556a703fe8ea4a7737b8cae9c5d4d19c1397a70b
[ "Apache-2.0" ]
1
2020-06-09T13:53:15.000Z
2020-06-09T13:53:15.000Z
#!/usr/bin/env python3 # # Copyright 2017-2020 GridGain Systems. # # 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 applicab...
34.026316
82
0.656999