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
41a1b03ae52efdde7d17b7adf10ebd0df0d7aace
515
py
Python
upload_studio/management/commands/project_run_all.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
upload_studio/management/commands/project_run_all.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
upload_studio/management/commands/project_run_all.py
2600box/harvest
57264c15a3fba693b4b58d0b6d4fbf4bd5453bbd
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
from django.core.management.base import BaseCommand from django.db import transaction from Harvest.utils import get_logger from upload_studio.steps_runner import StepsRunner logger = get_logger(__name__) class Command(BaseCommand): help = "Run all steps on an upload studio project" def add_arguments(self, ...
25.75
54
0.735922
48a218146a075b13c91cc87a63654fd6ba9404aa
4,708
py
Python
rllib/algorithms/mock.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
rllib/algorithms/mock.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
rllib/algorithms/mock.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
import os import pickle import numpy as np from ray.tune import result as tune_result from ray.rllib.algorithms.algorithm import Algorithm, with_common_config from ray.rllib.utils.annotations import override from ray.rllib.utils.typing import AlgorithmConfigDict class _MockTrainer(Algorithm): """Mock trainer for...
29.610063
88
0.592184
e431b88d995d3c05eeb11a3dc58f6e91b0c21424
1,484
py
Python
config_test.py
klokan/googlecrisismap
e31b68706f7a4921037b0e513703483f2ac3b830
[ "Apache-2.0" ]
40
2015-06-24T12:31:14.000Z
2021-01-30T23:33:54.000Z
config_test.py
klokan/googlecrisismap
e31b68706f7a4921037b0e513703483f2ac3b830
[ "Apache-2.0" ]
16
2015-07-30T14:24:42.000Z
2021-02-24T22:30:56.000Z
config_test.py
klokan/googlecrisismap
e31b68706f7a4921037b0e513703483f2ac3b830
[ "Apache-2.0" ]
27
2015-06-21T07:31:58.000Z
2021-02-12T08:47:42.000Z
#!/usr/bin/python # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
37.1
79
0.698787
6ba52ab586aebb022f93cd575776827b5b370655
2,884
py
Python
events/models.py
stive-hub/django-crm
01c49bd98dbee59d525f047c032bf8155632f3af
[ "MIT" ]
2
2019-11-06T07:57:13.000Z
2019-11-06T07:57:15.000Z
events/models.py
stive-hub/django-crm
01c49bd98dbee59d525f047c032bf8155632f3af
[ "MIT" ]
1
2020-01-20T06:19:26.000Z
2020-01-20T06:19:26.000Z
events/models.py
stive-hub/django-crm
01c49bd98dbee59d525f047c032bf8155632f3af
[ "MIT" ]
5
2020-03-21T09:55:05.000Z
2020-04-03T06:51:02.000Z
import arrow from django.db import models from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ from common.models import User from contacts.models import Contact from teams.models import Teams # Create your models here. class Event(models.Model): EVENT_TYPE =...
39.506849
89
0.687587
45916180c1d38290e49f8a123df81f95f7579f1a
11,650
py
Python
tests/python/relay/test_type_infer.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
9
2019-12-17T08:03:54.000Z
2022-01-19T02:34:23.000Z
tests/python/relay/test_type_infer.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
2
2020-06-18T21:15:42.000Z
2020-06-24T17:38:37.000Z
tests/python/relay/test_type_infer.py
jiangzoi/incubator-tvm
144c6f45f7217b9df2f5605e06f0903e470ac11c
[ "Apache-2.0" ]
3
2020-10-04T20:30:18.000Z
2022-01-24T18:03:52.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...
30.417755
101
0.598112
b29c7f8710cece61bf7c2a5b39e46064a1130a44
880
py
Python
components/module_test.py
swilliams11/building-machine-learning-pipelines
b7e5e722975b3138005892e4644bfadb61ada945
[ "MIT" ]
465
2020-05-18T08:23:42.000Z
2022-03-28T14:51:43.000Z
components/module_test.py
swilliams11/building-machine-learning-pipelines
b7e5e722975b3138005892e4644bfadb61ada945
[ "MIT" ]
49
2020-06-25T12:35:32.000Z
2021-11-23T22:47:30.000Z
components/module_test.py
swilliams11/building-machine-learning-pipelines
b7e5e722975b3138005892e4644bfadb61ada945
[ "MIT" ]
163
2020-05-19T07:20:13.000Z
2022-03-24T06:05:41.000Z
import tensorflow as tf from components.module import fill_in_missing class ExecutorTest(tf.test.TestCase): def setUp(self): super(ExecutorTest, self).setUp() def test_fill_in_missing_dense_tensor(self): dense_tensor = tf.constant([[""], ["wow"], ["test"]]) expected_tensor = tf.cons...
32.592593
80
0.644318
872cdbe0e3d64b5404b3730f7e3a3eb247fa0e92
6,534
py
Python
python/selenium/python3.6/androidAppTest.py
tuyetngo/samples
7baf9b4d5027a95283dbe460c5af06434dc92568
[ "MIT" ]
null
null
null
python/selenium/python3.6/androidAppTest.py
tuyetngo/samples
7baf9b4d5027a95283dbe460c5af06434dc92568
[ "MIT" ]
null
null
null
python/selenium/python3.6/androidAppTest.py
tuyetngo/samples
7baf9b4d5027a95283dbe460c5af06434dc92568
[ "MIT" ]
null
null
null
from appium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.remote.remote_connection import RemoteConnection import unittest import re import time import sys sys....
39.6
139
0.708448
23e6f5f81e77e13b243456868ed49f68fc6862fb
516
py
Python
code/480.sliding-window-median.py
ProHiryu/leetcode
1f42a102ab89b6e7c20f38dd8b435255f2ab4418
[ "MIT" ]
3
2019-01-24T03:22:51.000Z
2021-09-10T14:52:42.000Z
code/480.sliding-window-median.py
ProHiryu/leetcode
1f42a102ab89b6e7c20f38dd8b435255f2ab4418
[ "MIT" ]
null
null
null
code/480.sliding-window-median.py
ProHiryu/leetcode
1f42a102ab89b6e7c20f38dd8b435255f2ab4418
[ "MIT" ]
2
2019-10-15T04:24:51.000Z
2020-12-16T02:40:55.000Z
# # @lc app=leetcode id=480 lang=python3 # # [480] Sliding Window Median # import bisect # @lc code=start class Solution: def medianSlidingWindow(self, nums: List[int], k: int) -> List[float]: window = [] res = [] for i in range(len(nums)): bisect.insort(window, nums[i]) ...
24.571429
74
0.52907
d0e2596966ab8fa4fa4c0b2eadda0b18152bccc1
2,389
py
Python
python/test/utils/test_graph_converters/test_fixed_point_graph.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
1
2020-08-03T12:49:19.000Z
2020-08-03T12:49:19.000Z
python/test/utils/test_graph_converters/test_fixed_point_graph.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
1
2020-11-09T07:33:29.000Z
2020-11-09T07:33:29.000Z
python/test/utils/test_graph_converters/test_fixed_point_graph.py
sdonatti/nnabla
ac4a42e62dd358f16bd79c08a9a9f3d83c0100c9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Sony Corporation. 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 applicabl...
32.283784
87
0.700293
7d395d15db66999fe272297f35c85a800e7adbaf
1,039
py
Python
rest_api/schema.py
SjSnowball/haystack
bb066c0a2c10253cf2bf7eb8cc829f1a0edde84d
[ "Apache-2.0" ]
4,544
2019-11-14T11:57:49.000Z
2022-03-31T17:41:18.000Z
rest_api/schema.py
SjSnowball/haystack
bb066c0a2c10253cf2bf7eb8cc829f1a0edde84d
[ "Apache-2.0" ]
1,679
2020-01-14T15:55:58.000Z
2022-03-31T20:55:25.000Z
rest_api/schema.py
SjSnowball/haystack
bb066c0a2c10253cf2bf7eb8cc829f1a0edde84d
[ "Apache-2.0" ]
820
2019-11-27T13:01:42.000Z
2022-03-31T12:54:34.000Z
from typing import Dict, List, Optional, Union, Any from pydantic import BaseModel, Field from haystack import Answer, Document, Label, Span from pydantic import BaseConfig from pydantic.dataclasses import dataclass as pydantic_dataclass try: from typing import Literal except ImportError: from typing_extension...
23.088889
72
0.772859
55b37bcbc6b33d00d6fcaf44348343abd1e08774
1,697
py
Python
firebase_token_generator.py
sgallizia/firebase-id-token-generator-python
5db0a7e4a214de7cdc2a7ae638ed5d6b0a2554cb
[ "MIT" ]
null
null
null
firebase_token_generator.py
sgallizia/firebase-id-token-generator-python
5db0a7e4a214de7cdc2a7ae638ed5d6b0a2554cb
[ "MIT" ]
null
null
null
firebase_token_generator.py
sgallizia/firebase-id-token-generator-python
5db0a7e4a214de7cdc2a7ae638ed5d6b0a2554cb
[ "MIT" ]
null
null
null
import argparse import json import requests import firebase_admin from firebase_admin import credentials, auth # Configuration ================================================================ DATABASE_URL = "https://[PROJECT_ID].firebaseio.com/" # Download from # Firebase Console > Settings > Service Accounts > Genera...
34.632653
97
0.651738
40a5e55d60c6cd99d46c33d04998d93d9d6897e7
2,813
py
Python
tools/train_recognizer.py
shreyas-bk/TPN
f761af1e61086733a882cc37e0556cb47116f574
[ "Apache-2.0" ]
353
2020-03-19T21:41:14.000Z
2022-03-23T09:11:56.000Z
tools/train_recognizer.py
shreyas-bk/TPN
f761af1e61086733a882cc37e0556cb47116f574
[ "Apache-2.0" ]
41
2020-04-15T06:41:18.000Z
2021-12-14T05:36:41.000Z
tools/train_recognizer.py
shreyas-bk/TPN
f761af1e61086733a882cc37e0556cb47116f574
[ "Apache-2.0" ]
59
2020-04-08T22:24:06.000Z
2022-01-06T08:42:39.000Z
from __future__ import division import argparse from mmcv import Config from mmaction import __version__ from mmaction.datasets import get_trimmed_dataset from mmaction.apis import (train_network, init_dist, get_root_logger, set_random_seed) from mmaction.models import build_recognizer impo...
30.912088
78
0.663349
1f43a8be7e1a18b26efe0266d41a7701810a41ec
8,748
py
Python
portality/crosswalks/article_doaj_xml.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
portality/crosswalks/article_doaj_xml.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
portality/crosswalks/article_doaj_xml.py
glauberm/doaj
dc24dfcbf4a9f02ce5c9b09b611a5766ea5742f7
[ "Apache-2.0" ]
null
null
null
from portality.core import app from lxml import etree import re from portality.bll import exceptions from portality.crosswalks.exceptions import CrosswalkException from portality import models from datetime import datetime class DOAJXWalk(object): format_name = "doaj" schema_path = app.config.get("SCHEMAS", {}...
33.646154
158
0.576246
53ca3b20cf185cd2f6ceffae20a3be61394618da
58,269
py
Python
astropy/io/fits/hdu/base.py
PriyankaH21/astropy
159fb9637ce4acdc60329d20517ed3dc7ba79581
[ "BSD-3-Clause" ]
null
null
null
astropy/io/fits/hdu/base.py
PriyankaH21/astropy
159fb9637ce4acdc60329d20517ed3dc7ba79581
[ "BSD-3-Clause" ]
1
2018-11-14T14:18:55.000Z
2020-01-21T10:36:05.000Z
astropy/io/fits/hdu/base.py
PriyankaH21/astropy
159fb9637ce4acdc60329d20517ed3dc7ba79581
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see PYFITS.rst import datetime import os import sys import warnings from contextlib import suppress from inspect import signature, Parameter import numpy as np from .. import conf from ..file import _File from ..header import Header, _pad_length from ..util import (_...
36.124613
82
0.57516
9218f6083a415f319137f43f11ff506876ebce79
65,685
py
Python
testing/framework/TestCmd.py
timgates42/scons
ad0bbd693fde6157323ab461a5e637f237fb59e1
[ "MIT" ]
null
null
null
testing/framework/TestCmd.py
timgates42/scons
ad0bbd693fde6157323ab461a5e637f237fb59e1
[ "MIT" ]
null
null
null
testing/framework/TestCmd.py
timgates42/scons
ad0bbd693fde6157323ab461a5e637f237fb59e1
[ "MIT" ]
null
null
null
""" TestCmd.py: a testing framework for commands and scripts. The TestCmd module provides a framework for portable automated testing of executable commands and scripts (in any language, not just Python), especially commands and scripts that require file system interaction. In addition to running tests and evaluating...
32.8425
101
0.577636
1292b134390e3bf442a7b67115f6237334176a12
11,727
py
Python
watertap/examples/flowsheets/full_treatment_train/flowsheet_components/examples/full_example.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
4
2021-11-06T01:13:22.000Z
2022-02-08T21:16:38.000Z
watertap/examples/flowsheets/full_treatment_train/flowsheet_components/examples/full_example.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
233
2021-10-13T12:53:44.000Z
2022-03-31T21:59:50.000Z
watertap/examples/flowsheets/full_treatment_train/flowsheet_components/examples/full_example.py
avdudchenko/watertap
ac8d59e015688ff175a8087d2d52272e4f1fe84f
[ "BSD-3-Clause-LBNL" ]
12
2021-11-01T19:11:03.000Z
2022-03-08T22:20:58.000Z
############################################################################### # WaterTAP Copyright (c) 2021, The Regents of the University of California, # through Lawrence Berkeley National Laboratory, Oak Ridge National # Laboratory, National Renewable Energy Laboratory, and National Energy # Technology Laboratory ...
34.090116
106
0.675023
1db25f35820f0e678f936776b1b618175a7696d3
537
py
Python
accounts/migrations/0002_alter_profile_team.py
JasbirCodeSpace/CTF
ce5d1d5bf7b0b54c62fe5c91bccc69498130e1c2
[ "MIT" ]
null
null
null
accounts/migrations/0002_alter_profile_team.py
JasbirCodeSpace/CTF
ce5d1d5bf7b0b54c62fe5c91bccc69498130e1c2
[ "MIT" ]
null
null
null
accounts/migrations/0002_alter_profile_team.py
JasbirCodeSpace/CTF
ce5d1d5bf7b0b54c62fe5c91bccc69498130e1c2
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-06-18 16:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('teams', '0001_initial'), ('accounts', '0001_initial'), ] operations = [ migrations.AlterField( ...
25.571429
144
0.629423
c646f527baaf35dd2d0452d99b696ea4eb1fbe11
352
py
Python
flask_app/overview.py
maciek3000/GnuCash-Expenses-Vis
ab0849f49b9b50f81798fc4c769b0aee6ae03b1e
[ "Unlicense" ]
9
2020-05-03T14:34:36.000Z
2021-06-22T18:51:32.000Z
flask_app/overview.py
maciek3000/GnuCash-Expenses-Vis
ab0849f49b9b50f81798fc4c769b0aee6ae03b1e
[ "Unlicense" ]
null
null
null
flask_app/overview.py
maciek3000/GnuCash-Expenses-Vis
ab0849f49b9b50f81798fc4c769b0aee6ae03b1e
[ "Unlicense" ]
2
2020-05-03T14:33:24.000Z
2020-10-28T17:26:22.000Z
from flask import Blueprint, render_template from bokeh.embed import server_document def create_bp(bkapp_server_address): bp = Blueprint('overview', __name__) @bp.route('/') def overview(): script = server_document(bkapp_server_address + 'overview') return render_template('overview.html'...
23.466667
67
0.71875
0ffc4a94c620f4575acf1a8d70621bd3a637dd70
1,873
py
Python
bspump/googledrive/blocksink.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
17
2019-02-14T09:26:03.000Z
2022-03-11T09:23:52.000Z
bspump/googledrive/blocksink.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
91
2019-05-06T18:59:02.000Z
2022-01-11T06:22:32.000Z
bspump/googledrive/blocksink.py
thatch/BitSwanPump
98a5b8d09f9b59d5361611cee0bd45e7b4c69e3f
[ "BSD-3-Clause" ]
10
2019-04-23T08:48:58.000Z
2022-02-13T14:24:28.000Z
import logging import io import apiclient.http from .abcsink import GoogleDriveABCSink L = logging.getLogger(__name__) class GoogleDriveBlockSink(GoogleDriveABCSink): """ GoogleDriveBlockSink is a file sink processor that can be used to upload individual events as files to Google drive using GoogleDriveConnect...
29.265625
85
0.730913
bab0450732f8f39e2132ad098f573686d6da6a7e
899
py
Python
verification_project/urls.py
tbel23/QuriOSINTy_Sample_App
02bd561f564d4b27566bc780b93223940c4c5523
[ "MIT" ]
1
2021-04-21T20:30:19.000Z
2021-04-21T20:30:19.000Z
verification_project/urls.py
tbel23/QuriOSINTy_Sample_App
02bd561f564d4b27566bc780b93223940c4c5523
[ "MIT" ]
null
null
null
verification_project/urls.py
tbel23/QuriOSINTy_Sample_App
02bd561f564d4b27566bc780b93223940c4c5523
[ "MIT" ]
7
2021-04-14T20:42:41.000Z
2021-05-04T23:28:23.000Z
"""verification_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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'...
37.458333
99
0.718576
16b20e9649f08f3d8ac064f0a1510d55b4235d88
1,641
py
Python
customuser_app/models.py
bexporter/customuser_redo
1bd39b60df252cb3824e4b0218daba768734f148
[ "MIT" ]
null
null
null
customuser_app/models.py
bexporter/customuser_redo
1bd39b60df252cb3824e4b0218daba768734f148
[ "MIT" ]
null
null
null
customuser_app/models.py
bexporter/customuser_redo
1bd39b60df252cb3824e4b0218daba768734f148
[ "MIT" ]
null
null
null
# from django.contrib.auth.base_user import BaseUserManager # from django.contrib.auth.forms import UsernameField from django.db import models from django.contrib.auth.models import AbstractUser # from django.contrib.auth.admin import UserAdmin # Create your models here. # class MyManager(BaseUserManager): # def...
30.962264
93
0.620963
5068962a437edea77846d3075d6071fc8243f6c2
6,240
py
Python
python_exercise/exercise_11-2.py
Koichi-Sakata/pylib_sakata
4e8fef6d26d5bca079fa0304b37b8103b7ee0c32
[ "MIT" ]
2
2021-08-23T06:54:55.000Z
2021-09-10T16:17:38.000Z
python_exercise/exercise_11-2.py
Koichi-Sakata/pylib_sakata
4e8fef6d26d5bca079fa0304b37b8103b7ee0c32
[ "MIT" ]
null
null
null
python_exercise/exercise_11-2.py
Koichi-Sakata/pylib_sakata
4e8fef6d26d5bca079fa0304b37b8103b7ee0c32
[ "MIT" ]
1
2021-09-10T16:29:58.000Z
2021-09-10T16:29:58.000Z
# Copyright (c) 2021 Koichi Sakata from pylib_sakata import init as init # uncomment the follows when the file is executed in a Python console. # init.close_all() # init.clear_all() import os import shutil import numpy as np from control import matlab from pylib_sakata import ctrl from pylib_sakata import plot prin...
35.862069
166
0.689103
c88ee0b0dd1bbeb55c4d5c33dd17a58950b177cf
12,360
py
Python
seleniumbase/virtual_display/easyprocess.py
hyahiaoui/SeleniumBase
8c7fc30cadf289731767953f22eeab3c92271760
[ "MIT" ]
null
null
null
seleniumbase/virtual_display/easyprocess.py
hyahiaoui/SeleniumBase
8c7fc30cadf289731767953f22eeab3c92271760
[ "MIT" ]
null
null
null
seleniumbase/virtual_display/easyprocess.py
hyahiaoui/SeleniumBase
8c7fc30cadf289731767953f22eeab3c92271760
[ "MIT" ]
null
null
null
"""Easy to use python subprocess interface.""" from seleniumbase.virtual_display.unicodeutil import split_command, unidecode, uniencode import logging import os.path import platform import signal import subprocess import tempfile import threading import time log = logging.getLogger(__name__) log.setLevel(logging.ERRO...
29.150943
105
0.548301
1c470b3dfa53ba320b1d4c3bc685983b1ace1149
2,253
py
Python
tests/test_agent/test_http_api_config.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
tests/test_agent/test_http_api_config.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
tests/test_agent/test_http_api_config.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
# No shebang line, this module is meant to be imported # # Copyright 2014 Oliver Palmer # # 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 # # Unle...
33.132353
74
0.678207
5a344ecf918960b4543ec1ef5ac5b53c5cbd47fe
3,864
py
Python
pages/interact/layout/graphs_layout/interact_layout.py
IBM/nesa-demo
4e87217f44ff66414f78df6962ee8633d89f0cf5
[ "MIT" ]
2
2021-12-16T13:16:56.000Z
2022-01-19T14:23:18.000Z
pages/interact/layout/graphs_layout/interact_layout.py
SocioProphet/nesa-demo
4e87217f44ff66414f78df6962ee8633d89f0cf5
[ "MIT" ]
null
null
null
pages/interact/layout/graphs_layout/interact_layout.py
SocioProphet/nesa-demo
4e87217f44ff66414f78df6962ee8633d89f0cf5
[ "MIT" ]
1
2022-03-07T19:57:59.000Z
2022-03-07T19:57:59.000Z
import dash_carbon_components as dca import dash_html_components as html from components import dialog_row, fired_rule_card, next_actions_row interact_layout = dca.Grid( style={'padding': '16px', 'height': 'calc(100% - 40px)', 'overflow': 'auto'}, className='bx--grid--narrow bx--grid--ful...
39.835052
76
0.26501
651e5e40950b74809da5c6f65beb515b48dcc8a4
2,114
py
Python
shoptools/contrib/accounts/forms.py
gregplaysguitar/django-shoptools
7af9b69409d146b3627931430714b934122a2498
[ "BSD-3-Clause" ]
3
2015-09-11T01:24:25.000Z
2018-08-19T16:47:09.000Z
shoptools/contrib/accounts/forms.py
gregplaysguitar/django-shoptools
7af9b69409d146b3627931430714b934122a2498
[ "BSD-3-Clause" ]
29
2015-10-06T22:15:50.000Z
2017-12-14T20:50:52.000Z
shoptools/contrib/accounts/forms.py
gregplaysguitar/django-shoptools
7af9b69409d146b3627931430714b934122a2498
[ "BSD-3-Clause" ]
5
2015-10-05T23:33:51.000Z
2019-01-14T19:49:40.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import AuthenticationForm, UsernameField, \ UserCreationForm, UserChangeForm from .models import Account class EmailAuthenticationForm(AuthenticationForm): username = UsernameField(label='Email address', ...
31.552239
79
0.680227
3c40813bab0048f0ad63665a1031c61ea589bc99
3,758
py
Python
python/tensorstore/tests/data_type_test.py
stuarteberg/tensorstore
2c22a3c9f798b0fbf023031633c58cc7c644235d
[ "Apache-2.0" ]
null
null
null
python/tensorstore/tests/data_type_test.py
stuarteberg/tensorstore
2c22a3c9f798b0fbf023031633c58cc7c644235d
[ "Apache-2.0" ]
null
null
null
python/tensorstore/tests/data_type_test.py
stuarteberg/tensorstore
2c22a3c9f798b0fbf023031633c58cc7c644235d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorStore 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 to...
23.055215
74
0.594199
327482a6290b98815653a5c97e4b708cb5c07c42
687
py
Python
src/tests/v1/helpers.py
BuildForSDG/Team-183
737a42a6d6cc30adfc0cdd7bf3a4558728f966ad
[ "MIT" ]
null
null
null
src/tests/v1/helpers.py
BuildForSDG/Team-183
737a42a6d6cc30adfc0cdd7bf3a4558728f966ad
[ "MIT" ]
null
null
null
src/tests/v1/helpers.py
BuildForSDG/Team-183
737a42a6d6cc30adfc0cdd7bf3a4558728f966ad
[ "MIT" ]
2
2020-05-02T04:20:40.000Z
2020-05-25T17:18:46.000Z
import json # from flask_bcrypt import Bcrypt def register_user(self): """helper function for registering a user.""" return self.client.post( 'api/v1/users/signup', data=json.dumps(dict( email='kamardaniel@gmail.com', username='kamar', password='password123'...
26.423077
72
0.621543
1defa31b507f3e5bc264205f7f97ad15b198fb74
211
py
Python
Lista09/ex011.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
2
2021-09-05T22:29:33.000Z
2021-09-09T00:13:16.000Z
Lista09/ex011.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
Lista09/ex011.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
M = [[int(input()) for i in range(3)] for j in range(3)] M2 = [[0 for i in range(3)] for j in range(3)] for i in range(3): for j in range(3): M2[i][j] = M[j][i-2] for i in range(3): print(M2[i])
26.375
56
0.530806
cb0098a3f8f5192aad464d1c7c59971bf59a34bb
9,047
py
Python
training_pipeline.py
CyanStarNight/single_cell_spatial_image
7578dbbef18cd582914f367bf266c9b191fa7dff
[ "MIT" ]
null
null
null
training_pipeline.py
CyanStarNight/single_cell_spatial_image
7578dbbef18cd582914f367bf266c9b191fa7dff
[ "MIT" ]
null
null
null
training_pipeline.py
CyanStarNight/single_cell_spatial_image
7578dbbef18cd582914f367bf266c9b191fa7dff
[ "MIT" ]
1
2021-07-24T02:21:49.000Z
2021-07-24T02:21:49.000Z
import os,csv,re,json import pandas as pd import numpy as np import scanpy as sc import warnings import argparse # from package_pipeline import pseudo_images from package_pipeline_multiprocessing import pseudo_images from package_pipeline_multiprocessing import case_study_test from PIL import Image from train import tr...
50.541899
133
0.62319
d541f1a962f21d785279e800bb56a71b4db8d876
30,054
py
Python
cqlengine/models.py
HaraldNordgren/cqlengine
7079eaf7071cbf5a045e1d1ab57f6d1b5ba3f9dc
[ "BSD-3-Clause" ]
57
2015-01-06T14:47:20.000Z
2020-10-27T00:55:48.000Z
cqlengine/models.py
HaraldNordgren/cqlengine
7079eaf7071cbf5a045e1d1ab57f6d1b5ba3f9dc
[ "BSD-3-Clause" ]
66
2015-01-03T20:48:41.000Z
2021-07-25T00:01:49.000Z
cqlengine/models.py
HaraldNordgren/cqlengine
7079eaf7071cbf5a045e1d1ab57f6d1b5ba3f9dc
[ "BSD-3-Clause" ]
35
2015-01-03T20:49:51.000Z
2021-07-23T12:34:52.000Z
from collections import OrderedDict import re import warnings from cqlengine import columns from cqlengine.exceptions import ModelException, CQLEngineException, ValidationError from cqlengine.query import ModelQuerySet, DMLQuery, AbstractQueryableColumn, NOT_SET from cqlengine.query import DoesNotExist as _DoesNotExis...
35.316099
142
0.630432
181f064ca6eafaf7ac8aacbed3cddba2b3c9a42e
3,254
py
Python
testplan/importers/gtest.py
raoyitao/testplan
aae3e9cee597ca3d01b6d64eed2642c421c56cbb
[ "Apache-2.0" ]
96
2018-03-14T13:14:50.000Z
2021-01-14T08:26:08.000Z
testplan/importers/gtest.py
raoyitao/testplan
aae3e9cee597ca3d01b6d64eed2642c421c56cbb
[ "Apache-2.0" ]
135
2018-06-28T02:41:05.000Z
2021-01-19T02:16:58.000Z
testplan/importers/gtest.py
raoyitao/testplan
aae3e9cee597ca3d01b6d64eed2642c421c56cbb
[ "Apache-2.0" ]
53
2018-03-17T14:39:15.000Z
2021-01-21T10:54:13.000Z
from typing import List from lxml import objectify from lxml.objectify import Element from testplan.importers import ImportedResult, ResultImporter from testplan.importers.base import T, ThreePhaseFileImporter from testplan.importers.suitesresults import SuitesResult from testplan.report import ( TestGroupReport,...
33.895833
77
0.585741
6c9340af5d58b9520c592ce5bb0612ad81ac24dc
16,616
py
Python
tests/components/unifiprotect/test_switch.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
tests/components/unifiprotect/test_switch.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
tests/components/unifiprotect/test_switch.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""Test the UniFi Protect switch platform.""" # pylint: disable=protected-access from __future__ import annotations from unittest.mock import AsyncMock, Mock import pytest from pyunifiprotect.data import ( Camera, Light, Permission, RecordingMode, SmartDetectObjectType, VideoMode, ) from home...
31.469697
88
0.736519
d72d68365c34f150446558d0f0e12906f251b73e
173
py
Python
organize/actions/__init__.py
noelhx/organize
d3eb2fe9d67e79f2b16b795aa923efcbfb3d9fb3
[ "MIT" ]
1
2020-10-01T05:51:33.000Z
2020-10-01T05:51:33.000Z
organize/actions/__init__.py
davidolrik/organize
b6581531bcdbdb6c0833472b683cbbeaa513f595
[ "MIT" ]
null
null
null
organize/actions/__init__.py
davidolrik/organize
b6581531bcdbdb6c0833472b683cbbeaa513f595
[ "MIT" ]
null
null
null
from .copy import Copy from .echo import Echo from .move import Move from .python import Python from .rename import Rename from .shell import Shell from .trash import Trash
21.625
26
0.797688
c9d11135d3d9a700b5e4b6f4f3007edbc1bc3b28
5,018
py
Python
src/arch/arm/fastmodel/arm_fast_model.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
765
2015-01-14T16:17:04.000Z
2022-03-28T07:46:28.000Z
src/arch/arm/fastmodel/arm_fast_model.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
148
2018-07-20T00:58:36.000Z
2021-11-16T01:52:33.000Z
src/arch/arm/fastmodel/arm_fast_model.py
hyu-iot/gem5
aeccc8bd8e9a86f96fc7a6f40d978f8494337fc5
[ "BSD-3-Clause" ]
807
2015-01-06T09:55:38.000Z
2022-03-30T10:23:36.000Z
# Copyright 2019 Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer; # redistribu...
37.17037
73
0.771224
63da7c2b1795dabaa656e2d35f0a67972806a5cc
21,997
py
Python
python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py
Ray2020BD/Paddle
994087188816575d456c2f9c2a6c90aad83b4e71
[ "Apache-2.0" ]
2
2020-12-09T16:09:59.000Z
2020-12-09T16:10:02.000Z
python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py
Ray2020BD/Paddle
994087188816575d456c2f9c2a6c90aad83b4e71
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py
Ray2020BD/Paddle
994087188816575d456c2f9c2a6c90aad83b4e71
[ "Apache-2.0" ]
1
2021-03-23T00:59:48.000Z
2021-03-23T00:59:48.000Z
# Copyright (c) 2020 PaddlePaddle 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 appli...
36.600666
104
0.581352
6c9227b3c192aade92495c92e15bb86eb24380fa
3,080
py
Python
app/app/settings.py
reechee-r/docker-recipe
bac0c3e36ae88724d43ade167644634fee7c09c4
[ "MIT" ]
null
null
null
app/app/settings.py
reechee-r/docker-recipe
bac0c3e36ae88724d43ade167644634fee7c09c4
[ "MIT" ]
null
null
null
app/app/settings.py
reechee-r/docker-recipe
bac0c3e36ae88724d43ade167644634fee7c09c4
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.11. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
25.454545
91
0.695455
8a3e42d940f48457f8ca1cb95a53a2ba7d4f3250
423
py
Python
Data_Analyst/Step_7_Python_Applications/Python_for_Business_Analysts/1_Introduction_to_Pandas/10_Introduction_to_conditional_filtering/script.py
ustutz/dataquest
6fa64fc824a060b19649ef912d11bee9ed671025
[ "MIT" ]
8
2017-01-20T13:24:26.000Z
2019-04-05T19:02:13.000Z
Data_Analyst/Step_7_Python_Applications/Python_for_Business_Analysts/1_Introduction_to_Pandas/10_Introduction_to_conditional_filtering/script.py
ustutz/dataquest
6fa64fc824a060b19649ef912d11bee9ed671025
[ "MIT" ]
null
null
null
Data_Analyst/Step_7_Python_Applications/Python_for_Business_Analysts/1_Introduction_to_Pandas/10_Introduction_to_conditional_filtering/script.py
ustutz/dataquest
6fa64fc824a060b19649ef912d11bee9ed671025
[ "MIT" ]
25
2016-10-27T16:27:54.000Z
2021-07-06T14:36:40.000Z
# Generated by Haxe 3.3.0 import pandas as pandas_Pandas_Module class Script: __slots__ = () @staticmethod def main(): housing_2013 = pandas_Pandas_Module.read_csv("../Hud_2013.csv") cols = ['AGE1', 'FMR', 'TOTSAL'] filtered_housing_2013 = housing_2013[cols] evaluated_row...
22.263158
71
0.666667
0fe816e84ef3f68eed06a7b28294649a229fe3d9
11,100
py
Python
cdg/changedetection/twosampletest.py
dan-zam/cdg
f3e31b9dd96e97bc7a4a36c93d0b5318ea9b3d61
[ "BSD-3-Clause" ]
13
2018-07-02T17:42:15.000Z
2019-09-05T07:36:58.000Z
cdg/changedetection/twosampletest.py
dzambon/cdg
733ac7af7919b07c6ac9dae299b3289afd9e7d83
[ "BSD-3-Clause" ]
1
2018-07-02T17:18:28.000Z
2018-07-02T17:18:28.000Z
cdg/changedetection/twosampletest.py
dzambon/cdg
733ac7af7919b07c6ac9dae299b3289afd9e7d83
[ "BSD-3-Clause" ]
3
2019-10-30T08:40:15.000Z
2020-09-10T07:37:47.000Z
# -------------------------------------------------------------------------------- # Copyright (c) 2017-2020, Daniele Zambon, All rights reserved. # # Implements several two-sample tests. # -------------------------------------------------------------------------------- import numpy as np from tqdm import tqdm import s...
36.038961
99
0.57009
4cd325ab02dcff96621a9582fd7a618a2f05789b
1,392
py
Python
misago/users/viewmodels/followers.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/users/viewmodels/followers.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/users/viewmodels/followers.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.http import Http404 from misago.conf import settings from misago.core.shortcuts import paginate, pagination_dict from misago.users.online.utils import make_users_status_aware from misago.users.serializers import UserCardSerializer class Followers(object): def __init__(self, request, profile, page=0, ...
33.142857
85
0.679598
fa4c9ddcaa4c03963bf621b2447df6a49c2eb02e
1,133
py
Python
src/pymor/parameters/interfaces.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
src/pymor/parameters/interfaces.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
src/pymor/parameters/interfaces.py
fameyer/pymorWin
b449a38754fddb719d554f1aacf9280a585f1168
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright Holders: Rene Milk, Stephan Rave, Felix Schindler # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) from __future__ import absolute_import, division, print_function from pymor.core.interfaces import ImmutableInter...
26.97619
77
0.699029
d0890630e7aaa9e4aa37fdebe78f32b6da301325
1,227
py
Python
src/python/director/profiler.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
src/python/director/profiler.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
src/python/director/profiler.py
edrumwri/director
c82aff0ed2ad0083dc5ac9cf4b90994d2d852be8
[ "BSD-3-Clause" ]
null
null
null
import os import cProfile import pstats import subprocess class Profiler(object): ''' This class provides some convenience methods to start/stop a code profiler and display statistics and a callgraph. To generate and view the callgraph you should install gprof2dot from the python package index and...
29.926829
108
0.657702
04e9d070a6d8e6963869a39ae82d868b8158c40c
29,637
py
Python
pytorch_lightning/loops/epoch/training_epoch_loop.py
krzysztofwos/pytorch-lightning
83436ee3dfd0d4079e0f8e704ba76aca672af19d
[ "Apache-2.0" ]
3,469
2019-03-31T03:09:16.000Z
2020-01-13T15:06:31.000Z
pytorch_lightning/loops/epoch/training_epoch_loop.py
krzysztofwos/pytorch-lightning
83436ee3dfd0d4079e0f8e704ba76aca672af19d
[ "Apache-2.0" ]
524
2019-04-02T12:33:39.000Z
2020-01-14T02:53:33.000Z
pytorch_lightning/loops/epoch/training_epoch_loop.py
krzysztofwos/pytorch-lightning
83436ee3dfd0d4079e0f8e704ba76aca672af19d
[ "Apache-2.0" ]
365
2019-04-02T22:14:04.000Z
2020-01-13T17:21:54.000Z
# Copyright The PyTorch Lightning 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 # # Unless required by applicable law or agreed to i...
46.525903
120
0.66471
24c1841afdece91204cf97cd7706c9085e42ae3f
1,358
py
Python
admin/objeto.py
claudbact/pruebita
959638b8ac277073eb701eff13e38c62abf38c24
[ "Apache-2.0" ]
null
null
null
admin/objeto.py
claudbact/pruebita
959638b8ac277073eb701eff13e38c62abf38c24
[ "Apache-2.0" ]
null
null
null
admin/objeto.py
claudbact/pruebita
959638b8ac277073eb701eff13e38c62abf38c24
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from flask import Blueprint, render_template, session, request, redirect #objeto que tiene la subaplicacion view = Blueprint('objeto_bludprint', __name__) @view.route('/verificar', methods=['GET']) def registro(): locals = { 'messa...
32.333333
187
0.570692
a25c83f217d8a94e0464730e419d283f57ddb9f3
6,176
py
Python
test/test_covariance.py
profLewis/gpml-python
9a9cdf0498abd2c1922de0ba9f2994ed8f94d3a6
[ "BSD-2-Clause" ]
6
2018-04-13T08:31:18.000Z
2021-08-09T03:25:31.000Z
test/test_covariance.py
twinoh/gpml-python
9a9cdf0498abd2c1922de0ba9f2994ed8f94d3a6
[ "BSD-2-Clause" ]
null
null
null
test/test_covariance.py
twinoh/gpml-python
9a9cdf0498abd2c1922de0ba9f2994ed8f94d3a6
[ "BSD-2-Clause" ]
5
2016-12-22T20:34:17.000Z
2021-08-04T00:08:33.000Z
# -*- coding: utf-8 -*- """ Test cases for the covariance module. Created: Wed Dec 18 16:57:01 2013 by Hannes Nickisch, Philips Research Hamburg. Modified: $Id: covariance_test.py 913 2013-08-15 12:54:33Z hn $ """ __version__ = "$Id: covariance_test.py 913 2013-08-15 12:54:33Z hn $" if __name__ == "__main__" ...
36.329412
80
0.558776
246dcfad9e2fe04b7de92b81db2d76f62645425b
2,454
py
Python
src/rfwebui/views.py
strobsi/robotframework-dashboard
efdf4d551deeb831c7584a886dbb326dd5eab8ee
[ "MIT" ]
null
null
null
src/rfwebui/views.py
strobsi/robotframework-dashboard
efdf4d551deeb831c7584a886dbb326dd5eab8ee
[ "MIT" ]
null
null
null
src/rfwebui/views.py
strobsi/robotframework-dashboard
efdf4d551deeb831c7584a886dbb326dd5eab8ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python from flask import render_template, request, redirect, Response, session, url_for from rfwebui import app from funcs.helper import ConfigSectionMap, save_settings, read_settings from glob import glob from subprocess import Popen from os import getcwd, path, makedirs import json results_dir = get...
31.87013
99
0.656479
60e9033b0a147ccc80292da846d41b0222f26e1d
1,009
py
Python
CRISPR/guideseq/guideseq.py
michael-weinstein/Elevation
f4e3e105a1e722284f3a32128f551d2ff466a1e0
[ "MIT" ]
96
2017-12-19T14:42:50.000Z
2019-03-19T16:17:16.000Z
CRISPR/guideseq/guideseq.py
whensbrunch/Elevation
cd783ed7ea09d6d7c8c13dbba0c5f7daf5fa1719
[ "MIT" ]
4
2020-07-13T09:34:24.000Z
2021-12-08T13:25:14.000Z
CRISPR/guideseq/guideseq.py
whensbrunch/Elevation
cd783ed7ea09d6d7c8c13dbba0c5f7daf5fa1719
[ "MIT" ]
18
2019-05-07T19:40:39.000Z
2022-01-15T15:12:07.000Z
import os import sys import pandas as pd # replace this with the location of your dsNickFury install DSNF_DIRECTORY = "/home/jake/repos/dsNickFury/dsNickFury3PlusOrchid" pj = os.path.join workdir = os.path.dirname(os.path.realpath(__file__)) os.chdir(DSNF_DIRECTORY) sys.path.append("./") from offtarget_m...
27.27027
93
0.695738
1d740fe547195ccd51a26b49e126ff17fbc26756
42,258
py
Python
domonic/d3/selection.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
1
2022-03-09T03:39:04.000Z
2022-03-09T03:39:04.000Z
domonic/d3/selection.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
domonic/d3/selection.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
""" domonic.d3.selection ==================================== https://github.com/d3/d3-selection/tree/main/src/selection """ # from domonic.html import * from domonic.javascript import * from domonic.dom import document # bring in the global xhtml = "http://www.w3.org/1999/xhtml" namespaces = {"svg":...
32.98829
196
0.549837
c78598f8ab31507d8c7488f31fe8f8c745dcf381
8,522
py
Python
3-Policy-Based Methods/pong/.Trash-0/files/pong_utils.py
zhaolongkzz/DRL-of-Udacity
331aeb5d61c769f94c6847a902f6a781af690bc2
[ "MIT" ]
null
null
null
3-Policy-Based Methods/pong/.Trash-0/files/pong_utils.py
zhaolongkzz/DRL-of-Udacity
331aeb5d61c769f94c6847a902f6a781af690bc2
[ "MIT" ]
null
null
null
3-Policy-Based Methods/pong/.Trash-0/files/pong_utils.py
zhaolongkzz/DRL-of-Udacity
331aeb5d61c769f94c6847a902f6a781af690bc2
[ "MIT" ]
null
null
null
from parallelEnv import parallelEnv import matplotlib import matplotlib.pyplot as plt import torch import numpy as np from JSAnimation.IPython_display import display_animation from matplotlib import animation from IPython.display import display import random as rand RIGHT=4 LEFT=5 device = torch.device("cuda:0" if ...
32.776923
80
0.649495
a2672b4213db05a9e7919b2471dbbf2491aac6eb
45,225
py
Python
schema/utils.py
brianhie/schema
6ab3ed7a25c5ebff9974f2316cea0e120812d888
[ "MIT" ]
14
2019-11-07T14:28:15.000Z
2022-01-03T09:30:40.000Z
schema/utils.py
brianhie/schema
6ab3ed7a25c5ebff9974f2316cea0e120812d888
[ "MIT" ]
1
2021-09-02T06:56:48.000Z
2021-09-02T17:46:07.000Z
schema/utils.py
brianhie/schema
6ab3ed7a25c5ebff9974f2316cea0e120812d888
[ "MIT" ]
2
2019-11-07T12:44:10.000Z
2021-12-27T03:14:40.000Z
#!/usr/bin/env python import pandas as pd import numpy as np import scipy, sklearn, os, sys, string, fileinput, glob, re, math, itertools, functools, copy, multiprocessing import scipy.stats, sklearn.decomposition, sklearn.preprocessing, sklearn.covariance, sklearn.neighbors from scipy.stats import describe from scipy...
37.069672
200
0.545097
0561df4a4eb48d5878fefab5db3b1604ba204eb8
207
py
Python
cara/__init__.py
pk-scs/cara
9bc450aad83a21a1c34b765636c685ad17399935
[ "Apache-2.0" ]
null
null
null
cara/__init__.py
pk-scs/cara
9bc450aad83a21a1c34b765636c685ad17399935
[ "Apache-2.0" ]
1
2022-03-07T08:10:45.000Z
2022-03-07T08:10:45.000Z
cara/__init__.py
pk-scs/cara
9bc450aad83a21a1c34b765636c685ad17399935
[ "Apache-2.0" ]
2
2022-02-09T16:19:50.000Z
2022-03-01T13:50:44.000Z
# This module is part of CARA. Please see the repository at # https://gitlab.cern.ch/cara/cara for details of the license and terms of use. """ Documentation for the CARA package """ __version__ = "1.0.0"
23
79
0.724638
7c36bf01484265f284ea79f87a2547c3c932c748
504
py
Python
ia870/iapad.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
5
2018-10-15T12:02:03.000Z
2022-02-11T12:47:12.000Z
ia870/iapad.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
1
2018-10-15T12:04:36.000Z
2019-01-25T12:04:35.000Z
ia870/iapad.py
rdenadai/ia870p3
c4823efc4b8e5f187a64f8a4e9962e328bf86967
[ "BSD-2-Clause" ]
4
2019-01-25T11:13:48.000Z
2020-12-20T01:42:33.000Z
# -*- encoding: utf-8 -*- # Module iapad from numpy import * from ia870.iasecross import iasecross def iapad(f, B=iasecross(), value=0): from ia870.iamat2set import iamat2set from ia870.iaseshow import iaseshow i,v=iamat2set( iaseshow(B)); mni=i.min(axis=0) mxi=i.max(axis=0) f = asarray(f) ...
24
63
0.621032
c9586bbbd3b76dad696a31bcede7df59fbf5d623
1,432
py
Python
cProcess/cProcess_fa0txGetRegistersForThreadId.py
SkyLined/mBugId
781bfe9a120e55630a91ce1e86b39ad0dee031ec
[ "CC-BY-4.0" ]
null
null
null
cProcess/cProcess_fa0txGetRegistersForThreadId.py
SkyLined/mBugId
781bfe9a120e55630a91ce1e86b39ad0dee031ec
[ "CC-BY-4.0" ]
null
null
null
cProcess/cProcess_fa0txGetRegistersForThreadId.py
SkyLined/mBugId
781bfe9a120e55630a91ce1e86b39ad0dee031ec
[ "CC-BY-4.0" ]
null
null
null
from .dttxRelevantRegisters_by_sISA import dttxRelevantRegisters_by_sISA; from ..mCP437 import fsCP437FromBytesString; def cProcess_fa0txGetRegistersForThreadId(oProcess, uThreadId): oWindowsAPIThread = oProcess.oWindowsAPIProcess.foGetThreadForId(uThreadId); d0uRegisterValue_by_sbName = oWindowsAPIThread.fd0uGetR...
49.37931
100
0.761872
c63ba9c68dbb1c878bfc2159447aff72fcb37035
205
py
Python
comet/plugins/__init__.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
15
2015-11-29T18:53:58.000Z
2022-03-09T15:47:30.000Z
comet/plugins/__init__.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
29
2016-01-21T18:10:45.000Z
2021-10-01T16:41:12.000Z
comet/plugins/__init__.py
dneise/Comet
abaa0da65d69f90a5262d81416477b4e71deb2ad
[ "BSD-2-Clause" ]
11
2016-01-22T14:05:51.000Z
2022-03-09T17:49:56.000Z
# Comet VOEvent Broker. # Event plugins. # The plugin system is populated dynamically by Twisted. from twisted.plugin import pluginPackagePaths __path__.extend(pluginPackagePaths(__name__)) __all__ = []
22.777778
56
0.8
24b0b037e0052cc7a3ddf170f5a01980baaa7559
9,212
py
Python
releasenotes/source/conf.py
openstack/venus-tempest-plugin
f84e16a2fc0d64a7477d3b12e814adf4d6dff566
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
openstack/venus-tempest-plugin
f84e16a2fc0d64a7477d3b12e814adf4d6dff566
[ "Apache-2.0" ]
null
null
null
releasenotes/source/conf.py
openstack/venus-tempest-plugin
f84e16a2fc0d64a7477d3b12e814adf4d6dff566
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # 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...
32.9
79
0.716131
355f4518a4686a25b4dc259ee5f853d9d9d49194
643
py
Python
test.py
mkalte666/ClawSearch
54e0fe7d37cfca811e73fc585d73d690ec15007f
[ "MIT" ]
null
null
null
test.py
mkalte666/ClawSearch
54e0fe7d37cfca811e73fc585d73d690ec15007f
[ "MIT" ]
null
null
null
test.py
mkalte666/ClawSearch
54e0fe7d37cfca811e73fc585d73d690ec15007f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import crawler import signal import sys import thread c = crawler.crawler(False, 10000, 25) c.Input("blog.fefe.de", 80, "/") c.Input("de.wikipedia.org", 80, "/wiki/Programmierung") c.Input("www.stackoverflow.com", 80, "/") c.Input("Bbc.co.uk", 80, "/") c.Input("www.sdamned.com", 80, "/") #c.Inp...
23.814815
117
0.688958
bb87c1a19eef1e89d97ff5e5b646ffbd9ee37bca
10,055
py
Python
src/penn_chime/empirical_charts.py
mmastand/chime
6012a9b0e921d7d55ad4b8b7432740807cce721d
[ "MIT" ]
null
null
null
src/penn_chime/empirical_charts.py
mmastand/chime
6012a9b0e921d7d55ad4b8b7432740807cce721d
[ "MIT" ]
null
null
null
src/penn_chime/empirical_charts.py
mmastand/chime
6012a9b0e921d7d55ad4b8b7432740807cce721d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import altair as alt from datetime import datetime, date, timedelta import streamlit as st def get_chart_segments(d): segs = d.loc[d.groupby('seg').date.idxmin()] segs = segs[["date", "seg"]] d = d.merge(segs, on="seg", how="left") d = d.rename(columns={"date_y": ...
32.435484
127
0.573347
92dc1396349e7a32700e98a594002a05527aa3ad
1,664
py
Python
bioblend/galaxy/config/__init__.py
davidchristiany/bioblend
604a4ac7b2ded1cbdf6cc74586bad251afa948b9
[ "MIT" ]
null
null
null
bioblend/galaxy/config/__init__.py
davidchristiany/bioblend
604a4ac7b2ded1cbdf6cc74586bad251afa948b9
[ "MIT" ]
null
null
null
bioblend/galaxy/config/__init__.py
davidchristiany/bioblend
604a4ac7b2ded1cbdf6cc74586bad251afa948b9
[ "MIT" ]
1
2020-12-10T12:53:46.000Z
2020-12-10T12:53:46.000Z
""" Contains possible interaction dealing with Galaxy configuration. """ from bioblend.galaxy.client import Client class ConfigClient(Client): def __init__(self, galaxy_instance): self.module = 'configuration' super(ConfigClient, self).__init__(galaxy_instance) def get_config(self): ...
30.814815
80
0.596154
854a3e824b41c528b113191b627b323912ce1bd8
247
py
Python
web/ratings/admin.py
javiunzu/catavinos
623179d8af58d3e7356176b0834811887feb41d9
[ "MIT" ]
null
null
null
web/ratings/admin.py
javiunzu/catavinos
623179d8af58d3e7356176b0834811887feb41d9
[ "MIT" ]
null
null
null
web/ratings/admin.py
javiunzu/catavinos
623179d8af58d3e7356176b0834811887feb41d9
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Candidate, Category, Vote class WineAdmin(admin.ModelAdmin): pass admin.site.register(Candidate, WineAdmin) admin.site.register(Category, WineAdmin) admin.site.register(Vote, WineAdmin)
20.583333
45
0.797571
0cfb2ccc9a7dfa33cee40457dacd96bd12805729
2,015
py
Python
Python1/python1Homework/para_breaker.py
ceeblet/OST_PythonCertificationTrack
042e0ce964bc88b3f4132dcbd7e06c5f504eae34
[ "MIT" ]
null
null
null
Python1/python1Homework/para_breaker.py
ceeblet/OST_PythonCertificationTrack
042e0ce964bc88b3f4132dcbd7e06c5f504eae34
[ "MIT" ]
null
null
null
Python1/python1Homework/para_breaker.py
ceeblet/OST_PythonCertificationTrack
042e0ce964bc88b3f4132dcbd7e06c5f504eae34
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 """Para_breaker.py""" paragraph = """\ We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. - That to secure these rights, Governments ar...
67.166667
341
0.757816
680317024cdeade6d9cb70e8626200c833f64cd1
2,229
py
Python
backend/lernpartner_28360/urls.py
crowdbotics-apps/lernpartner-28360
dda8beb91cc01246471494551dec6181e3b79a96
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/lernpartner_28360/urls.py
crowdbotics-apps/lernpartner-28360
dda8beb91cc01246471494551dec6181e3b79a96
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/lernpartner_28360/urls.py
crowdbotics-apps/lernpartner-28360
dda8beb91cc01246471494551dec6181e3b79a96
[ "FTL", "AML", "RSA-MD" ]
null
null
null
"""lernpartner_28360 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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') C...
35.380952
87
0.71467
fae990de6b435c6383e33d021c54a7b7856e2b05
6,456
py
Python
src/config/common/vnc_db.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/config/common/vnc_db.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
src/config/common/vnc_db.py
madkiss/contrail-controller
17f622dfe99f8ab4163436399e80f95dd564814c
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. # """ This file contains implementation of database model for contrail config daemons """ from vnc_api.common.exceptions import NoIdError class DBBase(object): # This is the base class for all DB objects. All derived objects must # have a clas...
31.339806
79
0.575434
822c810ba4d1ae912bc70a71c51d608e5b8c4cd1
295
py
Python
test-examples/large_2D_image.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/large_2D_image.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
test-examples/large_2D_image.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
""" Test adding 4D followed by 5D image layers to the viewer Intially only 2 sliders should be present, then a third slider should be created. """ import numpy as np from skimage import data import napari with napari.gui_qt(): viewer = napari.view_image(np.random.random((8000, 8000)))
18.4375
72
0.745763
8a93c444d8de96ef8936324158055e13a6775fd7
54,747
py
Python
rpython/jit/backend/zarch/regalloc.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/backend/zarch/regalloc.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/jit/backend/zarch/regalloc.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
from __future__ import print_function from rpython.jit.backend.llsupport.regalloc import (RegisterManager, FrameManager, TempVar, compute_vars_longevity, BaseRegalloc, NoVariableToSpill, ...
38.772663
101
0.61808
87a5ef939304f892e9c3793afbf4694db929135e
7,195
py
Python
core/timeline.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
45
2018-12-30T14:19:37.000Z
2021-01-28T08:16:41.000Z
core/timeline.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
23
2019-01-07T22:32:00.000Z
2019-10-04T10:23:02.000Z
core/timeline.py
Zeiin/dl
bce5e239dc751baa9266aa5adbe7c8d078d8a9ac
[ "Apache-2.0" ]
36
2019-01-11T21:38:02.000Z
2021-01-28T08:16:53.000Z
from core.ctx import * import core.log def now(): return _g_now def set_time(time): global _g_now _g_now = time def add_event_listener(eventname, listener): #listener should be a function global _g_event_listeners if eventname in _g_event_listeners: _g_event_listeners[eventname].appen...
21.869301
77
0.51911
4fa4bcafab885c6f1212d3e0b4d67be5fe175d0f
7,827
py
Python
tests/test_standard_scaler.py
spiegel-lib/spiegel
2a0b606a2f9eba22e25ade96ece249b790ca3b23
[ "MIT" ]
10
2020-11-12T16:11:03.000Z
2022-02-02T12:18:07.000Z
tests/test_standard_scaler.py
spiegel-lib/spiegel
2a0b606a2f9eba22e25ade96ece249b790ca3b23
[ "MIT" ]
3
2020-12-04T01:43:40.000Z
2021-02-19T17:08:57.000Z
tests/test_standard_scaler.py
spiegel-lib/spiegel
2a0b606a2f9eba22e25ade96ece249b790ca3b23
[ "MIT" ]
3
2020-07-04T02:24:15.000Z
2021-09-08T14:01:36.000Z
""" Tests for StandardScaler class """ import pytest import numpy as np from spiegelib.features import StandardScaler class TestStandardScaler(): def test_empty_construction(self): scaler = StandardScaler() def test_fitting_full(self, shared_datadir): test_data = (shared_datadir / 'test_mf...
38.180488
94
0.667433
ca4fe899322c3fbaf20929990a4d79306d725cc4
54
py
Python
dotextensions/server/handlers/__init__.py
cedric05/dothttp
ae68f2c3dbb8f1053a0feeab0ac829aa5d3a2a6e
[ "Apache-2.0" ]
10
2021-02-09T17:21:49.000Z
2021-12-05T19:10:53.000Z
dotextensions/server/handlers/__init__.py
cedric05/dothttp
ae68f2c3dbb8f1053a0feeab0ac829aa5d3a2a6e
[ "Apache-2.0" ]
60
2021-02-07T17:20:47.000Z
2022-03-12T06:26:23.000Z
dotextensions/server/handlers/__init__.py
cedric05/dothttp
ae68f2c3dbb8f1053a0feeab0ac829aa5d3a2a6e
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger('handler')
13.5
37
0.777778
d83ff800f79d599bb90d99d7fb0cbd93178676f7
3,760
py
Python
src/problem4.py
snk19990723/08-Exam1-201930
d4bff35d53c60944230a0b415ff86e03d2912bfa
[ "MIT" ]
null
null
null
src/problem4.py
snk19990723/08-Exam1-201930
d4bff35d53c60944230a0b415ff86e03d2912bfa
[ "MIT" ]
null
null
null
src/problem4.py
snk19990723/08-Exam1-201930
d4bff35d53c60944230a0b415ff86e03d2912bfa
[ "MIT" ]
null
null
null
""" Exam 1, problem 4. Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Deng Zou. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. import rosegraphics as rg def main(): """ Calls the TEST functions in this mod...
35.471698
102
0.547872
1279897f90b7541e87f706725100707ec81d23d4
518
py
Python
nfdapi/nfdcore/migrations/0025_taxon_kingdom.py
kappu72/clevmetro-nfd
584c638190eaa077d010a24fe7f209b1cbb3725d
[ "BSD-2-Clause" ]
3
2018-02-11T21:18:11.000Z
2019-01-19T06:58:58.000Z
nfdapi/nfdcore/migrations/0025_taxon_kingdom.py
kappu72/clevmetro-nfd
584c638190eaa077d010a24fe7f209b1cbb3725d
[ "BSD-2-Clause" ]
108
2018-02-02T15:42:39.000Z
2019-01-21T13:22:55.000Z
nfdapi/nfdcore/migrations/0025_taxon_kingdom.py
kappu72/clevmetro-nfd
584c638190eaa077d010a24fe7f209b1cbb3725d
[ "BSD-2-Clause" ]
5
2018-02-02T11:52:48.000Z
2022-03-01T16:09:09.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-02-22 16:34 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('nfdcore', '0024_auto_20180222_1556'), ] operations = [ migrations.AddField(...
23.545455
83
0.621622
984c1ec8b2c2edaddc28fb2b16110ea2be1b9457
6,175
py
Python
pygments/formatters/_mapping.py
btashton/pygments
ceaad0372055ed0064121020fea032fdda429779
[ "BSD-2-Clause" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
pygments/formatters/_mapping.py
btashton/pygments
ceaad0372055ed0064121020fea032fdda429779
[ "BSD-2-Clause" ]
301
2020-10-03T10:46:31.000Z
2022-03-27T23:46:23.000Z
pygments/formatters/_mapping.py
btashton/pygments
ceaad0372055ed0064121020fea032fdda429779
[ "BSD-2-Clause" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
# -*- coding: utf-8 -*- """ pygments.formatters._mapping ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter mapping definitions. This file is generated by itself. Everytime you change something on a builtin formatter definition, run this script from the formatters folder to update it. Do not alter the FOR...
73.511905
341
0.646316
1c4d1a5bcacb24fd3c76d353e5ce97aa0d98f37f
2,579
py
Python
Ejercicio 2/Super/models.py
DiogenesPuig/Ej_Django_2
e729a18b8a39eb24f5d675a3f7feb6a711513cb5
[ "MIT" ]
null
null
null
Ejercicio 2/Super/models.py
DiogenesPuig/Ej_Django_2
e729a18b8a39eb24f5d675a3f7feb6a711513cb5
[ "MIT" ]
null
null
null
Ejercicio 2/Super/models.py
DiogenesPuig/Ej_Django_2
e729a18b8a39eb24f5d675a3f7feb6a711513cb5
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Direccion(models.Model): Calle = models.CharField(max_length=50) Numero = models.IntegerField() Comuna = models.CharField(max_length=50) Ciudad = models.CharField(max_length=50) class Meta: verbose_name = "Direccion" ver...
34.851351
99
0.716557
01a9d3d05bbdcf80a383452557dddc85f55ce6f1
866
py
Python
model/load_model.py
ajayKumar99/Dog-Breed-Classifier
ff50bf7891a10675028fcb943d2133302b46e835
[ "MIT" ]
1
2019-06-01T12:16:12.000Z
2019-06-01T12:16:12.000Z
model/load_model.py
ajayKumar99/Dog-Breed-Classifier
ff50bf7891a10675028fcb943d2133302b46e835
[ "MIT" ]
11
2020-01-28T22:45:15.000Z
2022-02-10T00:09:14.000Z
model/load_model.py
ajayKumar99/Dog-Breed-Classifier
ff50bf7891a10675028fcb943d2133302b46e835
[ "MIT" ]
null
null
null
from tensorflow import keras import tensorflow.keras.backend as K def ModelInitializer(): import tensorflow as tf import tensorflow_hub as hub #Inception model's bottom layer as feature extractor. feature_extractor_url = 'https://tfhub.dev/google/imagenet/inception_v3/feature_vector/3' #Loading the...
32.074074
93
0.718245
051c4e63c2f9d479330c3fdfd422204d09b35a07
1,430
py
Python
floodsystem/flood.py
knived/ia-flood-risk-project
de911f9a1b90d8a18af664be5af773f6dd0fc0bf
[ "MIT" ]
null
null
null
floodsystem/flood.py
knived/ia-flood-risk-project
de911f9a1b90d8a18af664be5af773f6dd0fc0bf
[ "MIT" ]
null
null
null
floodsystem/flood.py
knived/ia-flood-risk-project
de911f9a1b90d8a18af664be5af773f6dd0fc0bf
[ "MIT" ]
null
null
null
"""This module contains a collection of functions related to flood data. """ from .utils import sorted_by_key # noqa def stations_level_over_threshold(stations, tol): """Returns a sorted list of (station, relative water level) tuples for stations with relative water level over tol in descending order where ...
29.183673
75
0.681818
4a1cbca022bc1e0c95b08d29cc07366b582fc22b
4,230
py
Python
Ansible-Custom-Module-Basic/housekeeping/validate_dns.py
ginigangadharan/ansible-real-life
897c2fc0d05babbb540768b336b6ad399dad5bfa
[ "MIT" ]
22
2021-07-16T08:11:22.000Z
2022-03-31T07:15:34.000Z
Ansible-Custom-Module-Basic/housekeeping/validate_dns.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
null
null
null
Ansible-Custom-Module-Basic/housekeeping/validate_dns.py
premsagar0228/ansible-real-life
1a51193b833ab6ad320100472333b9ffb0da39d4
[ "MIT" ]
39
2021-07-05T02:31:42.000Z
2022-03-31T02:46:03.000Z
#!/usr/bin/python3 # Deprecated due to the introduction of collection; still keeping here ANSIBLE_METADATA = { 'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: validate_dns short_description: DNS Validation Module version_added: "2.10" descrip...
28.581081
159
0.591017
c525db896a6138f01a355660ff7a216420c95f02
340,246
py
Python
networking_sfc/tests/unit/services/sfc/drivers/ovs/test_driver.py
huiweics/networking-sfc
e7675aa1a31769d55740c025a39644cc6e1ca8dd
[ "Apache-2.0" ]
null
null
null
networking_sfc/tests/unit/services/sfc/drivers/ovs/test_driver.py
huiweics/networking-sfc
e7675aa1a31769d55740c025a39644cc6e1ca8dd
[ "Apache-2.0" ]
null
null
null
networking_sfc/tests/unit/services/sfc/drivers/ovs/test_driver.py
huiweics/networking-sfc
e7675aa1a31769d55740c025a39644cc6e1ca8dd
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Huawei. All rights reserved. # Copyright 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-...
47.747123
79
0.410923
56bd6bb821ce00ad8531ada60a59ec22cf3451d1
47
py
Python
Stream-2/Back-End-Development/3.Testing/2.Do-The-Simplest-Thing-That-Works/lesson-solution/vending_machine.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
4
2017-10-10T14:00:40.000Z
2021-01-27T14:08:26.000Z
Stream-2/Back-End-Development/3.Testing/2.Do-The-Simplest-Thing-That-Works/lesson-solution/vending_machine.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
115
2019-10-24T11:18:33.000Z
2022-03-11T23:15:42.000Z
Stream-2/Back-End-Development/3.Testing/2.Do-The-Simplest-Thing-That-Works/lesson-solution/vending_machine.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
5
2017-09-22T21:42:39.000Z
2020-02-07T02:18:11.000Z
def give_change(amount): return [10, 5, 2]
15.666667
24
0.638298
bab81ae6b2ff7b3fcbcf379b401c295f73329f69
106
py
Python
modules/django-extensions/project/settings/common.py
msabramo/django-chuck
bbef6171c9b3738460dc05cb77e65ba88fcc5ad8
[ "BSD-2-Clause" ]
1
2020-05-29T04:27:50.000Z
2020-05-29T04:27:50.000Z
modules/django-extensions/project/settings/common.py
msabramo/django-chuck
bbef6171c9b3738460dc05cb77e65ba88fcc5ad8
[ "BSD-2-Clause" ]
null
null
null
modules/django-extensions/project/settings/common.py
msabramo/django-chuck
bbef6171c9b3738460dc05cb77e65ba88fcc5ad8
[ "BSD-2-Clause" ]
null
null
null
#!chuck_extends project/settings/common.py #!chuck_appends INSTALLED_APPS 'django_extensions', #!end
17.666667
42
0.783019
f3a7b5335315a901c9638546cfd7731730696164
10,891
py
Python
ui_msg_box.py
gabistoian/Hide-Text-in-image
88b5ef0bd2bcb0e222cfbc7abf6ac2b869f72ec5
[ "X11" ]
null
null
null
ui_msg_box.py
gabistoian/Hide-Text-in-image
88b5ef0bd2bcb0e222cfbc7abf6ac2b869f72ec5
[ "X11" ]
null
null
null
ui_msg_box.py
gabistoian/Hide-Text-in-image
88b5ef0bd2bcb0e222cfbc7abf6ac2b869f72ec5
[ "X11" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'ui_dialogmMtSDl.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ##########...
42.542969
114
0.69663
c10d3f82a835ae96fc6985bea9709be903466d5a
373
py
Python
python/csv2json/app.py
heikkilamarko/samples
f551087f75bc00e233fa558a5e8f3bcb6e1b9e17
[ "MIT" ]
null
null
null
python/csv2json/app.py
heikkilamarko/samples
f551087f75bc00e233fa558a5e8f3bcb6e1b9e17
[ "MIT" ]
null
null
null
python/csv2json/app.py
heikkilamarko/samples
f551087f75bc00e233fa558a5e8f3bcb6e1b9e17
[ "MIT" ]
null
null
null
import argparse from processor import process_file from person import process_person parser = argparse.ArgumentParser() parser.add_argument("input", help="input file") parser.add_argument("-o", "--output", help="output file") args = parser.parse_args() if args.output is None: args.output = args.input + ".json" p...
26.642857
57
0.761394
aac3a7212070e68365664f1593dd636260a0cdb1
1,683
py
Python
src/pipeline.py
bjpop/test_ruffus_pipeline
f3d850f870ade39e0461875ed16e3181cec5655d
[ "BSD-3-Clause" ]
null
null
null
src/pipeline.py
bjpop/test_ruffus_pipeline
f3d850f870ade39e0461875ed16e3181cec5655d
[ "BSD-3-Clause" ]
null
null
null
src/pipeline.py
bjpop/test_ruffus_pipeline
f3d850f870ade39e0461875ed16e3181cec5655d
[ "BSD-3-Clause" ]
null
null
null
''' Build the pipeline workflow by plumbing the stages together. ''' from ruffus import Pipeline, suffix, formatter, add_inputs, output_from from stages import Stages def make_pipeline(state): '''Build the pipeline by constructing stages and connecting them together''' # Build an empty pipeline pipeline =...
27.590164
80
0.628045
234380bbc8a6d6a65f7c6decd53070eebc45a2c9
2,153
py
Python
exabel_data_sdk/scripts/base_script.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
1
2021-12-22T11:23:57.000Z
2021-12-22T11:23:57.000Z
exabel_data_sdk/scripts/base_script.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
18
2021-01-13T16:24:38.000Z
2022-03-15T13:32:29.000Z
exabel_data_sdk/scripts/base_script.py
burk/python-sdk
83fb81d09e0d6a407c8907a75bebb895decc7edc
[ "MIT" ]
10
2021-01-11T13:24:51.000Z
2021-12-17T20:53:06.000Z
import abc import argparse import os from typing import Callable, Sequence from exabel_data_sdk import ExabelClient class BaseScript(abc.ABC): """Base class for scripts using the Exabel Python SDK.""" def __init__( self, argv: Sequence[str], description: str, api_key_retrieve...
33.123077
98
0.604273
1dfb859a30aef016b2e0a9a0e94cc00e5417e27a
757
py
Python
public_UI.py
Patrickm79/Game_Of_Life_CS35
c898296e10a8091f8df515559b165be2744f8afd
[ "MIT" ]
null
null
null
public_UI.py
Patrickm79/Game_Of_Life_CS35
c898296e10a8091f8df515559b165be2744f8afd
[ "MIT" ]
null
null
null
public_UI.py
Patrickm79/Game_Of_Life_CS35
c898296e10a8091f8df515559b165be2744f8afd
[ "MIT" ]
null
null
null
import pygame class Size: def __init__(self, width, height): self.width = width self.height = height def __str__(self): return(f"width: {self.width}, height: {self.height}") class Position: def __init__(self, x, y): self.x = x self.y = y def __str__(self): ...
21.027778
63
0.623514
8c65e308a305731d3eca70c93613c976c15ff13e
4,203
py
Python
pseudodb/operations.py
jackhenry/pseudodb
b46f411c08786ff55ed316ac87c1c844eae5538d
[ "Apache-2.0" ]
null
null
null
pseudodb/operations.py
jackhenry/pseudodb
b46f411c08786ff55ed316ac87c1c844eae5538d
[ "Apache-2.0" ]
null
null
null
pseudodb/operations.py
jackhenry/pseudodb
b46f411c08786ff55ed316ac87c1c844eae5538d
[ "Apache-2.0" ]
null
null
null
import logging import sqlite3 import records import os import sys from .mock import Mock from .exceptions import TableExists logger = logging.getLogger(__name__) """ All queries passed here where they are executed. """ def run_query(db_path, query): PREFIX = "sqlite:///" connection_url = PREFIX + db_path ...
31.133333
144
0.626695
86474c08f8dc922cb45b049b646a54e250e55962
227
py
Python
Basico/ex018.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Basico/ex018.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Basico/ex018.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
import random a1 = input('Digite o nome de um aluno?') a2 = input('Digite o nome de outro aluno!') a3 = input('Digite o nome de mais um aluno!') lista = [a1, a2, a3] r = random.choice(lista) print('O vencedor é {}'.format(r))
25.222222
45
0.665198
508f9303cd7e68ad4bddc69fa572548395c85bce
971
py
Python
pipelines/jiayancuts.py
zhuth/jindai
5da2411d91245e90d79e41785d24827332b91ae1
[ "MIT" ]
2
2021-07-19T08:48:04.000Z
2021-09-09T03:43:28.000Z
pipelines/jiayancuts.py
zhuth/jindai
5da2411d91245e90d79e41785d24827332b91ae1
[ "MIT" ]
null
null
null
pipelines/jiayancuts.py
zhuth/jindai
5da2411d91245e90d79e41785d24827332b91ae1
[ "MIT" ]
1
2021-07-19T08:48:08.000Z
2021-07-19T08:48:08.000Z
from pipeline import PipelineStage from models import Paragraph import os import config class JiayanWordCut(PipelineStage): tokenizer = None def __init__(self): from jiayan import load_lm, CharHMMTokenizer if JiayanWordCut.tokenizer is None: JiayanWordCut.tokenizer =...
29.424242
124
0.679712
63d7e3e702a896b45bf99a0f59531f61765a33fa
4,368
py
Python
src/h03_bert_surprisal/bert_trainer.py
tpimentelms/lexical-ambiguity-in-context
5277b9e0f1a846b5fe93eeba1cf37de2d48cfc62
[ "MIT" ]
null
null
null
src/h03_bert_surprisal/bert_trainer.py
tpimentelms/lexical-ambiguity-in-context
5277b9e0f1a846b5fe93eeba1cf37de2d48cfc62
[ "MIT" ]
null
null
null
src/h03_bert_surprisal/bert_trainer.py
tpimentelms/lexical-ambiguity-in-context
5277b9e0f1a846b5fe93eeba1cf37de2d48cfc62
[ "MIT" ]
null
null
null
import math from os import path import logging from tqdm import tqdm import torch import torch.nn as nn import torch.optim as optim from torch.functional import F from transformers import BertTokenizer, BertModel from h03_bert_surprisal.bert_mlm_per_word import BertPerWordForMaskedLM from h03_bert_surprisal.data_paral...
36.4
105
0.658654
9abcc8cd1a3cfc278c72c4769558c049b4a09ab0
5,044
py
Python
src/core/custom.py
w0bos/onifw
1ce72c1cd4a5c418817052b29015ef6fde6f2aa9
[ "MIT" ]
6
2019-08-12T17:30:49.000Z
2022-02-20T00:41:49.000Z
src/core/custom.py
w0bos/onifw
1ce72c1cd4a5c418817052b29015ef6fde6f2aa9
[ "MIT" ]
2
2020-09-14T19:47:00.000Z
2020-09-25T12:21:30.000Z
src/core/custom.py
w0bos/onifw
1ce72c1cd4a5c418817052b29015ef6fde6f2aa9
[ "MIT" ]
1
2020-10-19T17:31:36.000Z
2020-10-19T17:31:36.000Z
#!/usr/bin/env python3 import core.dict as dictmgr from os import system as shell from core.gui import color from sys import exc_info as err from core.errorHandler import ErrorHandler version = "0.2" class Main: def __init__(self, installDir): self.installDir = installDir self.toolDir = insta...
37.641791
106
0.536281
3c43b2a984a19f679205cb20a0ceaa39bf673f83
2,136
py
Python
ooobuild/lo/util/not_numeric_exception.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/not_numeric_exception.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/not_numeric_exception.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.375
141
0.701311
117bdc35b5495be44555c7b505faf7cd37a73889
630
py
Python
projects/project_2_commerce/auctions/migrations/0010_auto_20210426_1623.py
kevinbeirne1/CS50-course
b6247cdea50890369a5e0fd60017980643bf6e37
[ "MIT" ]
1
2021-08-31T20:52:41.000Z
2021-08-31T20:52:41.000Z
projects/project_2_commerce/auctions/migrations/0010_auto_20210426_1623.py
kevinbeirne1/CS50-course
b6247cdea50890369a5e0fd60017980643bf6e37
[ "MIT" ]
null
null
null
projects/project_2_commerce/auctions/migrations/0010_auto_20210426_1623.py
kevinbeirne1/CS50-course
b6247cdea50890369a5e0fd60017980643bf6e37
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-04-26 20:23 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auctions', '0009_auto_20210426_1509'), ] operations = [ migrations.AddField( model_name='listing', n...
25.2
127
0.598413
9a94d2a28f2b4f973aa52073e442f664a4b1e4f7
415
py
Python
application/auth.py
tferreira/Flask-Redis
b8656ae21ab494b49013a7cd67facff7bdbd7cf5
[ "MIT" ]
1
2017-10-09T22:19:23.000Z
2017-10-09T22:19:23.000Z
application/auth.py
tferreira/Flask-Redis
b8656ae21ab494b49013a7cd67facff7bdbd7cf5
[ "MIT" ]
null
null
null
application/auth.py
tferreira/Flask-Redis
b8656ae21ab494b49013a7cd67facff7bdbd7cf5
[ "MIT" ]
null
null
null
from functools import wraps from flask import request, jsonify from index import app def requires_auth(f): @wraps(f) def decorated(*args, **kwargs): token = request.headers.get('Authorization', None) if token == app.config['SECRET_KEY']: return f(*args, **kwargs) return js...
25.9375
89
0.674699
66b8af69dae37fc7bd06e6709481a63d6eb3b077
6,118
py
Python
optimization/rgbd/RGBD_utils/preProcess.py
AIdeveloper-oz/hifi3dface
93f6cd321bd9c0b47e4e5581b6c5f3fb6aa8863f
[ "Apache-2.0" ]
2
2021-09-10T10:04:01.000Z
2021-09-10T10:05:12.000Z
optimization/rgbd/RGBD_utils/preProcess.py
human2b/hifi3dface
f06a9f32c9c61fa163fa23468c8a607ad92453df
[ "Apache-2.0" ]
null
null
null
optimization/rgbd/RGBD_utils/preProcess.py
human2b/hifi3dface
f06a9f32c9c61fa163fa23468c8a607ad92453df
[ "Apache-2.0" ]
2
2020-11-23T20:01:34.000Z
2021-03-28T08:23:08.000Z
# -*- coding:utf8 -*- """ This file is part of the repo: https://github.com/tencent-ailab/hifi3dface If you find the code useful, please cite our paper: "High-Fidelity 3D Digital Human Creation from RGB-D Selfies." Xiangkai Lin*, Yajing Chen*, Linchao Bao*, Haoxian Zhang, Sheng Wang, Xuefei Zhe, Xinwei Jiang, Jue Wa...
39.217949
135
0.57764
562329a5fc56fdf6996673174abdcf0326d2cdf1
801
py
Python
src/load.py
benlindsay/walmart-forecasting
23253da39564338bdfc10c4fbf40a6b970aa1100
[ "MIT" ]
1
2019-06-20T13:43:24.000Z
2019-06-20T13:43:24.000Z
src/load.py
benlindsay/walmart-forecasting
23253da39564338bdfc10c4fbf40a6b970aa1100
[ "MIT" ]
4
2020-03-24T16:07:51.000Z
2021-04-30T20:36:34.000Z
src/load.py
benlindsay/walmart-forecasting
23253da39564338bdfc10c4fbf40a6b970aa1100
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # load.py # # Copyright (c) 2018 Ben Lindsay <benjlindsay@gmail.com> from dotenv import find_dotenv from os.path import dirname from os.path import join import pandas as pd from .features import join_columns # Root directory of repo project_dir = dirname(find_dotenv())...
26.7
56
0.691635
f47ba2dc6ee756dfccb9fc62181d1d65f30853d9
9,799
py
Python
imblearn/under_sampling/condensed_nearest_neighbour.py
christophe-rannou/imbalanced-learn
c3f3b0fd9815e206ea63f3f11728f097608bf580
[ "MIT" ]
null
null
null
imblearn/under_sampling/condensed_nearest_neighbour.py
christophe-rannou/imbalanced-learn
c3f3b0fd9815e206ea63f3f11728f097608bf580
[ "MIT" ]
null
null
null
imblearn/under_sampling/condensed_nearest_neighbour.py
christophe-rannou/imbalanced-learn
c3f3b0fd9815e206ea63f3f11728f097608bf580
[ "MIT" ]
null
null
null
"""Class to perform under-sampling based on the condensed nearest neighbour method.""" # Authors: Guillaume Lemaitre <g.lemaitre58@gmail.com> # Christos Aridas # License: MIT from __future__ import division, print_function from collections import Counter import numpy as np from sklearn.neighbors import KNe...
35.375451
79
0.601388
c678e6e0c281f8dcd42a6a5ad7c88fe09429fa57
9,974
py
Python
builder/template_app/gui/modules/theming/theming.py
ufopilot/QT-App-Builder
af9c455b4122669d5f200728d467f5afe4f3ee87
[ "MIT" ]
null
null
null
builder/template_app/gui/modules/theming/theming.py
ufopilot/QT-App-Builder
af9c455b4122669d5f200728d467f5afe4f3ee87
[ "MIT" ]
null
null
null
builder/template_app/gui/modules/theming/theming.py
ufopilot/QT-App-Builder
af9c455b4122669d5f200728d467f5afe4f3ee87
[ "MIT" ]
null
null
null
from qt_core import * from builder.template_app.gui.content import * from builder.template_app.gui.functions.settings import Settings from builder.template_app.gui.functions.ui_functions import UIFunctions import re from webcolors import hex_to_name class Theming(QWidget): _init = True def __init__(self, parent=None...
31.663492
93
0.645779
223d00495038f93612a387cb1615fe251365c13f
613
py
Python
Intro CS/Py4e/data_from_json.py
willian-pessoa/My-codes-in-CS-learning-journey
21970780b42435c6be5d5c240b033ff469eaddc5
[ "MIT" ]
null
null
null
Intro CS/Py4e/data_from_json.py
willian-pessoa/My-codes-in-CS-learning-journey
21970780b42435c6be5d5c240b033ff469eaddc5
[ "MIT" ]
null
null
null
Intro CS/Py4e/data_from_json.py
willian-pessoa/My-codes-in-CS-learning-journey
21970780b42435c6be5d5c240b033ff469eaddc5
[ "MIT" ]
null
null
null
from urllib.request import urlopen import ssl import json #enter url url = input("Enter location: ") if len(url) < 1: url = "http://py4e-data.dr-chuck.net/comments_1332846.json" print("Retrieving ", url) # Ignore SSL certificate errors ctx = ssl.create_default_context() ctx.check_hostname = False c...
21.892857
64
0.676998
dfdda65dd8a1d45a98420ba90ca114b532662267
15,637
py
Python
doc/source/conf.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
1
2020-12-25T08:49:10.000Z
2020-12-25T08:49:10.000Z
doc/source/conf.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
5
2020-09-01T01:19:07.000Z
2021-10-11T01:06:05.000Z
doc/source/conf.py
alazarchuk/scipy
7124fc982ea9b0ea961c65db550c0703abcb9bfd
[ "BSD-3-Clause" ]
1
2019-07-19T12:49:26.000Z
2019-07-19T12:49:26.000Z
# -*- coding: utf-8 -*- import sys, os, re import glob from datetime import date import warnings import numpy as np # Currently required to build scipy.fft docs os.environ['_SCIPY_BUILDING_DOC'] = 'True' # Check Sphinx version import sphinx if sphinx.__version__ < "2.0": raise RuntimeError("Sphinx 2.0 or newer r...
31.52621
89
0.606318
eb47ed6a0b077fe08393f14d71b3f5f9d4676811
265
py
Python
python/pysnips/ml/pytorch/__init__.py
obilaniu/CodeSnips
b543cba5661b2c562ea542af891ea8d26bab4cd8
[ "MIT" ]
2
2017-11-30T08:10:38.000Z
2017-12-03T19:30:34.000Z
python/pysnips/ml/pytorch/__init__.py
obilaniu/PySnips
b543cba5661b2c562ea542af891ea8d26bab4cd8
[ "MIT" ]
1
2018-01-29T00:01:04.000Z
2018-01-29T00:24:14.000Z
python/pysnips/ml/pytorch/__init__.py
obilaniu/PySnips
b543cba5661b2c562ea542af891ea8d26bab4cd8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # String list, naming the submodules to be imported on import * # __all__ = ["yellowfin", "layers"] # # Other Imports # from . import yellowfin from . import layers from .yellowfin import YellowFin from .layers import GradProbe
12.619048
63
0.683019
08b9c1e75ce410dbf250c42acce5ece9a92e8ec1
11,490
py
Python
wand/resource.py
changmink/wand
8fa7501187a6379aba2a7935095467e55c347434
[ "MIT" ]
null
null
null
wand/resource.py
changmink/wand
8fa7501187a6379aba2a7935095467e55c347434
[ "MIT" ]
null
null
null
wand/resource.py
changmink/wand
8fa7501187a6379aba2a7935095467e55c347434
[ "MIT" ]
null
null
null
""":mod:`wand.resource` --- Global resource management ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ There is the global resource to manage in MagickWand API. This module implements automatic global resource management through reference counting. """ import contextlib import ctypes import warnings from .api...
30.80429
79
0.626806
68c03d7453450d02e107b49785d3e8c6134f8569
666
py
Python
scrapyExample/scrapyExample/scrapyExample/runSpiders.py
kevin-ledinh/decartes
0659831dd958d218f6fd31ad7d9eace2e84a104e
[ "MIT" ]
null
null
null
scrapyExample/scrapyExample/scrapyExample/runSpiders.py
kevin-ledinh/decartes
0659831dd958d218f6fd31ad7d9eace2e84a104e
[ "MIT" ]
null
null
null
scrapyExample/scrapyExample/scrapyExample/runSpiders.py
kevin-ledinh/decartes
0659831dd958d218f6fd31ad7d9eace2e84a104e
[ "MIT" ]
null
null
null
from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings import pymongo import datetime scrapySettings = get_project_settings() logFileName = "./logs/" + datetime.datetime.utcnow().strftime("%Y%m%d%H%M%S") + ".txt" scrapySettings['LOG_FILE'] = logFileName process = CrawlerProces...
35.052632
86
0.791291
84061c35c8ff1795beb476c9d62fbfba75984d1e
866
py
Python
student_explorer/management/commands/createuser.py
DanielDugan/student_explorer
3a5003c8218d7084a308017fe5e0a7f9da8896f0
[ "Apache-2.0" ]
null
null
null
student_explorer/management/commands/createuser.py
DanielDugan/student_explorer
3a5003c8218d7084a308017fe5e0a7f9da8896f0
[ "Apache-2.0" ]
null
null
null
student_explorer/management/commands/createuser.py
DanielDugan/student_explorer
3a5003c8218d7084a308017fe5e0a7f9da8896f0
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from django.contrib.auth import get_user_model # from django.db.utils import IntegrityError class Command(BaseCommand): help = 'Adds a user with an unusable password' def add_arguments(self, parser): parser.add_argument('username', nar...
34.64
76
0.610855