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
ebea5fcc5fbc9dfa33dd37faef02e2cbd317cfb1
45,514
py
Python
uploadfile/views.py
Briliant-wang/GreaterWMS_Software
47a8825bb0da03a21ddfc5afc79cd6a70995c92e
[ "Apache-2.0" ]
1,063
2020-11-15T12:55:15.000Z
2022-03-31T14:33:12.000Z
uploadfile/views.py
Briliant-wang/GreaterWMS_Software
47a8825bb0da03a21ddfc5afc79cd6a70995c92e
[ "Apache-2.0" ]
96
2020-11-18T00:06:05.000Z
2022-03-03T09:05:39.000Z
uploadfile/views.py
Briliant-wang/GreaterWMS_Software
47a8825bb0da03a21ddfc5afc79cd6a70995c92e
[ "Apache-2.0" ]
349
2020-11-15T13:15:30.000Z
2022-03-31T11:01:15.000Z
from rest_framework import viewsets, views import pandas as pd import numpy as np from utils.datasolve import data_validate from utils.datasolve import is_number from goods.models import ListModel as goodslist from goodsunit.models import ListModel as goodsunit from goodsclass.models import ListModel as goodsclass from...
50.125551
117
0.418421
e9ab279f29985b135dd956f47552b6a97668242e
839
py
Python
scrapping/wikipediaScrapper.py
marioallaa/imLazyaf
00828fbed4ca8bc64a7cd7665255c1cd49c2fb84
[ "MIT" ]
1
2020-12-03T10:38:51.000Z
2020-12-03T10:38:51.000Z
scrapping/wikipediaScrapper.py
marioallaa/imLazy_af
00828fbed4ca8bc64a7cd7665255c1cd49c2fb84
[ "MIT" ]
null
null
null
scrapping/wikipediaScrapper.py
marioallaa/imLazy_af
00828fbed4ca8bc64a7cd7665255c1cd49c2fb84
[ "MIT" ]
null
null
null
import wikipedia as w class WikiScrapping(): def __init__(self, lang='en'): self.title = lang w.set_lang(lang) def search(self, query): self.query = query return w.search(query) def openPage(self, title): self.title = title self.page = w.page(self.title...
24.676471
193
0.626937
7e80abc1a1a9bd0f764a206457aee520ecdbc1bd
16,491
py
Python
selfdrive/controls/radard.py
tb205gti/openpilot
4a468ae24e7b17ca124385919d9e40abe3f64066
[ "MIT" ]
1
2021-11-24T06:53:57.000Z
2021-11-24T06:53:57.000Z
selfdrive/controls/radard.py
tb205gti/openpilot
4a468ae24e7b17ca124385919d9e40abe3f64066
[ "MIT" ]
null
null
null
selfdrive/controls/radard.py
tb205gti/openpilot
4a468ae24e7b17ca124385919d9e40abe3f64066
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import numpy.matlib import importlib import zmq from collections import defaultdict, deque import selfdrive.messaging as messaging from selfdrive.services import service_list from selfdrive.controls.lib.radar_helpers import Track, Cluster from selfdrive.config import RADAR_TO_C...
37.650685
165
0.660118
a4bd3467d72ac61974636f5121ab82b493860c31
2,374
py
Python
experiments/simulation_experiments/hypothesis_testing/plot_roc_genesets.py
andrewcharlesjones/cplvm
f4bbcfc4b2e9a9cec7d01eb5f7ff3a169d6e3ff6
[ "MIT" ]
7
2020-12-17T12:03:46.000Z
2021-11-30T19:27:17.000Z
experiments/simulation_experiments/hypothesis_testing/plot_roc_genesets.py
andrewcharlesjones/cplvm
f4bbcfc4b2e9a9cec7d01eb5f7ff3a169d6e3ff6
[ "MIT" ]
3
2021-11-04T18:10:48.000Z
2022-02-07T23:26:40.000Z
experiments/simulation_experiments/hypothesis_testing/plot_roc_genesets.py
andrewcharlesjones/cplvm
f4bbcfc4b2e9a9cec7d01eb5f7ff3a169d6e3ff6
[ "MIT" ]
3
2020-12-17T12:03:52.000Z
2021-11-05T18:21:03.000Z
import matplotlib.pyplot as plt import numpy as np import seaborn as sns import pandas as pd import os from os.path import join as pjoin from sklearn.metrics import roc_curve from sklearn.metrics import roc_auc_score import matplotlib font = {"size": 30} matplotlib.rc("font", **font) matplotlib.rcParams["text.usetex...
25.804348
106
0.701769
979ce30cc77b378c99e73a035f1d7121fc230847
401
py
Python
ecommerce/profiles/migrations/0002_profile_description.py
kurniantoska/ecommerce
a30c51417dd8183517cb2feb8f0efdc8ec202421
[ "MIT" ]
null
null
null
ecommerce/profiles/migrations/0002_profile_description.py
kurniantoska/ecommerce
a30c51417dd8183517cb2feb8f0efdc8ec202421
[ "MIT" ]
null
null
null
ecommerce/profiles/migrations/0002_profile_description.py
kurniantoska/ecommerce
a30c51417dd8183517cb2feb8f0efdc8ec202421
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-10 13:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('profiles', '0001_initial'), ] operations = [ migrations.AddField( model_name='profile', name='description', ...
21.105263
71
0.603491
fac85a86f0f0fa0132d570640c073712e61b56e4
515
py
Python
components/apt.py
RobInLabUJI/ROSLab
3a5047a204989dea108cb163fd1ca7516ec2f5c9
[ "MIT" ]
10
2019-09-18T18:51:06.000Z
2022-01-25T21:46:05.000Z
components/apt.py
RobInLabUJI/ROSLab
3a5047a204989dea108cb163fd1ca7516ec2f5c9
[ "MIT" ]
2
2019-09-11T13:02:35.000Z
2019-10-11T12:44:13.000Z
components/apt.py
RobInLabUJI/ROSLab
3a5047a204989dea108cb163fd1ca7516ec2f5c9
[ "MIT" ]
2
2019-10-31T06:29:05.000Z
2020-01-08T03:18:53.000Z
DOCKER_CONTENTS = """ ##################################### APT ###################################### RUN apt-get -o Acquire::ForceIPv4=true update \\ && apt-get -o Acquire::ForceIPv4=true install -yq --no-install-recommends \\ %s && apt-get clean \\ && rm -rf /var/lib/apt/lists/* """ def write(DOCKER_FILE, packag...
28.611111
80
0.524272
87e8e3569f35776506150e55f7972d9b629a0463
2,827
py
Python
tests/sanity_test.py
old-reliable/magics-python
141504926562cbe130ed26d69b38d479e400c8b6
[ "Apache-2.0" ]
null
null
null
tests/sanity_test.py
old-reliable/magics-python
141504926562cbe130ed26d69b38d479e400c8b6
[ "Apache-2.0" ]
null
null
null
tests/sanity_test.py
old-reliable/magics-python
141504926562cbe130ed26d69b38d479e400c8b6
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 1996-2019 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovern...
30.728261
97
0.695791
c7a96629a0e7ddc122bee0b3542b55bc41f85c44
1,919
py
Python
pydis_site/apps/api/viewsets/bot/aoc_link.py
discord-python/site
4c6993fab16ed0ab6fe08000ab242f7c96e69839
[ "MIT" ]
13
2018-02-03T22:57:41.000Z
2018-05-17T07:38:36.000Z
pydis_site/apps/api/viewsets/bot/aoc_link.py
discord-python/site
4c6993fab16ed0ab6fe08000ab242f7c96e69839
[ "MIT" ]
61
2018-02-07T21:34:39.000Z
2018-06-05T16:15:28.000Z
pydis_site/apps/api/viewsets/bot/aoc_link.py
discord-python/site
4c6993fab16ed0ab6fe08000ab242f7c96e69839
[ "MIT" ]
16
2018-02-03T12:37:48.000Z
2018-06-02T17:14:55.000Z
from django_filters.rest_framework import DjangoFilterBackend from rest_framework.mixins import ( CreateModelMixin, DestroyModelMixin, ListModelMixin, RetrieveModelMixin ) from rest_framework.viewsets import GenericViewSet from pydis_site.apps.api.models.bot import AocAccountLink from pydis_site.apps.api.serialize...
26.652778
95
0.647733
007cfc335cebfa16c3dca45e3cd3926c4db4f370
6,131
py
Python
AutomatedTesting/Gem/PythonTests/Multiplayer/tests/Multiplayer_AutoComponent_RPC.py
Perpixel/o3de
b1df4c90d54839c44a6236d6fd3853e7e2af6404
[ "Apache-2.0", "MIT" ]
1
2022-02-24T08:49:30.000Z
2022-02-24T08:49:30.000Z
AutomatedTesting/Gem/PythonTests/Multiplayer/tests/Multiplayer_AutoComponent_RPC.py
Perpixel/o3de
b1df4c90d54839c44a6236d6fd3853e7e2af6404
[ "Apache-2.0", "MIT" ]
null
null
null
AutomatedTesting/Gem/PythonTests/Multiplayer/tests/Multiplayer_AutoComponent_RPC.py
Perpixel/o3de
b1df4c90d54839c44a6236d6fd3853e7e2af6404
[ "Apache-2.0", "MIT" ]
null
null
null
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # Test Case Title : Check that the four network RPCs can be sent and received # fmt: off class TestSuccessFa...
62.561224
269
0.761866
5e0e3eebc576ae955ba55a319bb39ccc270db402
200
py
Python
sample/fst_elem.py
iogf/ehp
14d2cae449f411863fea201c3a99802fa37f1696
[ "MIT" ]
47
2015-09-11T20:44:05.000Z
2022-03-03T01:16:51.000Z
sample/fst_elem.py
iogf/ehp
14d2cae449f411863fea201c3a99802fa37f1696
[ "MIT" ]
6
2016-06-30T18:55:08.000Z
2020-08-15T20:19:11.000Z
sample/fst_elem.py
iogf/ehp
14d2cae449f411863fea201c3a99802fa37f1696
[ "MIT" ]
15
2016-05-08T01:17:10.000Z
2021-06-29T07:43:08.000Z
# Name: ex17.py from ehp import * html = Html() data = '<body> <em> beta. </em></body>' dom = html.feed(data) root, item = dom.fst_with_root('em') root.insert_after(item, Tag('p')) print(root)
12.5
39
0.625
20cd83c0c5b1f95b20383139f751f0e15b46e3a9
21,583
py
Python
var/spack/repos/builtin/packages/openmpi/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/openmpi/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/openmpi/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2018 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) import os import sys from spack import * def _verbs_dir(): """Try to find the directory where the OpenFabrics verb...
45.921277
116
0.64333
e9c326dfc4b35ac45dbe1fc1bfaa83da0e1d65fc
5,714
py
Python
Code/InterLabDataAnalysis.py
andreschristen/BA_Dilution_Series
b9de412f5e71770a056c0412249ef8ce7764cf15
[ "MIT" ]
null
null
null
Code/InterLabDataAnalysis.py
andreschristen/BA_Dilution_Series
b9de412f5e71770a056c0412249ef8ce7764cf15
[ "MIT" ]
null
null
null
Code/InterLabDataAnalysis.py
andreschristen/BA_Dilution_Series
b9de412f5e71770a056c0412249ef8ce7764cf15
[ "MIT" ]
1
2021-04-16T15:01:33.000Z
2021-04-16T15:01:33.000Z
# -*- coding: utf-8 -*- """ Created on Mon 2018.02.28:00:00:00 @author: jac-nosm Abstrac: Dilution experiments are performed routinely in microbial laboratories. However, their results are not properly analyzed, with only very basic hueristic formulas. We present a proper statistical analysis of these experiments an...
40.524823
124
0.560903
5d97afc603e014406003675d1948ea3e92ee9846
139
py
Python
app/api/__init__.py
Bobfrat/sequence-alignment-app
64cbd790705ccd5a328da2798445e7b9ce65d647
[ "BSD-3-Clause" ]
null
null
null
app/api/__init__.py
Bobfrat/sequence-alignment-app
64cbd790705ccd5a328da2798445e7b9ce65d647
[ "BSD-3-Clause" ]
null
null
null
app/api/__init__.py
Bobfrat/sequence-alignment-app
64cbd790705ccd5a328da2798445e7b9ce65d647
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python ''' app/api/__init__.py ''' from flask import Blueprint api = Blueprint('api', __name__) from app.api import views
13.9
32
0.71223
e14c03468004e1217e46653088f78ec4852b9175
1,741
py
Python
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/ad_group_type.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/ad_group_type.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/ad_group_type.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
30.54386
74
0.686962
61ec36c3c4aed1e1b1d9150ea68fe3443e343e9f
1,142
py
Python
config.py
itzcy/PiDashboard-Python
1cd988163bd0265cf47e04834424c9b765936c40
[ "MIT" ]
1
2019-10-22T04:41:29.000Z
2019-10-22T04:41:29.000Z
config.py
itzcy/PiDashboard-Python
1cd988163bd0265cf47e04834424c9b765936c40
[ "MIT" ]
1
2021-06-01T22:35:17.000Z
2021-06-01T22:35:17.000Z
config.py
itzcy/PiDashboard-Python
1cd988163bd0265cf47e04834424c9b765936c40
[ "MIT" ]
null
null
null
import os # 当前目录 basedir = os.path.abspath(os.path.dirname(__file__)) class Config: HOST = '0.0.0.0' SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' SQLALCHEMY_COMMIT_ON_TEARDOWN = True FLASKY_MAIL_SUBJECT_PREFIX = '[Flasky]' FLASKY_MAIL_SENDER = 'Flasky Admin <flasky@example.c...
32.628571
125
0.707531
d4d287544ddbf53d7be9244867211c8993014058
1,941
py
Python
ash/webui/file_manager/resources/gen_main_html.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
ash/webui/file_manager/resources/gen_main_html.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
86
2015-10-21T13:02:42.000Z
2022-03-14T07:50:50.000Z
ash/webui/file_manager/resources/gen_main_html.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # # Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Generate SWA files app main.html from files app main.html""" from __future__ import print_function import fileinput import optpa...
31.819672
76
0.688305
85427b01d7587adaa3b432e84fb738a8d798688d
1,281
py
Python
src/main/resources/csv_etl.py
justin2061/etc-data-lab
e995475747d95a7e2de1923f1ed848bdc80b34d5
[ "Apache-2.0" ]
null
null
null
src/main/resources/csv_etl.py
justin2061/etc-data-lab
e995475747d95a7e2de1923f1ed848bdc80b34d5
[ "Apache-2.0" ]
null
null
null
src/main/resources/csv_etl.py
justin2061/etc-data-lab
e995475747d95a7e2de1923f1ed848bdc80b34d5
[ "Apache-2.0" ]
null
null
null
#!/bin/bash PYTHON=`which python` echo $PYTHON for f in $(find . -name \*.csv -print); do echo "File -> $f" $PYTHON csv_etl.py $f done [hadoop@pc-hadoop1:/data2/workspace/etc]$ more csv_etl.py # -*- coding: utf-8 -*- import csv import mysql.connector #import time import sys from datetime import date, datetime, timed...
28.466667
167
0.651054
f1781723f7857da106116e348e8a87396596e6be
2,964
py
Python
test/test_day13.py
daniel-stockhausen/adventofcode2021
e21969a9bf6fe3e9d520cf36dc34de02e24dd0d2
[ "MIT" ]
null
null
null
test/test_day13.py
daniel-stockhausen/adventofcode2021
e21969a9bf6fe3e9d520cf36dc34de02e24dd0d2
[ "MIT" ]
null
null
null
test/test_day13.py
daniel-stockhausen/adventofcode2021
e21969a9bf6fe3e9d520cf36dc34de02e24dd0d2
[ "MIT" ]
null
null
null
import os import unittest from aoc.day13.day13 import count_dots_after_folds, do_fold, do_folds, get_example_data, get_input_data def paper_str_to_lst(paper_str: str) -> list[list[str]]: paper_expected1: list[list[str]] = [] for line in paper_str.split("\n"): paper_expected1.append(list(line)) re...
31.531915
103
0.437922
e89918a2486fa60ab48c408bc5ce2fde72c30568
7,422
py
Python
ansible/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
ansible/lib/ansible/modules/extras/web_infrastructure/ejabberd_user.py
kiv-box/redis
966a0c3f0a51282cd173b42a6e249d23f4e89dec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2013, Peter Sprygada <sprygada@gmail.com> # # This program 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 Software Foundation, either version 3 of the License, or # (at ...
33.736364
79
0.613716
c3dca51f98e1acdf42061288bc1a4299b1ea2f4b
4,424
py
Python
ucsmsdk/mometa/ape/ApeReading.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/ape/ApeReading.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
ucsmsdk/mometa/ape/ApeReading.py
thinkitdata/ucsmsdk
da6599e1dbc1207a30eabe548a7e5791af5f476b
[ "Apache-2.0" ]
null
null
null
"""This module contains the general information for ApeReading ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class ApeReadingConsts: pass class ApeReading(ManagedObject): """This is ApeReading class.""" consts ...
58.210526
248
0.648734
b906e12d542ac4c65f279b97c4e0eb7329f3ed56
37,830
py
Python
analyzer/tests/functional/analyze/test_analyze.py
nettle/codechecker
1cc5855c7c2820b2a1dccb8c2a6fac1e19b344ab
[ "Apache-2.0" ]
null
null
null
analyzer/tests/functional/analyze/test_analyze.py
nettle/codechecker
1cc5855c7c2820b2a1dccb8c2a6fac1e19b344ab
[ "Apache-2.0" ]
null
null
null
analyzer/tests/functional/analyze/test_analyze.py
nettle/codechecker
1cc5855c7c2820b2a1dccb8c2a6fac1e19b344ab
[ "Apache-2.0" ]
null
null
null
# # ------------------------------------------------------------------------- # # Part of the CodeChecker project, under the Apache License v2.0 with # LLVM Exceptions. See LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # # -------------------------------------------------...
38.096677
79
0.555009
8244ccbdf190c12f950888b633ba7d483cd066f4
74
py
Python
venv/lib/python3.8/site-packages/smart_open/version.py
hongcuongnguyen/SearchEngine
2cb53999aac1d41aaae3e130bd018d29c9818e60
[ "MIT" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
venv/lib/python3.8/site-packages/smart_open/version.py
hongcuongnguyen/SearchEngine
2cb53999aac1d41aaae3e130bd018d29c9818e60
[ "MIT" ]
1
2021-08-30T08:53:09.000Z
2021-08-30T08:53:09.000Z
venv/lib/python3.8/site-packages/smart_open/version.py
hongcuongnguyen/SearchEngine
2cb53999aac1d41aaae3e130bd018d29c9818e60
[ "MIT" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
__version__ = '5.0.0' if __name__ == '__main__': print(__version__)
12.333333
26
0.648649
91a02a373c8ba08501c5a10d365604f239228224
1,823
py
Python
sdk/python/setup.py
jkisk/multihook
86b3aae6ba40a3f3788693fe014cfd2f183eb2b5
[ "Apache-2.0" ]
null
null
null
sdk/python/setup.py
jkisk/multihook
86b3aae6ba40a3f3788693fe014cfd2f183eb2b5
[ "Apache-2.0" ]
null
null
null
sdk/python/setup.py
jkisk/multihook
86b3aae6ba40a3f3788693fe014cfd2f183eb2b5
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import errno from setuptools import setup, find_packages from setuptools.command.install import install from subprocess import check_call class InstallPl...
31.431034
101
0.580911
7e3968b5785f538bd8221f7d40e2e046c60acbb7
3,737
py
Python
management/commands/anonymize_db.py
mnieber/Django-Database-Anonymizer
228daa70560885b96fa49255c5506a980369d464
[ "MIT" ]
9
2016-11-22T17:29:41.000Z
2021-09-03T10:16:21.000Z
management/commands/anonymize_db.py
mnieber/Django-Database-Anonymizer
228daa70560885b96fa49255c5506a980369d464
[ "MIT" ]
1
2018-06-18T08:09:43.000Z
2019-02-19T10:23:03.000Z
management/commands/anonymize_db.py
mnieber/Django-Database-Anonymizer
228daa70560885b96fa49255c5506a980369d464
[ "MIT" ]
2
2016-11-22T17:29:51.000Z
2018-06-16T15:10:21.000Z
# -*- coding: utf-8 -*- import inspect from importlib import import_module import sys import imp as _imp from optparse import make_option from django.conf import settings from django.core.management import BaseCommand from anonymizer.base import BaseAnonymizer, ANONYMIZER_MODULE_NAME class Command(BaseCommand): ...
37.747475
119
0.590313
6d8b3dd2bc35d247b90663fa6107104fa4a78d16
14,939
py
Python
dffml/operation/output.py
agriyakhetarpal/dffml
f76f2ce94c3972634053377b00e7c16530f7f0a4
[ "MIT" ]
171
2019-03-08T19:02:06.000Z
2022-03-29T16:17:23.000Z
dffml/operation/output.py
agriyakhetarpal/dffml
f76f2ce94c3972634053377b00e7c16530f7f0a4
[ "MIT" ]
1,158
2019-03-08T19:07:50.000Z
2022-03-25T08:28:27.000Z
dffml/operation/output.py
agriyakhetarpal/dffml
f76f2ce94c3972634053377b00e7c16530f7f0a4
[ "MIT" ]
183
2019-03-10T02:40:56.000Z
2022-03-27T18:51:26.000Z
import copy import collections from typing import Dict, Any, NamedTuple, List from ..df.types import Definition, Stage, DataFlow from ..df.base import ( op, OperationImplementationContext, BaseInputSetContext, BaseInputNetworkContext, ) from ..df.exceptions import DefinitionNotInContext from ..util.dat...
34.107306
88
0.564161
29f01f0e4219b5515dacef09a92469a49fdc5701
4,678
py
Python
Twins/barlow.py
MaxLikesMath/Barlow-Twins-Pytorch
fb74e0f5a78846ecfb1d42387a54f45fb909c314
[ "MIT" ]
7
2021-05-18T11:46:36.000Z
2022-02-14T04:46:36.000Z
Twins/barlow.py
MaxLikesMath/Barlow-Twins-Pytorch
fb74e0f5a78846ecfb1d42387a54f45fb909c314
[ "MIT" ]
null
null
null
Twins/barlow.py
MaxLikesMath/Barlow-Twins-Pytorch
fb74e0f5a78846ecfb1d42387a54f45fb909c314
[ "MIT" ]
2
2021-07-06T16:24:58.000Z
2022-01-23T23:03:28.000Z
import torch import torch.nn as nn ''' Implementation of Barlow Twins (https://arxiv.org/abs/2103.03230), adapted for ease of use for experiments from https://github.com/facebookresearch/barlowtwins, with some modifications using code from https://github.com/lucidrains/byol-pytorch ''' def flatten(t): re...
35.172932
121
0.619068
e17e3576c2660a5fe9223a0e1bb746c3bba5985d
448
py
Python
Car_Game.py
hammadihamza/PythonBasicCarGame
59ad1a54315658e620ccab3633f7dc58b76666b2
[ "MIT" ]
null
null
null
Car_Game.py
hammadihamza/PythonBasicCarGame
59ad1a54315658e620ccab3633f7dc58b76666b2
[ "MIT" ]
null
null
null
Car_Game.py
hammadihamza/PythonBasicCarGame
59ad1a54315658e620ccab3633f7dc58b76666b2
[ "MIT" ]
null
null
null
command = "" i = 0 j = 0 while True: command = input("> ").lower() if command == "start" and i == 0: print('car starting...') i += 1 j = 0 elif command == "stop" and j == 0 and i > 0: print('car stopping...') j += 1 i = 0 elif command == "quit...
18.666667
49
0.419643
2f4ea16168b8cbf619ae99d590d154397cd9edda
12,289
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/nfs_nlm_sessions_session.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/nfs_nlm_sessions_session.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/nfs_nlm_sessions_session.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class NfsNlmSessionsSession(obj...
30.799499
234
0.617219
ec0f41bf6a19be2c389b53837c34cf8132b93145
755
py
Python
powerline_shell/themes/solarized_dark.py
Dakedres/powerline-shell
352d26846aa5d3beb6c92ee26588536bc399117c
[ "MIT" ]
2,656
2017-11-28T05:11:53.000Z
2022-03-31T14:10:18.000Z
powerline_shell/themes/solarized_dark.py
jceaser/powerline-shell
a9b8c9bb39dbfb7ec3c639e497b5a76fa6dcb8cc
[ "MIT" ]
193
2017-11-28T23:20:17.000Z
2022-03-25T12:57:55.000Z
powerline_shell/themes/solarized_dark.py
jceaser/powerline-shell
a9b8c9bb39dbfb7ec3c639e497b5a76fa6dcb8cc
[ "MIT" ]
387
2017-11-29T22:33:39.000Z
2022-03-31T18:24:35.000Z
from powerline_shell.themes.default import DefaultColor class Color(DefaultColor): USERNAME_FG = 15 USERNAME_BG = 4 USERNAME_ROOT_BG = 1 HOSTNAME_FG = 15 HOSTNAME_BG = 10 HOME_SPECIAL_DISPLAY = False PATH_FG = 7 PATH_BG = 10 CWD_FG = 15 SEPARATOR_FG = 14 READONLY_BG = 1 ...
16.777778
55
0.651656
b101ae1d98e4d42e9d26550c270328bc4054d721
466
py
Python
hackerearth/Algorithms/Help Fredo/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Help Fredo/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Help Fredo/test.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
import io import unittest from contextlib import redirect_stdout from unittest.mock import patch class TestQ(unittest.TestCase): @patch('builtins.input', side_effect=[ '5', '4 2 1 10 6', ]) def test_case_0(self, input_mock=None): text_trap = io.StringIO() with redirect_stdo...
22.190476
53
0.650215
6413b2e0dfe089f3ca3a7af74159c313f9915488
11,527
py
Python
homeassistant/components/nest/climate_sdm.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
6
2017-08-02T19:26:39.000Z
2020-03-14T22:47:41.000Z
homeassistant/components/nest/climate_sdm.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
57
2020-10-15T06:47:00.000Z
2022-03-31T06:11:18.000Z
homeassistant/components/nest/climate_sdm.py
miccico/core
14c205384171dee59c1a908f8449f9864778b2dc
[ "Apache-2.0" ]
14
2018-08-19T16:28:26.000Z
2021-09-02T18:26:53.000Z
"""Support for Google Nest SDM climate devices.""" from typing import Optional from google_nest_sdm.device import Device from google_nest_sdm.device_traits import FanTrait, TemperatureTrait from google_nest_sdm.exceptions import GoogleNestException from google_nest_sdm.thermostat_traits import ( ThermostatEcoTrai...
35.358896
83
0.679361
1225d93b5fbbd4ed9bdc33d349808777adb6e98a
7,261
py
Python
web3/utils/abi.py
bellaj/web3py
882335941a0781a3a3a14b7616f727005e88d88d
[ "MIT" ]
null
null
null
web3/utils/abi.py
bellaj/web3py
882335941a0781a3a3a14b7616f727005e88d88d
[ "MIT" ]
null
null
null
web3/utils/abi.py
bellaj/web3py
882335941a0781a3a3a14b7616f727005e88d88d
[ "MIT" ]
null
null
null
import itertools import re from eth_utils import ( coerce_args_to_bytes, coerce_args_to_text, coerce_return_to_text, to_tuple, add_0x_prefix, is_list_like, is_string, is_integer, is_boolean, is_address, ) from eth_abi.abi import ( process_type, ) def filter_by_type(_type,...
24.447811
87
0.603498
3a1a2084954e4ccc19341b3370cda3705ff9152c
828
py
Python
tests/test_bad_tempfile_use.py
timgates42/dlint
501acbc53f710fed00d16b443076581d03f33163
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_tempfile_use.py
timgates42/dlint
501acbc53f710fed00d16b443076581d03f33163
[ "BSD-3-Clause" ]
null
null
null
tests/test_bad_tempfile_use.py
timgates42/dlint
501acbc53f710fed00d16b443076581d03f33163
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import ( absolute_import, division, print_function, unicode_literals, ) import unittest import dlint class TestBadTempfileUse(dlint.test.base.BaseTest): def test_bad_tempfile_usage(self): python_string = self.get_ast_node( """ ...
19.255814
70
0.583333
b06ea480ddc9e39163897780f5f55e50bc66bcbd
3,943
py
Python
atto/bin/client.py
Darthone/atto
4d9093b45e82ed5e561878de6064ec7a1d57da05
[ "MIT" ]
1
2015-12-09T21:00:49.000Z
2015-12-09T21:00:49.000Z
atto/bin/client.py
Darthone/atto
4d9093b45e82ed5e561878de6064ec7a1d57da05
[ "MIT" ]
null
null
null
atto/bin/client.py
Darthone/atto
4d9093b45e82ed5e561878de6064ec7a1d57da05
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging import os import sys import zmq import zmq.auth from zmq.auth.thread import ThreadAuthenticator import time import util import util.config import plugins from daemon import Daemon logger = logging.getLogger() class Client(Daemon): def load_plugins(self): self.plugs ...
41.946809
125
0.544002
feb9590fdb60a1fd11aaf4ea0a9b4a00b20bd9e3
9,660
py
Python
mltrain-nips-2017/lu_jensen/visdial_workshop.pytorch/eval/eval_D.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
mltrain-nips-2017/lu_jensen/visdial_workshop.pytorch/eval/eval_D.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
mltrain-nips-2017/lu_jensen/visdial_workshop.pytorch/eval/eval_D.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
from __future__ import print_function import argparse import os import random import sys sys.path.append(os.getcwd()) import pdb import time import numpy as np import json import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.opti...
36.870229
113
0.63882
e416e30b742a496685687723d6c37aadc8add83f
945
py
Python
setup.py
IVRTech/simpleeval
6c6957e09815b7c9a5a08309a87b4ea2ea5b816c
[ "MIT" ]
null
null
null
setup.py
IVRTech/simpleeval
6c6957e09815b7c9a5a08309a87b4ea2ea5b816c
[ "MIT" ]
null
null
null
setup.py
IVRTech/simpleeval
6c6957e09815b7c9a5a08309a87b4ea2ea5b816c
[ "MIT" ]
null
null
null
from setuptools import setup __version__ = '0.9.11' setup( name='simpleeval', py_modules=['simpleeval'], version=__version__, description='A simple, safe single expression evaluator library.', long_description=open('README.rst', 'r').read(), long_description_content_type='text/x-rst', auth...
37.8
85
0.637037
3f2597c216c1b101e8a8189cf235be9a99faa3aa
4,972
py
Python
slp_utils.py
harangju/roninpay
acdb7c6d57e61d3f32a9626d396ec47d14f3ece3
[ "MIT" ]
60
2021-07-25T10:42:58.000Z
2022-03-21T21:35:20.000Z
slp_utils.py
harangju/roninpay
acdb7c6d57e61d3f32a9626d396ec47d14f3ece3
[ "MIT" ]
15
2021-08-05T07:53:24.000Z
2022-03-23T22:12:57.000Z
slp_utils.py
harangju/roninpay
acdb7c6d57e61d3f32a9626d396ec47d14f3ece3
[ "MIT" ]
66
2021-07-25T10:43:06.000Z
2022-03-16T12:03:23.000Z
from datetime import datetime, timedelta from eth_account.messages import encode_defunct from web3 import Web3 import json, requests USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" headers = { "Content-Type": "application/json", ...
44.392857
205
0.720233
99ad443d062cfa94e6da5e094d4e97c96456f5d9
629
py
Python
ML/Recommendation_sys/product_based_search/data_processing.py
shauryajaggi/Team_Nodemon
7ffe9d02c53e6cbc96af6381803bd69619238da1
[ "MIT" ]
9
2021-09-10T18:27:43.000Z
2021-12-18T14:12:14.000Z
ML/Recommendation_sys/product_based_search/data_processing.py
shauryajaggi/Team_Nodemon
7ffe9d02c53e6cbc96af6381803bd69619238da1
[ "MIT" ]
null
null
null
ML/Recommendation_sys/product_based_search/data_processing.py
shauryajaggi/Team_Nodemon
7ffe9d02c53e6cbc96af6381803bd69619238da1
[ "MIT" ]
4
2021-09-10T18:28:24.000Z
2021-10-01T07:51:40.000Z
import pandas as pd def get_data_db(cnx, tag_input): db_cursor = cnx.cursor() tag_input = tag_input.strip() query = f"SELECT * FROM shadowfax.products WHERE( product_name LIKE '%{tag_input}%' );" df_tags = pd.read_sql(query, con=cnx) df_tags['id'] = df_tags['inc_id'] df_tags.set_index('id',...
26.208333
91
0.674086
eb053aecfe9410859af2ae80ec39e8610f37bed8
3,906
py
Python
core/training/deepnn/train_wrappers.py
wumpusman/ComicTransfer
855eccc1c418a0aca12f44626c408a056cc67484
[ "MIT" ]
2
2020-11-08T08:58:40.000Z
2021-07-24T05:32:31.000Z
core/training/deepnn/train_wrappers.py
wumpusman/ComicTransfer
855eccc1c418a0aca12f44626c408a056cc67484
[ "MIT" ]
4
2021-06-08T22:34:29.000Z
2022-01-13T03:22:40.000Z
core/training/deepnn/train_wrappers.py
wumpusman/ComicTransfer
855eccc1c418a0aca12f44626c408a056cc67484
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import deprecated from torch.utils import data as data_torch # class TrainModel(): # def __init__(self,model_to_learn,loss_function): """A simple wrapper for handling loss functions """ self._los...
26.04
112
0.545315
dbd1d2afcd5b3e0c31ecb8dc31786d96102b0a1b
2,250
py
Python
main/auth/yahoo.py
ssxenon01/music-app
fcc562713a048f3a2d222756ce6fd9ed83386ff6
[ "MIT" ]
null
null
null
main/auth/yahoo.py
ssxenon01/music-app
fcc562713a048f3a2d222756ce6fd9ed83386ff6
[ "MIT" ]
null
null
null
main/auth/yahoo.py
ssxenon01/music-app
fcc562713a048f3a2d222756ce6fd9ed83386ff6
[ "MIT" ]
null
null
null
# coding: utf-8 import flask import auth import model import util from main import app yahoo_config = dict( access_token_url='https://api.login.yahoo.com/oauth/v2/get_token', authorize_url='https://api.login.yahoo.com/oauth/v2/request_auth', base_url='https://query.yahooapis.com/', consumer_key=mod...
28.481013
79
0.658667
07cf9d21c0eeb53efad9f0984921c0b4086c3a34
10,324
py
Python
examples/rocky_test/multi_demos.py
Corsair-cxs/micropython-rocky
796008edfffb65e050218cbb98a540840db5942a
[ "MIT" ]
181
2018-01-31T08:22:21.000Z
2021-12-25T12:46:18.000Z
examples/rocky_test/multi_demos.py
Corsair-cxs/micropython-rocky
796008edfffb65e050218cbb98a540840db5942a
[ "MIT" ]
19
2018-01-31T10:07:19.000Z
2021-03-11T07:32:28.000Z
examples/rocky_test/multi_demos.py
Corsair-cxs/micropython-rocky
796008edfffb65e050218cbb98a540840db5942a
[ "MIT" ]
87
2018-03-22T00:41:48.000Z
2022-02-05T10:09:59.000Z
import sensor, image, time, machine, pyb, nn barCol = 0 def DrawPgsBar(img, barLen, loopCnt, startTick, width=5): global barCol lnLen = (barLen * (loopCnt - (time.ticks() - startTick))) // loopCnt if (barCol & 0x80) == 0: c = barCol & 0x7F else: c = 128 - (barCol & 0x7F) img.draw_re...
37.136691
122
0.573905
37d37c06b3158942879be82a292b3ac327a6b657
923
py
Python
forms.py
torjeikenes/Lokomaten
130af52b13c3c6bb07c8e3fec558ae9a11d5ed7e
[ "MIT" ]
1
2020-06-08T16:40:24.000Z
2020-06-08T16:40:24.000Z
forms.py
torjeikenes/Lokomaten
130af52b13c3c6bb07c8e3fec558ae9a11d5ed7e
[ "MIT" ]
null
null
null
forms.py
torjeikenes/Lokomaten
130af52b13c3c6bb07c8e3fec558ae9a11d5ed7e
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms import RadioField from wtforms.fields.html5 import DateField from wtforms.validators import DataRequired import datetime class LokForm(FlaskForm): navn = StringField('Navn', validators=[DataRequir...
41.954545
143
0.569881
f15428733e7b1aa68c0998ffc05e36c81acf0c3b
225
py
Python
ex11.py
bsdnetworks/pthw
0502a249bf12b4b2c576d15b586d61ea73ce1103
[ "BSD-3-Clause" ]
null
null
null
ex11.py
bsdnetworks/pthw
0502a249bf12b4b2c576d15b586d61ea73ce1103
[ "BSD-3-Clause" ]
null
null
null
ex11.py
bsdnetworks/pthw
0502a249bf12b4b2c576d15b586d61ea73ce1103
[ "BSD-3-Clause" ]
null
null
null
print "How old are you?", age = raw_input() print "How tall are you?", height = raw_input() print "How much do you weigh?", weight = raw_input() print "So, you're %r old, %r tall and %r heavy." % ( age, height, weight)
22.5
52
0.64
c78138ce64d01e1c4f5f06f4532700d415d3d49f
1,934
py
Python
var/spack/repos/builtin/packages/r-clusterprofiler/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-clusterprofiler/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
var/spack/repos/builtin/packages/r-clusterprofiler/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-05-06T00:17:46.000Z
2021-05-06T00:17:46.000Z
# Copyright 2013-2021 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 RClusterprofiler(RPackage): """statistical analysis and visualization of functional profil...
44.976744
79
0.660807
4790d00d7fadae725e817247a70ba93018ea5647
290
py
Python
app/scripts/scrape_hemnet.py
hsadler/scrapers_scrapers_scrapers
35db63c51dbb1cc4d81c6e61b789147af31e3f47
[ "MIT" ]
1
2021-08-16T16:35:51.000Z
2021-08-16T16:35:51.000Z
app/scripts/scrape_hemnet.py
hsadler/scrapers_scrapers_scrapers
35db63c51dbb1cc4d81c6e61b789147af31e3f47
[ "MIT" ]
null
null
null
app/scripts/scrape_hemnet.py
hsadler/scrapers_scrapers_scrapers
35db63c51dbb1cc4d81c6e61b789147af31e3f47
[ "MIT" ]
null
null
null
import sys sys.path.append('..') import json from service.scrape import Scrape scrape_result = Scrape.scrape_hemnet_api() filepath = '/hemnet_scrape_results.json' with open(filepath, "w") as f: json_string = json.dumps(scrape_result, indent=2, sort_keys=True) f.write(json_string)
26.363636
69
0.758621
bd5163559153c2e1afcfc88bbd0f8f148bec95d5
5,481
py
Python
mittmedia-dl.py
Armandur/mittmedia-dl
193d9b657ebb6b4902ece3dff533a08e3886bd36
[ "CC0-1.0" ]
1
2020-10-28T11:10:26.000Z
2020-10-28T11:10:26.000Z
mittmedia-dl.py
Armandur/mittmedia-dl
193d9b657ebb6b4902ece3dff533a08e3886bd36
[ "CC0-1.0" ]
null
null
null
mittmedia-dl.py
Armandur/mittmedia-dl
193d9b657ebb6b4902ece3dff533a08e3886bd36
[ "CC0-1.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver import Firefox from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.firefox.options import Options from selenium.common import exceptions import r...
38.328671
115
0.705163
da09e7fd2e980a0718a2792e8bbebb9c5165b482
210
py
Python
autocom/__init__.py
avcopan/autocom
aae7f9288df9144350e1d793bbcf310b2fc10fa7
[ "Apache-2.0" ]
null
null
null
autocom/__init__.py
avcopan/autocom
aae7f9288df9144350e1d793bbcf310b2fc10fa7
[ "Apache-2.0" ]
null
null
null
autocom/__init__.py
avcopan/autocom
aae7f9288df9144350e1d793bbcf310b2fc10fa7
[ "Apache-2.0" ]
null
null
null
""" command-line interface module """ from . import arg from ._autocom import call_subcommand from ._autocom import values_with_logger __all__ = [ 'arg', 'call_subcommand', 'values_with_logger', ]
17.5
40
0.719048
31e39c48ffd5b3c54856969b985bdc8d77d2a113
1,737
py
Python
src/pycture/commands/edit_commands/gamma_correction.py
miguel-martinr/Pycture
f174699f620244dd188cb1650e3455f553cb5090
[ "MIT" ]
null
null
null
src/pycture/commands/edit_commands/gamma_correction.py
miguel-martinr/Pycture
f174699f620244dd188cb1650e3455f553cb5090
[ "MIT" ]
51
2021-10-06T02:40:17.000Z
2022-01-13T12:45:43.000Z
src/pycture/commands/edit_commands/gamma_correction.py
miguel-martinr/Pycture
f174699f620244dd188cb1650e3455f553cb5090
[ "MIT" ]
1
2022-01-17T16:10:25.000Z
2022-01-17T16:10:25.000Z
from PyQt5.QtWidgets import QMainWindow, QWidget from pycture.dialogs.gamma_correction_dialog import GammaCorrectionDialog, gamma from ..command import Command class GammaCorrection(Command): def __init__(self, parent: QWidget): super().__init__(parent, "Gamma correction") def execute(self, main_win...
36.957447
82
0.651698
a86e868eacbc813bd30439c407f9987c9e527358
342
py
Python
optimization/utilities/__init__.py
miecio190/optimization
a5ce621ae2ba142c8fac0788be3654304b4cd2cb
[ "MIT" ]
2
2020-08-06T10:14:07.000Z
2021-06-14T08:20:36.000Z
optimization/utilities/__init__.py
miecio190/optimization
a5ce621ae2ba142c8fac0788be3654304b4cd2cb
[ "MIT" ]
16
2020-08-06T10:59:42.000Z
2021-01-31T11:44:33.000Z
optimization/utilities/__init__.py
miecio190/optimization
a5ce621ae2ba142c8fac0788be3654304b4cd2cb
[ "MIT" ]
null
null
null
""" Helper function package. It contains: - abstraction layer for random values generation - binary search algorithm """ from .random_values import generate_random_int, generate_random_float, \ choose_random_value, choose_random_values, choose_random_value_with_weights, \ shuffle, shuffled from .other...
26.307692
82
0.789474
34240e6ca61b55b046c2d2a36206c8a3c0301a43
4,286
py
Python
networking_mlnx/eswitchd/cli/conn_utils.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
networking_mlnx/eswitchd/cli/conn_utils.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
networking_mlnx/eswitchd/cli/conn_utils.py
mail2nsrajesh/networking-mlnx
9051eac0c2bc6abf3c8790e01917e405dc479922
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 Mellanox Technologies, 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/LICENSE-2.0 # # Unless required by applicable law or agreed t...
36.016807
79
0.576995
5f822f8df545cdbaff64fc3f97beb8e0cb23a039
5,783
py
Python
Peter_section2.py
clarype/PythonFunctions
2594623e99abe33d49271602e6f3166965fb75fc
[ "MIT" ]
null
null
null
Peter_section2.py
clarype/PythonFunctions
2594623e99abe33d49271602e6f3166965fb75fc
[ "MIT" ]
null
null
null
Peter_section2.py
clarype/PythonFunctions
2594623e99abe33d49271602e6f3166965fb75fc
[ "MIT" ]
null
null
null
import Peter_lab4_cookbook as Pcbk4 a = raw_input('Enter a path to a folder with no spaces. examples. for Mac something like this /Users/katie/Downloads/lab44 or for Windows C:\\\Users\\\clarype\\\Desktop\\\New folder ') # def headfootfile(path,filename): test = Pcbk4.check_filename(path, filenam...
46.264
187
0.550233
931eba6eb64fafc451ccf1a7564aaa5a5f62b582
14,549
py
Python
train.py
hukefei/DistanceWeightedSampling
7a7d377150ececdaf2171a4178cfdec1a1ee992d
[ "MIT" ]
null
null
null
train.py
hukefei/DistanceWeightedSampling
7a7d377150ececdaf2171a4178cfdec1a1ee992d
[ "MIT" ]
null
null
null
train.py
hukefei/DistanceWeightedSampling
7a7d377150ececdaf2171a4178cfdec1a1ee992d
[ "MIT" ]
null
null
null
import argparse import logging import time import os import random import warnings import numpy as np from bottleneck import argpartition import torch import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torchvision.transforms as transforms import torchvision.datasets as datasets imp...
38.086387
217
0.592412
d1394ea05f20151e0d01e43a536f203c24751f6b
5,041
py
Python
stellar/operations.py
abitrolly/stellar5
15b2904fa36c8acbe188324f7e58032e81f2484e
[ "MIT" ]
932
2015-01-01T16:51:32.000Z
2022-03-14T05:12:52.000Z
stellar/operations.py
abitrolly/stellar5
15b2904fa36c8acbe188324f7e58032e81f2484e
[ "MIT" ]
43
2015-01-05T13:31:30.000Z
2021-10-12T17:24:07.000Z
stellar/operations.py
abitrolly/stellar5
15b2904fa36c8acbe188324f7e58032e81f2484e
[ "MIT" ]
64
2015-01-02T14:44:22.000Z
2021-12-10T18:47:44.000Z
import logging import sqlalchemy_utils logger = logging.getLogger(__name__) SUPPORTED_DIALECTS = ( 'postgresql', 'mysql' ) class NotSupportedDatabase(Exception): pass def get_engine_url(raw_conn, database): url = str(raw_conn.engine.url) if url.count('/') == 3 and url.endswith('/'): r...
29.828402
77
0.564571
3f09ed2513aa0fe4df19211c860c4fd7a357a8b2
9,996
py
Python
neurom/io/neurolucida.py
Asjidkalam/NeuroM
c3b0447c34994d12a77db5136838df50caea72bc
[ "BSD-3-Clause" ]
1
2016-10-25T09:23:16.000Z
2016-10-25T09:23:16.000Z
neurom/io/neurolucida.py
Asjidkalam/NeuroM
c3b0447c34994d12a77db5136838df50caea72bc
[ "BSD-3-Clause" ]
1
2021-02-16T20:53:48.000Z
2021-02-16T20:53:48.000Z
neurom/io/neurolucida.py
Asjidkalam/NeuroM
c3b0447c34994d12a77db5136838df50caea72bc
[ "BSD-3-Clause" ]
1
2021-02-16T20:50:02.000Z
2021-02-16T20:50:02.000Z
# Copyright (c) 2016, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
36.615385
90
0.623349
8caa41bc209588bd5ee483d42aed4405987f24ef
2,727
py
Python
sleepin/tests/test_views.py
turtle1229/private_sleepin
fdc352aff7430ab324fcaa30d181545037dd95c4
[ "MIT" ]
null
null
null
sleepin/tests/test_views.py
turtle1229/private_sleepin
fdc352aff7430ab324fcaa30d181545037dd95c4
[ "MIT" ]
2
2021-02-15T04:41:03.000Z
2021-02-15T04:48:43.000Z
sleepin/tests/test_views.py
turtle1229/private_sleepin
fdc352aff7430ab324fcaa30d181545037dd95c4
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse_lazy from ..models import Sleeptime, Meal, Health, Diary class LoggedInTestCase(TestCase): """各テストクラスで共通の事前準備処理をオーバーライドした独自TestCaseクラス""" def setUp(self): """テストメソッド実行前の事前設定""" #テ...
30.988636
112
0.6685
f686da2a2f55ed2f09249bc9db825511b5cdfecd
4,475
py
Python
otrrentworker/azurestorage/tablemodels.py
omza/otrrentworker
faa70884a29dd271a33346ed45b3f43e5d7a7a21
[ "MIT" ]
null
null
null
otrrentworker/azurestorage/tablemodels.py
omza/otrrentworker
faa70884a29dd271a33346ed45b3f43e5d7a7a21
[ "MIT" ]
null
null
null
otrrentworker/azurestorage/tablemodels.py
omza/otrrentworker
faa70884a29dd271a33346ed45b3f43e5d7a7a21
[ "MIT" ]
null
null
null
""" imports & Gloabls """ import datetime from azure.common import AzureException from azure.storage.table import Entity, TableService, EntityProperty, EdmType from azurestorage.wrapper import StorageTableModel, StorageTableCollection from helpers.helper import safe_cast """ configure logging """ from config import...
27.121212
109
0.605587
16b5e5f5ae89f63ff1246ff975563b9b74f157ea
2,236
py
Python
video_compression/scripts/generate_video_cfg.py
AyanKumarBhunia/STDF-PyTorch
5a11613fa0dfad4697b495fadd5d4b718a1d7fb6
[ "OLDAP-2.2.1" ]
null
null
null
video_compression/scripts/generate_video_cfg.py
AyanKumarBhunia/STDF-PyTorch
5a11613fa0dfad4697b495fadd5d4b718a1d7fb6
[ "OLDAP-2.2.1" ]
null
null
null
video_compression/scripts/generate_video_cfg.py
AyanKumarBhunia/STDF-PyTorch
5a11613fa0dfad4697b495fadd5d4b718a1d7fb6
[ "OLDAP-2.2.1" ]
null
null
null
# no maximum nfs restriction. for test videos. # video name: VideoName_widthxheight_nfs.yuv import glob import os import sys import os.path as op dir_dataset = sys.argv[1] tab = sys.argv[2] # test_18 | train_108 def generate_vid_cfg(dir_dataset, tab): raw_video_dir = op.join(dir_dataset, f'{tab}/raw') cfg_...
37.266667
106
0.54517
cf4812009598b2678e867c1c20fc7dc1530a64d7
9,457
py
Python
examples/simple_example.py
thetestgame/panda3d_astron
9ceeba53a1f497fcc601905a5c87a4eddb281714
[ "MIT" ]
2
2022-02-18T23:22:48.000Z
2022-02-21T13:15:33.000Z
examples/simple_example.py
thetestgame/panda3d_astron
9ceeba53a1f497fcc601905a5c87a4eddb281714
[ "MIT" ]
null
null
null
examples/simple_example.py
thetestgame/panda3d_astron
9ceeba53a1f497fcc601905a5c87a4eddb281714
[ "MIT" ]
null
null
null
# For UberDOGs from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.distributed.DistributedObjectGlobalAI import DistributedObjectGlobalAI from direct.distributed.DistributedObjectGlobalUD import DistributedObjectGlobalUD # For regular DOs from direct.distributed.DistributedObject ...
45.68599
149
0.633922
5b5818e458c5699a3f260646250c5ecae00beb63
1,019
py
Python
test/final/old/PythonSocket-1/client.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
test/final/old/PythonSocket-1/client.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
test/final/old/PythonSocket-1/client.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
# # Copyright 2015 riteme # import random import time import socket import sys SERVER_IP = '127.0.0.1' SERVER_PORT = 2048 DATA_START = 1 if not __name__ == '__main__' or len(sys.argv) == 1: print 'No parameters given.' else: if len(sys.argv) > 1: SERVER_IP = sys.argv[1] DATA_START += 1 i...
21.680851
65
0.662414
fb8a6ad885184d2374ac72230c33cf2189555a8d
15,168
py
Python
wavefront_api_client/api/query_api.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/api/query_api.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
wavefront_api_client/api/query_api.py
mdennehy/python-client
4d9cfa32075a6a65d88a38fe9e72b282e87b8808
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Wavefront REST API <p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST ...
50.392027
409
0.643064
8d6a785982b1f48468669c0657cf63d5bc90e027
740
py
Python
vvn_sample.py
YD-CRDG/VoicevoxEngine_Negotiator_Python
542ed90930b5a031f798041e229e836a49b4b6cf
[ "MIT" ]
null
null
null
vvn_sample.py
YD-CRDG/VoicevoxEngine_Negotiator_Python
542ed90930b5a031f798041e229e836a49b4b6cf
[ "MIT" ]
null
null
null
vvn_sample.py
YD-CRDG/VoicevoxEngine_Negotiator_Python
542ed90930b5a031f798041e229e836a49b4b6cf
[ "MIT" ]
null
null
null
import vvx_nego if __name__ == "__main__": #hogeの部分をエンジンが有るpathに変更して実行してください vvn = vvx_nego.VoicevoxNegotiation("hoge\\run.exe") vvn.request_audio_query("これは", speaker=1) vvn.request_synthesis(vvn.audio_query, speaker=1) vvn.multi_synthesis.append(vvn.synthesis) vvn.request_audio_quer...
32.173913
56
0.724324
c18fbe22aae976259ca87ddb8676b020bc2f54c6
669
py
Python
turismo/sitio/migrations/0019_auto_20170525_0052.py
giocastagno/I.W._Delpuppo_Kopech_Castagno
821cf8e11eb78d9f478e642e9eb0db1534dc28b3
[ "MIT" ]
null
null
null
turismo/sitio/migrations/0019_auto_20170525_0052.py
giocastagno/I.W._Delpuppo_Kopech_Castagno
821cf8e11eb78d9f478e642e9eb0db1534dc28b3
[ "MIT" ]
null
null
null
turismo/sitio/migrations/0019_auto_20170525_0052.py
giocastagno/I.W._Delpuppo_Kopech_Castagno
821cf8e11eb78d9f478e642e9eb0db1534dc28b3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-25 00:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sitio', '0018_auto_20170524_2155'), ] operations = [ migrations.RemoveField...
23.892857
73
0.590433
6c2ea45174bb7c7bd38c2a8914b76c64a88e92cc
4,662
py
Python
readthedocs/core/history.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,054
2015-01-01T00:58:07.000Z
2019-06-28T05:50:49.000Z
readthedocs/core/history.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
4,282
2015-01-01T21:38:49.000Z
2019-06-28T15:41:00.000Z
readthedocs/core/history.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
3,224
2015-01-01T07:38:45.000Z
2019-06-28T09:19:10.000Z
import structlog from functools import partial from django import forms from django.db import models from django.utils.translation import gettext_lazy as _ from simple_history.admin import SimpleHistoryAdmin from simple_history.models import HistoricalRecords from simple_history.utils import update_change_reason log ...
29.320755
106
0.68254
effbae8821da7a2fddb378cb5cace0d1c6d047d7
6,384
py
Python
delta/data/preprocess/text_ops.py
didichuxing/delta
31dfebc8f20b7cb282b62f291ff25a87e403cc86
[ "Apache-2.0" ]
1,442
2019-07-09T07:34:28.000Z
2020-11-15T09:52:09.000Z
delta/data/preprocess/text_ops.py
didichuxing/delta
31dfebc8f20b7cb282b62f291ff25a87e403cc86
[ "Apache-2.0" ]
93
2019-07-22T09:20:20.000Z
2020-11-13T01:59:30.000Z
delta/data/preprocess/text_ops.py
didichuxing/delta
31dfebc8f20b7cb282b62f291ff25a87e403cc86
[ "Apache-2.0" ]
296
2019-07-09T07:35:28.000Z
2020-11-16T02:27:51.000Z
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
36.067797
80
0.693452
d875e29fb0fea10a5202e3bf3b0039acfa02aa90
4,137
py
Python
slot/w/sword.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
slot/w/sword.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
slot/w/sword.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
null
null
null
from slot import WeaponBase from slot.w import agito_buffs class HDT1_Crimson(WeaponBase): ele = ['flame'] wt = 'sword' att = 765 s3 = { "dmg" : 5*1.65 , "sp" : 6847 , "startup" : 0.1 , "recovery" : 3.1 , "hit" : 5 , } ...
22.856354
56
0.434856
a951e83f920ac96654b0090e5b7490e3a7787c0c
1,277
py
Python
DjangoFirst/GrayScale/views.py
FromF/GrayScaleDjango
538af606d75ace4a873295a792e523ade10287bc
[ "MIT" ]
null
null
null
DjangoFirst/GrayScale/views.py
FromF/GrayScaleDjango
538af606d75ace4a873295a792e523ade10287bc
[ "MIT" ]
null
null
null
DjangoFirst/GrayScale/views.py
FromF/GrayScaleDjango
538af606d75ace4a873295a792e523ade10287bc
[ "MIT" ]
null
null
null
#from django.shortcuts import render # Create your views here. from django.http import HttpResponse from django.shortcuts import render, redirect from .forms import DocumentForm from .models import Document import cv2 from django.conf import settings def index(request): if request.method == 'POST': form =...
30.404762
72
0.593579
6f16350ac01eb845c8a62de5b60eb40669a3a4db
12,374
py
Python
mmpose/datasets/datasets/bottom_up/bottom_up_mpii.py
yeshaokai/mmpose_for_maDLC
84efe0ff00de3d916086c8c5579eae17c1ef43cb
[ "Apache-2.0" ]
5
2022-01-13T15:06:45.000Z
2022-01-28T19:39:54.000Z
mmpose/datasets/datasets/bottom_up/bottom_up_mpii.py
yeshaokai/mmpose_for_maDLC
84efe0ff00de3d916086c8c5579eae17c1ef43cb
[ "Apache-2.0" ]
null
null
null
mmpose/datasets/datasets/bottom_up/bottom_up_mpii.py
yeshaokai/mmpose_for_maDLC
84efe0ff00de3d916086c8c5579eae17c1ef43cb
[ "Apache-2.0" ]
1
2022-01-13T11:46:55.000Z
2022-01-13T11:46:55.000Z
import os from collections import OrderedDict, defaultdict import json_tricks as json import numpy as np import xtcocotools from xtcocotools.coco import COCO from xtcocotools.cocoeval import COCOeval from mmpose.datasets.builder import DATASETS from .bottom_up_base_dataset import BottomUpBaseDataset @DATASETS.regis...
33.3531
92
0.528851
800ce10d5765dfdc104e7e439f1ab12ffa36e7bf
343
py
Python
tests/scripts/test_pclean.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/test_pclean.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/test_pclean.py
thesamesam/pkgcore
be2d9264a3fe61a323f0075cbc4838ed6ec5ffcf
[ "BSD-3-Clause" ]
null
null
null
from pkgcore.scripts import pclean from pkgcore.test.scripts.helpers import ArgParseMixin from snakeoil.test import TestCase class CommandlineTest(TestCase, ArgParseMixin): _argparser = pclean.argparser suppress_domain = True def test_parser(self): self.assertError('the following arguments are ...
24.5
76
0.781341
11522c21538644675d3e57063583db9f72bbc551
4,639
py
Python
models/slim/export_inference_graph.py
SanderVanhove/tensorflow-visual-inspection
74ae46ecb4ef1ef08028d51316c4a2b8b5c8a276
[ "Apache-2.0" ]
62
2018-01-10T02:27:32.000Z
2021-03-02T21:59:24.000Z
slim/export_inference_graph.py
jraiskin/TF_screenshots_object_detector
512b2cd376be20e2eb3dc25f8fd2e3a487605290
[ "MIT" ]
3
2018-01-23T06:33:13.000Z
2020-02-17T16:25:01.000Z
slim/export_inference_graph.py
jraiskin/TF_screenshots_object_detector
512b2cd376be20e2eb3dc25f8fd2e3a487605290
[ "MIT" ]
23
2018-03-10T12:14:56.000Z
2020-06-15T06:43:02.000Z
# Copyright 2017 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 applicable ...
37.41129
80
0.733132
a7e3a7db3c6de9d2f3b4cbc2a9022df2548b9699
2,255
py
Python
minion_files/edna/fileDiff.py
Orange-OpenSource/EDNA
38ef05dbdbd7326e8196e25a04e9563b83b30570
[ "Apache-2.0" ]
null
null
null
minion_files/edna/fileDiff.py
Orange-OpenSource/EDNA
38ef05dbdbd7326e8196e25a04e9563b83b30570
[ "Apache-2.0" ]
null
null
null
minion_files/edna/fileDiff.py
Orange-OpenSource/EDNA
38ef05dbdbd7326e8196e25a04e9563b83b30570
[ "Apache-2.0" ]
1
2021-11-20T16:39:44.000Z
2021-11-20T16:39:44.000Z
""" Copyright 2021 Orange 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...
26.529412
75
0.636364
733f29a74fb536c43ce92f35e764729485ed2339
2,120
py
Python
models/LL.py
Tarheel-Formal-Methods/kaa
5bffede6bdfb11b4108d9373012dfa475fb420b3
[ "MIT" ]
1
2020-07-14T16:04:09.000Z
2020-07-14T16:04:09.000Z
models/LL.py
Tarheel-Formal-Methods/sapo-python
5bffede6bdfb11b4108d9373012dfa475fb420b3
[ "MIT" ]
null
null
null
models/LL.py
Tarheel-Formal-Methods/sapo-python
5bffede6bdfb11b4108d9373012dfa475fb420b3
[ "MIT" ]
1
2021-03-26T21:11:48.000Z
2021-03-26T21:11:48.000Z
import sympy as sp import numpy as np from kaa.bundle import Bundle from kaa.model import Model class LL(Model): def __init__(self): x1, x2, x3, x4, x5, x6, x7 = sp.Symbol('x1'), sp.Symbol('x2'), sp.Symbol('x3'), sp.Symbol('x4'),sp.Symbol('x5'), sp.Symbol('x6'), sp.Symbol('x7') delta = 0.05 ...
31.176471
153
0.420755
6a5678bfeacf834c99af3a2021e0b6a7f6ef429d
1,743
py
Python
test/client/network/test_connection.py
redmic-project/device-oag-buoy-buoy-client
d1644a8a1de63671c8757155333370385f2f02ec
[ "MIT" ]
null
null
null
test/client/network/test_connection.py
redmic-project/device-oag-buoy-buoy-client
d1644a8a1de63671c8757155333370385f2f02ec
[ "MIT" ]
2
2021-03-25T23:09:49.000Z
2021-06-02T00:44:01.000Z
test/client/network/test_connection.py
redmic-project/device-oag-buoy-buoy-client
d1644a8a1de63671c8757155333370385f2f02ec
[ "MIT" ]
null
null
null
import unittest from subprocess import CalledProcessError from unittest.mock import patch from nose.tools import eq_ from buoy.client.network import connection path_ping = '/bin/ping' class TestConnectionInternet(unittest.TestCase): def setUp(self): pass @patch.object(connection, 'check_call', sid...
42.512195
107
0.57315
49054df3b18f78f4d5bb898b952539107f50d643
504
py
Python
classgrade/gradapp/migrations/0013_auto_20160928_1134.py
classgrade/classgrade
144dcfc9579e6858ff4aa79835c76b9611ed73b2
[ "MIT" ]
5
2016-11-15T17:46:27.000Z
2022-01-10T08:06:17.000Z
classgrade/gradapp/migrations/0013_auto_20160928_1134.py
classgrade/classgrade
144dcfc9579e6858ff4aa79835c76b9611ed73b2
[ "MIT" ]
21
2016-11-07T14:58:22.000Z
2021-02-02T21:41:12.000Z
classgrade/gradapp/migrations/0013_auto_20160928_1134.py
classgrade/classgrade
144dcfc9579e6858ff4aa79835c76b9611ed73b2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-28 11:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gradapp', '0012_auto_20160927_1134'), ] operations = [ migrations.AlterFiel...
24
76
0.640873
054007ee80d875453e51b3d798960f09e336c821
6,971
py
Python
Code/Lanes1 - Copy - Copy.py
rutwik777/ML-and-IoT-based-Self-Driving-car
007a41774c0aa3b72e9c2c43c1cfc188573ad55e
[ "CC0-1.0" ]
null
null
null
Code/Lanes1 - Copy - Copy.py
rutwik777/ML-and-IoT-based-Self-Driving-car
007a41774c0aa3b72e9c2c43c1cfc188573ad55e
[ "CC0-1.0" ]
null
null
null
Code/Lanes1 - Copy - Copy.py
rutwik777/ML-and-IoT-based-Self-Driving-car
007a41774c0aa3b72e9c2c43c1cfc188573ad55e
[ "CC0-1.0" ]
null
null
null
import numpy as np from PIL import ImageGrab import cv2 import time from numpy import ones,vstack from numpy.linalg import lstsq #from directkeys import PressKey, W, A, S, D from statistics import mean import mss import serial import os arduinoSerial = serial.Serial('com4',9600) time.sleep(1) def roi(img...
34.509901
142
0.501793
2d2a7166b5fc6d0391c3b941aaf3f909395376bc
1,072
py
Python
lagtraj/domain/__init__.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
4
2020-04-16T22:57:00.000Z
2021-10-05T02:37:58.000Z
lagtraj/domain/__init__.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
112
2020-05-21T09:47:14.000Z
2022-03-20T16:00:27.000Z
lagtraj/domain/__init__.py
BuildJet/lagtraj
a49bff9c165b225b37e212dec4c1d319452cc3f3
[ "MIT" ]
5
2020-05-14T11:04:07.000Z
2022-03-11T16:38:35.000Z
from collections import namedtuple from .. import build_data_path from .sources import ( interpolate_to_height_levels, interpolate_to_pressure_levels, ) # noqa from .sources import calc_auxiliary_variable # noqa from ..input_definitions.examples import LAGTRAJ_EXAMPLES_PATH_PREFIX LatLonBoundingBox = namedt...
28.210526
81
0.747201
136d7842d806e91c4d411fa9f213485531273c51
10,789
py
Python
salt/modules/trafficserver.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-21T00:18:25.000Z
2021-07-11T07:35:26.000Z
salt/modules/trafficserver.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
86
2017-01-27T11:54:46.000Z
2020-05-20T06:25:26.000Z
salt/modules/trafficserver.py
byteskeptical/salt
637fe0b04f38b2274191b005d73b3c6707d7f400
[ "Apache-2.0" ]
12
2015-01-05T09:50:42.000Z
2019-08-19T01:43:40.000Z
# -*- coding: utf-8 -*- ''' Apache Traffic Server execution module. .. versionadded:: 2015.8.0 ``traffic_ctl`` is used to execute individual Traffic Server commands and to script multiple commands in a shell. ''' from __future__ import absolute_import, unicode_literals, print_function # Import python libs import log...
22.524008
85
0.629994
cd7830b157914af215c4fa4e2c01e50712083022
29,100
py
Python
.github/scripts/trymerge.py
arthuryuan1987/pytorch
bf730e5039e8bf1614de6ad08ac6a24a1622dcbe
[ "Intel" ]
null
null
null
.github/scripts/trymerge.py
arthuryuan1987/pytorch
bf730e5039e8bf1614de6ad08ac6a24a1622dcbe
[ "Intel" ]
null
null
null
.github/scripts/trymerge.py
arthuryuan1987/pytorch
bf730e5039e8bf1614de6ad08ac6a24a1622dcbe
[ "Intel" ]
null
null
null
#!/usr/bin/env python3 import base64 import json import os import re from dataclasses import dataclass from urllib.request import urlopen, Request from urllib.error import HTTPError from typing import cast, Any, Callable, Dict, List, Optional, Tuple, Union from gitutils import get_git_remote_name, get_git_repo_dir, pa...
37.164751
131
0.578797
5987e72b254ac255443c1f347f89e2bb8b1d74aa
16,825
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py
aalapatirvbd/azure-sdk-for-python
aae867a31f53286b123cf008a43cf0cd3746f8ba
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py
aalapatirvbd/azure-sdk-for-python
aae867a31f53286b123cf008a43cf0cd3746f8ba
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py
aalapatirvbd/azure-sdk-for-python
aae867a31f53286b123cf008a43cf0cd3746f8ba
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest import functools from azure.core.credentials import AzureKeyCredential from azure.core.exceptions import ServiceRequestError, ClientAuthent...
44.986631
144
0.710728
07ec650881bccf4084d626900a5f1943fbc705c5
7,654
py
Python
imagenet/models/resnet.py
matej-ulicny/harmonic-networks
0fccf674806a0b876e641ef5271aad520ff90739
[ "BSD-3-Clause" ]
41
2019-05-02T02:58:20.000Z
2022-03-28T22:37:16.000Z
imagenet/models/resnet.py
matej-ulicny/harmonic-networks
0fccf674806a0b876e641ef5271aad520ff90739
[ "BSD-3-Clause" ]
4
2020-09-14T12:50:24.000Z
2021-03-19T04:36:46.000Z
imagenet/models/resnet.py
matej-ulicny/harmonic-networks
0fccf674806a0b876e641ef5271aad520ff90739
[ "BSD-3-Clause" ]
8
2019-05-04T09:37:06.000Z
2021-08-15T15:38:45.000Z
""" Definition of harmonic Residual Networks. Licensed under the BSD License [see LICENSE for details]. Written by Matej Ulicny, based on torchvision implementation: https://github.com/pytorch/vision/tree/master/torchvision/models """ import torch.nn as nn from utils import load_pretrained from harmo...
36.103774
140
0.617978
231b66365a4574453f7243555be73c889858c617
12,052
py
Python
components/handlers/modified_modules.py
nus-mtp/another-cs-study-planner
02b52871a34f580b779ede08750f2d4e887bcf65
[ "MIT" ]
1
2017-04-30T17:59:08.000Z
2017-04-30T17:59:08.000Z
components/handlers/modified_modules.py
nus-mtp/another-cs-study-planner
02b52871a34f580b779ede08750f2d4e887bcf65
[ "MIT" ]
87
2017-02-13T09:06:13.000Z
2017-04-14T09:23:08.000Z
components/handlers/modified_modules.py
nus-mtp/another-cs-study-planner
02b52871a34f580b779ede08750f2d4e887bcf65
[ "MIT" ]
1
2017-04-11T05:26:00.000Z
2017-04-11T05:26:00.000Z
''' This module contains the handler for web requests pertaining to retrieiving modules that have been modified. ''' from app import RENDER import web from components import model, session from components.handlers.fixed_module_mountings import Fixed from components.handlers.tentative_module_mountings import T...
46.713178
100
0.613591
bcb2bddf2cab84cb28140329f4867de883642226
3,981
py
Python
tests/micro/arduino/conftest.py
TNBase/tvm
9824d2e2c047cb366eca81fb54829390615a6285
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
2
2021-08-12T17:27:40.000Z
2021-11-17T10:56:52.000Z
tests/micro/arduino/conftest.py
TNBase/tvm
9824d2e2c047cb366eca81fb54829390615a6285
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
null
null
null
tests/micro/arduino/conftest.py
TNBase/tvm
9824d2e2c047cb366eca81fb54829390615a6285
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
1
2021-04-19T06:59:59.000Z
2021-04-19T06:59:59.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.104839
179
0.680482
49728a471fcc8fc3d74dbfaa8360f85829aea594
40
py
Python
audit_service/api/base/tests/__init__.py
LucasBiason/LoggingPy
aa73a59842c74ae2b11031875be11beb3da54048
[ "MIT" ]
null
null
null
audit_service/api/base/tests/__init__.py
LucasBiason/LoggingPy
aa73a59842c74ae2b11031875be11beb3da54048
[ "MIT" ]
null
null
null
audit_service/api/base/tests/__init__.py
LucasBiason/LoggingPy
aa73a59842c74ae2b11031875be11beb3da54048
[ "MIT" ]
null
null
null
from .logger_test import LoggerNoSQLTest
40
40
0.9
a12e7180865fedfa67746ee7b322c157f26a535c
1,511
py
Python
example files/flask_apps/upload/controller.py
nikku1234/InbreastData-Html-Page
5f02b2e03e5f2f8f9fe9e2ce1b089b4dd2e36323
[ "Apache-2.0" ]
1
2020-07-02T06:06:18.000Z
2020-07-02T06:06:18.000Z
example files/flask_apps/upload/controller.py
nikku1234/InbreastData-Html-Page
5f02b2e03e5f2f8f9fe9e2ce1b089b4dd2e36323
[ "Apache-2.0" ]
6
2020-06-17T14:19:47.000Z
2022-03-12T00:36:20.000Z
example files/flask_apps/upload/controller.py
nikku1234/InbreastData-Html-Page
5f02b2e03e5f2f8f9fe9e2ce1b089b4dd2e36323
[ "Apache-2.0" ]
null
null
null
from compute import compute_mean_std as compute_function from flask import Flask, render_template, request from model import Average from werkzeug import secure_filename import os # Application object app = Flask(__name__) # Relative path of directory for uploaded files UPLOAD_DIR = 'uploads/' app.config['UPLOAD_FO...
29.057692
69
0.662475
26c398a70e5d597d4a35b912c4b1dbece52d3295
3,278
py
Python
tests/demoapp/demo/admin.py
saxix/django-admin-extra-urls
295112cbc194c20de0c176c535d0cddf3b3cb680
[ "BSD-1-Clause" ]
24
2015-05-01T03:27:53.000Z
2022-02-20T07:45:02.000Z
tests/demoapp/demo/admin.py
saxix/django-admin-extra-urls
295112cbc194c20de0c176c535d0cddf3b3cb680
[ "BSD-1-Clause" ]
19
2015-03-28T09:54:56.000Z
2022-01-07T14:56:09.000Z
tests/demoapp/demo/admin.py
saxix/django-admin-extra-urls
295112cbc194c20de0c176c535d0cddf3b3cb680
[ "BSD-1-Clause" ]
15
2015-10-20T10:15:18.000Z
2022-02-01T16:25:53.000Z
from django.contrib import admin from django.contrib.admin import SimpleListFilter from django.contrib.admin.templatetags.admin_urls import admin_urlname from django.http import HttpResponseRedirect from django.urls import reverse from admin_extra_urls.api import ExtraUrlMixin, UrlButton, confirm_action, url from admi...
32.78
85
0.702257
170dbf6c3634a671c97361697a96ee92c3398b1d
50,646
py
Python
network/datadog_checks/network/network.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
network/datadog_checks/network/network.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
network/datadog_checks/network/network.py
tcpatterson/integrations-core
3692601de09f8db60f42612b0d623509415bbb53
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2010-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) """ Collects network metrics. """ import array import distutils.spawn import os import re import socket import struct from collections import defaultdict import psutil from six import PY3, iteritems, itervalu...
46.294333
149
0.548829
80d17fcb83a1e64b803b1b61cd3b7ed367858927
9,659
py
Python
official/nlp/tools/export_tfhub.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2021-05-22T12:50:50.000Z
2021-05-22T12:50:50.000Z
official/nlp/tools/export_tfhub.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
official/nlp/tools/export_tfhub.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
# Copyright 2021 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...
43.904545
81
0.719847
7a554b5a51d19abfd439467f261ec053abfd489b
21,850
py
Python
classification/main_dmt.py
voldemortX/DST-CBC
e392313c129f6814c1a1c0f20c0abbd5505c3d7d
[ "BSD-3-Clause" ]
103
2020-04-21T01:25:16.000Z
2022-03-24T07:45:45.000Z
classification/main_dmt.py
voldemortX/DST-CBC
e392313c129f6814c1a1c0f20c0abbd5505c3d7d
[ "BSD-3-Clause" ]
13
2021-03-24T06:52:21.000Z
2022-01-18T08:17:50.000Z
classification/main_dmt.py
voldemortX/DST-CBC
e392313c129f6814c1a1c0f20c0abbd5505c3d7d
[ "BSD-3-Clause" ]
12
2020-04-29T02:33:11.000Z
2021-12-28T07:59:20.000Z
import os import time import torch import argparse import random import pickle import numpy as np from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter from models.wideresnet import wrn_28_2 from utils.common import num_classes_cifar10, mean_cifar10, std_cifar10, input_sizes_cifar10, base_cifar10, \ ...
48.663697
119
0.609611
831a295f5634214b538490530227b2867fa73313
169
py
Python
Regs/Block_0/R0990.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
1
2021-04-25T13:53:20.000Z
2021-04-25T13:53:20.000Z
Regs/Block_0/R0990.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
Regs/Block_0/R0990.py
BernardoB95/Extrator_SPEDFiscal
10b4697833c561d24654251da5f22d044f03fc16
[ "MIT" ]
null
null
null
from ..IReg import IReg class R0990(IReg): def __init__(self): self._header = ['REG', 'QTD_LIN_0'] self._hierarchy = "1"
15.363636
36
0.502959
40063234fae9c458d994869a82696f9e1ee8ef00
27,423
py
Python
netbox/dcim/models/device_components.py
waterdrops/netbox
cb9478e0eaa5853e73718ef6bc52c1f1171678e5
[ "Apache-2.0" ]
2
2021-07-08T03:58:12.000Z
2022-02-11T21:50:46.000Z
netbox/dcim/models/device_components.py
waterdrops/netbox
cb9478e0eaa5853e73718ef6bc52c1f1171678e5
[ "Apache-2.0" ]
25
2019-09-17T19:40:50.000Z
2022-03-11T04:01:55.000Z
netbox/dcim/models/device_components.py
waterdrops/netbox
cb9478e0eaa5853e73718ef6bc52c1f1171678e5
[ "Apache-2.0" ]
1
2022-02-11T21:50:58.000Z
2022-02-11T21:50:58.000Z
from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from dj...
31.340571
120
0.617985
e83adba353793dd5f3784cf716f1f6243ffc4e4a
7,280
py
Python
src/transformers/configuration_squeezebert.py
WERimagin/transformers
cc7d14511c647f8147494df72f8b0575015e37ab
[ "Apache-2.0" ]
16
2021-09-09T02:09:41.000Z
2022-03-22T15:38:11.000Z
src/transformers/configuration_squeezebert.py
WERimagin/transformers
cc7d14511c647f8147494df72f8b0575015e37ab
[ "Apache-2.0" ]
3
2021-11-08T04:40:28.000Z
2022-03-30T09:10:31.000Z
src/transformers/configuration_squeezebert.py
WERimagin/transformers
cc7d14511c647f8147494df72f8b0575015e37ab
[ "Apache-2.0" ]
6
2021-11-01T09:45:53.000Z
2022-01-06T06:18:45.000Z
# coding=utf-8 # Copyright 2020 The SqueezeBert 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://www.apache.org/licenses/LICENSE-2.0 # # U...
47.581699
149
0.690659
56f3578863b62de0b55233af6dd556b68197439c
1,073
py
Python
tests/drf/controller_with_serializer.py
DmitryKhursevich/winter
9f3bf462f963059bab1f1bbb309ca57f8a43b46f
[ "MIT" ]
9
2019-01-24T11:50:19.000Z
2019-07-05T07:58:46.000Z
tests/drf/controller_with_serializer.py
mikhaillazko/winter
cd4f11aaf28d500aabb59cec369817bfdb5c2fc1
[ "MIT" ]
100
2019-01-29T08:11:38.000Z
2020-04-03T12:00:42.000Z
tests/drf/controller_with_serializer.py
mikhaillazko/winter
cd4f11aaf28d500aabb59cec369817bfdb5c2fc1
[ "MIT" ]
8
2020-07-16T13:56:50.000Z
2021-12-27T03:33:23.000Z
import dataclasses from rest_framework import serializers import winter from winter_django import BodyWithContext from winter_django import input_serializer from winter_django import output_serializer @dataclasses.dataclass class SimpleDTO: number: int class SimpleSerializer(serializers.Serializer): numbe...
26.170732
67
0.767008
f7c202a18a3cb8c131a94852638378454e7f312e
1,482
py
Python
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/DescribeDomainsBySourceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/DescribeDomainsBySourceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/DescribeDomainsBySourceRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.285714
76
0.765857
6a615faed84c44d51e2cc785b4a71ba4c0b25c69
3,743
py
Python
responsebot/utils/config_utils.py
openjusticebaltimore/ResponseBot
e224fe5251190f2f4a8901afbd622c411601e86e
[ "Apache-2.0" ]
16
2016-05-11T00:04:18.000Z
2020-07-21T20:32:11.000Z
responsebot/utils/config_utils.py
openjusticebaltimore/ResponseBot
e224fe5251190f2f4a8901afbd622c411601e86e
[ "Apache-2.0" ]
6
2016-05-10T03:34:17.000Z
2016-06-14T02:42:45.000Z
responsebot/utils/config_utils.py
openjusticebaltimore/ResponseBot
e224fe5251190f2f4a8901afbd622c411601e86e
[ "Apache-2.0" ]
6
2016-05-09T20:17:43.000Z
2020-08-15T04:43:45.000Z
""" Utilities for handling configurations """ from responsebot.common.exceptions import MissingConfigError try: from ConfigParser import SafeConfigParser except ImportError: from configparser import SafeConfigParser class ResponseBotConfig(object): """Get config values and validate them.""" REQUIRED_...
40.247312
115
0.657761
fe8c25a152cb00138062b1dc9c4653762b221243
11,694
py
Python
medspacy/context/context_modifier.py
lusterck/medspacy
ef151ac163e468159c58cfd7ec391900fac0d809
[ "MIT" ]
197
2020-07-22T12:37:03.000Z
2022-03-29T19:07:41.000Z
medspacy/context/context_modifier.py
lusterck/medspacy
ef151ac163e468159c58cfd7ec391900fac0d809
[ "MIT" ]
77
2020-09-11T19:01:06.000Z
2022-03-29T16:57:21.000Z
medspacy/context/context_modifier.py
lusterck/medspacy
ef151ac163e468159c58cfd7ec391900fac0d809
[ "MIT" ]
32
2020-07-30T21:30:16.000Z
2022-03-27T16:01:30.000Z
class ConTextModifier: """Represents a concept found by ConText in a document. Is the result of ConTextRule matching a span of text in a Doc. """ def __init__(self, context_rule, start, end, doc, _use_context_window=False): """Create a new ConTextModifier from a document span. context_...
38.467105
125
0.61322
40a9b257512025fbbc657784b51c037ce03aacdc
149
py
Python
tests/djsonb_fields/models.py
andres-nieves-endava/djsonb
5fc1ef3a10cb313af7e1c04c25acac81e81c7096
[ "BSD-3-Clause" ]
3
2016-03-08T20:55:54.000Z
2019-06-13T14:31:50.000Z
tests/djsonb_fields/models.py
andres-nieves-endava/djsonb
5fc1ef3a10cb313af7e1c04c25acac81e81c7096
[ "BSD-3-Clause" ]
13
2015-10-07T18:21:37.000Z
2018-07-30T12:51:40.000Z
tests/djsonb_fields/models.py
andres-nieves-endava/djsonb
5fc1ef3a10cb313af7e1c04c25acac81e81c7096
[ "BSD-3-Clause" ]
4
2016-03-14T18:12:33.000Z
2020-07-08T15:41:50.000Z
# -*- coding: utf-8 -*- from django.db import models from djsonb.fields import JsonBField class JsonBModel(models.Model): data = JsonBField()
16.555556
36
0.711409
fc2d3bb7726051683830c3199321bc41a33f5e0a
7,343
py
Python
models/rnn_baseline/model_trainer.py
kdmarshall/Two_Sigma_Financial_Modeling_Challenge
e7e4b6280c1fd85983d3786afb630010f807d700
[ "MIT" ]
3
2017-11-12T07:58:10.000Z
2021-03-21T19:10:30.000Z
models/rnn_baseline/model_trainer.py
kdmarshall/Two_Sigma_Financial_Modeling_Challenge
e7e4b6280c1fd85983d3786afb630010f807d700
[ "MIT" ]
null
null
null
models/rnn_baseline/model_trainer.py
kdmarshall/Two_Sigma_Financial_Modeling_Challenge
e7e4b6280c1fd85983d3786afb630010f807d700
[ "MIT" ]
1
2020-10-24T22:51:59.000Z
2020-10-24T22:51:59.000Z
import tensorflow as tf import numpy as np import multiprocessing import random import os from random import shuffle import pandas as pd from utils.data_utils import DataSet from utils.mock_gym import r_score # Training options SAVE_ANALYTICS = False OUTDIR = '/Users/Peace/Desktop/outputs' RANDOM_SEED = 8888 np.rand...
36.715
138
0.618548
06b66879889c7f827f18c8c0aa4ab4f30c295f1c
3,256
py
Python
py_elemental/settings.py
FranchuFranchu/py-elemental
7679815c8f8b8df5095c0c26c610179aa05d4ea0
[ "MIT" ]
null
null
null
py_elemental/settings.py
FranchuFranchu/py-elemental
7679815c8f8b8df5095c0c26c610179aa05d4ea0
[ "MIT" ]
null
null
null
py_elemental/settings.py
FranchuFranchu/py-elemental
7679815c8f8b8df5095c0c26c610179aa05d4ea0
[ "MIT" ]
null
null
null
""" Django settings for py_elemental project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
25.24031
91
0.691032
a1a3b7e5c64b0c82cf6e2b9ef6d405e42f8e61ac
1,345
py
Python
partridge/utilities.py
adiwaz/partridge
f39889ddc7142b14473c5c0c3235d6276c76b5c0
[ "MIT" ]
1
2019-10-22T13:34:07.000Z
2019-10-22T13:34:07.000Z
partridge/utilities.py
adiwaz/partridge
f39889ddc7142b14473c5c0c3235d6276c76b5c0
[ "MIT" ]
2
2018-02-25T08:00:17.000Z
2019-04-01T14:15:20.000Z
partridge/utilities.py
adiwaz/partridge
f39889ddc7142b14473c5c0c3235d6276c76b5c0
[ "MIT" ]
2
2018-02-24T17:10:27.000Z
2018-06-18T16:03:30.000Z
try: from functools import lru_cache except ImportError: from functools32 import lru_cache from chardet import UniversalDetector import numpy as np import pandas as pd from pandas.core.common import flatten __all__ = [ 'detect_encoding', 'empty_df', 'lru_cache', 'remove_node_attributes', ...
22.79661
78
0.655019
1687a529385c2f4610d125cc6ca0b789d8e698a5
73
py
Python
synology_api/__init__.py
kidburglar/synology-api
1b5d0e6d121646713bf9b120218e811f96bb4288
[ "MIT" ]
null
null
null
synology_api/__init__.py
kidburglar/synology-api
1b5d0e6d121646713bf9b120218e811f96bb4288
[ "MIT" ]
null
null
null
synology_api/__init__.py
kidburglar/synology-api
1b5d0e6d121646713bf9b120218e811f96bb4288
[ "MIT" ]
1
2020-06-12T03:35:03.000Z
2020-06-12T03:35:03.000Z
from . import auth, filestation, downloadstation, audiostation, sys_info
36.5
72
0.821918
219b66d5bfe26c9a1145bd48e3c706e73a0fcfc6
1,171
py
Python
pyperf/tests/test_cli.py
Tada-Project/pyperf
0a0b68582b3eb1ba221cd15eabe5e965e7f28338
[ "MIT" ]
null
null
null
pyperf/tests/test_cli.py
Tada-Project/pyperf
0a0b68582b3eb1ba221cd15eabe5e965e7f28338
[ "MIT" ]
null
null
null
pyperf/tests/test_cli.py
Tada-Project/pyperf
0a0b68582b3eb1ba221cd15eabe5e965e7f28338
[ "MIT" ]
1
2019-11-21T12:23:41.000Z
2019-11-21T12:23:41.000Z
import pyperf from pyperf import _cli as cli from pyperf.tests import unittest class CLITests(unittest.TestCase): def test_format_result(self): run = pyperf.Run([1.0, 1.5, 2.0], warmups=[(1, 3.0)], metadata={'name': 'mybench'}, col...
36.59375
66
0.543126