hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4431c36c4fd3e408f1bf638719ad1ac60b363c44
45,011
py
Python
main.py
Shabaquib/Library-Scraper-Using-BeautifulSoup
fa454521530471b48c346531c10041d45787a6a7
[ "MIT" ]
null
null
null
main.py
Shabaquib/Library-Scraper-Using-BeautifulSoup
fa454521530471b48c346531c10041d45787a6a7
[ "MIT" ]
null
null
null
main.py
Shabaquib/Library-Scraper-Using-BeautifulSoup
fa454521530471b48c346531c10041d45787a6a7
[ "MIT" ]
null
null
null
# Z library import wx from wx.lib import scrolledpanel import webbrowser import io from urllib.request import Request, urlopen from bs4 import BeautifulSoup import pyscreenshot import win32gui class PanelBase(wx.Panel): '''Base Panel class for all panels''' def __init__(self, parent, label, on_cl...
45.465657
120
0.595121
a15ac9fb6eec6ab47400f9ac96accd44eef14b72
1,232
py
Python
lib/surface/compute/ssl_certificates/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/ssl_certificates/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/ssl_certificates/__init__.py
bshaffer/google-cloud-sdk
f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2014 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 requir...
35.2
76
0.774351
9db6e20a263980c2394a103dd73f2952c68ab86d
1,269
py
Python
kafka/producer.py
MRazaKazmi/Startup-Where
5e012be43bc2beee1e387af81bc45f1e237d6216
[ "CECILL-B" ]
null
null
null
kafka/producer.py
MRazaKazmi/Startup-Where
5e012be43bc2beee1e387af81bc45f1e237d6216
[ "CECILL-B" ]
null
null
null
kafka/producer.py
MRazaKazmi/Startup-Where
5e012be43bc2beee1e387af81bc45f1e237d6216
[ "CECILL-B" ]
null
null
null
import time import requests from kafka import KafkaProducer from json import dumps import json meetup_dot_com_rsvp_stream_api_url = "http://stream.meetup.com/2/rsvps" kafka_topic_name = "meetuprsvptopic" kafka_bootstrap_servers = 'localhost:9092' if __name__ == "__main__": print("Kafka Producer Application Starte...
40.935484
134
0.676123
7c03b7fe57db756e38060a2cc74eebd2da21a47c
42,178
py
Python
mne/viz/ica.py
bloyl/mne-python
bf945f19d221a4955b59758fdb9777d35315c042
[ "BSD-3-Clause" ]
1
2016-10-27T20:07:23.000Z
2016-10-27T20:07:23.000Z
mne/viz/ica.py
bloyl/mne-python
bf945f19d221a4955b59758fdb9777d35315c042
[ "BSD-3-Clause" ]
null
null
null
mne/viz/ica.py
bloyl/mne-python
bf945f19d221a4955b59758fdb9777d35315c042
[ "BSD-3-Clause" ]
null
null
null
"""Functions to plot ICA specific data (besides topographies).""" # Authors: Denis Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Teon Brooks <teon.brooks@gmail.com> # Daniel McCloy <dan.mccloy@gmail.com> # # License: Simplified BSD from functools i...
37.793907
79
0.594362
072313288a0147d787e6fe2050ed7b0f6ef19dc9
1,461
py
Python
Task2G.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
Task2G.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
Task2G.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
from floodsystem.stationdata import build_station_list from floodsystem.stationdata import update_water_levels from floodsystem.flood import stations_level_over_threshold from floodsystem.flood import stations_highest_rel_level from floodsystem.datafetcher import fetch_measure_levels from floodsystem.analysis import po...
31.76087
73
0.723477
0b12c4c0045f7bb5ca3800e10d5c2ee9b9dc1ddf
23,680
py
Python
scripts/scenes.py
Mu-L/yocto-gl
c5650f26166807e7046caf5072ce803d9220ed16
[ "MIT" ]
null
null
null
scripts/scenes.py
Mu-L/yocto-gl
c5650f26166807e7046caf5072ce803d9220ed16
[ "MIT" ]
null
null
null
scripts/scenes.py
Mu-L/yocto-gl
c5650f26166807e7046caf5072ce803d9220ed16
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 -B import click, glob, os, sys, math, json, csv @click.group() def cli(): pass @cli.command() @click.option('--directory', '-d', default='mcguire') @click.option('--scene', '-s', default='*') @click.option('--format', '-f', default='json') @click.option('--mode', '-m', default='path') @...
43.132969
273
0.547128
490882b05fcf6417078848aa9d3cb0d22b1c4262
5,720
py
Python
tests/test_manage_py_scan.py
JulianFeinauer/pytest-django
f27c6aa1d44beb46fefa4718fefcf541478643d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_manage_py_scan.py
JulianFeinauer/pytest-django
f27c6aa1d44beb46fefa4718fefcf541478643d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_manage_py_scan.py
JulianFeinauer/pytest-django
f27c6aa1d44beb46fefa4718fefcf541478643d7
[ "BSD-3-Clause" ]
null
null
null
import pytest @pytest.mark.django_project(project_root="django_project_root", create_manage_py=True) def test_django_project_found(django_testdir) -> None: # XXX: Important: Do not chdir() to django_project_root since runpytest_subprocess # will call "python /path/to/pytest.py", which will implicitly add cwd ...
38.648649
355
0.740734
673f278418177ff9d8eaef3e77169115851cd127
14,600
py
Python
src/sentry/models/debugfile.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/debugfile.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/debugfile.py
learninto/sentry
4f9f564841498b3af49c1677d6b61f3e47b01923
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import re import os import six import uuid import time import errno import shutil import hashlib import logging import tempfile from django.db import models from symbolic import Archive, SymbolicError, ObjectErrorUnsupportedObject, normalize_debug_id from sentry import options...
32.087912
96
0.614589
0d1fc25a37d0f67bf67092ba7f8e4a07e534824e
377
py
Python
ancor/arch_factory.py
guybuk/ANCOR
229f8a52b81fa94cd584cbc6fc715697f98e43e2
[ "Apache-2.0" ]
34
2021-04-26T17:35:19.000Z
2022-03-30T02:41:15.000Z
ancor/arch_factory.py
sxr9607/ANCOR
229f8a52b81fa94cd584cbc6fc715697f98e43e2
[ "Apache-2.0" ]
5
2021-08-07T22:13:04.000Z
2022-02-11T10:03:15.000Z
ancor/arch_factory.py
sxr9607/ANCOR
229f8a52b81fa94cd584cbc6fc715697f98e43e2
[ "Apache-2.0" ]
6
2021-04-06T07:51:17.000Z
2021-11-20T07:01:41.000Z
from models import model_pool class ArchFactory(object): def create_arch(self, arch_name): encoder_q, encoder_k = model_pool[arch_name](), model_pool[arch_name]() k2q_mapping = {k_name: q_name for q_name, k_name in zip(encoder_q.state_dict().keys(), encoder_k.state_dict().ke...
34.272727
89
0.676393
d0cb0fa44bd2c18c96268816cf62c6533664dfcb
2,039
py
Python
actleto/annotator/visualizers/image.py
IINemo/jupyter_al_annotator
8e4256653c220fffdd15b1fdb30be0253c3f08f7
[ "MIT" ]
22
2017-09-25T16:15:54.000Z
2022-01-07T22:27:30.000Z
actleto/annotator/visualizers/image.py
IINemo/jupyter_al_annotator
8e4256653c220fffdd15b1fdb30be0253c3f08f7
[ "MIT" ]
null
null
null
actleto/annotator/visualizers/image.py
IINemo/jupyter_al_annotator
8e4256653c220fffdd15b1fdb30be0253c3f08f7
[ "MIT" ]
9
2017-09-14T13:59:17.000Z
2022-02-22T16:15:17.000Z
import numpy as np from ipywidgets import Image as WidgImage from PIL import Image import io class ImageVisualizer(object): """Visualizer for images. This visualizer can display images (e.g., MNIST), which are stored as rows in a dataframe. """ def __init__(self, columns_range, img_shap...
35.77193
108
0.589505
254461d7eb43d99aaabb1b2199c3728476045573
1,677
py
Python
nipype/interfaces/brainsuite/tests/test_auto_Skullfinder.py
mfalkiewicz/nipype
775e21b78fb1ffa2ff9cb12e6f052868bd44d052
[ "Apache-2.0" ]
1
2015-01-19T13:12:27.000Z
2015-01-19T13:12:27.000Z
nipype/interfaces/brainsuite/tests/test_auto_Skullfinder.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/brainsuite/tests/test_auto_Skullfinder.py
bpinsard/nipype
373bdddba9f675ef153951afa368729e2d8950d2
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..brainsuite import Skullfinder def test_Skullfinder_inputs(): input_map = dict(args=dict(argstr='%s', ), bgLabelValue=dict(argstr='--bglabel %d', ), brainLabelValue=dict(argstr='--brainlabel %d', ...
26.203125
67
0.632081
6257dec38f889ea353ad670fc14a3418441ed5f4
37,314
py
Python
dreamcoder/program.py
Hitoshi-Nakanishi/ec2
b65905cdfb1a2451ad553fd15b937a7fc48fa9cf
[ "Unlicense" ]
null
null
null
dreamcoder/program.py
Hitoshi-Nakanishi/ec2
b65905cdfb1a2451ad553fd15b937a7fc48fa9cf
[ "Unlicense" ]
null
null
null
dreamcoder/program.py
Hitoshi-Nakanishi/ec2
b65905cdfb1a2451ad553fd15b937a7fc48fa9cf
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- from dreamcoder.type import * from dreamcoder.utilities import * from time import time import math class InferenceFailure(Exception): pass class ShiftFailure(Exception): pass class RunFailure(Exception): pass class Program(object): def __repr__(self): return str...
28.948022
127
0.576298
d1d05ac0ceb6d4f5392bc3eff285d8d82b87c282
401
py
Python
justathaught/asgi.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
justathaught/asgi.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
justathaught/asgi.py
sandipsandal/Just-A-Thought
97f97404b303deb2ea7bcc86d89b2b21b3715fba
[ "Apache-2.0" ]
null
null
null
""" ASGI config for justathaught project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
b915fbbad49b902a60b0e12b2535b74abaa191ff
601
py
Python
main.py
hectorleiva/automated-video-downloader
66466c114678e73d93b8b2370286ed59d6e558a4
[ "MIT" ]
null
null
null
main.py
hectorleiva/automated-video-downloader
66466c114678e73d93b8b2370286ed59d6e558a4
[ "MIT" ]
null
null
null
main.py
hectorleiva/automated-video-downloader
66466c114678e73d93b8b2370286ed59d6e558a4
[ "MIT" ]
null
null
null
import os import sys HERE = os.path.dirname(os.path.realpath(__file__)) sys.path.append(os.path.join(HERE, "./vendored")) from youtube_dl import main as youtube_downloader PLAYLIST_URL = os.getenv('PLAYLIST_URL') if not PLAYLIST_URL: print('Unable to continue, no PLAYLIST_URL environment variable was set') s...
23.115385
77
0.665557
7fc168b5a58b34558e478b50f12234b86f5996c9
1,225
py
Python
app/api/deps.py
VPPR/backend-2
454e037f67245cae102f17c902f0494013c94e82
[ "MIT" ]
1
2021-05-16T15:05:50.000Z
2021-05-16T15:05:50.000Z
app/api/deps.py
VPPR/backend-2
454e037f67245cae102f17c902f0494013c94e82
[ "MIT" ]
6
2021-02-22T06:30:49.000Z
2021-06-26T15:17:24.000Z
app/api/deps.py
VPPR/backend-2
454e037f67245cae102f17c902f0494013c94e82
[ "MIT" ]
null
null
null
from fastapi import Depends, HTTPException, status from jose import jwt from mongoengine.errors import ValidationError from app import crud from app.core.config import settings from app.core.security import oauth2_scheme from app.schema.token import TokenPayload from app.schema.user import User def get_current_user(...
32.236842
71
0.707755
10094e5c4abe42aad43afac78c041b9b4dede7b3
5,249
py
Python
nipype/workflows/dmri/camino/group_connectivity.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
null
null
null
nipype/workflows/dmri/camino/group_connectivity.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
null
null
null
nipype/workflows/dmri/camino/group_connectivity.py
FredLoney/nipype
ceaa28dcbfe29ca4373479c897da9fc958167ccd
[ "BSD-3-Clause" ]
null
null
null
import os.path as op # system functions import nipype.interfaces.io as nio # Data i/o import nipype.interfaces.utility as util # utility import nipype.pipeline.engine as pe # pypeline engine from .connectivity_mapping import create_connectivity_pipeline def create_group_co...
53.020202
138
0.587922
ff07da283ff40192fc22fbce8e0961519722c932
6,248
py
Python
train_ptb.py
Jinrohs/deep_maker
21e62a53bc25023e5e4a95f7b33fe4ee0e46a361
[ "MIT" ]
1
2018-02-21T14:40:52.000Z
2018-02-21T14:40:52.000Z
train_ptb.py
Jinrohs/ChatelliteVoiceDeepLearning
21e62a53bc25023e5e4a95f7b33fe4ee0e46a361
[ "MIT" ]
null
null
null
train_ptb.py
Jinrohs/ChatelliteVoiceDeepLearning
21e62a53bc25023e5e4a95f7b33fe4ee0e46a361
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Sample script of recurrent neural network language model. This code is ported from following implementation written in Torch. https://github.com/tomsercu/lstm """ from __future__ import print_function import argparse import math import sys import time import numpy as np import six import si...
31.555556
78
0.65525
106a9e63aee7d5606cafb1627d4153a26109e280
1,650
py
Python
load_options_data.py
thomasvandewiel-sai/option-strategies
1d4e8dbb18b68136a5150382811929cb793aec91
[ "Apache-2.0" ]
null
null
null
load_options_data.py
thomasvandewiel-sai/option-strategies
1d4e8dbb18b68136a5150382811929cb793aec91
[ "Apache-2.0" ]
null
null
null
load_options_data.py
thomasvandewiel-sai/option-strategies
1d4e8dbb18b68136a5150382811929cb793aec91
[ "Apache-2.0" ]
null
null
null
from yahoo_fin import stock_info, options from datetime import date, datetime, timedelta import numpy as np DAYS_IN_FUTURE = 45 TICKER = "AAPL" OPTION_STRATEGY = "iron_scondor" class AnalyzeOptions: def __init__(self) -> None: # Initialize dates self.date_today = [] self.desired_option_d...
28.448276
106
0.664848
96cd53f9b1c52984a9fe413c2d60ad87e7afaa39
7,552
py
Python
sap/cli/gcts.py
jakub-vaclavik-sap/sapcli
a0f40c3b2363bba0d34f705d92dd420d9adf3987
[ "Apache-2.0" ]
null
null
null
sap/cli/gcts.py
jakub-vaclavik-sap/sapcli
a0f40c3b2363bba0d34f705d92dd420d9adf3987
[ "Apache-2.0" ]
null
null
null
sap/cli/gcts.py
jakub-vaclavik-sap/sapcli
a0f40c3b2363bba0d34f705d92dd420d9adf3987
[ "Apache-2.0" ]
1
2022-01-10T03:58:03.000Z
2022-01-10T03:58:03.000Z
"""gCTS methods""" import sap.cli.core import sap.cli.helpers import sap.rest.gcts def print_gcts_message(console, log, prefix=' '): """Print out the message with its protocol if it exists.""" if isinstance(log, str): message = log else: message = log.get('message', None) if message...
29.5
106
0.637182
ed489ed858b00ac9d511932404f571fca37caf6b
1,252
py
Python
homeassistant/helpers/__init__.py
sgrzys/AIS-home-assistant
7bfc4d6d90de75eea06702c36474d91bf38df3bf
[ "Apache-2.0" ]
7
2018-08-03T10:15:36.000Z
2019-03-25T13:31:55.000Z
homeassistant/helpers/__init__.py
sara0871/https-wakatime.com-android-studio
5a15b2c036b332c17d5f6a06664378e9273d684f
[ "Apache-2.0" ]
6
2021-02-08T20:25:50.000Z
2022-03-11T23:27:53.000Z
homeassistant/helpers/__init__.py
sara0871/https-wakatime.com-android-studio
5a15b2c036b332c17d5f6a06664378e9273d684f
[ "Apache-2.0" ]
3
2018-09-14T07:34:09.000Z
2018-09-29T12:57:10.000Z
"""Helper methods for components within Home Assistant.""" import re from typing import Any, Iterable, Tuple, Sequence, Dict from homeassistant.const import CONF_PLATFORM # pylint: disable=invalid-name ConfigType = Dict[str, Any] def config_per_platform(config: ConfigType, domain: str) -> I...
29.116279
77
0.646166
c138ceaa64724bb478c8a985ea110830e78e9b5e
1,869
py
Python
hassio/services/interface.py
xebbmw/hassio-supervisor
ce3f6705977e344b968f916a20e3358ce710845e
[ "Apache-2.0" ]
1
2019-09-03T14:09:06.000Z
2019-09-03T14:09:06.000Z
hassio/services/interface.py
xebbmw/hassio-supervisor
ce3f6705977e344b968f916a20e3358ce710845e
[ "Apache-2.0" ]
null
null
null
hassio/services/interface.py
xebbmw/hassio-supervisor
ce3f6705977e344b968f916a20e3358ce710845e
[ "Apache-2.0" ]
1
2019-12-11T01:02:47.000Z
2019-12-11T01:02:47.000Z
"""Interface for single service.""" from typing import Any, Dict, List, Optional import voluptuous as vol from ..addons.addon import Addon from ..const import PROVIDE_SERVICE from ..coresys import CoreSys, CoreSysAttributes class ServiceInterface(CoreSysAttributes): """Interface class for service integration.""...
29.203125
75
0.628143
04cddd2fcc4466731fcaab150e18b2f572a8bdde
1,039
py
Python
main.py
TheMody/NiceInit
3de2c75708ac7b305640266dc0511b81f3c2cad9
[ "MIT" ]
null
null
null
main.py
TheMody/NiceInit
3de2c75708ac7b305640266dc0511b81f3c2cad9
[ "MIT" ]
null
null
null
main.py
TheMody/NiceInit
3de2c75708ac7b305640266dc0511b81f3c2cad9
[ "MIT" ]
null
null
null
import argparse import os import datetime as dt import configparser from logger import Logger import shutil import sys def main(): parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--config_file', help='path_to_config_file', type=str, de...
29.685714
101
0.644851
28858ca166d7af857a33f6741535946bc73e5f95
36
py
Python
tests/__init__.py
rapid7/leexportpy
441db1710399d6f8dc41aaf1b474b5f8ca9d7018
[ "MIT" ]
2
2016-07-05T09:18:20.000Z
2016-07-12T19:48:37.000Z
tests/__init__.py
logentries/leexportpy
441db1710399d6f8dc41aaf1b474b5f8ca9d7018
[ "MIT" ]
7
2016-06-28T13:47:57.000Z
2016-07-22T11:13:16.000Z
tests/examples/__init__.py
rapid7/leexportpy
441db1710399d6f8dc41aaf1b474b5f8ca9d7018
[ "MIT" ]
6
2016-09-08T15:06:18.000Z
2021-01-26T10:12:32.000Z
__author__ = 'Logentries by Rapid7'
18
35
0.777778
e1f56c657cccd2bce705a98d8330a25d72cd0d6b
4,995
py
Python
data/dataconstructor.py
Skhaki18/APS360
4a386fc8ee14802bcb5ef25eefc234160673896a
[ "MIT" ]
1
2022-02-09T20:35:05.000Z
2022-02-09T20:35:05.000Z
data/dataconstructor.py
Skhaki18/APS360
4a386fc8ee14802bcb5ef25eefc234160673896a
[ "MIT" ]
null
null
null
data/dataconstructor.py
Skhaki18/APS360
4a386fc8ee14802bcb5ef25eefc234160673896a
[ "MIT" ]
null
null
null
import fiftyone as fo import fiftyone.zoo as foz import torchvision.transforms as transforms from PIL import Image import os import os.path from pycocotools.coco import COCO import torch.utils.data as data import cv2 import torch import matplotlib.pyplot as plt class CocoDetection(data.Dataset): """`MS Coco...
31.613924
152
0.617217
5bf6bb0057f19fbf40e689fb79c1d0bfee176925
109
py
Python
lab2/text_recognizer/models/__init__.py
AleksandrLiadov/fsdl-text-recognizer-2021-labs
9495e1457fc82ab83ff7e4141939d603565eb89b
[ "MIT" ]
402
2021-01-18T12:14:08.000Z
2022-03-28T03:41:05.000Z
lab2/text_recognizer/models/__init__.py
AleksandrLiadov/fsdl-text-recognizer-2021-labs
9495e1457fc82ab83ff7e4141939d603565eb89b
[ "MIT" ]
27
2021-01-21T01:54:30.000Z
2022-03-29T21:39:41.000Z
lab2/text_recognizer/models/__init__.py
AleksandrLiadov/fsdl-text-recognizer-2021-labs
9495e1457fc82ab83ff7e4141939d603565eb89b
[ "MIT" ]
271
2021-01-21T18:07:24.000Z
2022-03-30T12:49:53.000Z
from .mlp import MLP # Hide lines below until Lab 2 from .cnn import CNN # Hide lines above until Lab 2
10.9
30
0.715596
3d06493111933d76673a5f62a23815918589a2d5
516
py
Python
src/sage/modular/modform/defaults.py
bopopescu/sage
2d495be78e0bdc7a0a635454290b27bb4f5f70f0
[ "BSL-1.0" ]
10
2018-06-01T21:54:53.000Z
2022-03-14T20:11:34.000Z
src/sage/modular/modform/defaults.py
Ivo-Maffei/sage
467fbc70a08b552b3de33d9065204ee9cbfb02c7
[ "BSL-1.0" ]
2
2018-10-30T13:40:20.000Z
2020-07-23T12:13:30.000Z
src/sage/modular/modform/defaults.py
dimpase/sage
468f23815ade42a2192b0a9cd378de8fdc594dcd
[ "BSL-1.0" ]
15
2020-07-23T10:46:25.000Z
2022-01-25T15:37:24.000Z
######################################################################### # Copyright (C) 2004--2006 William Stein <wstein@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # # http://www.gnu.org/licenses/ #########################################################...
34.4
73
0.505814
fb635ed11674e583064d6a3937ee133c9de6576d
3,914
py
Python
pyecodevices_rt2/ecodevices_rt2.py
pcourbin/pyecodevices_rt2
5f9e49dddde01bef933a1825230bd90759d3f41c
[ "MIT" ]
null
null
null
pyecodevices_rt2/ecodevices_rt2.py
pcourbin/pyecodevices_rt2
5f9e49dddde01bef933a1825230bd90759d3f41c
[ "MIT" ]
2
2021-04-12T22:48:48.000Z
2021-05-15T10:56:27.000Z
pyecodevices_rt2/ecodevices_rt2.py
pcourbin/pyecodevices_rt2
5f9e49dddde01bef933a1825230bd90759d3f41c
[ "MIT" ]
null
null
null
from datetime import datetime from datetime import timedelta import requests from .const import INDEX_GET_LINK from .const import PRODUCT_ENTRY from .const import PRODUCT_VALUE from .const import RESPONSE_ENTRY from .const import RESPONSE_SUCCESS_VALUE from .const import RT2_API_GET_LINK_CACHED from .exceptions impor...
31.564516
110
0.594532
d3d7888caa0afbcaaaf6d2fb5162cd14288e9717
18,821
py
Python
google/appengine/tools/devappserver2/instance.py
yc550370460/google_app_engine
876db682bd9d88e7b1f5403f05a0b26f2efb1c19
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/instance.py
yc550370460/google_app_engine
876db682bd9d88e7b1f5403f05a0b26f2efb1c19
[ "Apache-2.0" ]
null
null
null
google/appengine/tools/devappserver2/instance.py
yc550370460/google_app_engine
876db682bd9d88e7b1f5403f05a0b26f2efb1c19
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.759766
80
0.693534
59792bc47ca33ca2baec2d123501559d70c078b0
1,445
py
Python
setup.py
trondkr/xESMF
27952e1ab2f1b7b23c443953b9d1e079376efb08
[ "MIT" ]
null
null
null
setup.py
trondkr/xESMF
27952e1ab2f1b7b23c443953b9d1e079376efb08
[ "MIT" ]
null
null
null
setup.py
trondkr/xESMF
27952e1ab2f1b7b23c443953b9d1e079376efb08
[ "MIT" ]
1
2021-02-24T05:22:23.000Z
2021-02-24T05:22:23.000Z
from setuptools import setup, find_packages import os VERSION = '0.3.1' DISTNAME = 'xesmf' DESCRIPTION = "Universal Regridder for Geospatial Data" AUTHOR = 'Jiawei Zhuang' AUTHOR_EMAIL = 'jiaweizhuang@g.harvard.edu' URL = 'https://github.com/JiaweiZhuang/xESMF' LICENSE = 'MIT' PYTHON_REQUIRES = '>=3.5' # https://gith...
27.788462
76
0.671972
4f655a0391166aea5b02910c861cad30b327317d
1,957
py
Python
functions_drug_features.py
pamiganderson/insight
8397288ac2aee4d98614a6a42179b8520cb1cbf4
[ "MIT" ]
null
null
null
functions_drug_features.py
pamiganderson/insight
8397288ac2aee4d98614a6a42179b8520cb1cbf4
[ "MIT" ]
null
null
null
functions_drug_features.py
pamiganderson/insight
8397288ac2aee4d98614a6a42179b8520cb1cbf4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 26 15:54:44 2018 @author: pamelaanderson """ import numpy as np import pandas as pd def find_nti_drugs(df_merge_class): """ Determine if drugs are narrow therapeutic index """ nti_list = ['carbamazepine', 'cyclosporine', ...
34.333333
88
0.610118
a90a5d223c9838f1aa357392d4b244819e4234cf
1,512
py
Python
rest-api/flask_app/config.py
sinedie/Flask-Svelte-Websockets-Nginx-Docker
76daeec2c76f9f27ca526f53393ab4363020b92b
[ "WTFPL" ]
4
2021-11-21T14:04:15.000Z
2022-03-20T15:28:14.000Z
rest-api/flask_app/config.py
sinedie/Utimate-flask-websocket-template
76daeec2c76f9f27ca526f53393ab4363020b92b
[ "WTFPL" ]
null
null
null
rest-api/flask_app/config.py
sinedie/Utimate-flask-websocket-template
76daeec2c76f9f27ca526f53393ab4363020b92b
[ "WTFPL" ]
null
null
null
import os # Flask env FLASK_ENV = os.environ.get("FLASK_ENV") SECRET_KEY = os.environ.get("SECRET_KEY") # JWT JWT_SECRET_KEY = os.environ.get("JWT_SECRET_KEY") JWT_REFRESH_TOKEN_EXPIRES = int(os.environ.get("JWT_REFRESH_TOKEN_EXPIRES")) # Postgres POSTGRES_USER = os.environ['POSTGRES_USER'] POSTGRES_PASSWORD = os.en...
25.2
132
0.749339
04dd012077cc995f9628b51e95b7f7a1162fc8ff
1,261
py
Python
dumbo/hyy-python-hadoop/examples/TestText.py
arbenson/mrtsqr
006a2de645db9ad4735971cc0a77739249c1437d
[ "BSD-2-Clause" ]
11
2015-01-09T18:36:29.000Z
2022-02-09T09:02:36.000Z
python-hadoop/examples/TestText.py
streamsets/PythonSequenceFile
28350bc62442264bff79a0616474d8216718c694
[ "Apache-2.0" ]
null
null
null
python-hadoop/examples/TestText.py
streamsets/PythonSequenceFile
28350bc62442264bff79a0616474d8216718c694
[ "Apache-2.0" ]
1
2019-09-14T08:33:38.000Z
2019-09-14T08:33:38.000Z
#!/usr/bin/env python # ======================================================================== # 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 l...
35.027778
74
0.701031
394263fbb9e84d42c2876dcabae02be673043326
688
py
Python
AzusaBot/Azusa/__init__.py
ethpch/AzusaBot_old
067e4985d4b8d60c98db758f3e103a4f409c9599
[ "MIT" ]
2
2021-09-23T14:43:00.000Z
2021-09-26T12:01:07.000Z
AzusaBot/Azusa/__init__.py
ethpch/AzusaBot_old
067e4985d4b8d60c98db758f3e103a4f409c9599
[ "MIT" ]
null
null
null
AzusaBot/Azusa/__init__.py
ethpch/AzusaBot_old
067e4985d4b8d60c98db758f3e103a4f409c9599
[ "MIT" ]
null
null
null
from os import path, sep import logging import nonebot from Azusa.log import initLogConf def init(config) -> nonebot.NoneBot: nonebot.init(config) initLogConf() logging.getLogger('Azusa').info('<Init> Azusa initializes successfully.') bot = nonebot.get_bot() bot.config.resources = path.join(path...
26.461538
77
0.617733
463b18e154cab11eb3871912f71580e7f6055d2b
5,246
py
Python
docs/source/conf.py
Pacman1984/etna
9b3ccb980e576d56858f14aca2e06ce2957b0fa9
[ "Apache-2.0" ]
96
2021-09-05T06:29:34.000Z
2021-11-07T15:22:54.000Z
docs/source/conf.py
Pacman1984/etna
9b3ccb980e576d56858f14aca2e06ce2957b0fa9
[ "Apache-2.0" ]
188
2021-09-06T15:59:58.000Z
2021-11-17T09:34:16.000Z
docs/source/conf.py
Pacman1984/etna
9b3ccb980e576d56858f14aca2e06ce2957b0fa9
[ "Apache-2.0" ]
8
2021-09-06T09:18:35.000Z
2021-11-11T21:18:39.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
31.987805
134
0.65955
4c20617fda19b2aad3f3ad1b7c56b96e56ad0a54
32,204
py
Python
theano/sandbox/rng_mrg.py
arnaudsj/Theano
41103b5d158739e4147428ce776fb5716062d4a8
[ "BSD-3-Clause" ]
1
2015-11-05T13:58:11.000Z
2015-11-05T13:58:11.000Z
theano/sandbox/rng_mrg.py
arnaudsj/Theano
41103b5d158739e4147428ce776fb5716062d4a8
[ "BSD-3-Clause" ]
null
null
null
theano/sandbox/rng_mrg.py
arnaudsj/Theano
41103b5d158739e4147428ce776fb5716062d4a8
[ "BSD-3-Clause" ]
null
null
null
""" Implementation of MRG31k3p random number generator for Theano Generator code in SSJ package (L'Ecuyer & Simard) http://www.iro.umontreal.ca/~simardr/ssj/indexe.html """ import sys, warnings import numpy from theano import Op, Apply, shared, config, Variable from theano.tensor import (raw_random, TensorType, as_t...
36.022371
156
0.545025
22d1eb662ee1ea65f5c4d5921bb3c75aefa664d7
2,352
py
Python
AlgorithmQuestionAnswering/SparqlEndpoint.py
zointblackbriar/QuestionAnswering
319c3623ced22254d75c2918929a875090bd2bf5
[ "MIT" ]
1
2019-03-04T19:44:10.000Z
2019-03-04T19:44:10.000Z
AlgorithmQuestionAnswering/SparqlEndpoint.py
zointblackbriar/QuestionAnswering
319c3623ced22254d75c2918929a875090bd2bf5
[ "MIT" ]
null
null
null
AlgorithmQuestionAnswering/SparqlEndpoint.py
zointblackbriar/QuestionAnswering
319c3623ced22254d75c2918929a875090bd2bf5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from SPARQLWrapper import SPARQLWrapper, JSON import rdflib from rdflib.graph import Graph # from rdflib.plugins import sparql # from rdflib import URIRef, Literal from rdflib.plugin import register, Serializer, Parser register('ttl', Parser, 'rdflib.plugins.parsers.notation3', '...
29.772152
75
0.629252
ebb827a6dad65325cbcf822908634a155168f308
48,702
py
Python
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/irc/irclib.py
google-ar/chromium
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
777
2017-08-29T15:15:32.000Z
2022-03-21T05:29:41.000Z
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/irc/irclib.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
66
2017-08-30T18:31:18.000Z
2021-08-02T10:59:35.000Z
third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/irc/irclib.py
harrymarkovskiy/WebARonARCore
2441c86a5fd975f09a6c30cddb57dfb7fc239699
[ "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
123
2017-08-30T01:19:34.000Z
2022-03-17T22:55:31.000Z
# Copyright (C) 1999--2002 Joel Rosdahl # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is ...
31.199231
105
0.574802
7d39581a70eaa6c4311e994b1539716957258987
2,388
py
Python
libcst/codegen/gen_type_mapping.py
rowillia/LibCST
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
[ "Apache-2.0" ]
null
null
null
libcst/codegen/gen_type_mapping.py
rowillia/LibCST
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
[ "Apache-2.0" ]
null
null
null
libcst/codegen/gen_type_mapping.py
rowillia/LibCST
621d9a949a57a9100b7f2d1465ebd32aaeddb05c
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict from typing import List from libcst.codegen.gather import imports, nodebases, nodeuses generated_code: List[str] = [] generat...
36.181818
85
0.7366
9043d4d356f149f3c143f3254f6afba5e8ffcaaf
676
py
Python
ThreeDEngine/util.py
MysteryCoder456/ThreeDEngine
c40bf5d751faa9016d6b3d5d11d76dbfd2e3fa75
[ "MIT" ]
8
2020-04-29T03:46:21.000Z
2020-05-01T17:43:29.000Z
ThreeDEngine/util.py
MysteryCoder456/3DEngine
c40bf5d751faa9016d6b3d5d11d76dbfd2e3fa75
[ "MIT" ]
null
null
null
ThreeDEngine/util.py
MysteryCoder456/3DEngine
c40bf5d751faa9016d6b3d5d11d76dbfd2e3fa75
[ "MIT" ]
null
null
null
from math import sqrt from glm import vec3 def average(numbers: list): """ Get the average of a list of numbers Arguments: numbers {list} -- Number list """ total_sum = 0 divisor = 0 for number in numbers: total_sum += number divisor += 1 return total_sum / ...
17.789474
48
0.565089
aac367bc7daade2b1492016649d29daf6b054361
3,430
py
Python
tripleoclient/exceptions.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
39
2015-09-08T14:34:36.000Z
2022-02-20T21:00:44.000Z
tripleoclient/exceptions.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
1
2021-02-28T06:06:29.000Z
2021-02-28T06:06:29.000Z
tripleoclient/exceptions.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
33
2015-10-01T17:53:04.000Z
2022-03-10T11:50:38.000Z
# Copyright 2013 Nebula Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
23.493151
77
0.714869
bf57511adaf8c9df7860d6b3eb64add771c54091
44,925
py
Python
models/Trading.py
Vashiru/pycryptobot
a4cf67cbb7467acc1d4aa7aab17cd65e8dbb80fe
[ "Apache-2.0" ]
1
2021-06-14T18:21:49.000Z
2021-06-14T18:21:49.000Z
models/Trading.py
Vashiru/pycryptobot
a4cf67cbb7467acc1d4aa7aab17cd65e8dbb80fe
[ "Apache-2.0" ]
null
null
null
models/Trading.py
Vashiru/pycryptobot
a4cf67cbb7467acc1d4aa7aab17cd65e8dbb80fe
[ "Apache-2.0" ]
null
null
null
"""Technical analysis on a trading Pandas DataFrame""" import warnings from re import compile from numpy import floor, maximum, mean, minimum, nan, ndarray, round from numpy import sum as np_sum from numpy import where from pandas import DataFrame, Series from datetime import datetime, timedelta from statsmodels.tsa....
45.701933
199
0.571263
c89cb6684d0be0cacbc2a151b33f7b9b6cac9277
2,638
py
Python
examples/cifar3/inference.py
riyasavla/ml601_hw9
dcec2e5644b41d85303bdaf29da8e81f8a5e29c3
[ "BSD-2-Clause" ]
null
null
null
examples/cifar3/inference.py
riyasavla/ml601_hw9
dcec2e5644b41d85303bdaf29da8e81f8a5e29c3
[ "BSD-2-Clause" ]
null
null
null
examples/cifar3/inference.py
riyasavla/ml601_hw9
dcec2e5644b41d85303bdaf29da8e81f8a5e29c3
[ "BSD-2-Clause" ]
null
null
null
import caffe import lmdb import numpy as np from caffe.proto import caffe_pb2 import scipy from scipy import io import csv import sys, getopt # mean_file = '/Users/riya/Downloads/mean.binaryproto' #'/Users/riya/caffe/examples/cifar3/mean.binaryproto' # model = "/Users/riya/Downloads/cifar10_full_iter_60000.caffemodel....
28.673913
146
0.655042
10973174d5a35a21757b354168be7aaf62c0df8a
5,625
py
Python
src/protean/adapters/cache/memory.py
proteanhq/protean
2006832265435cad8d4f9b86d1a789d8828d2707
[ "BSD-3-Clause" ]
6
2018-09-26T04:54:09.000Z
2022-03-30T01:01:45.000Z
src/protean/adapters/cache/memory.py
proteanhq/protean
2006832265435cad8d4f9b86d1a789d8828d2707
[ "BSD-3-Clause" ]
261
2018-09-20T09:53:33.000Z
2022-03-08T17:43:04.000Z
src/protean/adapters/cache/memory.py
proteanhq/protean
2006832265435cad8d4f9b86d1a789d8828d2707
[ "BSD-3-Clause" ]
6
2018-07-22T07:09:15.000Z
2021-02-02T05:17:23.000Z
import collections import re import time from threading import RLock from typing import Optional, Union from protean.core.view import BaseView from protean.reflection import id_field try: # Python 3.8+ collectionsAbc = collections.abc except AttributeError: # pragma: no cover # Until Python 3.7 coll...
29.605263
83
0.588267
f7efda68c3bccc9bc78431210b23be4a7caade05
110
py
Python
src/inbus/shared/__init__.py
mlos/inbus
51778800740b18337b540e193a52f6faa7451067
[ "BSD-2-Clause" ]
1
2017-11-09T20:09:31.000Z
2017-11-09T20:09:31.000Z
src/inbus/shared/__init__.py
mlos/inbus
51778800740b18337b540e193a52f6faa7451067
[ "BSD-2-Clause" ]
null
null
null
src/inbus/shared/__init__.py
mlos/inbus
51778800740b18337b540e193a52f6faa7451067
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017 Maarten Los # See LICENSE.rst for details.
22
32
0.654545
25e4bb46e67e751dc723c95800225006202e4f65
9,556
py
Python
sugarui/widgets/textfields.py
sugarsack/sugar-ui
0ba7b62f300adbd3290e0ef8d5cb45e26f44a446
[ "MIT" ]
null
null
null
sugarui/widgets/textfields.py
sugarsack/sugar-ui
0ba7b62f300adbd3290e0ef8d5cb45e26f44a446
[ "MIT" ]
null
null
null
sugarui/widgets/textfields.py
sugarsack/sugar-ui
0ba7b62f300adbd3290e0ef8d5cb45e26f44a446
[ "MIT" ]
null
null
null
# coding: utf-8 """ Text fields class. These are used to display some data in the tables. """ import curses import npyscreen from sugarui.windows.floating import ErrorMessageForm class ColoredTextField(npyscreen.Textfield): """ Colorised text field (highlighted data) """ syntax_highlighting = True ...
32.838488
116
0.559962
ea41638d8a9db4519a4876b680772d3c3b29436f
3,112
py
Python
DataApp.py
DaniloGR91/Semana_DataScience_MinerandoDados
99b198c29b0d97e6ccaf1b07c633d0e641dae0eb
[ "MIT" ]
1
2020-05-16T22:57:32.000Z
2020-05-16T22:57:32.000Z
DataApp.py
DaniloGR91/Semana_DataScience_MinerandoDados
99b198c29b0d97e6ccaf1b07c633d0e641dae0eb
[ "MIT" ]
7
2020-05-16T17:50:23.000Z
2020-05-27T20:49:09.000Z
DataApp.py
DaniloGR91/Semana_DataScience_MinerandoDados
99b198c29b0d97e6ccaf1b07c633d0e641dae0eb
[ "MIT" ]
1
2020-05-31T14:07:51.000Z
2020-05-31T14:07:51.000Z
import pandas as pd import streamlit as st from plotly.subplots import make_subplots import plotly.graph_objects as go from sklearn.ensemble import RandomForestRegressor # Cabeçalho st.title('Boston House Prices') st.markdown('A DataApp to show and predict boston house prices') # Abrindo dataframe data = pd.read_csv('...
25.933333
69
0.633997
3445f04708fd647fe45afc07a37460751568d7e9
3,840
py
Python
E03 - Learning programs and models/Architectures/models/denseaspp.py
mialona/Stomatal-segmentation
149d469ec572c41a13d62149d7d62d6805d19697
[ "MIT" ]
null
null
null
E03 - Learning programs and models/Architectures/models/denseaspp.py
mialona/Stomatal-segmentation
149d469ec572c41a13d62149d7d62d6805d19697
[ "MIT" ]
null
null
null
E03 - Learning programs and models/Architectures/models/denseaspp.py
mialona/Stomatal-segmentation
149d469ec572c41a13d62149d7d62d6805d19697
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from .segbase import SegBaseModel from .fcn import _FCNHead __all__ = ['DenseASPP'] class DenseASPP(SegBaseModel): def __init__(self, nclass, backbone_name="resnet101"): self.backbone_name = backbone_name self.nclass = nclass ...
39.183673
120
0.636198
521d2a8dd91ada4ec091e0ce2ca790e5f9564dfe
8,906
py
Python
apero/recipes/nirps_ha/cal_shape_nirps_ha.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
1
2021-03-09T17:49:31.000Z
2021-03-09T17:49:31.000Z
apero/recipes/nirps_ha/cal_shape_nirps_ha.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
43
2020-10-06T18:42:24.000Z
2022-03-28T21:23:10.000Z
apero/recipes/nirps_ha/cal_shape_nirps_ha.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ # CODE NAME HERE # CODE DESCRIPTION HERE Created on 2019-03-23 at 13:01 @author: cook """ from apero import core from apero import lang from apero.core import constants from apero.core.core import drs_database from apero.io import drs_fits from apero.science.calib im...
42.61244
80
0.422636
68071996310f09b7403db61d1e139c8acd0ec10d
4,903
py
Python
jupyter_russian/topic06_features/demo.py
salman394/AI-ml--course
2ed3a1382614dd00184e5179026623714ccc9e8c
[ "Unlicense" ]
1
2018-10-24T08:35:29.000Z
2018-10-24T08:35:29.000Z
jupyter_russian/topic06_features/demo.py
salman394/AI-ml--course
2ed3a1382614dd00184e5179026623714ccc9e8c
[ "Unlicense" ]
null
null
null
jupyter_russian/topic06_features/demo.py
salman394/AI-ml--course
2ed3a1382614dd00184e5179026623714ccc9e8c
[ "Unlicense" ]
3
2019-10-03T22:32:24.000Z
2021-01-13T10:09:22.000Z
import numpy as np import pandas as pd import json from sklearn.base import TransformerMixin EPSILON = 1e-5 class FeatureEngineer(TransformerMixin): def apply(self, df, k, condition): df[k] = df['features'].apply(condition) df[k] = df[k].astype(np.int8) def fit(self, X, y=None, **fit_params...
47.144231
127
0.470936
627e1e102b5559e7cb11f8422215158fddd6f40f
28,946
py
Python
run_experiment_pcgan.py
daverics/pcmelgan
a8b193a0601354c9b2da7c2dd64cd3e2549a9275
[ "MIT" ]
4
2020-06-18T02:02:53.000Z
2022-01-22T15:54:08.000Z
run_experiment_pcgan.py
daverics/pcmelgan
a8b193a0601354c9b2da7c2dd64cd3e2549a9275
[ "MIT" ]
null
null
null
run_experiment_pcgan.py
daverics/pcmelgan
a8b193a0601354c9b2da7c2dd64cd3e2549a9275
[ "MIT" ]
4
2020-06-18T02:02:54.000Z
2022-02-02T11:54:47.000Z
import dataset import librosa from torch.utils.data import DataLoader, random_split import torch import torch.nn.functional as F from utils import * import torchvision.models as models from torch.utils.tensorboard import SummaryWriter import argparse import yaml from pathlib import Path import pandas as pd import time ...
53.307551
267
0.603676
766bb0a4f6c1fd4efb75cb5f376bc4c7c224b885
263
py
Python
crossref/errors.py
ScholarTools/crossref_api_python
49282503bda1e013a6b1bddd171f1ef960bec3f5
[ "MIT" ]
null
null
null
crossref/errors.py
ScholarTools/crossref_api_python
49282503bda1e013a6b1bddd171f1ef960bec3f5
[ "MIT" ]
11
2016-03-01T21:15:33.000Z
2021-12-13T19:43:02.000Z
crossref/errors.py
ScholarTools/crossref_api_python
49282503bda1e013a6b1bddd171f1ef960bec3f5
[ "MIT" ]
1
2018-02-05T15:22:37.000Z
2018-02-05T15:22:37.000Z
# -*- coding: utf-8 -*- """ """ class CrossrefAPIError(Exception): """User errors in usage of the Crossref API""" pass class RequestError(Exception): pass class InvalidDOI(Exception): pass class UnhandledHTTPResonseFailure(Exception): pass
16.4375
50
0.684411
cce60870685cc8bed5ae5ffb2a62a752407e9461
8,626
py
Python
mingpt/model.py
mircean/minGPT
e080e9a6deb8579ca0dd5a67fc42ae54db4478e9
[ "MIT" ]
null
null
null
mingpt/model.py
mircean/minGPT
e080e9a6deb8579ca0dd5a67fc42ae54db4478e9
[ "MIT" ]
null
null
null
mingpt/model.py
mircean/minGPT
e080e9a6deb8579ca0dd5a67fc42ae54db4478e9
[ "MIT" ]
null
null
null
""" GPT model: - the initial stem consists of a combination of token encoding and a positional encoding - the meat of it is a uniform sequence of Transformer blocks - each Transformer is a sequential combination of a 1-hidden-layer MLP block and a self-attention block - all blocks feed into a central residual p...
42.70297
127
0.623348
fca1cd946326176453973ccdee2903c8957cb60b
1,392
py
Python
modules/dbnd-airflow/src/dbnd_airflow/compat/kubernetes_executor.py
kalebinn/dbnd
89b6ac3537f861784be73ffe8989bf63fca7401c
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow/src/dbnd_airflow/compat/kubernetes_executor.py
kalebinn/dbnd
89b6ac3537f861784be73ffe8989bf63fca7401c
[ "Apache-2.0" ]
null
null
null
modules/dbnd-airflow/src/dbnd_airflow/compat/kubernetes_executor.py
kalebinn/dbnd
89b6ac3537f861784be73ffe8989bf63fca7401c
[ "Apache-2.0" ]
null
null
null
from dbnd_airflow._vendor import kubernetes_utils from dbnd_airflow.constants import AIRFLOW_ABOVE_9, AIRFLOW_ABOVE_10 if AIRFLOW_ABOVE_10: from airflow.executors.kubernetes_executor import ( AirflowKubernetesScheduler, KubernetesJobWatcher, KubernetesExecutor, KubeConfig, ) el...
31.636364
84
0.751437
48ef10a6201deae718f7dde78c8ab18c48ca08a0
1,341
py
Python
venv/lib/python3.9/site-packages/google/cloud/dlp_v2/__init__.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/google/cloud/dlp_v2/__init__.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
venv/lib/python3.9/site-packages/google/cloud/dlp_v2/__init__.py
qarik-hanrattyjen/apache-airflow-backport-providers-google-2021.3.3
630dcef73e6a258b6e9a52f934e2dd912ce741f8
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.928571
79
0.747204
b56d1728fad9fe7bbe0bd9a97bb5a46b1f5d6075
7,821
py
Python
data_loader.py
feelpp/brits
f1dffd6ed6d92c3a70a287155d1db3a8d4eac84f
[ "MIT" ]
null
null
null
data_loader.py
feelpp/brits
f1dffd6ed6d92c3a70a287155d1db3a8d4eac84f
[ "MIT" ]
null
null
null
data_loader.py
feelpp/brits
f1dffd6ed6d92c3a70a287155d1db3a8d4eac84f
[ "MIT" ]
null
null
null
import os import time import ujson as json import csv import numpy as np import pandas as pd import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader # Seems to be unused in the rest of the code. # class MySet(Dataset): # def __init__(self): # super(MySet, self).__init__() # ...
31.663968
106
0.577803
7a6e76424eb6916e7d73e2f1d0cad23f98ffd0f7
730
py
Python
1-100/41-50/49-groupAnagram/groupAnagram.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/41-50/49-groupAnagram/groupAnagram.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/41-50/49-groupAnagram/groupAnagram.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
class Solution(object): def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] """ primes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53, \ 59,61,67,71,73,79,83,89,97,101] dictionary = {} result = [] ...
28.076923
64
0.420548
72dae11ac60386a53c9e102e2b45bf9967ce298d
893
py
Python
maro/cli/grass/image.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2020-09-30T09:31:05.000Z
2020-09-30T09:31:05.000Z
maro/cli/grass/image.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
2
2020-12-15T09:13:43.000Z
2020-12-16T08:02:41.000Z
maro/cli/grass/image.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-10-01T09:17:43.000Z
2021-10-01T09:17:43.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from maro.cli.grass.executors.grass_azure_executor import GrassAzureExecutor from maro.cli.utils.checkers import check_details_validity from maro.cli.utils.details import load_cluster_details from maro.cli.utils.lock import lock @check_details...
35.72
117
0.743561
b56bc8c26d37134baa1122e5fcbd8286e6068f7a
1,231
py
Python
data_structures/tree_based/binary_tree/test.py
kwahome/data-structures-and-algos
535b23c63bf384d63c1ebc08d1c32d3dd808297c
[ "Apache-2.0" ]
null
null
null
data_structures/tree_based/binary_tree/test.py
kwahome/data-structures-and-algos
535b23c63bf384d63c1ebc08d1c32d3dd808297c
[ "Apache-2.0" ]
null
null
null
data_structures/tree_based/binary_tree/test.py
kwahome/data-structures-and-algos
535b23c63bf384d63c1ebc08d1c32d3dd808297c
[ "Apache-2.0" ]
null
null
null
import unittest from data_structures.tree_based.binary_tree.tree import Tree class BinaryTreeTests(unittest.TestCase): def setUp(self): self.binary_tree = Tree() def tearDown(self): pass def test_tree_insert(self): data = 5 self.assertEqual(None, self.binary_tree.get_dat...
33.27027
83
0.658002
f8a41afd5381220afe0ccd93208961196c143a6d
2,177
py
Python
openquake/hazardlib/tests/gsim/utils.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
1
2019-08-01T00:28:24.000Z
2019-08-01T00:28:24.000Z
openquake/hazardlib/tests/gsim/utils.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
4
2018-08-31T14:14:35.000Z
2021-10-11T12:53:13.000Z
openquake/hazardlib/tests/gsim/utils.py
gfzriesgos/shakyground-lfs
2caf67cc32e6800286eded2df1efb05973ccf41b
[ "BSD-3-Clause" ]
3
2018-08-31T14:11:00.000Z
2019-07-17T10:06:02.000Z
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2012-2018, GEM Foundation # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the ...
38.192982
75
0.687184
d0bddc90deb43ede3aa2ab4fa1f587e59ee90a11
1,271
py
Python
test/functional/wallet_disableprivatekeys.py
farmscoins/farmcoin
dcfa0e7b33de314cfa1e4d3de1d8e2d894821d43
[ "MIT" ]
1
2019-06-11T08:21:52.000Z
2019-06-11T08:21:52.000Z
test/functional/wallet_disableprivatekeys.py
farmscoins/farmcoin
dcfa0e7b33de314cfa1e4d3de1d8e2d894821d43
[ "MIT" ]
null
null
null
test/functional/wallet_disableprivatekeys.py
farmscoins/farmcoin
dcfa0e7b33de314cfa1e4d3de1d8e2d894821d43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test disable-privatekeys mode. """ from test_framework.test_framework import FarmcoinTestFramework from tes...
35.305556
110
0.715185
a82800f27ae80859d7c7339910172ff5a691e3d7
868
py
Python
setup.py
torchbox/django-tagging-autocomplete
43d9604cb2510cf5ba13a533660b7d14d1d5702b
[ "MIT" ]
2
2015-09-23T23:19:31.000Z
2015-09-24T00:17:45.000Z
setup.py
torchbox/django-tagging-autocomplete
43d9604cb2510cf5ba13a533660b7d14d1d5702b
[ "MIT" ]
null
null
null
setup.py
torchbox/django-tagging-autocomplete
43d9604cb2510cf5ba13a533660b7d14d1d5702b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages long_description = open('README.txt').read() setup( name='django-tagging-autocomplete', version='0.3.1', description='Autocompletion for django-tagging', long_description=long_description, author='Ludwik Trammer', author_ema...
31
64
0.653226
66a84223179cfca341487381bf4f95676e3fa606
2,497
py
Python
HeVanderbiltModel/PBC[noBloch]/LatticeSolutions.py
Bellomia/pyDrude
cd2d6980008ddbe247f1aa50dc238e0d7cf0904f
[ "MIT" ]
null
null
null
HeVanderbiltModel/PBC[noBloch]/LatticeSolutions.py
Bellomia/pyDrude
cd2d6980008ddbe247f1aa50dc238e0d7cf0904f
[ "MIT" ]
null
null
null
HeVanderbiltModel/PBC[noBloch]/LatticeSolutions.py
Bellomia/pyDrude
cd2d6980008ddbe247f1aa50dc238e0d7cf0904f
[ "MIT" ]
null
null
null
def LatticeSolutions(L, a, U0, W, cutoff): # L: Total length | a: Lattice parameter | U0: Perturbation strenght | Spread: Perturbation width | cutoff: Energy cut-off print('Diagonalizing the perturbed Hamiltonian...') import numpy import pylab from cmath import sqrt, sin, cos, exp, pi from...
29.376471
165
0.545855
484cc1a9025a7631393afd97aa749d7fe77e08c4
651
py
Python
common/BaseModel.py
maoxuelin083/restful-Blog
29a08613d71ee6c369dcec9ffb09a2a2ed837431
[ "Apache-2.0" ]
null
null
null
common/BaseModel.py
maoxuelin083/restful-Blog
29a08613d71ee6c369dcec9ffb09a2a2ed837431
[ "Apache-2.0" ]
null
null
null
common/BaseModel.py
maoxuelin083/restful-Blog
29a08613d71ee6c369dcec9ffb09a2a2ed837431
[ "Apache-2.0" ]
null
null
null
from FlaskProject.extendsions import db class BaseModels(db.Model): __abstract__ = True def save(self): try: db.session.add(self) db.session.commit() except Exception as e: print(e) return False return True def delete...
23.25
68
0.551459
b1fa28d7c67325025738d91a2a05dda49060c688
228
py
Python
shoppingcart/admin.py
sa1if3/django_ecommerce
ef6a0a79d4aa0cf518f68227beb6d15fa7729458
[ "BSD-3-Clause" ]
16
2021-07-08T10:42:38.000Z
2022-02-24T05:32:59.000Z
shoppingcart/admin.py
RussQuan/django_ecommerce
84f090dd2471355a513bb13827ea17e18ce2310f
[ "BSD-3-Clause" ]
null
null
null
shoppingcart/admin.py
RussQuan/django_ecommerce
84f090dd2471355a513bb13827ea17e18ce2310f
[ "BSD-3-Clause" ]
4
2021-07-08T10:44:56.000Z
2021-07-12T03:39:40.000Z
from django.contrib import admin from .models import * # Register your models here. @admin.register(Cart) class CartAdmin(admin.ModelAdmin): list_display = ("listing","total_quantity","created_by","created_at","updated_at")
32.571429
86
0.767544
0ed5d31d6bb118b64618572ffa2026febbecd246
5,616
py
Python
poetry/templates/template_executor.py
bennylut/poetry
f35e55d697260ebcd4de03f2272eb40afc450e1d
[ "MIT" ]
10
2021-10-10T02:02:14.000Z
2022-03-01T16:45:28.000Z
poetry/templates/template_executor.py
bennylut/poetry
f35e55d697260ebcd4de03f2272eb40afc450e1d
[ "MIT" ]
2
2021-10-31T07:27:54.000Z
2021-12-05T14:14:30.000Z
poetry/templates/template_executor.py
bennylut/poetry
f35e55d697260ebcd4de03f2272eb40afc450e1d
[ "MIT" ]
1
2021-12-05T15:14:26.000Z
2021-12-05T15:14:26.000Z
import zipfile from contextlib import contextmanager from pathlib import Path from tempfile import TemporaryDirectory from typing import List, Dict, Optional, ContextManager from poetry.core.pyproject.project import Project from poetry.core.vcs import Git from poetry.core.utils.props_ext import cached_property from po...
30.356757
117
0.633725
2a9974268b8baf372ce5c8bbc06cff8ae82e7860
46,206
py
Python
kitsune/wiki/views.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
kitsune/wiki/views.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
kitsune/wiki/views.py
jgmize/kitsune
8f23727a9c7fcdd05afc86886f0134fb08d9a2f0
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime import json import logging import time from django.conf import settings from django.contrib import messages from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied from django.db import connection from django.http import (HttpResponse, HttpResponseR...
36.788217
86
0.641432
c9f99a89abb8aad7636656b84593912ac65862a3
1,118
py
Python
cohesity_management_sdk/models/type_sql_protection_source_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/type_sql_protection_source_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/type_sql_protection_source_enum.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. class TypeSqlProtectionSourceEnum(object): """Implementation of the 'Type_SqlProtectionSource' enum. Specifies the type of the managed Object in a SQL Protection Source. Examples of SQL Objects include 'kInstance' and 'kDatabase'. 'kInstance' ind...
30.216216
72
0.711986
a15203fce68e0225a09484576eb0c5044acde100
1,098
py
Python
examples/animations/warping.py
colinmford/coldtype
8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985
[ "Apache-2.0" ]
null
null
null
examples/animations/warping.py
colinmford/coldtype
8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985
[ "Apache-2.0" ]
null
null
null
examples/animations/warping.py
colinmford/coldtype
8462dbd5f65f3ef8f3cbc8662a866b7e20ec5985
[ "Apache-2.0" ]
null
null
null
from coldtype import * from coldtype.warping import warp_fn from coldtype.fx.skia import phototype Style.RegisterShorthandPrefix("≈", "~/Type/fonts/fonts") peshka = Font.Cacheable("≈/CoFoPeshkaVariableV0.5.ttf") loop = Loop(150, 15, [ # some keyframes dict(wdth=0, wght=0, rotate=-15, leading=200, font_siz...
37.862069
62
0.615665
91274dd79740393be58a86e7b52975d4460a763b
8,823
py
Python
mlir/test/Bindings/Python/dialects/linalg/opdsl/emit_structured_generic.py
keryell/llvm-2
4dc23a26d1bd6ced23969c0525dedbddf8c6fddc
[ "Apache-2.0" ]
null
null
null
mlir/test/Bindings/Python/dialects/linalg/opdsl/emit_structured_generic.py
keryell/llvm-2
4dc23a26d1bd6ced23969c0525dedbddf8c6fddc
[ "Apache-2.0" ]
null
null
null
mlir/test/Bindings/Python/dialects/linalg/opdsl/emit_structured_generic.py
keryell/llvm-2
4dc23a26d1bd6ced23969c0525dedbddf8c6fddc
[ "Apache-2.0" ]
null
null
null
# RUN: %PYTHON %s | FileCheck %s from typing import Optional, Sequence from mlir.ir import * from mlir.dialects import builtin from mlir.dialects import linalg from mlir.dialects import std from mlir.dialects.linalg.opdsl.lang import * @linalg_structured_op def matmul_mono(A=TensorDef(T, S.M, S.K), ...
48.745856
98
0.535872
ff41f41402ac874f70fc7c285d5ba81ee35ff4ff
655
py
Python
app/main/forms.py
agladyshev/FSND-brewlocker
17e8c0411b0f1f87c2875e7622f30a23ccf8b75c
[ "MIT" ]
null
null
null
app/main/forms.py
agladyshev/FSND-brewlocker
17e8c0411b0f1f87c2875e7622f30a23ccf8b75c
[ "MIT" ]
null
null
null
app/main/forms.py
agladyshev/FSND-brewlocker
17e8c0411b0f1f87c2875e7622f30a23ccf8b75c
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileRequired, FileAllowed from wtforms import StringField, TextAreaField, SubmitField from wtforms.validators import Required, Length, URL from wtforms import ValidationError from .. import images class ItemForm(FlaskForm): header = StringField...
40.9375
74
0.732824
e73f3790370ad96d8c899fb14c1fbd21739e3196
4,410
py
Python
aleph/logic/profiles.py
aaronarnold2/aleph
1728f4db8863554d5b0722546838970e53ec72bd
[ "MIT" ]
2
2021-01-09T17:27:23.000Z
2021-01-09T17:27:25.000Z
aleph/logic/profiles.py
nabla-c0d3/aleph
d0e4e04e23cb7ee3971298e33ccb1c5171ae0779
[ "MIT" ]
null
null
null
aleph/logic/profiles.py
nabla-c0d3/aleph
d0e4e04e23cb7ee3971298e33ccb1c5171ae0779
[ "MIT" ]
null
null
null
import logging from datetime import datetime from sqlalchemy.orm import aliased from aleph.util import PairwiseDict from aleph.core import db from aleph.model import Collection, EntitySet, EntitySetItem, Judgement log = logging.getLogger(__name__) def collection_profiles(collection_id, judgements=None, deleted=Fals...
37.058824
87
0.703855
d863b4396abb0ffe59d743d211d8edb93c482b2e
1,071
py
Python
smsAlert/smsAlert.py
brijkishor7828/API-Integration-Sample-Code-Python
df8c276eeb221fc605848fd2af9f1795c0d31b2d
[ "0BSD" ]
null
null
null
smsAlert/smsAlert.py
brijkishor7828/API-Integration-Sample-Code-Python
df8c276eeb221fc605848fd2af9f1795c0d31b2d
[ "0BSD" ]
null
null
null
smsAlert/smsAlert.py
brijkishor7828/API-Integration-Sample-Code-Python
df8c276eeb221fc605848fd2af9f1795c0d31b2d
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- import json import requests class smsAlertException(Exception): def __init__(self, message): self.message = message def get_message(self): return self.message class smsAlertMsg(object): """A simple Python API for the smsAlert It includes methods for callin...
26.775
61
0.524743
a671dd7a9004808f6531650fc6d23bb866931e2e
525
py
Python
rover/core/servers/ArduinoSocketServer/misc/sqlFunctions.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
16
2017-09-01T23:33:17.000Z
2021-01-04T02:41:19.000Z
rover/core/servers/ArduinoSocketServer/misc/sqlFunctions.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
56
2017-08-30T01:14:46.000Z
2021-02-28T22:18:44.000Z
rover/core/servers/ArduinoSocketServer/misc/sqlFunctions.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
15
2017-09-14T19:55:55.000Z
2020-05-03T19:44:39.000Z
import sqlite3 from sqlite3 import Error def storeMessage(time, distance, messageType): conn = sqlite3.connect('telemetry.db', check_same_thread=False) c = conn.cursor() try: c.execute('''CREATE TABLE IF NOT EXISTS telemetry (time double PRIMARY KEY, distance double NOT NULL, messageType intege...
29.166667
95
0.685714
7fa0b7416a01cba57603209b516a2f4ea3a0dfcb
2,333
py
Python
tests-python/test_batch_waveforms_from_files.py
babycat-io/babycat
39ecba8469e698a990bc9dc52e5de9ae78492a60
[ "MIT" ]
8
2021-05-10T23:12:14.000Z
2022-02-23T06:54:31.000Z
tests-python/test_batch_waveforms_from_files.py
babycat-io/babycat
39ecba8469e698a990bc9dc52e5de9ae78492a60
[ "MIT" ]
13
2021-06-01T05:31:17.000Z
2022-03-25T22:24:18.000Z
tests-python/test_batch_waveforms_from_files.py
babycat-io/babycat
39ecba8469e698a990bc9dc52e5de9ae78492a60
[ "MIT" ]
1
2021-06-01T05:24:52.000Z
2021-06-01T05:24:52.000Z
""" Tests loading waveform from file. These tests mirror the ones in ``../tests/test_waveform_batch_from_files.rs`` """ from fixtures import * import babycat ALL_SAME_FILENAMES = [COF_FILENAME, COF_FILENAME, COF_FILENAME] def test_all_same_file_1(): batch = babycat.batch.waveforms_from_files(ALL_SAME_FILENAMES...
34.820896
77
0.737248
b50ff04ac894b1b7f8cd4eae732e6c03667ca500
647
py
Python
thenewboston/utils/files.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
null
null
null
thenewboston/utils/files.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
3
2021-03-30T14:03:41.000Z
2021-09-22T19:30:31.000Z
thenewboston/utils/files.py
rajat4665/thenewboston-python
df842c793fe7bfd8731fd8746abf25747c9e569e
[ "MIT" ]
null
null
null
import json from hashlib import sha3_256 as sha3 def get_file_hash(file): """ Return hash value of file """ h = sha3() with open(file, 'rb') as file: chunk = 0 while chunk != b'': chunk = file.read(1024) h.update(chunk) return h.hexdigest() def rea...
15.404762
36
0.525502
948c15483503842770b133c829cdad2605f2a828
6,633
py
Python
test/unitTests/stlOperatorTests/testTimedUntil.py
pieter-hendriks/STL-monitoring
114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df
[ "MIT" ]
null
null
null
test/unitTests/stlOperatorTests/testTimedUntil.py
pieter-hendriks/STL-monitoring
114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df
[ "MIT" ]
null
null
null
test/unitTests/stlOperatorTests/testTimedUntil.py
pieter-hendriks/STL-monitoring
114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df
[ "MIT" ]
null
null
null
""" Test the timed until operation (both the efficient and syntax variants) """ import unittest from stl.signals import Signal, BooleanSignal from stl.utility import Interval from stl.operators import computeTimedUntil, computeSyntaxUntil, computeBooleanUntil from .untilTestData import TESTCASE1_INTERVAL_LOWERBOUND, ...
46.711268
144
0.732248
83438ffa0de9a825d8bc295785047481855f9182
3,223
py
Python
aiopyfix/message.py
qwhelan/AIOPyFix
b7d172db9d30d1023e7161c35d30347bea33a085
[ "CC0-1.0" ]
12
2020-02-11T09:16:17.000Z
2021-12-29T06:31:31.000Z
aiopyfix/message.py
qwhelan/AIOPyFix
b7d172db9d30d1023e7161c35d30347bea33a085
[ "CC0-1.0" ]
2
2021-08-30T15:09:10.000Z
2021-09-16T12:55:27.000Z
aiopyfix/message.py
qwhelan/AIOPyFix
b7d172db9d30d1023e7161c35d30347bea33a085
[ "CC0-1.0" ]
8
2019-02-04T21:02:07.000Z
2021-11-07T15:14:51.000Z
from collections import OrderedDict from enum import Enum class MessageDirection(Enum): INBOUND = 0 OUTBOUND = 1 class _FIXRepeatingGroupContainer: def __init__(self): self.groups = [] def addGroup(self, group, index): if index == -1: self.groups.append(group) else...
27.547009
81
0.585479
09dc5c91e56457ca79126b900d31720e868778e2
10,888
py
Python
tests/test_api.py
YixinLin294/flask_demo
34b92947632bb01e65f700a6ac175841d966e3a2
[ "MIT" ]
null
null
null
tests/test_api.py
YixinLin294/flask_demo
34b92947632bb01e65f700a6ac175841d966e3a2
[ "MIT" ]
4
2020-03-24T16:46:50.000Z
2021-06-01T23:27:42.000Z
tests/test_api.py
YixinLin294/flask_demo
34b92947632bb01e65f700a6ac175841d966e3a2
[ "MIT" ]
null
null
null
import unittest import json import re from base64 import b64encode from flask import url_for from app import create_app, db from app.models import User, Role, Post, Comment class APITestCase(unittest.TestCase): def setUp(self): self.app = create_app('testing') self.app_context = self.app...
41.086792
94
0.58165
42ad7c7ab75d523718c244b944c1efdc79535ee0
347
py
Python
CyberPi V1/Python with CyberPi 037(mkcloud 聊天机器人).py
SCSZCC/PythonWithHardware
3e5ae890cb7a8e5e2c5a636092aca9ce21728ab2
[ "MIT" ]
2
2020-08-15T02:49:19.000Z
2020-08-15T02:49:31.000Z
CyberPi V1/Python with CyberPi 037(mkcloud 聊天机器人).py
SCSZCC/PythonWithHardware
3e5ae890cb7a8e5e2c5a636092aca9ce21728ab2
[ "MIT" ]
null
null
null
CyberPi V1/Python with CyberPi 037(mkcloud 聊天机器人).py
SCSZCC/PythonWithHardware
3e5ae890cb7a8e5e2c5a636092aca9ce21728ab2
[ "MIT" ]
1
2022-02-24T05:30:30.000Z
2022-02-24T05:30:30.000Z
""" 名称:037 mkcloud上的聊天机器人-小思 硬件: 童芯派 功能介绍:简单的模拟一个登录界面 难度:⭐⭐ 支持的模式:上传、在线都支持 使用到的API及功能解读: 1. mkcloud.robot.chat(str) str:字符串,填入要聊天的内容,返回值为字符串,为机器人给出的回复。 """ # ---------程序分割线----------------程序分割线----------------程序分割线---------- import mkcloud while True: say = input("请输入要聊天内容:") response = mkcloud.robot.cha...
14.458333
68
0.605187
ae37a8a8de9daeb124bc8ecdc88b259511f64bef
1,684
py
Python
pangea/core/migrations/0006_auto_20200905_2245.py
LongTailBio/pangea-django
630551dded7f9e38f95eda8c36039e0de46961e7
[ "MIT" ]
null
null
null
pangea/core/migrations/0006_auto_20200905_2245.py
LongTailBio/pangea-django
630551dded7f9e38f95eda8c36039e0de46961e7
[ "MIT" ]
27
2020-03-26T02:55:12.000Z
2022-03-12T00:55:04.000Z
pangea/core/migrations/0006_auto_20200905_2245.py
LongTailBio/pangea-django
630551dded7f9e38f95eda8c36039e0de46961e7
[ "MIT" ]
1
2021-09-14T08:15:54.000Z
2021-09-14T08:15:54.000Z
# Generated by Django 3.0.3 on 2020-09-05 22:45 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import pangea.core.encrypted_fields import uuid class Migration(migrations.Migration): dependencies = [ ('core', '0005_auto_20200822_0140'...
38.272727
121
0.61342
46a5ec12bf67039b685787a9cb47e0727daee2f1
1,132
py
Python
src/app/modules/examples/module_random_volume.py
balintfodor/Build3D
b735129e380a414d62a1d91556f5f52674f1f6f9
[ "MIT" ]
null
null
null
src/app/modules/examples/module_random_volume.py
balintfodor/Build3D
b735129e380a414d62a1d91556f5f52674f1f6f9
[ "MIT" ]
5
2021-03-19T09:28:07.000Z
2022-03-12T00:09:14.000Z
src/app/modules/examples/module_random_volume.py
balintfodor/Build3D
b735129e380a414d62a1d91556f5f52674f1f6f9
[ "MIT" ]
1
2019-12-23T16:44:49.000Z
2019-12-23T16:44:49.000Z
import a3dc_module_interface as a3 import numpy as np def module_main(ctx): w = a3.inputs['width'] h = a3.inputs['height'] d = a3.inputs['depth'] seed = a3.inputs['seed'] np.random.seed(seed) vol = np.random.rand(w, h, d) print('your volume is ready! 🍻') a3.outputs['volume'] = a3.Mu...
35.375
70
0.519435
418dd604251352a11dc8cb504b8aa278f4c82bff
10,775
py
Python
cohorts_proj/api/adapters/unm.py
gellerjulia/harmonization-website
c47b109d9110e34520ef43469b6b5ccac01cc178
[ "MIT" ]
1
2020-09-20T02:32:01.000Z
2020-09-20T02:32:01.000Z
cohorts_proj/api/adapters/unm.py
gellerjulia/harmonization-website
c47b109d9110e34520ef43469b6b5ccac01cc178
[ "MIT" ]
20
2020-04-17T14:01:41.000Z
2022-03-12T00:30:23.000Z
cohorts_proj/api/adapters/unm.py
gellerjulia/harmonization-website
c47b109d9110e34520ef43469b6b5ccac01cc178
[ "MIT" ]
3
2020-10-08T00:24:51.000Z
2021-06-02T20:07:30.000Z
import pandas as pd import numpy as np from datasets.models import RawUNM from api.dilutionproc import predict_dilution from api.analysis import add_confound import statsmodels.api as sm import statsmodels.formula.api as smf import statsmodels def get_dataframe(): """Returns a pandas DataFrame with the correct ...
37.940141
100
0.560278
e5c70e753723b9a97cfa6bf00cfc91cacef066a7
862
py
Python
Math/python/leetcode67_add_Binary.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
Math/python/leetcode67_add_Binary.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
Math/python/leetcode67_add_Binary.py
wenxinjie/leetcode
c459a01040c8fe0783e15a16b8d7cca4baf4612a
[ "Apache-2.0" ]
null
null
null
# Given two binary strings, return their sum (also a binary string). # The input strings are both non-empty and contains only characters 1 or 0. # Example 1: # Input: a = "11", b = "1" # Output: "100" # Example 2: # Input: a = "1010", b = "1011" # Output: "10101" class Solution: def addBinary(self, a, b): ...
22.102564
75
0.433875
ea23f1e1511e9420d2fabf753649b8833b8dfdbf
8,827
py
Python
intersight/model/storage_flex_flash_controller_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/storage_flex_flash_controller_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/storage_flex_flash_controller_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
50.153409
1,678
0.643594
a1defa967f02bbb8375847a9403e6d4d5512cc2c
1,912
py
Python
crosswalk_client/methods/entity/best_match_or_create.py
The-Politico/django-crosswalk-client
57d7658ed9b91be5d1c5d48398187c7b05acfffe
[ "MIT" ]
3
2020-05-26T16:31:19.000Z
2021-12-22T16:42:10.000Z
crosswalk_client/methods/entity/best_match_or_create.py
The-Politico/django-crosswalk-client
57d7658ed9b91be5d1c5d48398187c7b05acfffe
[ "MIT" ]
6
2019-04-05T17:20:24.000Z
2019-04-13T13:33:01.000Z
crosswalk_client/methods/entity/best_match_or_create.py
The-Politico/django-crosswalk-client
57d7658ed9b91be5d1c5d48398187c7b05acfffe
[ "MIT" ]
null
null
null
from urllib.parse import urljoin import requests from crosswalk_client.encoder import encode from crosswalk_client.exceptions import BadResponse from crosswalk_client.objects.entity import EntityObject from crosswalk_client.validators.entity import ( validate_block_attrs_kwarg, validate_create_attrs_kwarg, ...
29.875
75
0.611925
bcbdb3021669a72639707df7af5231c14fe70cb2
257
py
Python
django/stock/urls.py
nah990/StockF
58f719728f4072186459d0ca5651624eab820c5e
[ "MIT" ]
null
null
null
django/stock/urls.py
nah990/StockF
58f719728f4072186459d0ca5651624eab820c5e
[ "MIT" ]
3
2021-12-27T02:05:58.000Z
2022-03-23T00:06:14.000Z
django/stock/urls.py
nah990/StockF
58f719728f4072186459d0ca5651624eab820c5e
[ "MIT" ]
null
null
null
from django.urls import path from django.views.generic import TemplateView app_name = 'stock' urlpatterns = [ path('test', TemplateView.as_view(template_name="stock/index.html")), path('', TemplateView.as_view(template_name="stock/index.html")), ]
28.555556
73
0.747082
dc06ade5272e3478f34ba3f0439ac9ff43111ca0
1,676
py
Python
auv_control_pi/tests/test_simulator.py
adrienemery/auv-control-pi
633fe89b652b07eb6ebe03c0550daa211b122297
[ "MIT" ]
9
2016-10-02T06:59:37.000Z
2020-09-24T15:36:10.000Z
auv_control_pi/tests/test_simulator.py
adrienemery/auv-control-pi
633fe89b652b07eb6ebe03c0550daa211b122297
[ "MIT" ]
null
null
null
auv_control_pi/tests/test_simulator.py
adrienemery/auv-control-pi
633fe89b652b07eb6ebe03c0550daa211b122297
[ "MIT" ]
4
2019-01-12T23:09:34.000Z
2020-11-05T14:52:42.000Z
import pytest from pygc import great_circle from ..simulator import Navitgator, GPS, Motor, AHRS from ..components.navigation import Point, distance_to_point @pytest.fixture def sim(): starting_point = Point(50, 120) return Navitgator(gps=GPS(), current_location=starting_point, ...
31.622642
77
0.671241
fd45e02f1535a505a9a431d5f9baf5fec189eda6
4,688
py
Python
tamr_unify_client/base_collection.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
9
2019-08-13T11:07:06.000Z
2022-01-14T18:15:13.000Z
tamr_unify_client/base_collection.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
166
2019-08-09T18:51:05.000Z
2021-12-02T15:24:15.000Z
tamr_unify_client/base_collection.py
ianbakst/tamr-client
ae7a6190a2251d31f973f9d5a7170ac5dc097f97
[ "Apache-2.0" ]
21
2019-08-12T15:37:31.000Z
2021-06-15T14:06:23.000Z
from abc import abstractmethod from collections.abc import Iterable class BaseCollection(Iterable): """Base class for client-side collections. :param client: Delegate underlying API calls to this client. :type client: :class:`~tamr_unify_client.Client` :param api_path: API path for this collection. E...
38.113821
138
0.656143
1d0f8c64fe8122e852ac6ba76fea974737e10080
672
py
Python
ExerciciosPYTHON/PythonCeV/053.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
ExerciciosPYTHON/PythonCeV/053.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
2
2022-03-18T16:06:07.000Z
2022-03-18T16:55:29.000Z
ExerciciosPYTHON/PythonCeV/053.py
Samuel-Melo890/Python-Desafios
2abc7734d6a6c1f5ab67421f792d6889d93bac94
[ "MIT" ]
null
null
null
print('='*8,'Detector de Palíndromo','='*8) f = str(input('Digite uma frase: ')).strip().upper().split() fj = ''.join(f) r = fj[::-1] print('A frase {}{}{} de trás para frente fica {}{}{}.'.format('\033[4m', fj, '\033[m', '\033[4m', r, '\033[m')) if fj == r: print('Portanto essa frase é um {}PALÍNDROMO{}!'.format(...
35.368421
115
0.543155
d6e810f6e9e19d9716f8e921bd30fe5676f69f23
812
py
Python
example/speech-demo/tests/test_nothing.py
IIMarch/mxnet
64c35f2d41f5bad3f9cbf4d4fda9cf3bf3dadb4b
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
example/speech-demo/tests/test_nothing.py
IIMarch/mxnet
64c35f2d41f5bad3f9cbf4d4fda9cf3bf3dadb4b
[ "Apache-2.0" ]
58
2017-05-30T23:25:32.000Z
2019-11-18T09:30:54.000Z
example/speech-demo/tests/test_nothing.py
IIMarch/mxnet
64c35f2d41f5bad3f9cbf4d4fda9cf3bf3dadb4b
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.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...
40.6
62
0.770936
1383b333bce4199ba0c3d53c7b33217efeb2a454
268
py
Python
tests/testapp/models.py
sen-den/django-link-shortener
9dcfcf362a14b11a1fa203b376a4bd2840450b09
[ "MIT" ]
24
2018-06-09T10:00:53.000Z
2022-03-04T19:49:49.000Z
tests/testapp/models.py
sen-den/django-link-shortener
9dcfcf362a14b11a1fa203b376a4bd2840450b09
[ "MIT" ]
8
2018-06-10T20:45:20.000Z
2022-02-20T14:50:07.000Z
tests/testapp/models.py
sen-den/django-link-shortener
9dcfcf362a14b11a1fa203b376a4bd2840450b09
[ "MIT" ]
7
2019-05-22T06:25:38.000Z
2022-03-04T01:03:17.000Z
from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class CustomUser(AbstractUser): email = models.EmailField(unique=True, error_messages={ 'unique': "A user with that email already exists." })
26.8
59
0.738806
5d06f31ba2bf9f1fb58640d75929604c576c9827
616
py
Python
bin/startup.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
1
2021-11-16T00:58:43.000Z
2021-11-16T00:58:43.000Z
bin/startup.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
44
2022-01-20T01:31:32.000Z
2022-03-31T01:50:41.000Z
bin/startup.py
tdilauro/circulation-core
8086ca8cbedd5f4b2a0c44df97889d078ff79aac
[ "Apache-2.0" ]
1
2021-05-12T19:11:52.000Z
2021-05-12T19:11:52.000Z
from os import path, sys # Good overview of what is going on here: # https://stackoverflow.com/questions/11536764/how-to-fix-attempted-relative-import-in-non-package-even-with-init-py # Once we have a stable package name for core, it should be easier to do away with something like this # for now we add the core compon...
51.333333
116
0.784091
8d53d257e96cfb17ba8b88d7de2e5c41fa65a818
6,628
py
Python
ews-fetch-calendar.py
chckyn/ews-orgmode
a63ee0f703912812702c17b139ba6eabc441ddfd
[ "MIT" ]
50
2015-01-19T16:45:13.000Z
2021-11-19T13:57:44.000Z
ews-fetch-calendar.py
chckyn/ews-orgmode
a63ee0f703912812702c17b139ba6eabc441ddfd
[ "MIT" ]
6
2015-03-03T07:54:23.000Z
2020-06-16T13:20:21.000Z
ews-fetch-calendar.py
chckyn/ews-orgmode
a63ee0f703912812702c17b139ba6eabc441ddfd
[ "MIT" ]
20
2015-01-10T20:41:31.000Z
2021-07-13T18:16:57.000Z
#!/usr/bin/python # This script was inspired by: # http://blogs.msdn.com/b/exchangedev/archive/2009/02/05/quick-and-dirty-unix-shell-scripting-with-ews.aspx # http://ewsmacwidget.codeplex.com/ import os from lxml import etree from datetime import datetime from datetime import date from datetime import timedelta from ...
32.174757
131
0.702625
d9f4fda51b20e161332b506d6241e4f74b1703e1
2,880
py
Python
test/test_volume.py
jonazpiazu/rocker
37a60a046fd858f4a0b812de70f88444ddae56cc
[ "Apache-2.0" ]
259
2019-01-09T06:39:04.000Z
2022-03-30T11:29:04.000Z
test/test_volume.py
jonazpiazu/rocker
37a60a046fd858f4a0b812de70f88444ddae56cc
[ "Apache-2.0" ]
150
2019-01-03T00:06:16.000Z
2022-03-17T01:44:20.000Z
test/test_volume.py
osrf/crocker
556596dc099f823a7364b61e68e68b9831eed4b3
[ "Apache-2.0" ]
37
2019-02-21T20:39:00.000Z
2022-01-03T20:02:17.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...
41.142857
90
0.678472
514dbdb6ed886c1e6bed7d80c4bba264cb875e5d
3,319
py
Python
goodbadcomment/HcpChapingGet.py
MyCodeBattle/ManyPython
eee07c96e3048248ce281a9203fc8cd1a38f3f2a
[ "MIT" ]
null
null
null
goodbadcomment/HcpChapingGet.py
MyCodeBattle/ManyPython
eee07c96e3048248ce281a9203fc8cd1a38f3f2a
[ "MIT" ]
null
null
null
goodbadcomment/HcpChapingGet.py
MyCodeBattle/ManyPython
eee07c96e3048248ce281a9203fc8cd1a38f3f2a
[ "MIT" ]
null
null
null
import pandas as pd from loguru import logger import arrow import time import json import requests import tqdm from retrying import retry headers = {'Accept': 'application/json', 'Content-Type': 'application/json', 'Cookie': 'G_zj_gsid=08890c40500a4a8ab21e0b2b9e9e47b1-gsid-', 'User-Agent': 'Mozilla/5.0 (Macintosh; Int...
46.097222
814
0.712263
02439bc423929cf57d69d44d014931c16a74ad5e
1,717
py
Python
spinoffs/inference_gym/targets/banana_test.py
KonstantinKlepikov/probability
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
[ "Apache-2.0" ]
1
2020-08-28T21:01:19.000Z
2020-08-28T21:01:19.000Z
spinoffs/inference_gym/targets/banana_test.py
KonstantinKlepikov/probability
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
[ "Apache-2.0" ]
null
null
null
spinoffs/inference_gym/targets/banana_test.py
KonstantinKlepikov/probability
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2020 The TensorFlow Probability 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 ...
32.396226
78
0.70763
4b92b5d50fddc227448a20d9adddc59cc2a73c4c
2,134
py
Python
pyjobs/core/management/commands/send_weekly_mailing.py
Mdslino/PyJobs
d2496d58067503c3304a6c59052238b1f097472b
[ "BSD-3-Clause" ]
132
2017-10-27T23:54:47.000Z
2022-03-15T12:10:10.000Z
pyjobs/core/management/commands/send_weekly_mailing.py
Mdslino/PyJobs
d2496d58067503c3304a6c59052238b1f097472b
[ "BSD-3-Clause" ]
129
2017-09-05T04:22:50.000Z
2022-03-12T01:06:49.000Z
pyjobs/core/management/commands/send_weekly_mailing.py
Mdslino/PyJobs
d2496d58067503c3304a6c59052238b1f097472b
[ "BSD-3-Clause" ]
82
2017-10-28T00:14:04.000Z
2021-07-27T20:00:40.000Z
import os from datetime import datetime from django.core.management.base import BaseCommand from django.db import IntegrityError from django.template.loader import get_template from django.core.mail import EmailMultiAlternatives from django.template import Context from pyjobs.core.models import Job from pyjobs.market...
27.714286
87
0.66448
b1df6c42c5729736b50609dcb895f9b2216f8075
58,316
py
Python
angr/calling_conventions.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/calling_conventions.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
angr/calling_conventions.py
Alexeyan/angr
445fa2036584598d310ffd58436566847bbc7e1c
[ "BSD-2-Clause" ]
null
null
null
import logging import claripy import archinfo from typing import Union, Optional, List from .sim_type import SimTypeChar from .sim_type import SimTypePointer from .sim_type import SimTypeFixedSizeArray from .sim_type import SimTypeArray from .sim_type import SimTypeString from .sim_type import SimTypeFunction from .s...
40.024708
156
0.617138
e07725830b72468e881c6a291346bef2ccc8e4a3
39
py
Python
tests/__init__.py
BitKnitting/FHmonitor
317bf9bacadba48c437f5478cbd8227bcc644456
[ "MIT" ]
null
null
null
tests/__init__.py
BitKnitting/FHmonitor
317bf9bacadba48c437f5478cbd8227bcc644456
[ "MIT" ]
null
null
null
tests/__init__.py
BitKnitting/FHmonitor
317bf9bacadba48c437f5478cbd8227bcc644456
[ "MIT" ]
null
null
null
"""Unit test package for FHmonitor."""
19.5
38
0.692308
289d73273919563d91698b5d38a093f11592a5a4
17,586
py
Python
keras_transformer/attention.py
ExpectationMax/keras-transformer
80094d869148bdd857036e7aee9175b82f48221b
[ "MIT" ]
3
2020-05-23T14:19:34.000Z
2021-04-27T01:20:07.000Z
keras_transformer/attention.py
ExpectationMax/keras-transformer
80094d869148bdd857036e7aee9175b82f48221b
[ "MIT" ]
null
null
null
keras_transformer/attention.py
ExpectationMax/keras-transformer
80094d869148bdd857036e7aee9175b82f48221b
[ "MIT" ]
1
2020-12-08T18:17:46.000Z
2020-12-08T18:17:46.000Z
import numpy as np # noinspection PyPep8Naming import tensorflow as tf from tensorflow.keras import backend as K from tensorflow.keras.layers import Layer from tensorflow.keras.utils import get_custom_objects class _BaseMultiHeadAttention(Layer): """ Base class for two types of Multi-head attention layers: ...
46.278947
79
0.576254