hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c0bc1c7c2dd1e39d29cd408e0ebf5f536942d273
186,424
py
Python
vspk/v6/nusystemconfig.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
null
null
null
vspk/v6/nusystemconfig.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
null
null
null
vspk/v6/nusystemconfig.py
axxyhtrx/vspk-python
4495882c6bcbb1ef51b14b9f4dc7efe46476ff50
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrigh...
35.768227
304
0.638593
7b96ab3044eacc4ec465f4e8f3dd1c90918e0902
11,405
py
Python
aztk_cli/config.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
aztk_cli/config.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
aztk_cli/config.py
atg-abhishek/aztk
e3d060e58373c316fddbc0907f08b1430e1b2691
[ "MIT" ]
null
null
null
import os import yaml import aztk.spark from aztk.models import Toolkit from aztk.models.plugins.internal import PluginReference from aztk.spark.models import ClusterConfiguration, SecretsConfiguration # from aztk.spark.models import SchedulingTarget def load_aztk_secrets() -> SecretsConfiguration: """ Loa...
37.029221
119
0.633231
0b2d753d1e651baaf279e90925ac21074bc247b6
18,716
py
Python
sympy/concrete/products.py
shilpiprd/sympy
556e9c61b31d0d5f101cd56b43e843fbf3bcf121
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/concrete/products.py
shilpiprd/sympy
556e9c61b31d0d5f101cd56b43e843fbf3bcf121
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/concrete/products.py
shilpiprd/sympy
556e9c61b31d0d5f101cd56b43e843fbf3bcf121
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy.core.mul import Mul from sympy.core.singleton import S from sympy.concrete.expr_with_intlimits import ExprWithIntLimits from sympy.core.exprtools import factor_terms from sympy.functions.elementary.exponential import exp, log from sympy.polys import quo, roots from sympy.simplify import powsimp from sympy.co...
30.631751
128
0.535585
475e8fb43e5f52167cdc3287b4d35d9cfaee78e7
2,195
py
Python
fer/models.py
Chien10/facial-expression-recognition
198904b95664eb6d4471a464a16c5ad5934dcb18
[ "MIT" ]
1
2021-03-06T18:55:20.000Z
2021-03-06T18:55:20.000Z
fer/models.py
Chien10/facial-expression-recognition
198904b95664eb6d4471a464a16c5ad5934dcb18
[ "MIT" ]
null
null
null
fer/models.py
Chien10/facial-expression-recognition
198904b95664eb6d4471a464a16c5ad5934dcb18
[ "MIT" ]
null
null
null
from keras.models import Sequential from keras.optimizers import SGD, Adadelta, Adam from keras.layers.core import Flatten, Dense, Dropout from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D,AveragePooling2D from keras.layers import Input, Dense, Dropout, Activation, Flatten from kera...
39.909091
99
0.671071
2a495aac9925a55c58fe671fdee84faa1918fb49
505
py
Python
a-practical-introduction-to-python-programming-brian-heinold/chapter-04/exercise-01.py
elarabyelaidy19/awesome-reading
5c01a4272ba58e4f7ea665aab14b4c0aa252ea89
[ "MIT" ]
31
2021-11-02T19:51:13.000Z
2022-02-17T10:55:26.000Z
a-practical-introduction-to-python-programming-brian-heinold/chapter-04/exercise-01.py
MosTafaHoSamm/awesome-reading
469408fefc049d78ed53a2b2331b5d5cecdc6c06
[ "MIT" ]
1
2022-01-18T12:27:54.000Z
2022-01-18T12:27:54.000Z
a-practical-introduction-to-python-programming-brian-heinold/chapter-04/exercise-01.py
MosTafaHoSamm/awesome-reading
469408fefc049d78ed53a2b2331b5d5cecdc6c06
[ "MIT" ]
3
2022-01-11T05:01:34.000Z
2022-02-05T14:36:29.000Z
# 1. Write a program that asks the user to enter a length in centimeters. If the user enters a negative # length, the program should tell the user that the entry is invalid. Otherwise, the program # should convert the length to inches and print out the result. There are 2.54 centimeters in an # inch. centimeters = eva...
36.071429
103
0.722772
dd29248be97606b08201e02cd314bb8a3e4142dc
317
py
Python
classes/__init__.py
Billy-The-Squid/Cayley
8e1884358c10e410c3b236d2be700726e84c6df2
[ "MIT" ]
null
null
null
classes/__init__.py
Billy-The-Squid/Cayley
8e1884358c10e410c3b236d2be700726e84c6df2
[ "MIT" ]
null
null
null
classes/__init__.py
Billy-The-Squid/Cayley
8e1884358c10e410c3b236d2be700726e84c6df2
[ "MIT" ]
null
null
null
__all__ = ['AbstractNetwork','CayleyTree','Graph','Lattice','MonteCarlo'] from Cayley.classes.abstractnetwork import AbstractNetwork from Cayley.classes.cayleytree import CayleyTree from Cayley.classes.graph import Graph from Cayley.classes.lattice import Lattice from Cayley.classes.montecarlo import MonteCarlo
28.818182
73
0.829653
6ca33bc4696fbf8ce3870a8e567469c0e14d906d
821
py
Python
17/solve.py
marcolivierarsenault/AdventOfCode2015
0094a47e6cf8af5ffe5c00a28f49ddcd919e5652
[ "MIT" ]
null
null
null
17/solve.py
marcolivierarsenault/AdventOfCode2015
0094a47e6cf8af5ffe5c00a28f49ddcd919e5652
[ "MIT" ]
null
null
null
17/solve.py
marcolivierarsenault/AdventOfCode2015
0094a47e6cf8af5ffe5c00a28f49ddcd919e5652
[ "MIT" ]
null
null
null
totalSize = 150 inputSize = [43,3,4,10,21,44,4,6,47,41,34,17,17,44,36,31,46,9,27,38] nbOfBootle = 9999 working = 0 workingDeep = 0 def goDeeper(id,remaining, ss, deep): global working global workingDeep global nbOfBootle if remaining == 0: working+=1 if deep<nbOfBootle: nb...
29.321429
97
0.630938
4d240945e5a79eb49960470536fa6d42ee5ab217
2,782
py
Python
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-devtestlabs/azure/mgmt/devtestlabs/models/policy_fragment.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# 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 ...
45.606557
78
0.647376
76aca3b0cc8316cf9b4f3190f2d166b5603fb818
3,241
py
Python
fsm/kbhit.py
FenomenCoyote/AI-VampireSurvivors
0588f5dd00e53968cfca6663dd32de22189f08b7
[ "MIT" ]
null
null
null
fsm/kbhit.py
FenomenCoyote/AI-VampireSurvivors
0588f5dd00e53968cfca6663dd32de22189f08b7
[ "MIT" ]
null
null
null
fsm/kbhit.py
FenomenCoyote/AI-VampireSurvivors
0588f5dd00e53968cfca6663dd32de22189f08b7
[ "MIT" ]
2
2022-03-01T03:49:53.000Z
2022-03-08T18:44:01.000Z
#!/usr/bin/env python ''' A Python class implementing KBHIT, the standard keyboard-interrupt poller. Works transparently on Windows and Posix (Linux, Mac OS X). Doesn't work with IDLE. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as ...
24.55303
83
0.570194
fce35234ba2ee2395d16674e6233e99f51cc51ba
9,559
py
Python
prep/SpineSession.py
orena1/SpineImagingALM
372ae843e52c27f2298bc415ef267c18aed995cb
[ "MIT" ]
2
2019-11-30T00:57:07.000Z
2020-08-26T23:49:15.000Z
prep/SpineSession.py
elifesciences-publications/SpineImagingALM
5f40e5182f298c3beba4956c37d7312f5e8b52b3
[ "MIT" ]
10
2020-03-24T17:12:03.000Z
2022-03-11T23:51:43.000Z
prep/SpineSession.py
elifesciences-publications/SpineImagingALM
5f40e5182f298c3beba4956c37d7312f5e8b52b3
[ "MIT" ]
2
2019-10-23T14:34:50.000Z
2020-10-21T00:59:10.000Z
# Encoding: utf-8 """ SpineSession class Spine session is used to load metadata information created using matlab SpineImaging class It has load and save capabilities """ import copy import io import json import os import sys import pickle import logging from builtins import input import matplotlib import matplotlib....
40.850427
116
0.5873
22c04603aba9dbd56f3d67b0e07837f357f43357
13,257
py
Python
openstates/openstates-master/openstates/ms/bills.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ms/bills.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/ms/bills.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
from .utils import chamber_name, parse_ftp_listing from billy.scrape.bills import BillScraper, Bill from billy.scrape.votes import VoteScraper, Vote from billy.scrape.utils import convert_pdf from datetime import datetime import lxml.etree import os import re def _combine_lines(lines): newlines = [] lastline =...
44.043189
129
0.527872
a089f4b0fe93793f8f14dcd6dfd9c82779fbe458
484
py
Python
catalogue/migrations/0008_auto_20170306_1708.py
R-Wolf/CFD_A_library
b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9
[ "MIT" ]
4
2017-03-14T05:03:03.000Z
2019-04-13T05:13:24.000Z
catalogue/migrations/0008_auto_20170306_1708.py
gpulkit96/CFD_A_library
b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9
[ "MIT" ]
1
2017-05-18T08:39:46.000Z
2017-05-18T08:39:46.000Z
catalogue/migrations/0008_auto_20170306_1708.py
gpulkit96/CFD_A_library
b287ed8b2932b0f3b1cf5372f8d3d3494c6439c9
[ "MIT" ]
2
2017-03-13T08:54:21.000Z
2017-05-18T06:24:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-06 17:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalogue', '0007_auto_20170306_1240'), ] operations = [ migrations.AlterFi...
23.047619
78
0.626033
b41c27b0f98ff5e5e9d5ef0e5caf9e45e3885da8
1,228
py
Python
lib/galaxy/datatypes/converters/wiggle_to_simple_converter.py
igorhollaender/sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
2
2018-10-14T16:42:39.000Z
2018-10-14T16:42:41.000Z
lib/galaxy/datatypes/converters/wiggle_to_simple_converter.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
1
2018-08-20T18:19:58.000Z
2018-08-20T18:19:58.000Z
lib/galaxy/datatypes/converters/wiggle_to_simple_converter.py
igorhollaender/OBSOLETE_sirv_dashboard
85aec60b80ef6f561d89398e3da5963d3d0f2aa4
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # code is same as ~/tools/stats/wiggle_to_simple.py """ Read a wiggle track and print out a series of lines containing "chrom position score". Ignores track lines, handles bed, variableStep and fixedStep wiggle lines. """ import sys import bx.wiggle from galaxy.util.ucsc import UCSCOutWrapper, ...
25.583333
129
0.639251
8d5f58b18c6156d6c9266a449870cd516056a28c
7,687
py
Python
salt/modules/archive.py
Jiaion/salt
a7d2444a60f33942a293680a41e894eec98f5707
[ "Apache-2.0" ]
null
null
null
salt/modules/archive.py
Jiaion/salt
a7d2444a60f33942a293680a41e894eec98f5707
[ "Apache-2.0" ]
null
null
null
salt/modules/archive.py
Jiaion/salt
a7d2444a60f33942a293680a41e894eec98f5707
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' A module to wrap archive calls .. versionadded:: 2014.1.0 (Hydrogen) ''' # Import salt libs import salt._compat from salt.utils import which as _which, which_bin as _which_bin from salt.exceptions import SaltInvocationError import salt.utils.decorators as decorators # TODO: Check that the...
28.054745
105
0.649538
5929a450a74d9b00c1e9dd1711a1d1639320c664
1,209
py
Python
painters/config.py
determined-ai/painters
88e55672e574b3a1694fe97dd9c50026764c78a5
[ "MIT" ]
null
null
null
painters/config.py
determined-ai/painters
88e55672e574b3a1694fe97dd9c50026764c78a5
[ "MIT" ]
null
null
null
painters/config.py
determined-ai/painters
88e55672e574b3a1694fe97dd9c50026764c78a5
[ "MIT" ]
null
null
null
from os.path import join, dirname import pedl # Data directories DATA_DIR = '/home/chris/painters/data_check' TEST_DIR = join(DATA_DIR, 'test') TRAIN_DIR = join(DATA_DIR, 'train') TRAIN_INFO_FILE = join(DATA_DIR, 'train_info.csv') SUBMISSION_INFO_FILE = join(DATA_DIR, 'submission_info.csv') ORGANIZED_DATA_INFO_FILE = ...
28.785714
60
0.772539
171ed8c28e2c1970254b9e249ada8db994ca23f2
765
py
Python
var/spack/repos/builtin/packages/libproxy/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/libproxy/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/libproxy/package.py
robertodr/spack
9b809e01b47d48f01b3d257912fe1b752943cd3d
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libproxy(CMakePackage): """libproxy is a library that provides automatic proxy configurati...
40.263158
97
0.769935
b22165e905115b1650a4701a9be6beaf5115ee78
140
py
Python
Clan/apps.py
zkxjzmswkwl/Gunzpedia
332b416a3d68062b443797d7bb2916de54f51e86
[ "MIT" ]
null
null
null
Clan/apps.py
zkxjzmswkwl/Gunzpedia
332b416a3d68062b443797d7bb2916de54f51e86
[ "MIT" ]
null
null
null
Clan/apps.py
zkxjzmswkwl/Gunzpedia
332b416a3d68062b443797d7bb2916de54f51e86
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ClanConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'Clan'
20
56
0.75
02363e88446aade09f1edf22f0329b4b19130933
1,122
py
Python
PyMudInterpreter/Lib/site-packages/tornado/__init__.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
PyMudInterpreter/Lib/site-packages/tornado/__init__.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
PyMudInterpreter/Lib/site-packages/tornado/__init__.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.4
80
0.763815
ccdf30d5387839867d764b9a56ee241859a4a793
5,161
py
Python
scripts/loading/NISS/retrieveProtParam.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
5
2015-11-24T23:09:46.000Z
2019-11-06T17:48:13.000Z
scripts/loading/NISS/retrieveProtParam.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
188
2017-08-28T22:39:03.000Z
2022-03-02T14:53:46.000Z
scripts/loading/NISS/retrieveProtParam.py
dougli1sqrd/SGDBackend-Nex2
2ecb2436db142cf08c6f2dbab6b115a394116632
[ "MIT" ]
7
2018-05-13T01:58:07.000Z
2021-06-25T19:08:33.000Z
from urllib.request import urlopen protein_seq_file = 'data/NISSpilotSet102119_protein.fsa' protparam_file = 'data/NISSpilotSet102119_protparam.txt' codonw_file = 'data/NISSpilotSet102119_codonw.out' protparam_root_url = 'https://web.expasy.org/cgi-bin/protparam/protparam?sequence=' aaList = ['ala', 'arg', 'asn', 'a...
34.637584
185
0.545631
f5fd5b963ae6b9ba854ba38bd56ac340275fd09e
12,221
py
Python
src/congram.py
marvintau/congram
c2f18f149d2bb88ca85de913c785d7393f94d70c
[ "Unlicense" ]
null
null
null
src/congram.py
marvintau/congram
c2f18f149d2bb88ca85de913c785d7393f94d70c
[ "Unlicense" ]
null
null
null
src/congram.py
marvintau/congram
c2f18f149d2bb88ca85de913c785d7393f94d70c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import itertools import numpy as np from color_schemes import color_func def get_term_size(): rows, columns = os.popen('stty size', 'r').read().split() return int(rows), int(columns) class Pos: def __init__(self, row, col): self.row = row se...
34.817664
92
0.546682
4cb3284a5c2c8ecb6e8c68de0925e6f54d959dd2
14,635
py
Python
wavelink/player.py
oliver-ni/Wavelink
d5cbeea2184925a50eb96342d319bdce9a93afef
[ "MIT" ]
null
null
null
wavelink/player.py
oliver-ni/Wavelink
d5cbeea2184925a50eb96342d319bdce9a93afef
[ "MIT" ]
null
null
null
wavelink/player.py
oliver-ni/Wavelink
d5cbeea2184925a50eb96342d319bdce9a93afef
[ "MIT" ]
null
null
null
"""MIT License Copyright (c) 2019-2020 PythonistaGuild 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, pu...
31.609071
125
0.601777
6f0871e5f1835b667efee97ba793562fead702a2
1,960
py
Python
lambda.py
deepanshu-yadav/NSFW-Classifier
ec6a98eb982ec30c2a21ca11dc92d580cc8a8981
[ "MIT" ]
13
2019-09-18T18:32:17.000Z
2022-03-01T08:01:18.000Z
lambda.py
deepanshu-yadav/NSFW-Classifier
ec6a98eb982ec30c2a21ca11dc92d580cc8a8981
[ "MIT" ]
null
null
null
lambda.py
deepanshu-yadav/NSFW-Classifier
ec6a98eb982ec30c2a21ca11dc92d580cc8a8981
[ "MIT" ]
4
2020-03-27T10:00:52.000Z
2021-04-23T03:30:43.000Z
import boto3 import json import numpy as np import base64, os, boto3, ast, json endpoint = 'myprojectcapstone' def format_response(message, status_code): return { 'statusCode': str(status_code), 'body': json.dumps(message), 'headers': { 'Content-Type': 'application/json', ...
32.131148
147
0.514286
b58425fe1c93b2e5bd3aada98637fcaa76a76e46
5,276
py
Python
envs/hns/wrappers/lidar.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
9
2021-11-06T15:07:42.000Z
2022-03-18T07:16:22.000Z
envs/hns/wrappers/lidar.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
null
null
null
envs/hns/wrappers/lidar.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
2
2021-11-10T11:35:36.000Z
2021-12-26T15:18:46.000Z
import gym import numpy as np from mujoco_worldgen.util.rotation import quat_from_angle_and_axis from mujoco_worldgen.util.geometry import raycast from envs.hns.wrappers.util import update_obs_space class Lidar(gym.ObservationWrapper): ''' Creates LIDAR-type observations based on Mujoco raycast A...
43.245902
108
0.611638
d9f0cd0284a50854d38dc4418c451ce758840e37
1,324
py
Python
silverstrike/migrations/0009_auto_20190204_1925.py
Adrymg/silverstrike
5ca0cbea47314983acc957cebcf87ac741acb3e0
[ "MIT" ]
298
2017-11-05T05:58:58.000Z
2022-03-29T08:17:35.000Z
silverstrike/migrations/0009_auto_20190204_1925.py
Adrymg/silverstrike
5ca0cbea47314983acc957cebcf87ac741acb3e0
[ "MIT" ]
118
2017-11-04T13:33:45.000Z
2022-02-14T13:07:42.000Z
silverstrike/migrations/0009_auto_20190204_1925.py
Adrymg/silverstrike
5ca0cbea47314983acc957cebcf87ac741acb3e0
[ "MIT" ]
96
2017-11-06T08:30:36.000Z
2022-03-10T20:47:47.000Z
# Generated by Django 2.1.5 on 2019-02-04 19:25 from django.db import migrations, models def set_ibans(apps, schema_editor): Account = apps.get_model('silverstrike', 'Account') db_alias = schema_editor.connection.alias for a in Account.objects.using(db_alias).exclude(iban=''): a.import_ibans = '[...
30.790698
118
0.586103
6ac53af7c2c09de42ac20b92a1f2500d71c942c5
934
py
Python
irclib/baseclient.py
tyler569/irclib
ac0a798efa9e61e1e985770dbb6e8558b9dd9bb3
[ "BSD-3-Clause" ]
2
2015-02-28T20:27:22.000Z
2017-02-26T19:12:52.000Z
irclib/baseclient.py
tyler569/irclib
ac0a798efa9e61e1e985770dbb6e8558b9dd9bb3
[ "BSD-3-Clause" ]
null
null
null
irclib/baseclient.py
tyler569/irclib
ac0a798efa9e61e1e985770dbb6e8558b9dd9bb3
[ "BSD-3-Clause" ]
null
null
null
""" Base client class for my IRC clientside library Copyright (C) 2014, 2015 Tyler Philbrick All Rights Reserved For license information, see COPYING """ from irclib.baseirc import BaseIRC class BaseClient(BaseIRC): def __init__(self, *args, **kwargs): """Initiates connection""" super().__init__...
25.243243
80
0.579229
52d09f6d09f02c9da27f880d3efd86eba6bfe377
807
py
Python
manage.py
pkscredy/artivatic
bda2f80a886bf24e95d4632f96fd6c1d3a10f314
[ "MIT" ]
null
null
null
manage.py
pkscredy/artivatic
bda2f80a886bf24e95d4632f96fd6c1d3a10f314
[ "MIT" ]
7
2020-06-05T20:25:31.000Z
2022-03-11T23:45:16.000Z
manage.py
sharmapacific/artivatic
bda2f80a886bf24e95d4632f96fd6c1d3a10f314
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "artivatic.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that th...
35.086957
77
0.643123
ac2d7fcaaf3f8abfa086eadf838209ccf7eb87b2
7,966
py
Python
mmcv/runner/base_module.py
jiang1997/mmcv
571e3e5fc75c23b45cbd9b00011af094357c5f1d
[ "Apache-2.0" ]
3
2019-04-25T04:53:03.000Z
2020-05-08T07:48:34.000Z
mmcv/runner/base_module.py
jiang1997/mmcv
571e3e5fc75c23b45cbd9b00011af094357c5f1d
[ "Apache-2.0" ]
null
null
null
mmcv/runner/base_module.py
jiang1997/mmcv
571e3e5fc75c23b45cbd9b00011af094357c5f1d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Open-MMLab. All rights reserved. import copy import warnings from abc import ABCMeta from collections import defaultdict from logging import FileHandler import torch.nn as nn from mmcv.runner.dist_utils import master_only from mmcv.utils.logging import get_logger, logger_initialized, print_log def u...
38.114833
78
0.60595
21a218807ee462e21e47e73ea6f42d3bcbbbb735
17,672
py
Python
src/servman/servman.py
dggfi/Servman
5415b2f952fd082a5b50d583c53eb6a21b83a296
[ "MIT" ]
null
null
null
src/servman/servman.py
dggfi/Servman
5415b2f952fd082a5b50d583c53eb6a21b83a296
[ "MIT" ]
null
null
null
src/servman/servman.py
dggfi/Servman
5415b2f952fd082a5b50d583c53eb6a21b83a296
[ "MIT" ]
null
null
null
import multiprocessing import asyncio import websockets from websockets.exceptions import ConnectionClosed, ConnectionClosedError import traceback, logging import json from json.decoder import JSONDecodeError from path import Path from uuid import uuid4 as uuidv4 from collections import defaultdict from servman.typings...
40.439359
193
0.619568
46908a9b8a3966ab8da9b8d356fffa0e8ca1c58b
21,090
py
Python
EntranceRandomizer.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
null
null
null
EntranceRandomizer.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
null
null
null
EntranceRandomizer.py
compiling/ALttPEntranceRandomizer
cd062d2165e230f2298541afdaff9463c0e2feb1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import logging import random import textwrap import sys from Main import main from Utils import is_bundled, close_console, output_path class ArgumentDefaultsHelpFormatter(argparse.RawTextHelpFormatter): def _get_help_string(self, action): return textwrap....
69.60396
260
0.500759
55f9b3e7fc96570dd7052a9ad58096e2e0164d1c
6,104
py
Python
eduvpn/ui/search.py
beckerr-rzht/python-eduvpn-client
4159ac868882f991531371a95ffbe7d5c9c59eeb
[ "Apache-2.0" ]
1
2021-04-10T03:41:24.000Z
2021-04-10T03:41:24.000Z
eduvpn/ui/search.py
beckerr-rzht/python-eduvpn-client
4159ac868882f991531371a95ffbe7d5c9c59eeb
[ "Apache-2.0" ]
null
null
null
eduvpn/ui/search.py
beckerr-rzht/python-eduvpn-client
4159ac868882f991531371a95ffbe7d5c9c59eeb
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Iterable, Callable, List, Dict import enum from functools import lru_cache from gi.repository import Gtk, GObject from eduvpn.server import ( AnyServer as Server, InstituteAccessServer, OrganisationServer, SecureInternetLocation, CustomServer) from .utils import show_ui_component ...
31.626943
78
0.700524
f4763a68559a497e57c4ce91edce1cbb6b695f57
456
py
Python
env/lib/python3.8/site-packages/plotly/validators/surface/_customdatasrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/surface/_customdatasrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/surface/_customdatasrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="customdatasrc", parent_name="surface", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_n...
35.076923
85
0.664474
164d61d20797207073d70ab2ec4a327fe1f4febb
24
py
Python
tilemani/rasterize/__init__.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
tilemani/rasterize/__init__.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
tilemani/rasterize/__init__.py
cocoaaa/TileMani
ca006f201be530af32d7c5dcae03df5daa08359a
[ "MIT" ]
null
null
null
from . import rasterizer
24
24
0.833333
45e659d8adcdf8c66d390fd521c558c84445f82c
3,118
py
Python
MachineLearning/bayes/bayes.py
z8g/pettern
abf6b9c09597bb2badec97d51112681e46dde760
[ "Apache-2.0" ]
72
2019-09-26T09:12:14.000Z
2020-09-05T11:59:25.000Z
MachineLearning/bayes/bayes.py
z8g/common
abf6b9c09597bb2badec97d51112681e46dde760
[ "Apache-2.0" ]
null
null
null
MachineLearning/bayes/bayes.py
z8g/common
abf6b9c09597bb2badec97d51112681e46dde760
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ ================================================================================ 朴素贝叶斯 ================================================================================ 优点:在数据较少的情况下仍然有效,可以处理多类别问题 缺点:对于输入数据的准备方式较为敏感 使用数据类型:标称型数据 ================================...
24.170543
80
0.53143
b8f15172f030db91079445120c094b26a919a076
2,346
py
Python
alveo/apps/yolo/modify_network_dims.py
Trabing/Vitis-AI
936881527ed9a4dcd4956b1269ab157c888f4be6
[ "Apache-2.0" ]
2
2021-03-18T17:00:07.000Z
2022-03-18T18:28:23.000Z
alveo/apps/yolo/modify_network_dims.py
Trabing/Vitis-AI
936881527ed9a4dcd4956b1269ab157c888f4be6
[ "Apache-2.0" ]
null
null
null
alveo/apps/yolo/modify_network_dims.py
Trabing/Vitis-AI
936881527ed9a4dcd4956b1269ab157c888f4be6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.014925
110
0.741688
a28c23545cc93982e3235f21fa5b3462ca366151
481
py
Python
hci/command/commands/hci_write_page_timeout.py
cc4728/python-hci
d988f69c55972af445ec3ba04fd4cd1199593d10
[ "MIT" ]
3
2021-12-16T14:32:45.000Z
2022-01-25T03:10:48.000Z
hci/command/commands/hci_write_page_timeout.py
cc4728/python-hci
d988f69c55972af445ec3ba04fd4cd1199593d10
[ "MIT" ]
null
null
null
hci/command/commands/hci_write_page_timeout.py
cc4728/python-hci
d988f69c55972af445ec3ba04fd4cd1199593d10
[ "MIT" ]
1
2022-01-25T03:10:50.000Z
2022-01-25T03:10:50.000Z
from ..command_packet import CommandPacket from struct import pack, unpack class HCI_Write_Page_Timeout(CommandPacket): def __init__(self): # TODO generate cmd super().__init__() @property def timeout(self): OFFSET, SIZE_OCTETS = 4, 2 data = self._get_data(OFFSET, SIZE_OCT...
26.722222
94
0.64657
0663aef2af89ec7ccf80477d3578f143f81d4909
313
py
Python
MUNDO 2/ex061.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
1
2020-11-12T14:03:32.000Z
2020-11-12T14:03:32.000Z
MUNDO 2/ex061.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
null
null
null
MUNDO 2/ex061.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
1
2021-01-05T22:18:46.000Z
2021-01-05T22:18:46.000Z
print('=' * 30) print(' PROGRESSÃO ARITMÉTICA') print('=' * 30) a = int(input('Digite o primeiro termo da progressão aritmética: ')) b = int(input('Digite a razão da progressão aritimética: ')) cont = 1 while cont <= 10: print(f'{a}', end=' -> ') a = a + b cont = cont + 1 print('FIM!')
26.083333
69
0.57508
23ab93d9852d6bfc45c8a5ffff4286f47a730729
1,256
py
Python
python/1103.distribute-candies-to-people.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
1
2019-04-11T12:34:55.000Z
2019-04-11T12:34:55.000Z
python/1103.distribute-candies-to-people.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
python/1103.distribute-candies-to-people.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=1103 lang=python3 # # [1103] 分糖果 II # from typing import List import math class Solution: def distributeCandies(self, candies: int, num_people: int) -> List[int]: if num_people == 0: return [] elif candies == 0: return [0 for i in range(num_people...
21.655172
79
0.443471
d0d9e89a7ceb0dee72ddfd7a967668ebb98d4c0c
4,915
py
Python
otcextensions/sdk/cbr/v3/backup.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
10
2018-03-03T17:59:59.000Z
2020-01-08T10:03:00.000Z
otcextensions/sdk/cbr/v3/backup.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
208
2020-02-10T08:27:46.000Z
2022-03-29T15:24:21.000Z
otcextensions/sdk/cbr/v3/backup.py
artem-lifshits/python-otcextensions
2021da124f393e0429dd5913a3bc635e6143ba1e
[ "Apache-2.0" ]
15
2020-04-01T20:45:54.000Z
2022-03-23T12:45:43.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
38.398438
75
0.695015
674bef3da99b89f063c55cde5e1bdc4ecad73e2c
982
py
Python
nipy/neurospin/datasets/tests/test_converters.py
fperez/nipy
559f17150bd9fa8ead4fd088b330d7cf7db7aa79
[ "BSD-3-Clause" ]
1
2015-05-07T16:53:33.000Z
2015-05-07T16:53:33.000Z
nipy/neurospin/datasets/tests/test_converters.py
fperez/nipy
559f17150bd9fa8ead4fd088b330d7cf7db7aa79
[ "BSD-3-Clause" ]
null
null
null
nipy/neurospin/datasets/tests/test_converters.py
fperez/nipy
559f17150bd9fa8ead4fd088b330d7cf7db7aa79
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ Test for the converters. """ import os import nose from .. import as_volume_img from nipy.io import imageformats data_file = os.path.join(imageformats.__path__[0], 'tests', ...
25.179487
73
0.643585
a994534de013613ae187a64a7e8f5d0c1b51da6e
14,287
py
Python
elasticsearch/_async/client/_base.py
puddingDad2016/elasticsearch-py
d013e8863667341792c2187cb1b7c677b1fd7862
[ "Apache-2.0" ]
1
2022-03-29T02:46:02.000Z
2022-03-29T02:46:02.000Z
elasticsearch/_async/client/_base.py
puddingDad2016/elasticsearch-py
d013e8863667341792c2187cb1b7c677b1fd7862
[ "Apache-2.0" ]
null
null
null
elasticsearch/_async/client/_base.py
puddingDad2016/elasticsearch-py
d013e8863667341792c2187cb1b7c677b1fd7862
[ "Apache-2.0" ]
null
null
null
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use ...
36.35369
98
0.595926
4d4cb2a5c5fb8ea431717c229fc5e21d7c8303c1
1,807
py
Python
lettersmith/wikimarkup.py
ericmjl/lettersmith_py
96ddaf1268ac53062b2e7b1d05d06dc092865666
[ "MIT" ]
103
2018-02-19T00:10:57.000Z
2022-02-18T00:14:55.000Z
lettersmith/wikimarkup.py
ericmjl/lettersmith_py
96ddaf1268ac53062b2e7b1d05d06dc092865666
[ "MIT" ]
8
2018-09-01T10:29:01.000Z
2021-10-01T21:37:10.000Z
lettersmith/wikimarkup.py
ericmjl/lettersmith_py
96ddaf1268ac53062b2e7b1d05d06dc092865666
[ "MIT" ]
12
2018-08-31T16:53:14.000Z
2022-03-14T00:44:08.000Z
""" Render wikilinks in text. """ import re from lettersmith.path import to_slug _WIKILINK = r'\[\[([^\]]+)\]\]' _TRANSCLUDE = r'^\[\[([^\]]+)\]\]$' def _sub_wikilink_title(match): slug, title = _parse_wikilink(match.group(0)) return title def strip_wikilinks(text): """ Strip markup from text ...
25.097222
80
0.6342
5100cb1fd6326b812e0a3f2a476c87e8ac5666de
7,431
py
Python
src/baxter_pykdl/baxter_pykdl.py
maymohan/baxter_pykdl
7e29781e753d9ea46d173acec87ac07dd3b0ba6b
[ "BSD-3-Clause" ]
null
null
null
src/baxter_pykdl/baxter_pykdl.py
maymohan/baxter_pykdl
7e29781e753d9ea46d173acec87ac07dd3b0ba6b
[ "BSD-3-Clause" ]
null
null
null
src/baxter_pykdl/baxter_pykdl.py
maymohan/baxter_pykdl
7e29781e753d9ea46d173acec87ac07dd3b0ba6b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-2014, Rethink Robotics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # ...
42.221591
86
0.652671
d2a86aca13137224375124afdc05f57936fda8db
1,010
py
Python
goog_sentiment.py
ompedans/oftwit
d911bd2d76b0308e3638edbc4e6bb44223636b0c
[ "MIT" ]
null
null
null
goog_sentiment.py
ompedans/oftwit
d911bd2d76b0308e3638edbc4e6bb44223636b0c
[ "MIT" ]
null
null
null
goog_sentiment.py
ompedans/oftwit
d911bd2d76b0308e3638edbc4e6bb44223636b0c
[ "MIT" ]
null
null
null
from google.cloud import language from google.cloud.language import enums from google.cloud.language import types import json client = language.LanguageServiceClient() text_pos_ex = "Yurt dışında hastalanan, ülkemize nakli öngörülen Türkiye Cumhuriyeti vatandaşları ambulans uçaklarımızla yurdumuza getirildiği gibi ül...
48.095238
269
0.826733
e2b71d793c00920947b09db5c5f7f2bccdd0e606
13,592
py
Python
Logistic_Regression.py
apolat2018/LSAT
31e91794376ebe6fb29d666592627078e062846a
[ "MIT" ]
9
2021-03-09T12:50:15.000Z
2022-03-16T13:05:46.000Z
Logistic_Regression.py
apolat2018/LSAT
31e91794376ebe6fb29d666592627078e062846a
[ "MIT" ]
4
2021-06-06T17:20:09.000Z
2022-03-25T17:40:12.000Z
Logistic_Regression.py
apolat2018/LSAT
31e91794376ebe6fb29d666592627078e062846a
[ "MIT" ]
3
2020-12-04T16:38:10.000Z
2021-06-01T08:33:21.000Z
# -*- coding: cp1254 -*- """ This script creates Landslide Susceptibility Map (LSM) with Logistic Regression Model Ali POLAT (2018) """ #////////////////////IMPORTING THE REQUIRED LIBRARIES///////////////////////// import arcpy import os from arcpy.sa import * import numpy as np import pandas as pd import matplotlib...
29.938326
98
0.610212
c9a181ff634fd817a1dce6cd7ec1c9ebaa9536c1
6,297
py
Python
credentialDB.py
SeanWaclawik/courseproject
d69768279382d989eda8f4f7adf9303484afebee
[ "MIT" ]
1
2018-07-22T12:42:57.000Z
2018-07-22T12:42:57.000Z
credentialDB.py
SeanWaclawik/courseproject
d69768279382d989eda8f4f7adf9303484afebee
[ "MIT" ]
null
null
null
credentialDB.py
SeanWaclawik/courseproject
d69768279382d989eda8f4f7adf9303484afebee
[ "MIT" ]
null
null
null
# simple crypt credential db # public-return a list of credentials (client must supply key) # returnAllUsers(key) # returns list [of 3 dictionary items {userID:**, userPW:**, userEmail} ... ] # AND returns String of Log (will contain "Success" iff successful) # public-add new user to ...
26.457983
98
0.565349
2f4a024d75caec717afa7182bfd690e4dc599d14
20,067
py
Python
Decode/decodeOld.py
Tesla2fox/MPDA_Preliminary
5188931878213079cea608cc556b42f1cae225c1
[ "Apache-2.0" ]
1
2018-09-05T03:26:02.000Z
2018-09-05T03:26:02.000Z
Decode/decodeOld.py
Tesla2fox/MPDA_Preliminary
5188931878213079cea608cc556b42f1cae225c1
[ "Apache-2.0" ]
null
null
null
Decode/decodeOld.py
Tesla2fox/MPDA_Preliminary
5188931878213079cea608cc556b42f1cae225c1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Sep 4 10:12:55 2018 @author: robot """ import os,sys AbsolutePath = os.path.abspath(__file__) #将相对路径转换成绝对路径 SuperiorCatalogue = os.path.dirname(AbsolutePath) #相对路径的上级路径 BaseDir = os.path.dirname(SuperiorCatalogue) #在“SuperiorCatalogue”的基础上在脱掉一层路径,得到我们想...
38.739382
101
0.461952
f3e050dbd1537e289d9a8d127d56d08f6cfa3d76
4,149
py
Python
polymorphic/contrib/extra_views.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
1
2022-03-14T21:50:12.000Z
2022-03-14T21:50:12.000Z
polymorphic/contrib/extra_views.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
10
2020-02-12T01:46:41.000Z
2022-02-10T09:00:03.000Z
polymorphic/contrib/extra_views.py
likeanaxon/django-polymorphic
ad4e6e90c82f897300c1c135bd7a95e4b2d802a3
[ "BSD-3-Clause" ]
1
2021-11-04T22:07:37.000Z
2021-11-04T22:07:37.000Z
""" The ``extra_views.formsets`` provides a simple way to handle formsets. The ``extra_views.advanced`` provides a method to combine that with a create/update form. This package provides classes that support both options for polymorphic formsets. """ from __future__ import absolute_import import extra_views from djan...
29.013986
97
0.685707
b28c380fd8aafa79e75612871f8e13e2d541c5de
5,004
py
Python
models/EncoderRNN.py
jongho-park/speech_hackathon_2019
0df9b4914820f80ff411c3d69e7b236b5272c487
[ "Apache-2.0" ]
null
null
null
models/EncoderRNN.py
jongho-park/speech_hackathon_2019
0df9b4914820f80ff411c3d69e7b236b5272c487
[ "Apache-2.0" ]
null
null
null
models/EncoderRNN.py
jongho-park/speech_hackathon_2019
0df9b4914820f80ff411c3d69e7b236b5272c487
[ "Apache-2.0" ]
null
null
null
""" Copyright 2017- IBM Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
42.05042
130
0.65028
66b44bc7e28dc512f18bfcb77733389fead8b0fa
10,149
py
Python
litedram/core/crossbar.py
daveshah1/litedram
9a2d3f0eb9ae059077db6972f362f02b5d4a6a4e
[ "OLDAP-2.6", "OLDAP-2.7", "OLDAP-2.3" ]
null
null
null
litedram/core/crossbar.py
daveshah1/litedram
9a2d3f0eb9ae059077db6972f362f02b5d4a6a4e
[ "OLDAP-2.6", "OLDAP-2.7", "OLDAP-2.3" ]
null
null
null
litedram/core/crossbar.py
daveshah1/litedram
9a2d3f0eb9ae059077db6972f362f02b5d4a6a4e
[ "OLDAP-2.6", "OLDAP-2.7", "OLDAP-2.3" ]
null
null
null
# This file is Copyright (c) 2015 Sebastien Bourdeauducq <sb@m-labs.hk> # This file is Copyright (c) 2016-2019 Florent Kermarrec <florent@enjoy-digital.fr> # This file is Copyright (c) 2018 John Sully <john@csquare.ca> # License: BSD """LiteDRAM Crossbar.""" from functools import reduce from operator import or_ from...
46.342466
110
0.588826
1427abc4bbb46adf0611400b6c130a0081c259ec
661
py
Python
send.py
sz332/python_firebase_cloud_messaging
d81691c85985f9f8dd55eba993fcb24ff5edbc1b
[ "Apache-2.0" ]
null
null
null
send.py
sz332/python_firebase_cloud_messaging
d81691c85985f9f8dd55eba993fcb24ff5edbc1b
[ "Apache-2.0" ]
null
null
null
send.py
sz332/python_firebase_cloud_messaging
d81691c85985f9f8dd55eba993fcb24ff5edbc1b
[ "Apache-2.0" ]
null
null
null
import http.client import json server_key = '<server key>'; client_token = '<token received by client>'; notification = { 'title': 'Hello world', 'body': 'This is a very long message', 'icon': 'firebase-logo.png', 'click_action': 'http://localhost:8081' } headers = { 'Authorization': 'key=' + server...
21.322581
60
0.674735
95574698309fad296b86471275abb9121631c334
2,157
py
Python
edna2/tasks/test/ReadImageHeaderTasks/ReadImageHeaderTasks_exec_test.py
gsantoni/edna2
0aad63a3ea8091ce62118f0b2c8ac78a2286da9e
[ "CC0-1.0", "MIT" ]
null
null
null
edna2/tasks/test/ReadImageHeaderTasks/ReadImageHeaderTasks_exec_test.py
gsantoni/edna2
0aad63a3ea8091ce62118f0b2c8ac78a2286da9e
[ "CC0-1.0", "MIT" ]
null
null
null
edna2/tasks/test/ReadImageHeaderTasks/ReadImageHeaderTasks_exec_test.py
gsantoni/edna2
0aad63a3ea8091ce62118f0b2c8ac78a2286da9e
[ "CC0-1.0", "MIT" ]
null
null
null
# Copyright (c) European Synchrotron Radiation Facility (ESRF) # # 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, m...
42.294118
82
0.753361
a23951a3f0fbf14f6b2c9be22c8821fcfe5cd95d
3,010
py
Python
pytorch/net.py
fujibo/poseHG
e582a6ca1badc9a894b8b7e2a5e0acf9eb348c5c
[ "BSD-3-Clause" ]
null
null
null
pytorch/net.py
fujibo/poseHG
e582a6ca1badc9a894b8b7e2a5e0acf9eb348c5c
[ "BSD-3-Clause" ]
null
null
null
pytorch/net.py
fujibo/poseHG
e582a6ca1badc9a894b8b7e2a5e0acf9eb348c5c
[ "BSD-3-Clause" ]
1
2018-06-30T07:07:25.000Z
2018-06-30T07:07:25.000Z
import torch import torch.nn as nn from torch.nn import functional as F from torch.autograd import Variable class ResidualModule(nn.Module): """docstring for ResidualModule.""" def __init__(self, in_channels, out_channels): super(ResidualModule, self).__init__() self.in_channels = in_channels ...
31.030928
87
0.602658
1ba863b0eaf4bdac1a2f17fca83e2692d566163b
1,256
py
Python
data-prep/scripts/vector_sum_values.py
developmentseed/cccmc-sustainable-rubber-pub
7ad633b521a1d44dfe4c6e61c5f6d3284a878ef4
[ "MIT" ]
null
null
null
data-prep/scripts/vector_sum_values.py
developmentseed/cccmc-sustainable-rubber-pub
7ad633b521a1d44dfe4c6e61c5f6d3284a878ef4
[ "MIT" ]
null
null
null
data-prep/scripts/vector_sum_values.py
developmentseed/cccmc-sustainable-rubber-pub
7ad633b521a1d44dfe4c6e61c5f6d3284a878ef4
[ "MIT" ]
null
null
null
""" Sum up all values for parent admins Author: @developmentseed Run: python vector_sum_values.py --help """ from geojson import Feature, FeatureCollection as fc import sys import json from shapely.geometry import shape import pandas as pd admin_child = sys.argv[1] admin_parent = sys.argv[2] field = sys.argv[3] ...
24.627451
80
0.667994
e25f33fbd8c06c6afacec10df8e02f7cfb4ab518
2,429
py
Python
exoplanet-ml/astrowavenet/configurations.py
alextamkin/exoplanet-ml
299682842fb56bf0edf03f9a7619d7eaf6e833ed
[ "Apache-2.0" ]
null
null
null
exoplanet-ml/astrowavenet/configurations.py
alextamkin/exoplanet-ml
299682842fb56bf0edf03f9a7619d7eaf6e833ed
[ "Apache-2.0" ]
null
null
null
exoplanet-ml/astrowavenet/configurations.py
alextamkin/exoplanet-ml
299682842fb56bf0edf03f9a7619d7eaf6e833ed
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Exoplanet ML 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 or agreed t...
31.545455
76
0.665706
b6293d60db8dccb6397dade39d125bf304c04ec0
24,278
py
Python
selfdrive/locationd/models/loc_kf.py
connor-larkin/openpilot
b50be30dec44766e802487c62f72d2d2a5ed466c
[ "MIT" ]
4
2018-12-20T19:21:56.000Z
2021-11-07T16:27:26.000Z
selfdrive/locationd/models/loc_kf.py
skyhanil1004/hanilpilot
102738e4e0dd1702ab01b849e444bd1dfc2ddd1c
[ "MIT" ]
null
null
null
selfdrive/locationd/models/loc_kf.py
skyhanil1004/hanilpilot
102738e4e0dd1702ab01b849e444bd1dfc2ddd1c
[ "MIT" ]
5
2019-01-09T06:03:01.000Z
2020-06-04T17:09:35.000Z
#!/usr/bin/env python3 import sys import numpy as np import sympy as sp from selfdrive.locationd.models.constants import ObservationKind from rednose.helpers.ekf_sym import EKF_sym, gen_code from rednose.helpers.lst_sq_computer import LstSqComputer from rednose.helpers.sympy_helpers import euler_rotate, quat_matrix_...
43.744144
176
0.627605
0ffd7b657f7f4ec260f03ea58c5cc956b119942b
4,857
py
Python
cronjob/python/Telesales/importSCSchedule_cron.py
heodat234/worldfone4xs_ibm
6b508c3d99c48c5b8c9f1d979c356fc573e999a2
[ "MIT" ]
null
null
null
cronjob/python/Telesales/importSCSchedule_cron.py
heodat234/worldfone4xs_ibm
6b508c3d99c48c5b8c9f1d979c356fc573e999a2
[ "MIT" ]
null
null
null
cronjob/python/Telesales/importSCSchedule_cron.py
heodat234/worldfone4xs_ibm
6b508c3d99c48c5b8c9f1d979c356fc573e999a2
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- import sys import time import os from datetime import datetime from datetime import date from xlsxwriter.utility import xl_rowcol_to_cell from pprint import pprint from bson import ObjectId from time import mktime as mktime from helper.ftp import Ftp from helpe...
39.487805
173
0.592341
d3fe395b328b68b0f155e004c1806a387c21baec
73
py
Python
dotbot/__init__.py
phallstrom/dotbot
f197ededb11e7613aa0f4c5f88311e9ab4653749
[ "MIT" ]
null
null
null
dotbot/__init__.py
phallstrom/dotbot
f197ededb11e7613aa0f4c5f88311e9ab4653749
[ "MIT" ]
null
null
null
dotbot/__init__.py
phallstrom/dotbot
f197ededb11e7613aa0f4c5f88311e9ab4653749
[ "MIT" ]
null
null
null
from .cli import main from .plugin import Plugin __version__ = '1.12.4'
14.6
26
0.739726
c9d855d29ec8810dcb0af44f86d3a69b2b9bbcbb
474
py
Python
soil.py
johri002/AutoPiIrrigator
d997d0e217de0ea73943485d1d2ac56fc513f8f7
[ "MIT" ]
2
2020-03-22T00:00:25.000Z
2021-07-06T02:08:27.000Z
soil.py
johri002/AutoPiIrrigator
d997d0e217de0ea73943485d1d2ac56fc513f8f7
[ "MIT" ]
1
2019-08-13T06:56:26.000Z
2019-10-29T19:07:27.000Z
soil.py
johri002/AutoPiIrrigator
d997d0e217de0ea73943485d1d2ac56fc513f8f7
[ "MIT" ]
2
2018-03-08T09:17:17.000Z
2019-08-14T08:15:07.000Z
import RPi.GPIO as GPIO import time #GPIO SETUP pin = [21] GPIO.setmode(GPIO.BCM) GPIO.setup(pin, GPIO.IN) def callback(pin): if GPIO.input(pin): print "No Water Detected!" x=x+1 #x value to be thrown to valve module else: print "Water Detected!" ...
19.75
54
0.609705
cd1f438cff9630166c928bf5c9a71baec0556f51
3,520
py
Python
ProjectApplication/project_core/tests/views/logged/test_proposal.py
Swiss-Polar-Institute/project-application
2fdc12378ca3d974bd4ac20cf9f56ff544058524
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/project_core/tests/views/logged/test_proposal.py
Swiss-Polar-Institute/project-application
2fdc12378ca3d974bd4ac20cf9f56ff544058524
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/project_core/tests/views/logged/test_proposal.py
Swiss-Polar-Institute/project-application
2fdc12378ca3d974bd4ac20cf9f56ff544058524
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
from django.http import HttpRequest from django.test import Client from django.test import TestCase from django.urls import reverse from evaluation.models import Reviewer from ... import database_population from ....models import Proposal from ....views.logged import proposal class ManagementProposalTest(TestCase): ...
38.681319
118
0.701705
98991bad398d6e44cb5f0bef767a6fab3380113a
5,467
py
Python
exchange_calendars/calendar_helpers.py
pbabics/exchange_calendars
56836debbd33bb4410f4e91eae1be32f35b9c45b
[ "Apache-2.0" ]
null
null
null
exchange_calendars/calendar_helpers.py
pbabics/exchange_calendars
56836debbd33bb4410f4e91eae1be32f35b9c45b
[ "Apache-2.0" ]
null
null
null
exchange_calendars/calendar_helpers.py
pbabics/exchange_calendars
56836debbd33bb4410f4e91eae1be32f35b9c45b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import typing import datetime import numpy as np import pandas as pd from exchange_calendars import errors if typing.TYPE_CHECKING: from exchange_calendars import ExchangeCalendar NANOSECONDS_PER_MINUTE = int(6e10) NP_NAT = pd.NaT.value Session = typing.Union[pd.Timestamp, s...
30.372222
79
0.614231
008997001ef7b27f9e83f94be4ff05951356afcb
434
py
Python
djnago_portfolio/projects/models.py
RohanMiraje/my_django_learning_start
57f5dd0c984862119a551e640bf4b31d583b4353
[ "MIT" ]
null
null
null
djnago_portfolio/projects/models.py
RohanMiraje/my_django_learning_start
57f5dd0c984862119a551e640bf4b31d583b4353
[ "MIT" ]
null
null
null
djnago_portfolio/projects/models.py
RohanMiraje/my_django_learning_start
57f5dd0c984862119a551e640bf4b31d583b4353
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Project(models.Model): title = models.CharField(max_length=100) description = models.TextField() technology = models.CharField(max_length=20) # image = models.FilePathField(path='/projects/img') image = models.CharField(max_length=100) ...
39.454545
114
0.739631
248d24197321d56e3ba26b555f1f85f9cfdfb4d0
1,441
py
Python
tests/model/test_parallax_correction.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
3
2019-08-16T05:46:29.000Z
2020-09-18T08:38:37.000Z
tests/model/test_parallax_correction.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
448
2019-04-06T01:20:56.000Z
2022-03-31T15:58:48.000Z
tests/model/test_parallax_correction.py
toastisme/dxtbx
fc24e215a8052e7e17be4ad4b41f9dbb474d852a
[ "BSD-3-Clause" ]
10
2019-04-08T13:30:32.000Z
2021-09-30T14:48:50.000Z
import os import random from scitbx import matrix import dxtbx from dxtbx.model import parallax_correction, parallax_correction_inv def correct_gold(detector, attlen, xy): s1 = matrix.col(detector.get_lab_coord(xy)) lab = attlen * s1 / s1.length() d = detector.get_d_matrix() d0 = matrix.col((d[0], d...
32.022222
86
0.66204
1d78c97caddeb6a617c371f1e36c628eb54953eb
4,868
py
Python
hello3.py
codlaug/zenbot
f3066dd7f7fded1d9c1aeaff8d0ba83fbec9bea3
[ "MIT" ]
null
null
null
hello3.py
codlaug/zenbot
f3066dd7f7fded1d9c1aeaff8d0ba83fbec9bea3
[ "MIT" ]
null
null
null
hello3.py
codlaug/zenbot
f3066dd7f7fded1d9c1aeaff8d0ba83fbec9bea3
[ "MIT" ]
null
null
null
import sys import ta import pandas as pd from sklearn.preprocessing import MaxAbsScaler import numpy as np import tensorflow as tf from sklearn.externals import joblib from PyEMD import EEMD short_model = tf.keras.models.load_model('predict-trend/trend3both0-2.h5') both_model = tf.keras.models.load_model('predict-tre...
31.61039
179
0.643796
8ac5f69a01cc461bf70d180dcb9161e7f83f0fb6
43,569
py
Python
ui/SAGEShape.py
benyaboy/sage-graphics
090640167329ace4b6ad266d47db5bb2b0394232
[ "Unlicense" ]
null
null
null
ui/SAGEShape.py
benyaboy/sage-graphics
090640167329ace4b6ad266d47db5bb2b0394232
[ "Unlicense" ]
null
null
null
ui/SAGEShape.py
benyaboy/sage-graphics
090640167329ace4b6ad266d47db5bb2b0394232
[ "Unlicense" ]
1
2021-07-02T10:31:03.000Z
2021-07-02T10:31:03.000Z
############################################################################ # # SAGE UI - A Graphical User Interface for SAGE # Copyright (C) 2005 Electronic Visualization Laboratory, # University of Illinois at Chicago # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # ...
37.366209
124
0.596686
7f9d04d0ab39982004c100a988c21fe6151ffe11
5,716
py
Python
scripts/tflite_model_tools/tflite/DepthwiseConv2DOptions.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
15
2021-09-05T03:43:54.000Z
2022-03-29T14:17:29.000Z
scripts/tflite_model_tools/tflite/DepthwiseConv2DOptions.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
21
2021-09-01T06:58:31.000Z
2022-03-31T06:33:15.000Z
scripts/tflite_model_tools/tflite/DepthwiseConv2DOptions.py
LaudateCorpus1/edgeai-tidl-tools
d98789769a711e5a3700dfdc20d877073bd87da7
[ "CNRI-Python" ]
6
2021-09-22T06:44:19.000Z
2022-02-07T06:28:35.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class DepthwiseConv2DOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsDepthwiseConv2DOptions(cls, buf, offset): ...
42.340741
142
0.727257
1f7e9b379d190ae4cacd312d4f11a7d7593dec45
46
py
Python
dj_admin_bootstrapped/__init__.py
CarlosMart626/dj_admin_bootstrapped
93f3a0f6eae816c0d6c24feca1d49b167ea21d9e
[ "MIT" ]
2
2020-04-27T06:05:52.000Z
2020-11-17T08:13:15.000Z
dj_admin_bootstrapped/__init__.py
CarlosMart626/dj_admin_bootstrapped
93f3a0f6eae816c0d6c24feca1d49b167ea21d9e
[ "MIT" ]
1
2018-04-02T03:26:47.000Z
2018-04-02T03:26:47.000Z
dj_admin_bootstrapped/__init__.py
CarlosMart626/dj_admin_bootstrapped
93f3a0f6eae816c0d6c24feca1d49b167ea21d9e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = "0.1.3"
15.333333
23
0.521739
f3f26f46cda884951db4265350a779aeef51ea8e
995
py
Python
info_service/urls.py
inverthermit/car_info_retriever
41b5900fa20b2c62e11c1ea8ad06d30901bb2ff0
[ "MIT" ]
null
null
null
info_service/urls.py
inverthermit/car_info_retriever
41b5900fa20b2c62e11c1ea8ad06d30901bb2ff0
[ "MIT" ]
null
null
null
info_service/urls.py
inverthermit/car_info_retriever
41b5900fa20b2c62e11c1ea8ad06d30901bb2ff0
[ "MIT" ]
null
null
null
"""info_service URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
32.096774
77
0.669347
7fc5199468b4b69e659d71cb36bde6763a9ddaa9
280
py
Python
code/scripts/getData.py
jonl1096/seelvizorg
ae4e3567ce89eb62edcd742060619fdf1883b991
[ "Apache-2.0" ]
null
null
null
code/scripts/getData.py
jonl1096/seelvizorg
ae4e3567ce89eb62edcd742060619fdf1883b991
[ "Apache-2.0" ]
2
2017-04-18T02:50:14.000Z
2017-04-18T18:04:20.000Z
scripts/getData.py
NeuroDataDesign/seelviz-archive
cb9bcf7c0f32f0256f71be59dd7d7a9086d0f3b3
[ "Apache-2.0" ]
null
null
null
import ndreg as nd import SimpleITK as sitk import numpy as np import nibabel as nb inImg = nd.imgDownload("Cocaine174ARACoronal.nii", resolution = 5) imgArray = sitk.GetArrayFromImage(inImg) img = nib.Nifti1Image(imgArray, np.eye(4)) nb.save(img, "Cocaine174ARACoronal.nii")
21.538462
66
0.775
f08e278dac43d76815903eb30b3615f3e66f5e26
413
py
Python
example/example/tables.py
mgaller/django-crudbuilder
f1d7bd509970c76ccca0879ba1ae97ee1121947b
[ "Apache-2.0" ]
186
2015-10-28T12:32:31.000Z
2022-03-24T18:39:15.000Z
example/example/tables.py
mgaller/django-crudbuilder
f1d7bd509970c76ccca0879ba1ae97ee1121947b
[ "Apache-2.0" ]
72
2016-01-28T09:25:50.000Z
2021-11-24T03:58:59.000Z
example/example/tables.py
mgaller/django-crudbuilder
f1d7bd509970c76ccca0879ba1ae97ee1121947b
[ "Apache-2.0" ]
73
2015-11-08T21:46:06.000Z
2022-03-24T10:11:50.000Z
import django_tables2 as tables from django_tables2.utils import A from .models import Person class CustomPersonTable(tables.Table): name = tables.LinkColumn('example-people-detail', args=[A('pk')]) selection = tables.CheckBoxColumn(accessor='pk') class Meta: model = Person attrs = {"cla...
27.533333
69
0.687651
7f3e09a96e443c5a40097abca515243ec0e16800
10,991
py
Python
depc/apiv1/dependencies.py
ovh/depc
ce428b6ba790ee4a2e7150b4cb68fdcbfdfae2f4
[ "BSD-3-Clause" ]
77
2019-01-30T10:12:36.000Z
2021-10-19T16:25:53.000Z
depc/apiv1/dependencies.py
ovh/depc
ce428b6ba790ee4a2e7150b4cb68fdcbfdfae2f4
[ "BSD-3-Clause" ]
13
2019-02-20T16:57:57.000Z
2022-03-01T23:10:26.000Z
depc/apiv1/dependencies.py
ovh/depc
ce428b6ba790ee4a2e7150b4cb68fdcbfdfae2f4
[ "BSD-3-Clause" ]
10
2019-01-30T13:30:39.000Z
2021-08-02T05:55:18.000Z
from urllib.parse import unquote import arrow from flask import abort, jsonify, request from flask_login import login_required from depc.apiv1 import api from depc.controllers.dependencies import DependenciesController from depc.users import TeamPermission @api.route("/teams/<team_id>/labels") @login_required def g...
25.560465
152
0.597034
9f5a876b8f33c1c6a142068bb7cb8882820e050a
5,637
py
Python
sdk/python/pulumi_azure_nextgen/netapp/v20190801/get_snapshot.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/netapp/v20190801/get_snapshot.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/netapp/v20190801/get_snapshot.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
34.163636
153
0.638815
78b8a7d88cfed5cdf839e28bc4aec8d6abcec2f4
5,537
py
Python
cytopath/plotting_functions/plot_alignment.py
claassenlab/cytopath
2b05201e24dd6f4d7f9495d161679c2bffa62b24
[ "BSD-3-Clause" ]
4
2021-01-25T13:37:14.000Z
2021-11-04T03:28:52.000Z
cytopath/plotting_functions/plot_alignment.py
claassenlab/cytopath
2b05201e24dd6f4d7f9495d161679c2bffa62b24
[ "BSD-3-Clause" ]
2
2022-02-22T23:21:34.000Z
2022-03-10T07:51:51.000Z
cytopath/plotting_functions/plot_alignment.py
claassenlab/cytopath
2b05201e24dd6f4d7f9495d161679c2bffa62b24
[ "BSD-3-Clause" ]
3
2021-07-30T13:23:54.000Z
2022-02-22T23:06:59.000Z
import numpy as np from scipy import spatial import matplotlib.pyplot as plt def pl_cytopath_alignment(adata, basis="umap", folder="", figsize=(12,3), save_type='svg', size = 10, smoothing=False): map_state = adata.obsm['X_'+basis] av_allign_score_glob=[] std_allign_score_glob=[] step_t...
46.529412
196
0.565469
51fb6894d58670954d1350016040c35ca12cfa36
452
py
Python
Samples/Previous Demos/Smart Fridge Demo/insert_sample_data.py
gregorvilkner/API
d678a491b4d015bab501cae5dcbd3582c8ded794
[ "Apache-2.0" ]
2
2021-12-30T15:38:27.000Z
2022-02-21T17:23:13.000Z
Samples/Previous Demos/Smart Fridge Demo/insert_sample_data.py
gregorvilkner/API
d678a491b4d015bab501cae5dcbd3582c8ded794
[ "Apache-2.0" ]
4
2021-02-05T13:46:51.000Z
2022-02-27T21:34:26.000Z
Samples/Previous Demos/Smart Fridge Demo/insert_sample_data.py
gregorvilkner/API
d678a491b4d015bab501cae5dcbd3582c8ded794
[ "Apache-2.0" ]
7
2021-01-14T21:18:58.000Z
2022-02-02T14:54:29.000Z
import common_graphql_functions tag_to_update = "1848" sample_value = 9 query_string = ''' mutation InsertSampleData { replaceTimeSeriesRange( input: { entries: [ {value: "''' + str(sample_value) + '''", timestamp: "UTCStart", status: "0"} ], tagId: "''' + tag...
22.6
87
0.570796
a5ec0ad45aeb39483b626d628e960d3bf1a897dc
87
py
Python
tests/unit/aws/client/ecs/__init__.py
cheesecomer/deploy2ecs-cli
5afc01eda64eec5a7b71d5ce4316e412c644af20
[ "MIT" ]
null
null
null
tests/unit/aws/client/ecs/__init__.py
cheesecomer/deploy2ecs-cli
5afc01eda64eec5a7b71d5ce4316e412c644af20
[ "MIT" ]
null
null
null
tests/unit/aws/client/ecs/__init__.py
cheesecomer/deploy2ecs-cli
5afc01eda64eec5a7b71d5ce4316e412c644af20
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- mode: python -*- # -*- coding: utf-8 -*- # vi: set ft=python :
17.4
23
0.517241
dbd1a6326b8fca438b1e7fc88c233ddb1b3ac463
1,494
py
Python
alipay/aop/api/domain/AlipayOpenMiniMiniappFavoriteQueryModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOpenMiniMiniappFavoriteQueryModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOpenMiniMiniappFavoriteQueryModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniMiniappFavoriteQueryModel(object): def __init__(self): self._designated_app_id = None self._user_id = None @property def designated_app_id(self): re...
26.678571
85
0.618474
25cb44aac78b03e35a2c44f22ad75a285c06af9c
393
py
Python
Python/Exercícios_Python/013_reajuste_salarial.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/013_reajuste_salarial.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/013_reajuste_salarial.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """013 - Reajuste Salarial Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1US2CGdprsjD4mRm_kRMWVKzj4mA3UMOp """ sa = float(input('Quanto ganha um funcionário? R$: ')) sn = sa + (sa * 15 / 100) print('Um funcionário que ganhava ...
32.75
107
0.694656
f06c864583969b5786f6aff0c9fd4ffe148a8483
3,319
py
Python
src/test_vgg16.py
fabiomaia/msc
43e3a8e17786c2c3246768f29be60d6c93f52527
[ "MIT" ]
5
2020-03-27T16:38:46.000Z
2020-05-28T22:57:14.000Z
src/test_vgg16.py
fabiomaia/msc
43e3a8e17786c2c3246768f29be60d6c93f52527
[ "MIT" ]
null
null
null
src/test_vgg16.py
fabiomaia/msc
43e3a8e17786c2c3246768f29be60d6c93f52527
[ "MIT" ]
null
null
null
import os import re import argparse import csv import json import tensorflow as tf import numpy as np import sklearn.metrics import helpers import data def test(model, test): m = tf.keras.models.load_model(model) x_test, y_test = data.load(test) x_test = tf.keras.applications.vgg16.preprocess_input(x_te...
32.223301
130
0.6279
dc828c9d7f8bd13b8fc71b165e6e04d6fd913f77
1,350
py
Python
overheid/scripts/make_xml_plain.py
evanmiltenburg/Dutch-corpora
4c12aba38683a913579bfc5c9f52ad54cb21976d
[ "Apache-2.0" ]
null
null
null
overheid/scripts/make_xml_plain.py
evanmiltenburg/Dutch-corpora
4c12aba38683a913579bfc5c9f52ad54cb21976d
[ "Apache-2.0" ]
1
2020-11-24T13:32:23.000Z
2020-11-24T20:30:09.000Z
overheid/scripts/make_xml_plain.py
evanmiltenburg/Dutch-corpora
4c12aba38683a913579bfc5c9f52ad54cb21976d
[ "Apache-2.0" ]
1
2019-02-01T10:47:05.000Z
2019-02-01T10:47:05.000Z
from bs4 import BeautifulSoup import nltk.data from nltk.tokenize import word_tokenize import glob import gzip import sys tokenizer = nltk.data.load('tokenizers/punkt/dutch.pickle') def good_sentence(s): if len(s) < 4 or s.count(',') > 4: return False else: digits = filter(lambda x:x.isdigit()...
32.142857
86
0.582222
84af74070d4c5dc929ca357c3c2ecfc4e62c08ea
11,210
py
Python
src/transformers/models/xlnet/tokenization_xlnet_fast.py
suakow/transformers
0ec3619bb2c212737d2472cccaf6658317d2bfa1
[ "Apache-2.0" ]
10
2021-05-31T07:18:08.000Z
2022-03-19T09:20:11.000Z
src/transformers/models/xlnet/tokenization_xlnet_fast.py
suakow/transformers
0ec3619bb2c212737d2472cccaf6658317d2bfa1
[ "Apache-2.0" ]
3
2021-06-08T23:15:29.000Z
2022-01-13T03:40:10.000Z
src/transformers/models/xlnet/tokenization_xlnet_fast.py
suakow/transformers
0ec3619bb2c212737d2472cccaf6658317d2bfa1
[ "Apache-2.0" ]
3
2021-09-19T08:20:42.000Z
2022-02-19T16:32:40.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...
42.623574
119
0.6438
b69ebdac992a761e46c05f6989f34e953460b700
1,046
py
Python
config/wsgi.py
birkin/addto_refworks
61c10859e9df571f479ea711cf36a7fd159c8ae1
[ "MIT" ]
null
null
null
config/wsgi.py
birkin/addto_refworks
61c10859e9df571f479ea711cf36a7fd159c8ae1
[ "MIT" ]
null
null
null
config/wsgi.py
birkin/addto_refworks
61c10859e9df571f479ea711cf36a7fd159c8ae1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Prepares application environment. Variables assume project setup like: some_enclosing_directory/ addto_refworks/ config/ refworks_app.py env_rfwrks/ """ import os, pprint, sys ## become self-aware, padawan current_directory = os.path.d...
31.69697
109
0.716061
3972875e123be8b2bc642b685f68a729e77b3b0c
6,703
py
Python
BAMS_SOTC/2019/plot_oisstv2_composite.py
XinZhou90D/ClimatePython
6634d60c620c77a48245d6a8de0eba8ce599a7e3
[ "MIT" ]
27
2018-09-14T03:57:01.000Z
2022-03-23T16:58:57.000Z
BAMS_SOTC/2019/plot_oisstv2_composite.py
zmlabe/ClimatePython
149fe38dc91a3580cbb5711db63c94340f643304
[ "MIT" ]
null
null
null
BAMS_SOTC/2019/plot_oisstv2_composite.py
zmlabe/ClimatePython
149fe38dc91a3580cbb5711db63c94340f643304
[ "MIT" ]
10
2019-02-02T09:59:40.000Z
2022-02-21T12:33:12.000Z
""" Script calculates composite month for oisstv2 data Source : Reynolds et al. 2002 [Journal of Climate] Data: https://www.esrl.noaa.gov/psd/data/gridded/data.noaa.oisst.v2.html Author : Zachary Labe Date : 27 January 2020 """ import matplotlib.pyplot as plt import matplotlib.colors as colors from mpl_toolkits.base...
39.429412
88
0.52842
b86a8cf85f3e6a718e9f81cba18538f0a3e4ddcf
4,303
py
Python
ontask/action/views/edit_rubric.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
33
2017-12-02T04:09:24.000Z
2021-11-07T08:41:57.000Z
ontask/action/views/edit_rubric.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
189
2017-11-16T04:06:29.000Z
2022-03-11T23:35:59.000Z
ontask/action/views/edit_rubric.py
pinheiroo27/ontask_b
23fee8caf4e1c5694a710a77f3004ca5d9effeac
[ "MIT" ]
30
2017-11-30T03:35:44.000Z
2022-01-31T03:08:08.000Z
# -*- coding: utf-8 -*- """View to edit rubric actions.""" from typing import Optional from django import http from django.contrib import messages from django.contrib.auth.decorators import user_passes_test from django.db import transaction from django.template.loader import render_to_string from django.utils.transla...
31.874074
76
0.643272
4451f426aea7b85ba9100f1769fa4d7aed037b83
1,539
py
Python
tests/test_encoder_decoder.py
radon-h2020/radon-repository-miner
baf5680f7b0f0e5ccb33ea23ff1214b381867cb1
[ "Apache-2.0" ]
5
2021-11-24T20:33:23.000Z
2022-03-18T02:34:39.000Z
tests/test_encoder_decoder.py
radon-h2020/radon-iac-miner
c3a75d172e31cfb877e8a0c01467876aeee4a069
[ "Apache-2.0" ]
8
2020-09-14T08:57:47.000Z
2020-09-17T13:08:57.000Z
tests/test_encoder_decoder.py
stefanodallapalma/iac-miner
c3a75d172e31cfb877e8a0c01467876aeee4a069
[ "Apache-2.0" ]
2
2020-12-29T10:53:16.000Z
2021-12-11T00:55:01.000Z
import unittest from repominer.files import FixedFile, FixedFileEncoder, FixedFileDecoder, FailureProneFile, FailureProneFileEncoder, FailureProneFileDecoder class TestFixedFileEncoderAndDecoder(unittest.TestCase): def test_encoder(self): ff1 = FixedFile(filepath='file1.yml', fic='123', bic='456') ...
28.5
141
0.601689
818fcdd945f4b752ae88b245059bcc2522c210bd
5,180
py
Python
RunFiles/ConstantVolumeHeatAdditionCycle.py
AndySchroder/CO2Cycle
35773af3b122dbd2e1ee9d41cb541ac8e7349654
[ "Unlicense" ]
3
2019-10-25T04:13:49.000Z
2022-01-14T13:01:39.000Z
RunFiles/ConstantVolumeHeatAdditionCycle.py
AndySchroder/CO2Cycle
35773af3b122dbd2e1ee9d41cb541ac8e7349654
[ "Unlicense" ]
null
null
null
RunFiles/ConstantVolumeHeatAdditionCycle.py
AndySchroder/CO2Cycle
35773af3b122dbd2e1ee9d41cb541ac8e7349654
[ "Unlicense" ]
1
2021-05-24T02:11:28.000Z
2021-05-24T02:11:28.000Z
############################################################################### ############################################################################### #Copyright (c) 2016, Andy Schroder #See the file README.md for licensing information. ##########################################################################...
63.170732
299
0.717568
1e2c68e32b6670539b1afc81061120da1e6dc26e
631
py
Python
code/Common/CCDdatabase.py
zhusa580999999/catena
1b69f4c744c602b2849aa2849a317de43e860d74
[ "Unlicense" ]
null
null
null
code/Common/CCDdatabase.py
zhusa580999999/catena
1b69f4c744c602b2849aa2849a317de43e860d74
[ "Unlicense" ]
null
null
null
code/Common/CCDdatabase.py
zhusa580999999/catena
1b69f4c744c602b2849aa2849a317de43e860d74
[ "Unlicense" ]
1
2020-12-30T19:50:37.000Z
2020-12-30T19:50:37.000Z
# Copyright (c) 2012, Adam J. Rossi. All rights reserved. See README for licensing details. import Utility class CCDdatabase: def __init__(self, dbPath): self._fillInfo(dbPath) def _fillInfo(self, dbPath): self._db = {} for l in open(dbPath,"r"): v =...
31.55
92
0.608558
0fef73b020a0dcc1e72b0a9fbd3111f88fd36f7e
318
py
Python
benchlingapi/__init__.py
hypostulate/benchling-api
2c992c7e34ecd2c57a8efce46171692f9f4e27f0
[ "MIT" ]
36
2016-01-18T20:26:19.000Z
2021-01-14T12:39:56.000Z
benchlingapi/__init__.py
hypostulate/benchling-api
2c992c7e34ecd2c57a8efce46171692f9f4e27f0
[ "MIT" ]
18
2017-01-26T10:00:45.000Z
2021-02-16T03:22:40.000Z
benchlingapi/__init__.py
hypostulate/benchling-api
2c992c7e34ecd2c57a8efce46171692f9f4e27f0
[ "MIT" ]
12
2017-06-20T21:44:02.000Z
2020-12-28T05:15:08.000Z
"""BenchlingAPI.""" from .__version__ import __authors__ from .__version__ import __homepage__ from .__version__ import __repo__ from .__version__ import __title__ from .__version__ import __version__ from benchlingapi.models import schema # must import schema before session from benchlingapi.session import Session
35.333333
75
0.839623
ff12308f506d00bc555b48309a596b5d843c8616
7,608
py
Python
HL_error_covs/master.py
MetOffice/ocean_error_covs
1817c0e31ddefaafd2dbb1f642f30488b5732b88
[ "BSD-3-Clause" ]
null
null
null
HL_error_covs/master.py
MetOffice/ocean_error_covs
1817c0e31ddefaafd2dbb1f642f30488b5732b88
[ "BSD-3-Clause" ]
4
2020-08-25T10:15:58.000Z
2022-03-01T12:23:49.000Z
HL_error_covs/master.py
MetOffice/ocean_error_covs
1817c0e31ddefaafd2dbb1f642f30488b5732b88
[ "BSD-3-Clause" ]
1
2021-04-11T06:10:41.000Z
2021-04-11T06:10:41.000Z
# (C) Crown Copyright, Met Office. All rights reserved. # # This file is part of ocean_error_covs and is released under the BSD 3-Clause license. # See LICENSE in the root of the repository for full licensing details. ################## Python packages ########################### import os # Set os.environment to have ...
40.903226
96
0.632492
37c051f902b6c3146cc59580ac5e297e50ca05f6
503
py
Python
ros/src/control/pid.py
lsromao/cad-final-project
8ae85a7e37472c98dfa93368f226b226cf7bf126
[ "MIT" ]
null
null
null
ros/src/control/pid.py
lsromao/cad-final-project
8ae85a7e37472c98dfa93368f226b226cf7bf126
[ "MIT" ]
1
2021-01-22T22:16:10.000Z
2021-01-23T15:52:34.000Z
ros/src/control/pid.py
lsromao/cad-final-project
8ae85a7e37472c98dfa93368f226b226cf7bf126
[ "MIT" ]
null
null
null
import rospy import tf_conversions as tf import numpy as np from numpy import * class PID(object): def __init__(self, kp, ki, kd): self.kp = kp self.ki = ki self.kd = kd self.int_val = self.last_error = 0.0 def step(self, error, sample_time): i = self.int_val + error ...
22.863636
58
0.594433
60ff1e06da24bbf3476a923d48c2e51071f04944
1,375
py
Python
app/parsers/standard.py
brianedmonds90/caldera
d050ad5785f72f029b24a7965777448b0abd94d2
[ "Apache-2.0" ]
null
null
null
app/parsers/standard.py
brianedmonds90/caldera
d050ad5785f72f029b24a7965777448b0abd94d2
[ "Apache-2.0" ]
null
null
null
app/parsers/standard.py
brianedmonds90/caldera
d050ad5785f72f029b24a7965777448b0abd94d2
[ "Apache-2.0" ]
null
null
null
import json as json_library import re def json(parser, blob, log): matched_facts = [] if blob: try: structured = json_library.loads(blob) except: log.warning('Malformed json returned. Unable to retrieve any facts.') return matched_facts if isinstance...
36.184211
114
0.613091
4ae2fb03783b39ba0ae8973658f53c6b610ad571
3,044
py
Python
tests/sentry/api/endpoints/test_event_attachment_details.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2022-02-09T22:56:49.000Z
2022-02-09T22:56:49.000Z
tests/sentry/api/endpoints/test_event_attachment_details.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
1
2021-05-09T11:43:43.000Z
2021-05-09T11:43:43.000Z
tests/sentry/api/endpoints/test_event_attachment_details.py
AlexWayfer/sentry
ef935cda2b2e960bd602fda590540882d1b0712d
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import six from datetime import datetime from six import BytesIO from sentry.models import EventAttachment, File from sentry.testutils import APITestCase class EventAttachmentDetailsTest(APITestCase): def test_simple(self): self.login_as(user=self.user) p...
33.450549
95
0.601183
bc6aa0afee578b582bd88d029c6ded2f732b25d1
1,952
py
Python
part-2/mayhem_aside_1.py
Jason-Liu-Dream/mayhem
8ed5d832a5a6804ecdb7ac05e757df09a881e920
[ "MIT" ]
239
2018-07-26T12:53:53.000Z
2022-03-30T19:29:25.000Z
part-2/mayhem_aside_1.py
quicksilverm25/mayhem
a3cbc49c43cb957bf309d283d87afc9085bc26dd
[ "MIT" ]
1
2019-10-03T20:21:59.000Z
2019-10-03T20:22:10.000Z
part-2/mayhem_aside_1.py
quicksilverm25/mayhem
a3cbc49c43cb957bf309d283d87afc9085bc26dd
[ "MIT" ]
48
2018-07-28T18:06:34.000Z
2022-03-24T13:32:19.000Z
#!/usr/bin/env python3.7 # Copyright (c) 2018-2019 Lynn Root """ Aside demonstrating that `asyncio.shield` + signal handlers do not play nicely Notice! This requires: - attrs==19.1.0 To run: $ python part-2/mayhem_aside_1.py Follow along: https://roguelynn.com/words/asyncio-true-concurrency/ """ import asynci...
24.4
71
0.663422
ea626eafea803cb60d85035f05dcc9d58b1de388
2,211
py
Python
tests/resolution/check/test_check_free_space.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
584
2020-01-31T18:53:10.000Z
2022-03-29T21:12:15.000Z
tests/resolution/check/test_check_free_space.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
1,056
2020-01-30T09:59:44.000Z
2022-03-31T10:15:32.000Z
tests/resolution/check/test_check_free_space.py
peddamat/home-assistant-supervisor-test
5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4
[ "Apache-2.0" ]
295
2020-02-03T11:30:42.000Z
2022-03-31T18:53:14.000Z
"""Test evaluation base.""" # pylint: disable=import-error,protected-access from unittest.mock import patch from supervisor.const import CoreState from supervisor.coresys import CoreSys from supervisor.resolution.checks.free_space import CheckFreeSpace from supervisor.resolution.const import IssueType async def test...
31.140845
78
0.685663
524e599cc5b43683c8506845724c4a9e7b10e018
40
py
Python
test.py
ryanniehaus/heroku_sandbox
73ed6ac03d36391b3b3a8daeebaa19c1fcda58bf
[ "MIT" ]
null
null
null
test.py
ryanniehaus/heroku_sandbox
73ed6ac03d36391b3b3a8daeebaa19c1fcda58bf
[ "MIT" ]
null
null
null
test.py
ryanniehaus/heroku_sandbox
73ed6ac03d36391b3b3a8daeebaa19c1fcda58bf
[ "MIT" ]
null
null
null
#!/usr/bin/env python print("Hello!")
8
21
0.625
4c5273fef38cfe1e744b715e0bacd8f79ef8acf9
1,914
py
Python
stog/data/dataset_readers/amr_parsing/preprocess/count_tokens.py
KiroSummer/AMR
49f4edc9e738ba3409d2d5e45e5e1881d8b338cc
[ "MIT" ]
2
2021-09-09T11:02:18.000Z
2021-10-04T12:18:16.000Z
stog/data/dataset_readers/amr_parsing/preprocess/count_tokens.py
KiroSummer/AMR
49f4edc9e738ba3409d2d5e45e5e1881d8b338cc
[ "MIT" ]
null
null
null
stog/data/dataset_readers/amr_parsing/preprocess/count_tokens.py
KiroSummer/AMR
49f4edc9e738ba3409d2d5e45e5e1881d8b338cc
[ "MIT" ]
null
null
null
# add by kiro @2020.10.16 from supar import Parser from stog.data.dataset_readers.amr_parsing.io import AMRIO from stog.utils import logging logger = logging.init_logger() class DependencyParser: """ DependencyParser that based on supar, to predict the automatic dependency parsing results for AMR text "...
32.440678
106
0.641066
a9a08dca7d15da09e6266d575202da3ec4a97085
12,735
py
Python
alphacsc/init_dict.py
vishalbelsare/alphacsc
7b7f2f3b0456ab338e95924c76828a26b3b8e4b2
[ "BSD-3-Clause" ]
null
null
null
alphacsc/init_dict.py
vishalbelsare/alphacsc
7b7f2f3b0456ab338e95924c76828a26b3b8e4b2
[ "BSD-3-Clause" ]
null
null
null
alphacsc/init_dict.py
vishalbelsare/alphacsc
7b7f2f3b0456ab338e95924c76828a26b3b8e4b2
[ "BSD-3-Clause" ]
null
null
null
# Authors: Mainak Jas <mainak.jas@telecom-paristech.fr> # Tom Dupre La Tour <tom.duprelatour@telecom-paristech.fr> # Umut Simsekli <umut.simsekli@telecom-paristech.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Thomas Moreau <thomas.moreau@inria.fr> import itertools import...
34.986264
79
0.616883
efd7591ccc21393536660331b733a80c195cd95b
1,485
py
Python
collector/collector/tests/api.py
kooder/telemetrics-backend
e84a9c92fc5ab89a535e20404123bfe9c3a59fec
[ "Apache-2.0" ]
8
2017-09-07T17:56:51.000Z
2021-03-14T20:04:29.000Z
collector/collector/tests/api.py
kooder/telemetrics-backend
e84a9c92fc5ab89a535e20404123bfe9c3a59fec
[ "Apache-2.0" ]
42
2017-08-17T18:29:33.000Z
2019-11-16T00:06:55.000Z
collector/collector/tests/api.py
kooder/telemetrics-backend
e84a9c92fc5ab89a535e20404123bfe9c3a59fec
[ "Apache-2.0" ]
10
2017-08-17T17:02:02.000Z
2021-09-28T21:20:50.000Z
# # Copyright 2015-2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.306122
74
0.672727
3f0a064371064c696934f7b85c598c18e79fbdb8
7,546
py
Python
pytests/test_operators.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
109
2022-02-05T02:38:35.000Z
2022-03-31T16:42:52.000Z
pytests/test_operators.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
9
2022-02-08T22:13:56.000Z
2022-03-31T18:16:12.000Z
pytests/test_operators.py
bytewax/bytewax
c935aac8d6eabb0af5a331f59fc4a1300fa6d1e3
[ "ECL-2.0", "Apache-2.0" ]
3
2022-02-14T23:45:03.000Z
2022-03-22T06:58:47.000Z
import re from collections import defaultdict from pytest import raises from bytewax import Dataflow, run, run_cluster def test_map(): def add_one(item): return item + 1 inp = [ (0, 0), (0, 1), (0, 2), ] flow = Dataflow() flow.map(add_one) flow.capture() ...
20.561308
87
0.465942
aec0c6b0754542e9d8f0b74f28dd28125b154a7e
27,538
py
Python
synapse/rest/client/v2_alpha/register.py
zauguin/synapse
ea00f18135ce30e8415526ce68585ea90da5b856
[ "Apache-2.0" ]
null
null
null
synapse/rest/client/v2_alpha/register.py
zauguin/synapse
ea00f18135ce30e8415526ce68585ea90da5b856
[ "Apache-2.0" ]
null
null
null
synapse/rest/client/v2_alpha/register.py
zauguin/synapse
ea00f18135ce30e8415526ce68585ea90da5b856
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2015 - 2016 OpenMarket Ltd # Copyright 2017 Vector Creations Ltd # # 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/LIC...
39.005666
86
0.62234
1ee983bfe3bca58d9c5746d8c4454e3aec50f0ce
490
py
Python
marshmallow_geojson/feature_collection.py
folt/marshmallow_geojson
2dea78814621069460db0c6deb9f05f9eb47493d
[ "MIT" ]
null
null
null
marshmallow_geojson/feature_collection.py
folt/marshmallow_geojson
2dea78814621069460db0c6deb9f05f9eb47493d
[ "MIT" ]
null
null
null
marshmallow_geojson/feature_collection.py
folt/marshmallow_geojson
2dea78814621069460db0c6deb9f05f9eb47493d
[ "MIT" ]
null
null
null
from marshmallow.fields import List, Nested, Str from marshmallow.validate import OneOf from ._base import BaseSchema from .feature import FeatureSchema from .object_type import FEATURE_COLLECTION class FeatureCollectionSchema(BaseSchema): type = Str( required=True, validate=OneOf( [F...
22.272727
51
0.677551
fc4d2a3809a502e1c4c93720d4e232bb10877aa2
124,198
py
Python
tensorflow/python/kernel_tests/control_flow_ops_py_test.py
zpreisler/tensorflow
f2b17b22e12bd743b66945070f338f70b5fa3332
[ "Apache-2.0" ]
1
2018-10-28T11:12:12.000Z
2018-10-28T11:12:12.000Z
tensorflow/python/kernel_tests/control_flow_ops_py_test.py
zpreisler/tensorflow
f2b17b22e12bd743b66945070f338f70b5fa3332
[ "Apache-2.0" ]
null
null
null
tensorflow/python/kernel_tests/control_flow_ops_py_test.py
zpreisler/tensorflow
f2b17b22e12bd743b66945070f338f70b5fa3332
[ "Apache-2.0" ]
1
2021-05-24T06:16:56.000Z
2021-05-24T06:16:56.000Z
# Copyright 2015 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...
35.905753
112
0.637442