hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
61199627024d137c74ab6e479ac4de2d438e5357
1,014
py
Python
Autocoders/Python/utils/NoseTests/src/Config.py
chrisdonlan/fprime
0cab90e238cff1b50c20f1e148a44cf8827a5bf8
[ "Apache-2.0" ]
5
2019-10-22T03:41:02.000Z
2022-01-16T12:48:31.000Z
Autocoders/Python/utils/NoseTests/src/Config.py
chrisdonlan/fprime
0cab90e238cff1b50c20f1e148a44cf8827a5bf8
[ "Apache-2.0" ]
27
2019-02-07T17:58:58.000Z
2019-08-13T00:46:24.000Z
Autocoders/Python/utils/NoseTests/src/Config.py
chrisdonlan/fprime
0cab90e238cff1b50c20f1e148a44cf8827a5bf8
[ "Apache-2.0" ]
3
2019-01-01T18:44:37.000Z
2019-08-01T01:19:39.000Z
import sys from . import BuildConstants
22.533333
72
0.628205
611c5c5c2177f6f695464a39ddb7eed3c676438f
1,693
py
Python
dataclasses/resources/examples/test_const_cache.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
dataclasses/resources/examples/test_const_cache.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
dataclasses/resources/examples/test_const_cache.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/env python # This is an example script that illustrates the problem in ticket #967 # http://code.icecube.wisc.edu/projects/icecube/ticket/967 # # We only allow getting const objects from the frame to prevent exactly # this problem. What, I think, many people don't know is that under # the hood we cast away...
37.622222
81
0.757236
611cc4a74e1e739d5253846e13dbb876fb6c2bff
1,719
py
Python
src/mailer.py
jack139/takit
d647bf2e6400df681e701da7252f0cbecd1e6631
[ "BSD-3-Clause" ]
2
2019-02-14T09:14:56.000Z
2019-07-16T09:46:47.000Z
src/mailer.py
jack139/takit
d647bf2e6400df681e701da7252f0cbecd1e6631
[ "BSD-3-Clause" ]
null
null
null
src/mailer.py
jack139/takit
d647bf2e6400df681e701da7252f0cbecd1e6631
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import smtplib, os, time, sys, gc from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMASPACE, formatdate from email import Encoders from email.Header import Header import helper...
25.279412
122
0.66434
611cd063edd78a73e36adbd1a6e8ee077e569a16
5,901
py
Python
src/oci/database/models/stack_monitoring_config.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/database/models/stack_monitoring_config.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/database/models/stack_monitoring_config.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
42.15
245
0.72564
611cf37b69aa1de32e5e2eeaf63ef45b0b9c1091
1,912
py
Python
src/pyqtschema/widgets/base.py
amsico/pyqtschema
27fdc3c56bcef6975f6cd2624859e43f446320a1
[ "MIT" ]
1
2022-02-17T09:04:13.000Z
2022-02-17T09:04:13.000Z
src/pyqtschema/widgets/base.py
amsico/pyqtschema
27fdc3c56bcef6975f6cd2624859e43f446320a1
[ "MIT" ]
12
2022-01-28T22:31:46.000Z
2022-02-09T23:06:07.000Z
src/pyqtschema/widgets/base.py
amsico/pyqtschema
27fdc3c56bcef6975f6cd2624859e43f446320a1
[ "MIT" ]
null
null
null
from functools import wraps from typing import Tuple from PyQt5.QtGui import QColor from .signal import Signal state_property = StateProperty
26.191781
92
0.648013
612084590d1479f82fcaff1c57d19d0b25438539
375
py
Python
kili/queries/issue/queries.py
ASonay/kili-playground
9624073703b5e6151cf496f44f17f531576875b7
[ "Apache-2.0" ]
214
2019-08-05T14:55:01.000Z
2022-03-28T21:02:22.000Z
kili/queries/issue/queries.py
x213212/kili-playground
dfb94c2d54bedfd7fec452b91f811587a2156c13
[ "Apache-2.0" ]
10
2020-05-14T10:44:16.000Z
2022-03-08T09:39:24.000Z
kili/queries/issue/queries.py
x213212/kili-playground
dfb94c2d54bedfd7fec452b91f811587a2156c13
[ "Apache-2.0" ]
19
2019-11-26T22:41:09.000Z
2022-01-16T19:17:38.000Z
""" Queries of issue queries """ def gql_issues(fragment): """ Return the GraphQL issues query """ return f''' query ($where: IssueWhere!, $first: PageSize!, $skip: Int!) {{ data: issues(where: $where, first: $first, skip: $skip) {{ {fragment} }} }} ''' GQL_ISSUES_COUNT = ''' query($where: I...
15.625
62
0.594667
6122ae363a20d824466864bbbe967cbb5808cb1d
134
py
Python
deepxde/maps/__init__.py
Orcuslc/deepxde
79074f225351ce439c80389318a6e3e6b5b3d90f
[ "Apache-2.0" ]
8
2021-03-21T18:43:52.000Z
2021-05-26T04:01:53.000Z
deepxde/maps/__init__.py
mafeiyao/lululxvi-deepxde
295e0faed10d1a5aae3ab14ae92a40fec9ab93c7
[ "Apache-2.0" ]
null
null
null
deepxde/maps/__init__.py
mafeiyao/lululxvi-deepxde
295e0faed10d1a5aae3ab14ae92a40fec9ab93c7
[ "Apache-2.0" ]
1
2021-11-27T10:15:48.000Z
2021-11-27T10:15:48.000Z
from __future__ import absolute_import from .fnn import FNN from .mfnn import MfNN from .opnn import OpNN from .resnet import ResNet
19.142857
38
0.813433
612349f16fdeaf7c2205c36f0550978d6bdb88e9
1,142
py
Python
app/hrcm/services/cli/output.py
bastienbot/hr-challenges-manager
1fe8e4fa34f6866a724c2461bc17cc442fe50a4c
[ "MIT" ]
null
null
null
app/hrcm/services/cli/output.py
bastienbot/hr-challenges-manager
1fe8e4fa34f6866a724c2461bc17cc442fe50a4c
[ "MIT" ]
null
null
null
app/hrcm/services/cli/output.py
bastienbot/hr-challenges-manager
1fe8e4fa34f6866a724c2461bc17cc442fe50a4c
[ "MIT" ]
null
null
null
""" @desc Prints informations about the candidate : his/her profile and messages sent @params candidate: instance of Candidate """
35.6875
158
0.601576
61234e09c74ab54da9b0b65ad4b42f3bbd244f36
4,691
py
Python
thuum/__main__.py
nickcoutsos/thuum
02a76df2d2b0a00db52d0d95c93b4f95593c6c00
[ "MIT" ]
null
null
null
thuum/__main__.py
nickcoutsos/thuum
02a76df2d2b0a00db52d0d95c93b4f95593c6c00
[ "MIT" ]
1
2015-06-05T04:54:30.000Z
2015-06-05T04:54:30.000Z
thuum/__main__.py
nickcoutsos/thuum
02a76df2d2b0a00db52d0d95c93b4f95593c6c00
[ "MIT" ]
null
null
null
import argparse import functools import sys from tornado import ( httpclient, ioloop, ) add_package_to_path() from thuum import ( reporters, runners, stats, ) def get_argument_parser(parser=None): parser = parser or argparse.ArgumentParser( description="Simple HTTP Load runner.") ...
29.136646
80
0.611384
6123ffcf6c686202f3bfd927ed19a030e1f7389a
414
py
Python
Fletnix/apps/profiles/migrations/0009_whoiswatching_user_age.py
FuryAndRage/Fletnix
99cc015c799eda24d605ecb9706f809fa6a05392
[ "MIT" ]
null
null
null
Fletnix/apps/profiles/migrations/0009_whoiswatching_user_age.py
FuryAndRage/Fletnix
99cc015c799eda24d605ecb9706f809fa6a05392
[ "MIT" ]
1
2021-02-21T11:08:36.000Z
2021-02-24T20:42:01.000Z
Fletnix/apps/profiles/migrations/0009_whoiswatching_user_age.py
FuryAndRage/Fletnix
99cc015c799eda24d605ecb9706f809fa6a05392
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-02-15 05:21 from django.db import migrations, models
21.789474
61
0.618357
6124cc91aa35fe91816d7742ae48f2a71bd859b7
2,083
py
Python
mautrix/client/state_store/sqlalchemy/mx_room_state.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
1
2018-08-24T13:33:30.000Z
2018-08-24T13:33:30.000Z
mautrix/client/state_store/sqlalchemy/mx_room_state.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
4
2018-07-10T11:43:46.000Z
2018-09-03T22:08:02.000Z
mautrix/client/state_store/sqlalchemy/mx_room_state.py
tulir/mautrix-appservice-python
d180603445bb0bc465a7b2ff918c4ac28a5dbfc2
[ "MIT" ]
2
2018-07-03T04:07:08.000Z
2018-09-10T03:13:59.000Z
# Copyright (c) 2022 Tulir Asokan # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from __future__ import annotations from typing import Type import json from sqlalch...
31.089552
88
0.708113
612aedd0be877a625c366cc32d1e904c74177e14
7,798
py
Python
examples/api-samples/inc_samples/sample11.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/sample11.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/sample11.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
### This sample will show how programmatically create and post an annotation into document. How to delete the annotation # Import of classes from libraries from pyramid.renderers import render_to_response from groupdocs.ApiClient import ApiClient from groupdocs.AntApi import AntApi from groupdocs.StorageApi im...
40.827225
142
0.561682
612b29e302f15b25265000d352eb62065078b65c
8,238
py
Python
Utils/MyIOutils.py
kostrzmar/SimpTextAlignPython
3e5cbefa2f4608a101e490b4ca7cc7a9850c773d
[ "MIT" ]
null
null
null
Utils/MyIOutils.py
kostrzmar/SimpTextAlignPython
3e5cbefa2f4608a101e490b4ca7cc7a9850c773d
[ "MIT" ]
null
null
null
Utils/MyIOutils.py
kostrzmar/SimpTextAlignPython
3e5cbefa2f4608a101e490b4ca7cc7a9850c773d
[ "MIT" ]
null
null
null
from pathlib import Path import os import re from decimal import Decimal import csv import numpy from Utils import TextProcessingUtils from Utils import DefinedConstants
42.246154
405
0.61799
612b757b9aaca93e9879dec08a653bb1d983c0f9
1,425
py
Python
sherpa_client/models/new_user.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
sherpa_client/models/new_user.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
sherpa_client/models/new_user.py
kairntech/sherpa-client
cd259c87b7291eeec3f3ea025e368f2f069a06cd
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset T = TypeVar("T", bound="NewUser")
21.923077
63
0.536842
612c9e6828aaf07e0e372fc4a74cb65e0dd2f0c0
5,954
py
Python
agents/model_free_aup.py
alexander-turner/attainable-utility-preservation
245b1fbc18f31d1d53883790d0d81d9fa27c2eba
[ "Apache-2.0" ]
12
2019-03-03T15:00:00.000Z
2022-03-21T12:00:06.000Z
agents/model_free_aup.py
alexander-turner/attainable-utility-preservation
245b1fbc18f31d1d53883790d0d81d9fa27c2eba
[ "Apache-2.0" ]
null
null
null
agents/model_free_aup.py
alexander-turner/attainable-utility-preservation
245b1fbc18f31d1d53883790d0d81d9fa27c2eba
[ "Apache-2.0" ]
2
2021-08-03T23:14:06.000Z
2022-03-22T13:08:38.000Z
from ai_safety_gridworlds.environments.shared import safety_game from collections import defaultdict import experiments.environment_helper as environment_helper import numpy as np
47.253968
116
0.626973
612d837cbde826ae4f897cf9aa91a3fff6c9adbd
2,277
py
Python
model/aspp.py
Sp00nyMan/BackgroundMattingV2-TensorFlow
c97d93f534a4c17ec18aa437bcf8c2980652f0fb
[ "MIT" ]
75
2020-12-15T10:49:09.000Z
2022-03-19T01:42:40.000Z
model/aspp.py
Sp00nyMan/BackgroundMattingV2-TensorFlow
c97d93f534a4c17ec18aa437bcf8c2980652f0fb
[ "MIT" ]
5
2020-12-15T19:36:27.000Z
2021-04-27T01:22:27.000Z
model/aspp.py
Sp00nyMan/BackgroundMattingV2-TensorFlow
c97d93f534a4c17ec18aa437bcf8c2980652f0fb
[ "MIT" ]
11
2020-12-15T10:43:43.000Z
2021-09-25T18:59:46.000Z
import tensorflow as tf from tensorflow.keras.models import Model, Sequential from tensorflow.keras.layers import Conv2D, BatchNormalization, ReLU, GlobalAveragePooling2D, Dropout
36.142857
109
0.606061
612d8edf5c8e74a0adf08f4a0990ac0f4895b9ee
9,417
py
Python
app/main/User.py
simeonschuez/slurk
5ece0ef0698c43ac274b94c4d9c87aa9bfaae021
[ "BSD-3-Clause" ]
null
null
null
app/main/User.py
simeonschuez/slurk
5ece0ef0698c43ac274b94c4d9c87aa9bfaae021
[ "BSD-3-Clause" ]
null
null
null
app/main/User.py
simeonschuez/slurk
5ece0ef0698c43ac274b94c4d9c87aa9bfaae021
[ "BSD-3-Clause" ]
null
null
null
from calendar import timegm from flask_login import UserMixin, login_user from datetime import datetime import flask_socketio as sio from .Permissions import Permissions from .Token import Token from .database import Database from .Room import Room, ROOMS from .Logger import Logger from .. import config from .Layout i...
35.942748
137
0.538813
612d9b3d304302a8762350348e09a5291b61e673
2,825
py
Python
tests/test_types.py
SupraSummus/petriish
6e887ac067904bd95377c30aa04b74cb4478495b
[ "MIT" ]
null
null
null
tests/test_types.py
SupraSummus/petriish
6e887ac067904bd95377c30aa04b74cb4478495b
[ "MIT" ]
4
2018-09-05T21:31:12.000Z
2018-09-11T20:13:20.000Z
tests/test_types.py
SupraSummus/petriish
6e887ac067904bd95377c30aa04b74cb4478495b
[ "MIT" ]
null
null
null
from unittest import TestCase from petriish.types import Resolver, TypeResolutionError, PolymorphicType, Record, Bytes
33.235294
88
0.626549
612dde60b8139e9bb185d24bdaa4b72dc4729559
21,845
py
Python
server/bench-wrk/hge_wrk_bench.py
gh-oss-contributor/graphql-engine-1
f3de8f4e6572e47db83ca947629ba48988c03b7e
[ "Apache-2.0", "MIT" ]
27,416
2018-07-10T09:22:08.000Z
2022-03-31T18:26:49.000Z
server/bench-wrk/hge_wrk_bench.py
gh-oss-contributor/graphql-engine-1
f3de8f4e6572e47db83ca947629ba48988c03b7e
[ "Apache-2.0", "MIT" ]
7,682
2018-07-10T08:31:19.000Z
2022-03-31T18:07:44.000Z
server/bench-wrk/hge_wrk_bench.py
gh-oss-contributor/graphql-engine-1
f3de8f4e6572e47db83ca947629ba48988c03b7e
[ "Apache-2.0", "MIT" ]
2,753
2018-07-10T09:21:30.000Z
2022-03-31T16:00:06.000Z
from sportsdb_setup import HGETestSetup, HGETestSetupArgs from run_hge import HGE import graphql import multiprocessing import json import os import docker import ruamel.yaml as yaml import cpuinfo import subprocess import threading import time import datetime from colorama import Fore, Style from plot import run_dash_...
39.078712
207
0.603067
b618c7bf31c6a3e2a99c8d746921e3cdd23e18d4
15,270
py
Python
cube_analysis/progressbar.py
e-koch/CubeAnalysis
6ba85e7fc2842750bfa76d6b93c0063e68cdb208
[ "MIT" ]
4
2017-09-19T16:48:52.000Z
2022-01-05T00:24:18.000Z
cube_analysis/progressbar.py
e-koch/CubeAnalysis
6ba85e7fc2842750bfa76d6b93c0063e68cdb208
[ "MIT" ]
3
2017-05-10T17:56:00.000Z
2017-10-17T15:24:15.000Z
cube_analysis/progressbar.py
e-koch/CubeAnalysis
6ba85e7fc2842750bfa76d6b93c0063e68cdb208
[ "MIT" ]
null
null
null
import six import time import signal import multiprocessing from functools import partial import numpy as np from astropy.utils.console import (_get_stdout, isatty, isiterable, human_file_size, _CAN_RESIZE_TERMINAL, terminal_size, color_print, human...
34.704545
82
0.594041
b61a78b6d9984adf2a8b2737983e10960c213b52
701
py
Python
core/migrations/0006_bidragfile.py
hultberg/innlevering
11bc9087e96fc1c237c285370de36951fe1e7b93
[ "Apache-2.0" ]
null
null
null
core/migrations/0006_bidragfile.py
hultberg/innlevering
11bc9087e96fc1c237c285370de36951fe1e7b93
[ "Apache-2.0" ]
8
2015-09-17T18:08:34.000Z
2015-10-03T07:06:51.000Z
core/migrations/0006_bidragfile.py
hultberg/ppinnlevering
11bc9087e96fc1c237c285370de36951fe1e7b93
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import core.models
28.04
114
0.594864
b61ac977758b4b02f1a509d2dc23e5787a8243ce
804
py
Python
pima-indians-diabetes.py
xavrb/kerasStuff
259a45a617252ce455683d585d7dff83ecc8a018
[ "MIT" ]
null
null
null
pima-indians-diabetes.py
xavrb/kerasStuff
259a45a617252ce455683d585d7dff83ecc8a018
[ "MIT" ]
null
null
null
pima-indians-diabetes.py
xavrb/kerasStuff
259a45a617252ce455683d585d7dff83ecc8a018
[ "MIT" ]
null
null
null
import numpy from keras.models import Sequential from keras.layers import Dense #loading pima indians dataset from the csv # fix random seed for reproducibility numpy.random.seed(7) dataset = numpy.loadtxt( "./data/pima-indians-diabetes.csv", delimiter="," ) #split into input (X) and (Y) variables X = dataset[:,...
18.697674
70
0.705224
b61c4cafdf5a3278da20f6b8bf7ced09fb26ca7b
1,300
py
Python
warp/tests/test_import.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
306
2022-03-21T23:24:13.000Z
2022-03-31T21:11:28.000Z
warp/tests/test_import.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
11
2022-03-23T06:23:25.000Z
2022-03-31T22:17:18.000Z
warp/tests/test_import.py
NVIDIA/warp
fc7d3255435fc2fe6b54300e689f74e6d67418ca
[ "CNRI-Python-GPL-Compatible", "Unlicense", "0BSD", "Apache-2.0", "MIT" ]
18
2022-03-22T16:27:21.000Z
2022-03-30T20:07:47.000Z
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relate...
24.528302
105
0.743846
b61c7c2f3b480c7bf98cb5ae55cebe7c598f0dfa
1,441
py
Python
rabbitai/migrations/versions/e37912a26567_security_converge_queries.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/e37912a26567_security_converge_queries.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
null
null
null
rabbitai/migrations/versions/e37912a26567_security_converge_queries.py
psbsgic/rabbitai
769e120ba605d56ac076f810a549c38dac410c8e
[ "Apache-2.0" ]
1
2021-07-09T16:29:50.000Z
2021-07-09T16:29:50.000Z
"""security converge queries Revision ID: e37912a26567 Revises: 42b4c9e01447 Create Date: 2020-12-16 12:15:28.291777 """ # revision identifiers, used by Alembic. revision = "e37912a26567" down_revision = "42b4c9e01447" from alembic import op from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.orm import Sess...
24.423729
71
0.69535
b61f09469cd0aa3e9755278a254b8212dce2031a
366
py
Python
Encryption.PY/encrypt-md5.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
Encryption.PY/encrypt-md5.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
Encryption.PY/encrypt-md5.py
Phoebus-Ma/Python-Helper
d880729f0bbfbc2b1503602fd74c9177ecd4e970
[ "MIT" ]
null
null
null
### # MD5 encryption example. # # License - MIT. #### import os import hashlib # Main function. # } # Program entry. if '__main__' == __name__: main()
13.555556
51
0.592896
b61f0ab99f0d2949d7b1b8e0c18da681fa5ac75b
759
py
Python
bohr/config/appconfig.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
null
null
null
bohr/config/appconfig.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
54
2021-02-17T13:36:51.000Z
2021-08-25T05:06:57.000Z
bohr/config/appconfig.py
giganticode/bohr-framework
fd364a1f036123985ac96e9076e5dce3bbc2ca2c
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Optional from bohr.config.pathconfig import PathConfig, load_config_dict_from_file from bohr.fs import find_project_root from bohr.util.paths import AbsolutePath
31.625
73
0.711462
b61f0c5a2799919544248fb2cb4a65c4b08d98ee
7,105
py
Python
visigoth/charts/scatter/scatter.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
null
null
null
visigoth/charts/scatter/scatter.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
1
2021-01-26T16:55:48.000Z
2021-09-03T15:29:14.000Z
visigoth/charts/scatter/scatter.py
visigoths/visigoth
c5297148209d630f6668f0e5ba3039a8856d8320
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Visigoth: A lightweight Python3 library for rendering data visualizations in SVG # Copyright (C) 2020-2021 Visigoth Developers # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software # and associated documentation files (the "Software"), to...
47.05298
204
0.653624
b61f7f123c198a29efd30d9a2125e6f263f41b62
1,731
py
Python
createConfigYml.py
rajeevsathish/sunbird-devops
6b8a575002aecd5f6e693d69d82a42ec92dc39ae
[ "MIT" ]
null
null
null
createConfigYml.py
rajeevsathish/sunbird-devops
6b8a575002aecd5f6e693d69d82a42ec92dc39ae
[ "MIT" ]
null
null
null
createConfigYml.py
rajeevsathish/sunbird-devops
6b8a575002aecd5f6e693d69d82a42ec92dc39ae
[ "MIT" ]
null
null
null
import os configVars = ['env','implementation_name','ssh_ansible_user','ansible_private_key_path','application_host','app_address_space','dns_name','proto','database_host','database_password','keycloak_admin_password','sso_password','trampoline_secret','backup_storage_key','badger_admin_password','badger_admin_email',...
46.783784
435
0.736568
b61fd9bfa261de84307f305744905ff5ab44f6f3
4,470
py
Python
genetic_algorithm/mutation.py
mig029/SnakeAI
33dbbe1d5608a60a4c6f9d14c41d547f7dc98b3b
[ "MIT" ]
181
2019-09-24T00:46:58.000Z
2022-03-20T12:06:02.000Z
genetic_algorithm/mutation.py
mig029/SnakeAI
33dbbe1d5608a60a4c6f9d14c41d547f7dc98b3b
[ "MIT" ]
9
2019-09-25T19:58:11.000Z
2022-03-04T05:10:37.000Z
genetic_algorithm/mutation.py
mig029/SnakeAI
33dbbe1d5608a60a4c6f9d14c41d547f7dc98b3b
[ "MIT" ]
76
2019-09-25T16:48:18.000Z
2022-03-21T12:01:49.000Z
# 9.3.2 # 11.2.1 # 12.4.3 import numpy as np from typing import List, Union, Optional from .individual import Individual def gaussian_mutation(chromosome: np.ndarray, prob_mutation: float, mu: List[float] = None, sigma: List[float] = None, scale: Optional[float...
41.775701
137
0.660626
b61ff905ef96f1da25a74ccd8401c4192ef5cd5b
290
py
Python
api/admin.py
EstherWaweru/JuniorDeveloperTest
351c3f31a26dde86f650e674b8e7d79bde985e2d
[ "MIT" ]
1
2021-01-31T07:11:25.000Z
2021-01-31T07:11:25.000Z
api/admin.py
EstherWaweru/JuniorDeveloperTest
351c3f31a26dde86f650e674b8e7d79bde985e2d
[ "MIT" ]
null
null
null
api/admin.py
EstherWaweru/JuniorDeveloperTest
351c3f31a26dde86f650e674b8e7d79bde985e2d
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from django.contrib.auth.admin import UserAdmin # Register your models here. from api.models import CustomUser,Company admin.site.register(CustomUser,UserModel) admin.site.register(Company)
26.363636
47
0.813793
b6209c445497bea1ab0c7570c19a91057e31a667
1,111
py
Python
Webpage/arbeitsstunden/migrations/0015_auto_20210718_1006.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/migrations/0015_auto_20210718_1006.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/migrations/0015_auto_20210718_1006.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-18 10:06 import datetime from django.db import migrations, models import django.db.models.deletion
30.861111
123
0.616562
b62488a1c261f43529215bd86630a59fd35618f6
1,895
py
Python
scripts/move_image_in_md.py
chqwer2/chqwer2.github.io
644bc1e9fd7b785e74aa73469059960bc1b9efdf
[ "Apache-2.0" ]
null
null
null
scripts/move_image_in_md.py
chqwer2/chqwer2.github.io
644bc1e9fd7b785e74aa73469059960bc1b9efdf
[ "Apache-2.0" ]
1
2022-03-09T11:51:21.000Z
2022-03-10T02:17:22.000Z
scripts/move_image_in_md.py
chqwer2/chqwer2.github.io
644bc1e9fd7b785e74aa73469059960bc1b9efdf
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt from glob import glob, iglob import regex as re import os import numpy as np path = 'C:\\Users\\calvchen\\PycharmProjects\\chqwer2.github.io\\_posts\\' md_list = [os.path.join(dirpath, f) for dirpath, dirnames, files in os.walk(path) for f in files if f.lower().endswith('.md') ...
26.319444
129
0.638522
b6256de00615c0cd89269ac8c60e089447a1d6ec
1,679
py
Python
core/phishingRunner.py
brucewayne00/SocialFish
32345ac90780a50d8120b1f2bbfb4bd075cf856c
[ "BSD-3-Clause" ]
1
2018-07-07T19:12:48.000Z
2018-07-07T19:12:48.000Z
core/phishingRunner.py
brucewayne00/SocialFish
32345ac90780a50d8120b1f2bbfb4bd075cf856c
[ "BSD-3-Clause" ]
null
null
null
core/phishingRunner.py
brucewayne00/SocialFish
32345ac90780a50d8120b1f2bbfb4bd075cf856c
[ "BSD-3-Clause" ]
null
null
null
###################################################### # # # SOCIALFISH v2.0 # # # # by: UNDEADSEC # # ...
38.159091
106
0.440143
b6258ac89e90776557499ab9b2feb22104e10024
563
py
Python
matplotlib/3.scatterplot.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
matplotlib/3.scatterplot.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
3
2019-12-26T05:13:55.000Z
2020-03-07T06:59:56.000Z
matplotlib/3.scatterplot.py
sudeep0901/python
7a50af12e72d21ca4cad7f2afa4c6f929552043f
[ "MIT" ]
null
null
null
import matplotlib as mlp import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') import numpy as np x = np.linspace(1, 10, 30) y = np.sin(x) plt.plot(x, y, 'D',color="red") plt.show() rng = np.random.RandomState(0) for marker in ['o', '.', ',', 'x', '+', 'v', '^', '<', '>', 's', 'd']: plt.plot(rng.ran...
22.52
70
0.623446
b6259344c50a03a76dc28d6d2f8a108b271a7026
1,396
py
Python
src/backend/common/models/tests/team_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/models/tests/team_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/models/tests/team_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import pytest from backend.common.models.team import Team from backend.common.models.tests.util import ( CITY_STATE_COUNTRY_PARAMETERS, LOCATION_PARAMETERS, ) def test_key_name() -> None: team = Team(id="frc254", team_number=254) assert team.key_name == "frc254" def test_details_url() -> None: ...
24.928571
86
0.679083
b62746ea549f4b55c3d583736d4f4533db5b42da
572
py
Python
ReLERNN/imports.py
peterdfields/ReLERNN
9187dca7f9068caa0b6490d389581084da3c0a1d
[ "MIT" ]
14
2020-06-18T03:22:56.000Z
2022-03-14T08:17:55.000Z
ReLERNN/imports.py
peterdfields/ReLERNN
9187dca7f9068caa0b6490d389581084da3c0a1d
[ "MIT" ]
10
2020-07-06T07:53:55.000Z
2021-08-17T13:45:23.000Z
ReLERNN/imports.py
peterdfields/ReLERNN
9187dca7f9068caa0b6490d389581084da3c0a1d
[ "MIT" ]
5
2019-06-11T14:37:52.000Z
2020-03-25T07:54:24.000Z
import glob import pickle import sys import msprime as msp import numpy as np import os import multiprocessing as mp import shutil import random import copy import argparse import h5py import allel import time from sklearn.neighbors import NearestNeighbors from sklearn.utils import resample import matplotlib as mpl m...
21.185185
85
0.844406
b6282638b7a5f8803c62e8ae2cb8e0ed33e66c5f
218
py
Python
tsadm/slave/urls.py
jctincan/tsadm-webapp
f67ac891c58b240434260692cdf0ed8b6b9dcef6
[ "BSD-3-Clause" ]
null
null
null
tsadm/slave/urls.py
jctincan/tsadm-webapp
f67ac891c58b240434260692cdf0ed8b6b9dcef6
[ "BSD-3-Clause" ]
null
null
null
tsadm/slave/urls.py
jctincan/tsadm-webapp
f67ac891c58b240434260692cdf0ed8b6b9dcef6
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url urlpatterns = patterns('', url(r'^(\d+)/$', 'tsadm.slave.views.dashboard', name='dashboard'), url(r'^admin/$', 'tsadm.slave.views.admin', name='admin'), )
24.222222
70
0.646789
b629487815f53b819e62caac70113be42192235e
1,286
py
Python
custom_object.py
Jerbuck/content-playground
3760b1894370d9ffaaa9032e9ce0af6a4954e046
[ "MIT" ]
null
null
null
custom_object.py
Jerbuck/content-playground
3760b1894370d9ffaaa9032e9ce0af6a4954e046
[ "MIT" ]
null
null
null
custom_object.py
Jerbuck/content-playground
3760b1894370d9ffaaa9032e9ce0af6a4954e046
[ "MIT" ]
null
null
null
import sys username = None password = None base_url = None objects = [] if __name__ == '__main__': custom_object = CustomObject() custom_object.print()
29.906977
71
0.53888
b6299767ae3e54f798f0664dd60df47dd083daa4
203
py
Python
web/streams/views/streamdetailview.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
null
null
null
web/streams/views/streamdetailview.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
22
2019-03-23T21:08:08.000Z
2019-03-25T07:34:58.000Z
web/streams/views/streamdetailview.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
null
null
null
"""Display stream details""" from django.views.generic.detail import DetailView from streams.models import Stream
22.555556
50
0.753695
b629e3f15233ad2197c5da333b11c7cfcb7a9d49
927
py
Python
features/chat/markov.py
Gurulhu/Reborn
c31564074124b15b497f86c6119fa5581d58b297
[ "MIT" ]
null
null
null
features/chat/markov.py
Gurulhu/Reborn
c31564074124b15b497f86c6119fa5581d58b297
[ "MIT" ]
7
2017-10-26T13:23:33.000Z
2017-10-26T13:43:18.000Z
features/chat/markov.py
Gurulhu/Reborn
c31564074124b15b497f86c6119fa5581d58b297
[ "MIT" ]
null
null
null
import gurulhutils import random
23.769231
117
0.540453
b62d4bfc9163a8e4271b818ecdb70231839b98fd
4,694
py
Python
app/api.py
kkwteh/cal_hacks_flight_delays
5469d53ed14fb0b2180ae35c6696c95bb626a00a
[ "MIT" ]
null
null
null
app/api.py
kkwteh/cal_hacks_flight_delays
5469d53ed14fb0b2180ae35c6696c95bb626a00a
[ "MIT" ]
null
null
null
app/api.py
kkwteh/cal_hacks_flight_delays
5469d53ed14fb0b2180ae35c6696c95bb626a00a
[ "MIT" ]
null
null
null
import os from flask import Blueprint, request, jsonify from math import exp bp = Blueprint('app', __name__) MODEL_COEFFICIENTS = { 'CarrierAA': -0.0019204985425103213, 'CarrierAS': -0.84841944514035605, 'CarrierB6': 0.12241821143901417, 'CarrierDL': -0.13261989508615579, 'CarrierEV': -0.010973177444743456, 'C...
60.179487
505
0.535577
b62dffd3ebf5c0ef3c4b470740acee6b457152ef
310
py
Python
zorro/__init__.py
tailhook/zorro
8f004515ac934ba88b8df72b85c536e607d82712
[ "MIT" ]
15
2015-06-06T08:12:41.000Z
2021-08-17T18:29:47.000Z
zorro/__init__.py
tailhook/zorro
8f004515ac934ba88b8df72b85c536e607d82712
[ "MIT" ]
null
null
null
zorro/__init__.py
tailhook/zorro
8f004515ac934ba88b8df72b85c536e607d82712
[ "MIT" ]
3
2015-05-10T05:28:45.000Z
2016-03-03T04:11:43.000Z
from functools import wraps from contextlib import contextmanager from .core import Hub, gethub, Future, Condition, Lock, TimeoutError __version__ = '0.2.a0' __all__ = [ 'Hub', 'gethub', 'sleep', 'Future', 'Condition', 'Lock', ]
14.761905
68
0.641935
b62e8682b1aa35938683234481acd17825241cdd
71
py
Python
main.py
Grimmaldi/supergoaltracker
e5cc7175816a0477b28117b6840972761c109270
[ "MIT" ]
null
null
null
main.py
Grimmaldi/supergoaltracker
e5cc7175816a0477b28117b6840972761c109270
[ "MIT" ]
3
2022-03-20T15:46:18.000Z
2022-03-27T21:26:39.000Z
main.py
Grimmaldi/supergoaltracker
e5cc7175816a0477b28117b6840972761c109270
[ "MIT" ]
null
null
null
from app import app if __name__ == '__main__': app = app.Session()
17.75
26
0.661972
b62ec9103fb8680be9eb9df46ebdc3345783c118
3,690
py
Python
official/cv/c3d/src/evalcallback.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/c3d/src/evalcallback.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/c3d/src/evalcallback.py
mindspore-ai/models
9127b128e2961fd698977e918861dadfad00a44c
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2022 Huawei Technologies Co., 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 to...
46.125
109
0.6271
b62f870aaadd81a216de7b23629804a19e6ed5ab
4,460
py
Python
cmsplugin_blocks/models/slider.py
emencia/cmsplugin-blocks
7ec99afd542948aef5d9069bd001729f5c14bded
[ "MIT" ]
1
2019-04-14T01:30:37.000Z
2019-04-14T01:30:37.000Z
cmsplugin_blocks/models/slider.py
emencia/cmsplugin-blocks
7ec99afd542948aef5d9069bd001729f5c14bded
[ "MIT" ]
16
2018-02-19T11:13:15.000Z
2022-02-05T00:10:41.000Z
cmsplugin_blocks/models/slider.py
emencia/cmsplugin-blocks
7ec99afd542948aef5d9069bd001729f5c14bded
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ ====== Slider ====== A slideshow component which may be similar to Album but with difference that a slide item can have HTML content. Slide items are ordered from their ``order`` field value. Items with a zero value for their order will be ordered in an almost arbitrary order (mostly depen...
24.916201
116
0.616368
b630ab4753b0be00f46c81db30f53c9e533bb3f2
28,223
py
Python
members_ownership/Rishav/data_prep_1.py
TeamEpicProjects/Customer-Prioritization-for-Marketing
88dfbca68759394200b2c4ec042d3293591a567a
[ "MIT" ]
2
2021-09-09T11:49:06.000Z
2021-09-12T17:02:59.000Z
members_ownership/Rishav/data_prep_1.py
TeamEpicProjects/Customer-Prioritization-for-Marketing
88dfbca68759394200b2c4ec042d3293591a567a
[ "MIT" ]
null
null
null
members_ownership/Rishav/data_prep_1.py
TeamEpicProjects/Customer-Prioritization-for-Marketing
88dfbca68759394200b2c4ec042d3293591a567a
[ "MIT" ]
2
2021-09-10T04:20:10.000Z
2021-09-11T11:26:03.000Z
# This script merges and consolidates the beacons and sessions datasets into 1 dataset from pandarallel import pandarallel import pandas as pd import datetime import sys import os pandarallel.initialize(progress_bar=False, nb_workers=4) base_path = os.path.dirname(os.path.realpath(__file__)) def df_in...
70.734336
215
0.570563
b6318c5fe30048e18ee5d9db9d7db7aac78ac012
887
py
Python
tpDcc/libs/python/web.py
tpDcc/tpDcc-libs-python
bd7b39f3cbfb68e99705de02c0b7738fd9602917
[ "MIT" ]
1
2019-07-15T21:00:18.000Z
2019-07-15T21:00:18.000Z
tpDcc/libs/python/web.py
tpoveda/tpPyUtils
bd7b39f3cbfb68e99705de02c0b7738fd9602917
[ "MIT" ]
1
2021-03-02T08:57:33.000Z
2021-03-04T01:55:05.000Z
tpDcc/libs/python/web.py
tpoveda/tpPyUtils
bd7b39f3cbfb68e99705de02c0b7738fd9602917
[ "MIT" ]
1
2021-03-03T21:01:54.000Z
2021-03-03T21:01:54.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains utility functions related with email """ from __future__ import print_function, division, absolute_import import os import webbrowser try: import urllib2 as urllib except ImportError: import urllib from tpDcc.libs.python import osplatfo...
18.479167
64
0.62345
b634c967ac1e5efd5ec5958567301b0876bef851
13,319
py
Python
conference_notebooks/KDD_2019/notebooks/plasticc/rnn.py
jacobtomlinson/notebooks-extended
3c6737d884982c270e74bdc584fe8eb50c202bc4
[ "Apache-2.0" ]
1
2019-12-13T00:26:05.000Z
2019-12-13T00:26:05.000Z
conference_notebooks/KDD_2019/notebooks/plasticc/rnn.py
jacobtomlinson/notebooks-extended
3c6737d884982c270e74bdc584fe8eb50c202bc4
[ "Apache-2.0" ]
null
null
null
conference_notebooks/KDD_2019/notebooks/plasticc/rnn.py
jacobtomlinson/notebooks-extended
3c6737d884982c270e74bdc584fe8eb50c202bc4
[ "Apache-2.0" ]
1
2020-03-31T08:35:13.000Z
2020-03-31T08:35:13.000Z
import pandas as pd import numpy as np import time import tensorflow as tf from tqdm import tqdm
39.996997
130
0.559802
b635195d33c8a5d05f49bbc5c4402fa9e68990e5
26,200
py
Python
pymtl3/datatypes/bitstructs.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
152
2020-06-03T02:34:11.000Z
2022-03-30T04:16:45.000Z
pymtl3/datatypes/bitstructs.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
139
2019-05-29T00:37:09.000Z
2020-05-17T16:49:26.000Z
pymtl3/datatypes/bitstructs.py
kevinyuan/pymtl3
5949e6a4acc625c0ccbbb25be3af1d0db683df3c
[ "BSD-3-Clause" ]
22
2020-05-18T13:42:05.000Z
2022-03-11T08:37:51.000Z
""" ========================================================================== bitstruct.py ========================================================================== APIs to generate a bitstruct type. Using decorators and type annotations to create bit struct is much inspired by python3 dataclass implementation. Note ...
34.748011
122
0.580496
b636ce45cd96bfa65b3bd1d3f03af92e0c07bffe
6,276
py
Python
sec/share.py
srccircumflex/SefiTrash
ba950f67dcd70eb34312ffeafb257df06d276913
[ "MIT" ]
null
null
null
sec/share.py
srccircumflex/SefiTrash
ba950f67dcd70eb34312ffeafb257df06d276913
[ "MIT" ]
null
null
null
sec/share.py
srccircumflex/SefiTrash
ba950f67dcd70eb34312ffeafb257df06d276913
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2022 Adrian F. Hoefflin [srccircumflex] # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use...
35.258427
98
0.564054
b63789de1115c98f57df542b6d818b81f81d9900
608
py
Python
config.py
KadjelRamkisoen/vuddy
4a15fb62d9ef65ba8202a58b8c032ed12b9f95d8
[ "MIT" ]
34
2017-07-18T21:18:23.000Z
2022-01-26T18:48:52.000Z
config.py
KadjelRamkisoen/vuddy
4a15fb62d9ef65ba8202a58b8c032ed12b9f95d8
[ "MIT" ]
6
2017-08-16T12:35:48.000Z
2021-10-20T18:44:46.000Z
config.py
KadjelRamkisoen/vuddy
4a15fb62d9ef65ba8202a58b8c032ed12b9f95d8
[ "MIT" ]
13
2018-04-20T03:57:04.000Z
2022-01-08T16:55:58.000Z
import platform """ [Note for Windows] - Use '\\' or '/' in path Ex) gitStoragePath = "D:\\Source\\gitrepos" - Install 'Git for Windows' - Windows version of VUDDY use its own JRE [Note for POSIX] - Use '/' for path Ex) gitStoragePath = "/home/ubuntu/gitrepos/" - Java binary is only needed in POSIX """ gitStoragePat...
23.384615
61
0.657895
b638eb605f71c87607689ad53bda58ff3e514601
491
py
Python
2009-01-03_datacenter-shared-host-migration/real.py
neoice/neoice-random
9a0387babc4eec3ff5c808b818bea696e40a7129
[ "WTFPL" ]
null
null
null
2009-01-03_datacenter-shared-host-migration/real.py
neoice/neoice-random
9a0387babc4eec3ff5c808b818bea696e40a7129
[ "WTFPL" ]
null
null
null
2009-01-03_datacenter-shared-host-migration/real.py
neoice/neoice-random
9a0387babc4eec3ff5c808b818bea696e40a7129
[ "WTFPL" ]
null
null
null
#!/usr/bin/python import os import re infile = open('domains', 'r') outfile = open('output', 'a') for line in infile: line = line.strip('\n') # yank the newline off to make printing pretty and play nice with shell one-liners x = os.system('host ' + line + ' | grep PREFIX.*') if not x: # that system call returns 0...
24.55
107
0.641548
b6394e522e1dd0319db4306310a7c1dcf549d35a
1,345
py
Python
design-patterns/structural/adapter.py
verthais/exercise-python
d989647e8fbfe8a79b9b5f2c3ab003715d238851
[ "MIT" ]
null
null
null
design-patterns/structural/adapter.py
verthais/exercise-python
d989647e8fbfe8a79b9b5f2c3ab003715d238851
[ "MIT" ]
null
null
null
design-patterns/structural/adapter.py
verthais/exercise-python
d989647e8fbfe8a79b9b5f2c3ab003715d238851
[ "MIT" ]
null
null
null
def main(): #List to store speaker objects objects = [] #Create a Korean object korean = Korean() #Create a British object british =British() #Append the objects to the objects list objects.append(Adapter(korean, speak=korean.speak_korean)) objects.append(Adapter(british, speak=british.speak...
24.907407
123
0.689963
b639c388508053fbf6f6f4b27eeac43628c79a6c
306
py
Python
session-0/asym/std_asym.py
Ivan-Solovyev/data-analysis-tutorial
08bbfd1b907187f596da9d9460a2247562c28b88
[ "MIT" ]
1
2021-12-02T09:00:32.000Z
2021-12-02T09:00:32.000Z
session-0/asym/std_asym.py
Ivan-Solovyev/data-analysis-tutorial
08bbfd1b907187f596da9d9460a2247562c28b88
[ "MIT" ]
null
null
null
session-0/asym/std_asym.py
Ivan-Solovyev/data-analysis-tutorial
08bbfd1b907187f596da9d9460a2247562c28b88
[ "MIT" ]
5
2020-07-29T03:54:43.000Z
2022-03-23T09:54:38.000Z
from math import sqrt, pow print("n=100") print(" ostap = " + str(std_asym_ostap(100,100))) print(" calc. = " + str(std_asym_calc (100,100)))
23.538462
57
0.627451
b63f097723b0813436ade51cfc6168ae3228c596
28,932
py
Python
utils/surface.py
fsanges/glTools
8ff0899de43784a18bd4543285655e68e28fb5e5
[ "MIT" ]
165
2015-01-26T05:22:04.000Z
2022-03-22T02:50:41.000Z
utils/surface.py
qeeji/glTools
8ff0899de43784a18bd4543285655e68e28fb5e5
[ "MIT" ]
5
2015-12-02T02:39:44.000Z
2020-12-09T02:45:54.000Z
utils/surface.py
qeeji/glTools
8ff0899de43784a18bd4543285655e68e28fb5e5
[ "MIT" ]
83
2015-02-10T17:18:24.000Z
2022-02-10T07:16:47.000Z
import maya.cmds as mc import maya.OpenMaya as OpenMaya import glTools.utils.base import glTools.utils.curve import glTools.utils.component import glTools.utils.mathUtils import glTools.utils.matrix import glTools.utils.shape import glTools.utils.stringUtils import math def isSurface(surface): ''' Check if the spe...
34.198582
136
0.721658
b6425bf3b6d0e00b1affa903689d3695d39f56c2
373
py
Python
simulator/buzzer.py
ondiiik/meteoink
9bc7af929de12ed5eb2fafd64fcfe447f07b6eeb
[ "MIT" ]
2
2021-05-27T13:32:16.000Z
2022-03-30T01:23:34.000Z
simulator/buzzer.py
ondiiik/meteoink
9bc7af929de12ed5eb2fafd64fcfe447f07b6eeb
[ "MIT" ]
null
null
null
simulator/buzzer.py
ondiiik/meteoink
9bc7af929de12ed5eb2fafd64fcfe447f07b6eeb
[ "MIT" ]
null
null
null
from config import pins from machine import Pin, PWM from utime import sleep_ms
23.3125
66
0.571046
b6436755107261e29afe0c59428301cd9649b7c9
16,749
py
Python
p3/views/__init__.py
lordmauve/epcon
e739997455be1551a6f92b76138a6ef083ac4e3a
[ "BSD-2-Clause" ]
null
null
null
p3/views/__init__.py
lordmauve/epcon
e739997455be1551a6f92b76138a6ef083ac4e3a
[ "BSD-2-Clause" ]
null
null
null
p3/views/__init__.py
lordmauve/epcon
e739997455be1551a6f92b76138a6ef083ac4e3a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- from django import forms from django import http from django.conf import settings from django.contrib import auth from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.db import transaction from djan...
37.553812
127
0.590901
b643b4d400a7bca3427485fad0a4e08b11fcc707
6,376
py
Python
xdwlib/struct.py
linxsorg/xdwlib
47a5a568085f40cd101a0661aa3abb56749f9890
[ "ZPL-2.1" ]
null
null
null
xdwlib/struct.py
linxsorg/xdwlib
47a5a568085f40cd101a0661aa3abb56749f9890
[ "ZPL-2.1" ]
null
null
null
xdwlib/struct.py
linxsorg/xdwlib
47a5a568085f40cd101a0661aa3abb56749f9890
[ "ZPL-2.1" ]
null
null
null
#!/usr/bin/env python3 # vim: set fileencoding=utf-8 fileformat=unix expandtab : """struct.py -- Point and Rect Copyright (C) 2010 HAYASHI Hideki <hideki@hayasix.com> All rights reserved. This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany thi...
26.131148
79
0.558501
b64517ec4f6d43ec7b9cf51a4bfdace68382f169
1,684
py
Python
tests/graphql/objects/and_or_not_permissions/objects.py
karlosss/simple_api
03f87035c648f161d5e7a59b24f4e04bd34399f1
[ "MIT" ]
2
2020-11-13T14:00:06.000Z
2020-12-19T11:50:22.000Z
tests/graphql/objects/and_or_not_permissions/objects.py
karlosss/simple_api
03f87035c648f161d5e7a59b24f4e04bd34399f1
[ "MIT" ]
5
2021-02-04T14:27:43.000Z
2021-06-04T23:22:24.000Z
tests/graphql/objects/and_or_not_permissions/objects.py
karlosss/simple_api
03f87035c648f161d5e7a59b24f4e04bd34399f1
[ "MIT" ]
1
2021-01-06T13:54:38.000Z
2021-01-06T13:54:38.000Z
from simple_api.adapters.graphql.graphql import GraphQLAdapter from simple_api.adapters.utils import generate from simple_api.object.actions import Action from simple_api.object.datatypes import BooleanType from simple_api.object.permissions import AllowNone, Not, AllowAll, Or, And from tests.graphql.graphql_test_util...
62.37037
117
0.748812
b6465545c0f9db4b5071fac0297f0ee2d6686b31
336
py
Python
menpo3d/base.py
apapaion/menpo3d
09aaeb37fdd9435827041715dc8248e49e63a2d0
[ "BSD-3-Clause" ]
134
2015-03-14T22:53:45.000Z
2022-03-26T05:24:32.000Z
menpo3d/base.py
apapaion/menpo3d
09aaeb37fdd9435827041715dc8248e49e63a2d0
[ "BSD-3-Clause" ]
51
2015-02-02T12:48:53.000Z
2021-05-19T03:20:38.000Z
menpo3d/base.py
apapaion/menpo3d
09aaeb37fdd9435827041715dc8248e49e63a2d0
[ "BSD-3-Clause" ]
48
2015-02-02T16:48:52.000Z
2022-03-17T15:41:49.000Z
import os from pathlib import Path def menpo3d_src_dir_path(): r"""The path to the top of the menpo3d Python package. Useful for locating where the data folder is stored. Returns ------- path : str The full path to the top of the Menpo3d package """ return Path(os.path.abspath(__...
21
58
0.669643
b64840e86cc87648b3f6e504a007b4a94f6552a2
308
py
Python
page_edits/migrations/0015_delete_howweworktext.py
webspace95/studyhelp
70e0978b4a97cdb45d1574924e7997932bb410fb
[ "MIT" ]
null
null
null
page_edits/migrations/0015_delete_howweworktext.py
webspace95/studyhelp
70e0978b4a97cdb45d1574924e7997932bb410fb
[ "MIT" ]
null
null
null
page_edits/migrations/0015_delete_howweworktext.py
webspace95/studyhelp
70e0978b4a97cdb45d1574924e7997932bb410fb
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2022-03-02 19:32 from django.db import migrations
18.117647
53
0.62013
b648443c945fce8618c2f32b0cb021617e693eca
2,766
py
Python
test/test_xdmf.py
ZhimingGuo/meshio
e5bafc42084f3e4ffeebacb001fe099f57e99bf6
[ "MIT" ]
null
null
null
test/test_xdmf.py
ZhimingGuo/meshio
e5bafc42084f3e4ffeebacb001fe099f57e99bf6
[ "MIT" ]
null
null
null
test/test_xdmf.py
ZhimingGuo/meshio
e5bafc42084f3e4ffeebacb001fe099f57e99bf6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # import pytest import meshio import helpers import legacy_reader import legacy_writer vtk = pytest.importorskip("vtk") lxml = pytest.importorskip("lxml") test_set_full = [ helpers.tri_mesh, helpers.triangle6_mesh, helpers.quad_mesh, helpers.quad8_mesh, helpers.tri_quad_m...
25.611111
77
0.689805
b6493add2b6c73278cf7ee4ca1cf5048f5519767
4,433
py
Python
climetlab/arguments/transformers.py
pmaciel/climetlab
faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c
[ "Apache-2.0" ]
null
null
null
climetlab/arguments/transformers.py
pmaciel/climetlab
faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c
[ "Apache-2.0" ]
null
null
null
climetlab/arguments/transformers.py
pmaciel/climetlab
faa0077d615aed05f9e0b4cc2e73f1cf7a9ae61c
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2021 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 intergovernmenta...
27.880503
78
0.626438
b649f774d4df1d16d477ba0829abb3a7589465de
1,148
py
Python
2DShooting.py
ZippyCodeYT/Zippy_Codes
91101085194ba2f30c74a82639b4730d52bb76dc
[ "CC-BY-4.0" ]
64
2021-07-11T17:56:42.000Z
2022-03-28T14:17:53.000Z
2DShooting.py
ZippyCodeYT/Zippy_Codes
91101085194ba2f30c74a82639b4730d52bb76dc
[ "CC-BY-4.0" ]
9
2021-07-10T23:26:39.000Z
2022-03-04T17:39:57.000Z
2DShooting.py
ZippyCodeYT/Ursina_Codes
91101085194ba2f30c74a82639b4730d52bb76dc
[ "CC-BY-4.0" ]
57
2021-07-14T17:09:46.000Z
2022-03-31T08:55:51.000Z
from ursina import * app = Ursina() bg = Entity(model='quad', texture='assets\BG', scale=36, z=1) window.fullscreen = True player = Animation('assets\player', collider='box', y=5) fly = Entity(model='cube', texture='assets\\fly1', collider='box', scale=2, x=20, y=-10) flies = [] newFly() camera.orthogr...
23.428571
66
0.621951
b64a3917ba8b684ecc87ffc170d4832f92878927
1,350
py
Python
Chess_project/v1_falha/__main__.py
xDanielz/python_exercicios_pessoais
5e4dc701e191c2a0605543f1a37eaf9a3fffd785
[ "MIT" ]
null
null
null
Chess_project/v1_falha/__main__.py
xDanielz/python_exercicios_pessoais
5e4dc701e191c2a0605543f1a37eaf9a3fffd785
[ "MIT" ]
null
null
null
Chess_project/v1_falha/__main__.py
xDanielz/python_exercicios_pessoais
5e4dc701e191c2a0605543f1a37eaf9a3fffd785
[ "MIT" ]
null
null
null
from python_exercicios_pessoais.Chess_project.func import * onboard = on_the_board() while True: for c in [0, 1]: see_board(onboard) while True: while True: piece = str(input(f'{c} Pea: ')) if len(piece) == 2: piece = piece[0].lower()+...
37.5
102
0.455556
b64af0874db7513a282cd648f069e473670a402f
996
py
Python
account/views/user.py
NTUSA/fudez-app
91c8d85238fb642488ef5616be441e4417f21d0a
[ "MIT" ]
2
2017-04-13T08:52:19.000Z
2018-05-07T12:14:34.000Z
account/views/user.py
NTUSA/fudez-app
91c8d85238fb642488ef5616be441e4417f21d0a
[ "MIT" ]
null
null
null
account/views/user.py
NTUSA/fudez-app
91c8d85238fb642488ef5616be441e4417f21d0a
[ "MIT" ]
1
2018-07-28T16:09:59.000Z
2018-07-28T16:09:59.000Z
from django.shortcuts import get_object_or_404 from rest_framework import viewsets, permissions from rest_framework.decorators import detail_route, list_route from rest_framework.response import Response from account.models import User from account.serializers import UserSerializer, SimpleUserSerializer, FullUserSeria...
34.344828
113
0.7249
b64b87aa6f0bfbefe52b4221d78d081516c1f660
1,502
py
Python
app/app_main.py
junhuanchen/MaixUI
55f07803160167e819e16848661d3fe4a066a391
[ "MIT" ]
null
null
null
app/app_main.py
junhuanchen/MaixUI
55f07803160167e819e16848661d3fe4a066a391
[ "MIT" ]
null
null
null
app/app_main.py
junhuanchen/MaixUI
55f07803160167e819e16848661d3fe4a066a391
[ "MIT" ]
null
null
null
# This file is part of MaixUI # Copyright (c) sipeed.com # # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php # import time, gc from core import agent from ui_canvas import ui, print_mem_free from ui_system_info import system_info #from ui_catch import catch #from ui_taskbar impo...
26.821429
73
0.571904
b64d3fe3910eecee201e6dd9f8d4788b107fb076
2,106
py
Python
week3_assignment.py
snalahi/Python3-Specialization--Python-Basics
1885881ed816bd9d5ee77655b659864b608329a6
[ "MIT" ]
null
null
null
week3_assignment.py
snalahi/Python3-Specialization--Python-Basics
1885881ed816bd9d5ee77655b659864b608329a6
[ "MIT" ]
null
null
null
week3_assignment.py
snalahi/Python3-Specialization--Python-Basics
1885881ed816bd9d5ee77655b659864b608329a6
[ "MIT" ]
null
null
null
# rainfall_mi is a string that contains the average number of inches of rainfall in Michigan for every month (in inches) # with every month separated by a comma. Write code to compute the number of months that have more than 3 inches of # rainfall. Store the result in the variable num_rainy_months. In other words, coun...
38.290909
135
0.705603
b64e95e31971d9a7721e8a13263a1b0d1b839b4f
2,252
py
Python
language/orqa/ops/orqa_ops_test.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/orqa/ops/orqa_ops_test.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/orqa/ops/orqa_ops_test.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
38.827586
80
0.604796
b64ea61e9feea2c4b2afa6eb14912a58e6654b6f
130
py
Python
vendor/tango_tree/config.py
marehr/veb-data-structures
4f21f1d78bb270ff89bafb27177388f5999ea3ad
[ "MIT" ]
null
null
null
vendor/tango_tree/config.py
marehr/veb-data-structures
4f21f1d78bb270ff89bafb27177388f5999ea3ad
[ "MIT" ]
null
null
null
vendor/tango_tree/config.py
marehr/veb-data-structures
4f21f1d78bb270ff89bafb27177388f5999ea3ad
[ "MIT" ]
null
null
null
import os import sys # load binary_tree path = os.path.abspath('..') if path not in sys.path: sys.path.append(path) del path
11.818182
28
0.7
b64ef8eb9ab8dd3f5853461c8f45488fa9c01d99
14,238
py
Python
selfdrive/car/tesla/PCC_module.py
vandreykiv/openpilot
34c495ad28c420854c59e824831124abac0cf1f4
[ "MIT" ]
null
null
null
selfdrive/car/tesla/PCC_module.py
vandreykiv/openpilot
34c495ad28c420854c59e824831124abac0cf1f4
[ "MIT" ]
null
null
null
selfdrive/car/tesla/PCC_module.py
vandreykiv/openpilot
34c495ad28c420854c59e824831124abac0cf1f4
[ "MIT" ]
null
null
null
from common.numpy_fast import clip, interp from selfdrive.car.tesla.values import CruiseButtons from selfdrive.config import Conversions as CV import time from common.params import Params from cereal import car ACCEL_MAX = 0.6 #0.6m/s2 * 36 = ~ 0 -> 50mph in 6 seconds ACCEL_MIN = -3.5 _DT = 0.05 # 20Hz in our case,...
42.249258
130
0.622911
b64f77299736e13d6d0fadc47885984dba8dc436
9,853
py
Python
Main_3D.py
manand881/Ising_Model_3D
e5068356f3dbe4bf16c2d4eacb39b41eac02dbf0
[ "MIT" ]
2
2021-03-22T13:51:10.000Z
2021-04-30T21:01:36.000Z
Main_3D.py
manand881/Ising_Model_3D
e5068356f3dbe4bf16c2d4eacb39b41eac02dbf0
[ "MIT" ]
null
null
null
Main_3D.py
manand881/Ising_Model_3D
e5068356f3dbe4bf16c2d4eacb39b41eac02dbf0
[ "MIT" ]
null
null
null
# Ising Model in Python. # 28-03-2019. # Written by Anand Mahesh. # Python 3.7. # NumPy has been installed and used in this project. # Numba has been installed and used in this project. # Tools used: Visual Studio Code, GitHub Desktop. from Input_param_reader import Ising_input # Python Funct...
36.357934
446
0.607835
b64fa0d4c1acd16b3d5af8656c560a61ce7f686a
620
py
Python
Firmware/adctest.py
sanielfishawy/ODrive
6b77a17bda88f2d709ae4d3d26a81c7aed50d384
[ "MIT" ]
1,068
2016-05-31T22:39:08.000Z
2020-12-20T22:13:01.000Z
Firmware/adctest.py
sanielfishawy/ODrive
6b77a17bda88f2d709ae4d3d26a81c7aed50d384
[ "MIT" ]
389
2017-10-16T09:44:20.000Z
2020-12-21T14:19:38.000Z
Firmware/adctest.py
sanielfishawy/ODrive
6b77a17bda88f2d709ae4d3d26a81c7aed50d384
[ "MIT" ]
681
2016-06-12T01:41:00.000Z
2020-12-21T12:49:32.000Z
import numpy as np import matplotlib.pyplot as plt adchist = [(0, 137477), (1, 98524), (2, 71744), (3, 60967), (4, 44372), (5, 46348), (6, 19944), (7, 10092), (8, 13713), (9, 11182), (10, 6903), (11, 4072), (12, 2642), (13, 968), (14, 296), (15, 166), (16, 17), (17, 2), (-1, 39662), (-2, 43502), (-3, 57596), (-4, 339...
12.653061
35
0.530645
b65163308efaba4b8a2fdb15bae5e4d1caf0c914
55
py
Python
01-values-and-types.py
leogithubid/python3-programming
cec559040f80e559000378489eb0ef7a8c8b61fa
[ "MIT" ]
null
null
null
01-values-and-types.py
leogithubid/python3-programming
cec559040f80e559000378489eb0ef7a8c8b61fa
[ "MIT" ]
null
null
null
01-values-and-types.py
leogithubid/python3-programming
cec559040f80e559000378489eb0ef7a8c8b61fa
[ "MIT" ]
null
null
null
print('hello world') print(type(100)) print(type(3.14))
18.333333
20
0.709091
b655a40ad3e46599e2e209081b5a314b30cd5e8c
5,597
py
Python
rdr_service/model/questionnaire.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/model/questionnaire.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/model/questionnaire.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
from sqlalchemy import ( Boolean, Column, ForeignKey, ForeignKeyConstraint, Integer, String, UniqueConstraint, ) from sqlalchemy import BLOB # pylint: disable=unused-import from sqlalchemy.orm import relationship from typing import List from rdr_service.model.base import Base from rdr_serv...
41.768657
114
0.729319
b6565da636f05be651f332cbf4d82a3cc6269146
20
py
Python
pybmrb/__init__.py
jonwedell/PyBMRB
f9dd15bcffd30d29a02b885529100ab028e72dcf
[ "MIT" ]
null
null
null
pybmrb/__init__.py
jonwedell/PyBMRB
f9dd15bcffd30d29a02b885529100ab028e72dcf
[ "MIT" ]
null
null
null
pybmrb/__init__.py
jonwedell/PyBMRB
f9dd15bcffd30d29a02b885529100ab028e72dcf
[ "MIT" ]
null
null
null
__all__ = ['csviz']
10
19
0.6
b656fab2ba1aca0c087abbf0334456183b4b1cfe
463
py
Python
src/preprocessing.py
ppisarski/DaaS-docker
390b628ff87e6a67b3aa1c1fe91786203bb1168c
[ "MIT" ]
null
null
null
src/preprocessing.py
ppisarski/DaaS-docker
390b628ff87e6a67b3aa1c1fe91786203bb1168c
[ "MIT" ]
null
null
null
src/preprocessing.py
ppisarski/DaaS-docker
390b628ff87e6a67b3aa1c1fe91786203bb1168c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from src.features import * if __name__ == '__main__': main()
19.291667
49
0.688985
b658a27b5fb49841c9263f0bf1698ebf168e9254
265
py
Python
Python/Week2/regularExpression.py
CoSandu/PythonCourses
0cec199f8f9f335e2c8daf5733eb6685c978fff8
[ "Apache-2.0" ]
null
null
null
Python/Week2/regularExpression.py
CoSandu/PythonCourses
0cec199f8f9f335e2c8daf5733eb6685c978fff8
[ "Apache-2.0" ]
null
null
null
Python/Week2/regularExpression.py
CoSandu/PythonCourses
0cec199f8f9f335e2c8daf5733eb6685c978fff8
[ "Apache-2.0" ]
null
null
null
import re f = open(r'C:\Constantin\Corsi_Online\Python\regx.txt', 'r') interi = [] tot = 0 for line in f: x = re.findall('[0-9]+', line) if x: interi.append(x) for val in interi: for v in val: tot = int(v) + tot print tot f.close()
13.947368
60
0.566038
b65f03e90db0e05f61a6b6e2b99ff97ca3c05ebe
1,309
py
Python
concat/tests/strategies.py
jmanuel1/concat
b8a982f0b07c4af4a8d30c8fab927a07a4068232
[ "MIT" ]
5
2020-11-27T23:34:29.000Z
2022-03-08T16:37:19.000Z
concat/tests/strategies.py
jmanuel1/concat
b8a982f0b07c4af4a8d30c8fab927a07a4068232
[ "MIT" ]
1
2020-06-03T22:43:36.000Z
2020-06-03T22:45:42.000Z
concat/tests/strategies.py
jmanuel1/concat
b8a982f0b07c4af4a8d30c8fab927a07a4068232
[ "MIT" ]
null
null
null
from concat.level1.typecheck.types import ( IndividualType, SequenceVariable, StackItemType, ) from hypothesis.strategies import ( SearchStrategy, booleans, composite, from_type, iterables, lists, register_type_strategy, sampled_from, ) from typing import ( Iterable, ...
25.666667
75
0.657754
b65f7582cacbcbf99d936c43a7adb0e8f588732f
2,827
py
Python
src/device/handler.py
OSLL/apagescan
c2d993c0260697aeb2ed70d2f3d2a805b4f8a5f4
[ "MIT" ]
6
2020-08-03T06:17:50.000Z
2021-11-08T20:21:29.000Z
src/device/handler.py
OSLL/apagescan
c2d993c0260697aeb2ed70d2f3d2a805b4f8a5f4
[ "MIT" ]
17
2020-03-04T14:13:10.000Z
2020-03-23T19:12:25.000Z
src/device/handler.py
OSLL/apagescan
c2d993c0260697aeb2ed70d2f3d2a805b4f8a5f4
[ "MIT" ]
null
null
null
import re from itertools import chain from src.utilities import exec_command, list_difference
31.065934
120
0.645207
b65fbeb70b51ee9b17196b3c0eaabee9c9dbe16b
2,347
py
Python
compass-api/G4SE/configurable_elastic_search_backend/backends.py
geometalab/G4SE-Compass
2218398a6c5c5a81e450d9f95591ccbb2855638b
[ "MIT" ]
null
null
null
compass-api/G4SE/configurable_elastic_search_backend/backends.py
geometalab/G4SE-Compass
2218398a6c5c5a81e450d9f95591ccbb2855638b
[ "MIT" ]
60
2016-04-13T08:32:27.000Z
2016-11-24T11:10:14.000Z
compass-api/G4SE/configurable_elastic_search_backend/backends.py
geometalab/G4SE-Compass
2218398a6c5c5a81e450d9f95591ccbb2855638b
[ "MIT" ]
2
2016-04-13T09:05:40.000Z
2020-07-07T17:43:30.000Z
from haystack.backends.elasticsearch_backend import ElasticsearchSearchBackend, ElasticsearchSearchEngine
37.854839
115
0.734981
b66002a363bc827adc04ed4d24d7ca83c20f9830
4,906
py
Python
gda_sdm_functions.py
JannikHamperETH/conda
22cb68896fe9cf83789065fb319f2abe4b6d7612
[ "BSD-3-Clause" ]
null
null
null
gda_sdm_functions.py
JannikHamperETH/conda
22cb68896fe9cf83789065fb319f2abe4b6d7612
[ "BSD-3-Clause" ]
null
null
null
gda_sdm_functions.py
JannikHamperETH/conda
22cb68896fe9cf83789065fb319f2abe4b6d7612
[ "BSD-3-Clause" ]
1
2020-03-19T15:29:52.000Z
2020-03-19T15:29:52.000Z
# -*- coding: utf-8 -*- """ Created on Thu Mar 21 16:21:14 2019 @author: martinhe """ import numpy as np import pandas as pd from sklearn.neighbors.kd_tree import KDTree import matplotlib.pyplot as plt import matplotlib.image as mpimg from shapely.geometry import Point import shapely.wkt as wkt im...
33.148649
114
0.60477
b661a20430d3f0acc5267a4b671cd0954a0b8f2f
2,948
py
Python
tensorflow/compiler/xla/service/gpu/tests/mnist.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
1
2022-03-18T17:36:11.000Z
2022-03-18T17:36:11.000Z
tensorflow/compiler/xla/service/gpu/tests/mnist.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
null
null
null
tensorflow/compiler/xla/service/gpu/tests/mnist.py
Stevanus-Christian/tensorflow
d44afcf5ca16c5d704c66f891b99eac804e7cd14
[ "Apache-2.0" ]
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 applica...
32.755556
80
0.715739
b66357baffc9f27b646286c589544f0c9a94af93
2,142
py
Python
ShapeLearnerAPI/_server.py
DEKHTIARJonathan/ShapeLearnerAPI
6b8824da28cc5f481b550c8c7912c86097e20536
[ "MIT" ]
null
null
null
ShapeLearnerAPI/_server.py
DEKHTIARJonathan/ShapeLearnerAPI
6b8824da28cc5f481b550c8c7912c86097e20536
[ "MIT" ]
null
null
null
ShapeLearnerAPI/_server.py
DEKHTIARJonathan/ShapeLearnerAPI
6b8824da28cc5f481b550c8c7912c86097e20536
[ "MIT" ]
null
null
null
################################# Loading config File ################################ import sys sys.path.append('../Config/') from loadConf import loadConf ################################# Import Libraries ################################ import os.path import urllib2 import time from sqlalchemy import * from sqlal...
36.305085
147
0.643324
b6676df32798e39afffcc6ddaceea2dd644ae976
18,646
py
Python
dlkit/json_/relationship/objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
2
2018-02-23T12:16:11.000Z
2020-10-08T17:54:24.000Z
dlkit/json_/relationship/objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
87
2017-04-21T18:57:15.000Z
2021-12-13T19:43:57.000Z
dlkit/json_/relationship/objects.py
UOC/dlkit
a9d265db67e81b9e0f405457464e762e2c03f769
[ "MIT" ]
1
2018-03-01T16:44:25.000Z
2018-03-01T16:44:25.000Z
"""JSON implementations of relationship objects.""" # pylint: disable=no-init # Numerous classes don't require __init__. # pylint: disable=too-many-public-methods,too-few-public-methods # Number of methods are defined in specification # pylint: disable=protected-access # Access to protected methods allowed...
39.420719
158
0.669527
b669bef9916cc3489c4b4c88371b14f8555edcb6
2,254
py
Python
DFS_generator/Controls.py
AGH-Narzedzia-Informatyczne/Project_Labyrinth
317f744500fb73f9b8961ec725904cae00aadb92
[ "MIT" ]
1
2020-12-16T14:32:23.000Z
2020-12-16T14:32:23.000Z
DFS_generator/Controls.py
Pandoors/Project_Labyrinth
317f744500fb73f9b8961ec725904cae00aadb92
[ "MIT" ]
5
2020-11-22T19:34:42.000Z
2020-12-10T23:57:38.000Z
DFS_generator/Controls.py
Pandoors/Project_Labyrinth
317f744500fb73f9b8961ec725904cae00aadb92
[ "MIT" ]
5
2020-12-16T14:31:48.000Z
2020-12-16T14:32:17.000Z
import pygame import DFS_generator.mazeGenerator as mazeGenerator
33.641791
106
0.568323
b669eb47bc014bc21ce712ea709cc4dee07b5816
3,225
py
Python
blur.py
dragonfyre23/ENGR133PyTeamProject
f05ce12000e01b3fdfc880a9ccd33721ad3d40cc
[ "MIT" ]
null
null
null
blur.py
dragonfyre23/ENGR133PyTeamProject
f05ce12000e01b3fdfc880a9ccd33721ad3d40cc
[ "MIT" ]
null
null
null
blur.py
dragonfyre23/ENGR133PyTeamProject
f05ce12000e01b3fdfc880a9ccd33721ad3d40cc
[ "MIT" ]
null
null
null
''' =============================================================================== ENGR 133 Program Description This function takes an image array, a size number and a blur value and returns an array that contains a blurred image Assignment Information Assignment: Python Group Project Author: Marcus L...
35.833333
126
0.524341
b66be26b8caf564d6a8edf757027f54cbde4e934
1,015
py
Python
Server/app/main/utils/token_utils.py
Niewidzialny84/PathFighters
9cf9cfcde60cb5e57c5c68ba995c34955b78caf9
[ "MIT" ]
9
2021-08-19T16:57:13.000Z
2022-01-25T16:14:11.000Z
Server/app/main/utils/token_utils.py
Niewidzialny84/PathFighters
9cf9cfcde60cb5e57c5c68ba995c34955b78caf9
[ "MIT" ]
29
2021-10-18T15:37:53.000Z
2022-01-26T08:28:37.000Z
Server/app/main/utils/token_utils.py
Niewidzialny84/PathFighters
9cf9cfcde60cb5e57c5c68ba995c34955b78caf9
[ "MIT" ]
1
2022-01-19T01:53:11.000Z
2022-01-19T01:53:11.000Z
from .. import db from app.main.model.token_blacklist_model import TokenBlackList from .. import jwt from app.main.schema.token_blacklist_schema import tokens_blacklist_schema from datetime import datetime def delete_expired_tokens(): """ Method to delete expired tokens from blacklist. """ jwt_tokens = TokenBl...
42.291667
86
0.722167
b66c421f942cee25d63e89240ef292e8ae582d0c
116
py
Python
djangae/test_runner.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
djangae/test_runner.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
djangae/test_runner.py
benvand/djangae
7b186fbe6952c5ae0afe5eb8258516c35760f96d
[ "BSD-3-Clause" ]
null
null
null
from django.test.simple import DjangoTestSuiteRunner
23.2
52
0.853448
b66c5f4a049b6ad77a78e2d4cae2ce8fbcea9dea
2,346
py
Python
simple_scheduler/jobs/curl_job.py
In2ItChicago/ndscheduler
f9cc3eadc0fabc0cb9c4250ae65c4c11b81125c2
[ "BSD-2-Clause" ]
null
null
null
simple_scheduler/jobs/curl_job.py
In2ItChicago/ndscheduler
f9cc3eadc0fabc0cb9c4250ae65c4c11b81125c2
[ "BSD-2-Clause" ]
20
2019-01-27T18:40:26.000Z
2019-10-05T21:50:06.000Z
simple_scheduler/jobs/curl_job.py
In2ItChicago/ndscheduler
f9cc3eadc0fabc0cb9c4250ae65c4c11b81125c2
[ "BSD-2-Clause" ]
null
null
null
"""A job to send a HTTP (GET or DELETE) periodically.""" import logging import requests from ndscheduler.corescheduler import job logger = logging.getLogger(__name__) if __name__ == "__main__": job = CurlJob.create_test_instance() job.run('http://localhost:8888/api/v1/jobs', 'GET', {})
39.762712
97
0.518755
b66da428e12e879d3ce28fd5940c716b7e4e7fb4
8,854
py
Python
curves.py
scjurgen/function-curves
2a3412bd213b96b03a938b26e46002f3edeb73a7
[ "MIT" ]
null
null
null
curves.py
scjurgen/function-curves
2a3412bd213b96b03a938b26e46002f3edeb73a7
[ "MIT" ]
null
null
null
curves.py
scjurgen/function-curves
2a3412bd213b96b03a938b26e46002f3edeb73a7
[ "MIT" ]
null
null
null
import math import re import subprocess # from math import * import sys with open('response.plot', "r") as f: plotTemplate = f.read() with open('response_multi.plot', "r") as f: plotTemplateMulti = f.read() indexhtml = '<head></head><body>' pcurve = ParamtricCurve() oddIntParams = [1, 3, 5, 7, 9, 11, 13...
38.495652
113
0.517619
b66e2b8c6e4dd50bcf74903dd471b7173a9b1f32
159
py
Python
datahub_core/printable.py
grovesy/datahub
57bd1a837b9996c2dae5e052a94131b8fc56e3fb
[ "Apache-2.0" ]
67
2020-05-15T09:37:20.000Z
2022-03-18T04:12:08.000Z
datahub_core/printable.py
grovesy/datahub
57bd1a837b9996c2dae5e052a94131b8fc56e3fb
[ "Apache-2.0" ]
37
2020-05-15T08:03:17.000Z
2020-10-28T12:24:30.000Z
datahub_core/printable.py
grovesy/datahub
57bd1a837b9996c2dae5e052a94131b8fc56e3fb
[ "Apache-2.0" ]
10
2020-05-16T14:11:12.000Z
2021-10-06T19:20:47.000Z
from pprint import pformat
22.714286
88
0.641509
b66f691fdc025de54fc09bcdb174289ff3b19531
17,152
py
Python
jointly/synchronizer.py
hpi-dhc/jointly
b56fca228b2705cf795ae453cd1d77c0567f099e
[ "MIT" ]
7
2020-10-14T11:57:35.000Z
2021-12-28T11:32:45.000Z
jointly/synchronizer.py
hpi-dhc/jointly
b56fca228b2705cf795ae453cd1d77c0567f099e
[ "MIT" ]
5
2021-08-18T09:04:16.000Z
2021-12-27T19:24:24.000Z
jointly/synchronizer.py
hpi-dhc/jointly
b56fca228b2705cf795ae453cd1d77c0567f099e
[ "MIT" ]
1
2021-05-06T07:57:38.000Z
2021-05-06T07:57:38.000Z
import os from typing import Dict, Optional import numpy as np import pandas as pd from scipy.signal import correlate from . import ShakeExtractor, helpers from .abstract_extractor import AbstractExtractor from .helpers import normalize, get_equidistant_signals from .log import logger from .synchronization_errors imp...
43.20403
118
0.608734
b6700d566b4e375b2ac9c79300663ebb05604d0a
184
py
Python
Kivy/gui/crud.py
joao0710/primeiro-repo
4fe1240c417d42fb4ec17861003a13b0d0e9310d
[ "MIT" ]
null
null
null
Kivy/gui/crud.py
joao0710/primeiro-repo
4fe1240c417d42fb4ec17861003a13b0d0e9310d
[ "MIT" ]
null
null
null
Kivy/gui/crud.py
joao0710/primeiro-repo
4fe1240c417d42fb4ec17861003a13b0d0e9310d
[ "MIT" ]
null
null
null
from kivy.app import App from kivy.uix.boxlayout import BoxLayout Crud().run()
15.333333
40
0.695652
b67146d928f69a5146e1d26fe26e5079cb833b63
1,272
py
Python
za.py
zweed4u/residue
b4c397af34d0e67932db454eb486a9935a5d9d39
[ "MIT" ]
null
null
null
za.py
zweed4u/residue
b4c397af34d0e67932db454eb486a9935a5d9d39
[ "MIT" ]
null
null
null
za.py
zweed4u/residue
b4c397af34d0e67932db454eb486a9935a5d9d39
[ "MIT" ]
null
null
null
#!/usr/bin/python #sitekey: 6Lcm qwIT AAAA AD_8 PDdc M-9A hyft RNtF Xn1U 5e_8 import json, random, requests url = decrypt_1('iuuqt;00psefs/epnjopt/dpn0qpxfs0hjgudbse.cbmbodf') host = decrypt_1('psefs/epnjopt/dpn') UA = decrypt_1('EpnjoptjPT05/1/1!)jQipof!PT!:/4/4<!jQipof<!fo.VT*') session = requests.session() headers ...
28.266667
85
0.629717
b6719042ad9d174d2d7f73b28701433948c4d333
1,058
py
Python
cp-classes/1s2020/contests/contests/06-03/d.py
oleonardolima/problem-solving
079da5013c1f04e3b6a5c8c42f24cba60f0bc424
[ "MIT" ]
null
null
null
cp-classes/1s2020/contests/contests/06-03/d.py
oleonardolima/problem-solving
079da5013c1f04e3b6a5c8c42f24cba60f0bc424
[ "MIT" ]
null
null
null
cp-classes/1s2020/contests/contests/06-03/d.py
oleonardolima/problem-solving
079da5013c1f04e3b6a5c8c42f24cba60f0bc424
[ "MIT" ]
null
null
null
from collections import deque, defaultdict num_snacks = int(input()) snacks = deque([int(num) for num in input().split(" ")]) other_sizes = defaultdict(bool) while snacks: sizes_to_print = [] if snacks: current_size = snacks.popleft() #print(current_size) if current_size == num_snacks: ...
27.128205
56
0.572779
b6729cf227c800433d7bb6a4d03bad320ebb49d2
11,447
py
Python
lib/carbon/cache.py
zillow/carbon
07244f98e8ddf305a0b2cc2da1bcc1a86b613ce6
[ "Apache-2.0" ]
null
null
null
lib/carbon/cache.py
zillow/carbon
07244f98e8ddf305a0b2cc2da1bcc1a86b613ce6
[ "Apache-2.0" ]
3
2017-02-17T04:11:13.000Z
2017-05-03T03:22:16.000Z
lib/carbon/cache.py
zillow/carbon
07244f98e8ddf305a0b2cc2da1bcc1a86b613ce6
[ "Apache-2.0" ]
null
null
null
"""Copyright 2009 Chris Davis 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 dist...
33.47076
152
0.71617
b67314edb609b2d661c738a36e7968705ff7d30d
995
py
Python
danbooru_dump/danbooru_dump_bulkdata_download_missing.py
danya02/booru-mirror-unified
2e4ee827c6b6dd0d2a3fe6b9f18220aafd552abe
[ "MIT" ]
null
null
null
danbooru_dump/danbooru_dump_bulkdata_download_missing.py
danya02/booru-mirror-unified
2e4ee827c6b6dd0d2a3fe6b9f18220aafd552abe
[ "MIT" ]
null
null
null
danbooru_dump/danbooru_dump_bulkdata_download_missing.py
danya02/booru-mirror-unified
2e4ee827c6b6dd0d2a3fe6b9f18220aafd552abe
[ "MIT" ]
null
null
null
import subprocess import os import sys sys.path.append('..') from database import * import time import random import danbooru_dump_transfer_queue_into_redis_from_find os.chdir('/hugedata/booru/danbooru_temp') while 1: #time.sleep(3) query = Post.select().where(~fn.EXISTS(Content.select().where(Content.post_id...
41.458333
223
0.702513
b673221ee8b609b02be959fb23bbc76db4c129ac
3,732
py
Python
backend/api/models/user_model.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
null
null
null
backend/api/models/user_model.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
1
2020-06-21T18:38:14.000Z
2020-06-21T21:57:09.000Z
backend/api/models/user_model.py
ferdn4ndo/infotrem
4728c5fe8385dcc0a1c75068429fa20e2afbf6f2
[ "MIT" ]
null
null
null
from uuid import uuid4 from django.contrib.auth.base_user import BaseUserManager, AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.db import models from django.utils import timezone from django.utils.translation import gettext_lazy as _ from .location_state_model import LocationSta...
38.081633
111
0.692122
b67625dd159031dcdea44b53a2f95db01913f012
6,031
py
Python
mirror/github/search.py
liammc98/mirror
274d4749860f6acd8d77dd1d14bae4e41041e113
[ "Apache-2.0" ]
9
2020-10-30T08:33:03.000Z
2021-12-31T01:22:37.000Z
mirror/github/search.py
liammc98/mirror
274d4749860f6acd8d77dd1d14bae4e41041e113
[ "Apache-2.0" ]
3
2021-01-15T16:43:47.000Z
2021-02-23T11:09:49.000Z
mirror/github/search.py
liammc98/mirror
274d4749860f6acd8d77dd1d14bae4e41041e113
[ "Apache-2.0" ]
6
2020-11-23T02:40:56.000Z
2022-01-28T15:59:43.000Z
import os import csv import json import time import string import traceback import urllib.parse from pathlib import Path from typing import Optional, Tuple import click import requests from ..settings import * from .utils import forward_languages_config, request_with_limit DATETIME_HEADER = "Date" if __name...
26.221739
124
0.596419