blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d91821e5a8a69cd511d74bc1715f78c9f263421 | 19a2e8444edba5dcf7405e665112359496f7eeab | /build/counter_node/catkin_generated/pkg.installspace.context.pc.py | fb6d507c2e278b74cf27338a4edf80f92a268518 | [] | no_license | okreng/ProjectCourseTasks | cd57c7c25fecd5198e57464d4354b1bb812e5f99 | d8b79149bb1c2457324651a8e259a5ed4c4fe537 | refs/heads/master | 2021-07-08T11:54:24.902722 | 2017-10-03T04:16:22 | 2017-10-03T04:16:22 | 105,580,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/okrengel/catkin_ws/install/include".split(';') if "/home/okrengel/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".spli... | [
"okrengel46@gmail.com"
] | okrengel46@gmail.com |
4db4ead4d9e8fc01e987b14c56aca330364ea2b7 | 6920575dc95c6800fb8e8088719afa88931281b5 | /tests/validator/test_validating_a_motion.py | 8f6a6c4882be98bfdbdde320c887b6a363fa5e59 | [] | no_license | pipermerriam/ethereum-alarm-governance | 091de3a3f72c95e097a24bd05a1d7ebe4738a01b | 1b4a9a0355976f92e88396582a64fdfb50bbe858 | refs/heads/master | 2023-08-28T09:39:44.191755 | 2016-02-15T22:18:18 | 2016-02-15T22:18:18 | 47,724,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import pytest
deploy_contracts = []
ONE_DAY = 24 * 60 * 60
@pytest.mark.parametrize(
"quorium,pass_percentage,debate_period,executor,expected",
(
(10000, 51, ONE_DAY, "0xd3cda913deb6f67967b99d67acdfa1712c293601", True),
(10001, 51, ONE_DAY, "0xd3cda913deb6f67967b99d67acdfa1712c293601", Tru... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
d968232fc5e52bb05f5ea5243f36ae7afc71561c | 67384b87b1f3932f989b559d832809f1292cc33c | /pythonquickstart/build/lib/bin/pythonquickstart.py | ddae685bda5098ce601ff39d2e0513d8fa641240 | [] | no_license | weiwongfaye/experiment_projects | e88f174faff3946e83e85464ef3ca14a4175e45f | af6036dc38121b9e3379a085caf72b67c36121a1 | refs/heads/master | 2020-04-05T23:17:23.714438 | 2017-08-01T08:41:50 | 2017-08-01T08:41:50 | 30,822,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | #!/usr/bin/env python2
from pythonquickstart import *
def main():
pass
if __name__ == "__main__":
main() | [
"weiwongfaye@gmail.com"
] | weiwongfaye@gmail.com |
a0c8241bd312fe171868b2198fe72f2c99ce62f1 | 71ee46f14a263159fdde9390c3f87eb744c0d035 | /core/admin.py | c83330a230888f85f6c8c0d6cf682ddc8d5a54a8 | [] | no_license | hoffmannchen/CourseSystem | 8a6aefdcf8fabafbff442ec9dcbcf13b69e71501 | c0bfeedc94c9c51c5e25714734408dbd1e5f8392 | refs/heads/master | 2023-07-25T05:27:32.433398 | 2021-08-26T23:38:54 | 2021-08-26T23:38:54 | 399,674,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from interface import admin_interface
def register():
while True:
username = input("请输入用户名: ").strip()
password = input("请密码: ").strip()
re_password = input("请确认密码: ").strip()
if password == re_password:
admin_interface.admin_register_interface(username, password)
... | [
"hoffmannchen@gmail.com"
] | hoffmannchen@gmail.com |
bba328c66530bfcd80a42b528fe3afbcb6179a03 | 0b3d3e6473215d5400f2ce26f0d651bd86aca31a | /build/ros_controllers/diff_drive_controller/catkin_generated/pkg.develspace.context.pc.py | 57980708cca8e7ca4504ece70eb678093d7c2b33 | [] | no_license | DonJons42/Astek-Projet-Tondeuse | eb7e39d6b7d727fb5abeff48be74ac9b5507aa51 | ef545ac4a1dbb139766fa5cf2a9df5d1cae20f1b | refs/heads/master | 2020-04-20T01:18:55.908951 | 2019-01-31T15:07:34 | 2019-01-31T15:07:34 | 168,541,973 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/stagiaire019/astek_ws/devel/include;/home/stagiaire019/astek_ws/src/ros_controllers/diff_drive_controller/include".split(';') if "/home/stagiaire019/astek_ws/devel/include;/home/stagiaire019/aste... | [
"adsquall@gmail.com"
] | adsquall@gmail.com |
61653cbca41f2b6c3bc62c1719bfcf84ebf6fd36 | e8be0846b32edc67fd436fffa91d9888935f7104 | /common/communication.py | b0dee48da48dcbabafcf8d1285c3fc40c08a9f05 | [] | no_license | usnehal/split_models | a3de0a0d0aaa03f3d17d3653608803103a8df801 | f1415b87ccc7ff6826f5a735ac80730162752a1b | refs/heads/main | 2023-07-07T15:18:32.721002 | 2021-08-14T06:02:24 | 2021-08-14T06:02:24 | 395,880,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,375 | py | import socket
import json
import zlib
import threading
from common.logger import Logger
class Client:
def __init__(self,cfg):
self.cfg = cfg
# self.s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
def connect(self):
Logger.debug_print("connect:Entry")
self.s = socket.socke... | [
"snehal.v.uphale@gmail.com"
] | snehal.v.uphale@gmail.com |
ef9c3946f5e3c8e36462e5f64ccd0988feaba25b | f89a102381207924e1d625fa6f1610c243dcc9da | /clientes/migrations/0001_initial.py | fa055216a9f5489cba7c3583200705a33e67976b | [] | no_license | mrshoga/gestao-clientes-django | 1d1db30ae504d60dff7697820bfb232cc7b274a0 | 8b22038c47bdaf76d7b1881d4c149a1f9c347169 | refs/heads/master | 2020-06-28T20:31:27.350738 | 2019-08-03T04:44:58 | 2019-08-03T04:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Generated by Django 2.2 on 2019-04-01 20:43
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.AutoField(aut... | [
"rrgaya@gmail.com"
] | rrgaya@gmail.com |
d87bd0a26c4dea8453e2441d07db03be5e45f3ff | f480d8db3bf81d8cb02ece914f156d3efd074b5f | /tests/unit_tests/repobee/plugin_tests/test_gitlab.py | 9160d23993693600ef4110319ba1dad7376ad0cf | [
"MIT"
] | permissive | tohanss/repobee | e9dc31eb5fed91a399e968ebfb41105d80f49dcb | cf5eb1e83e62c20bbca00c8ad9f798a612e1664f | refs/heads/master | 2023-01-06T20:10:16.157976 | 2020-10-29T17:50:35 | 2020-10-29T17:50:35 | 272,424,721 | 0 | 0 | MIT | 2020-06-15T11:49:50 | 2020-06-15T11:49:49 | null | UTF-8 | Python | false | false | 18,561 | py | from collections import namedtuple
import itertools
import requests.exceptions
import pytest
import gitlab
import repobee_plug as plug
import _repobee
import constants
PAGE_SIZE = 10
class Group:
"""Class mimicking a gitlab.Group"""
_Members = namedtuple("_Members", ("create", "list"))
_Member = name... | [
"noreply@github.com"
] | tohanss.noreply@github.com |
2eb08aeab2d31864011a33b28fee95b6b159ea67 | b011f9a78db79f3c68d6f53f74e83df3970bf8e0 | /authl/__version__.py | f161374a9541bffb46c771e0f6ed93bd66566ff9 | [
"MIT"
] | permissive | zaxtax/Authl | 7504b1eef264da66085b12f1995b0d17aabbb95a | 21bdacfff2761f91e3859ac0735e5902d3763e88 | refs/heads/master | 2021-04-21T01:45:53.256468 | 2020-02-29T03:32:59 | 2020-02-29T03:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | """ current library version """
__version__ = '0.3.5'
| [
"fluffy@beesbuzz.biz"
] | fluffy@beesbuzz.biz |
7135df943d2a6a55839d6f0e1abf8cfb5bbe52e2 | 2fffd51ba941c0848733097bc825549cc04faf65 | /src/dqn/dqn_predator_model.py | 685e65fedc8a2f257e218a3585f63b6d514585d5 | [] | no_license | WouterHuygen/multi-agent-reinforcement-learning | 1c483ab5d92881744d6d264377491770f1409df4 | 63b2292c1e3f8170f3190e17b9b9e381faac5a36 | refs/heads/main | 2023-02-08T04:42:05.062186 | 2020-12-29T18:03:00 | 2020-12-29T18:03:00 | 308,330,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from torch import nn, cat
from ray.rllib.utils.annotations import override
from ray.rllib.models.torch.torch_modelv2 import TorchModelV2
from gym.spaces import Discrete, Box
class DQNPredatorModel(nn.Module, TorchModelV2):
def __init__(self, obs_space, action_space, num_outputs, model_config,
na... | [
"berk.ayaz@hotmail.com"
] | berk.ayaz@hotmail.com |
ce88bf7af10a89c8474dffc2a82e54e04c1d6a2b | 56ffce29f0d27f83206e11870d95982c38524aae | /apweb/site/configure.py | e40a59ea7cfb45c55048ca631afb93938572dc5f | [] | no_license | adamandpaul/apweb | cce365085e2ee58cfbc31544c5a7414e67ad56b4 | b1bb81fa7d7b39f19e187462aa3447ff482b46af | refs/heads/master | 2022-10-19T02:09:52.437906 | 2021-05-21T06:10:08 | 2021-05-21T06:10:08 | 201,398,036 | 0 | 3 | null | 2022-09-21T21:39:41 | 2019-08-09T05:41:06 | Python | UTF-8 | Python | false | false | 1,316 | py | # -*- coding:utf-8 -*-
from .password_login_provider import PasswordLoginProvider
from .resource import Site
import apweb.authentication
def site_factory(request):
"""Return a default site factory"""
return Site.from_request(request)
def get_user_for_unauthenticated_userid(request):
email = request.un... | [
"arterrey@gmail.com"
] | arterrey@gmail.com |
c948ad237c590dfd89ae5e491450ac4895fbb550 | fa82dad9e83206d4630a55141bf44f50cbf0c3a8 | /day1_python/01_python200_src/181.py | 20a43d86dda37f41451faaad66761d0cd6d16b34 | [] | no_license | jsh2333/pyml | 8f8c53a43af23b8490b25f35f28d85f1087df28d | 157dfa7cc2f1458f12e451691a994ac6ef138cab | refs/heads/master | 2021-03-27T22:26:38.254206 | 2020-04-26T06:35:11 | 2020-04-26T06:35:11 | 249,114,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | def countBirths():
ret = []
for y in range(1880, 2015):
count = 0
filename = 'names/yob%d.txt' %y
with open(filename, 'r') as f:
data = f.readlines()
for d in data:
if d[-1] == '\n':
d = d[:-1]
b... | [
"jsh2333@gmail.com"
] | jsh2333@gmail.com |
cca5dc568c4108d5f0343a262c80979e232932b0 | bdccb421c292d4ce78814c81c80aae7165f2a625 | /2018-1-9 functions.py | b196292ad61d940258bd54ca67114307ad22112b | [] | no_license | SunTXone/PythonCodes | f2199309f61509eeb0a7bfa74c65098ad4d4e2ff | ba69ee823670c1242d82736abb38b96f2654ba06 | refs/heads/master | 2021-04-27T18:33:44.504312 | 2018-02-24T01:05:45 | 2018-02-24T01:05:45 | 122,341,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,668 | py | Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> #传递函数
>>> def ba():
print('I am in bar()')
>>> def foo(func):
func()
>>> foo(ba)
I am in bar()
>>> def power_seq(func,seq):
return [func(i... | [
"noreply@github.com"
] | SunTXone.noreply@github.com |
150f4bc532ec71ec3ec5e293645728741c8f2514 | 15feee7c7d3822f23f831df1447e03d9812f4651 | /simbion_mvc/entity/pendaftaran.py | cf82854ca4dcab433d83254bf5abcac0e1de395f | [] | no_license | yerlandinata/simbion | cf3e3d2256ac76af99b614d25bff3bb3601138cc | 222b714502f0761ac9658651441da7c7fd170b39 | refs/heads/master | 2020-03-15T09:42:25.493802 | 2018-05-21T12:01:27 | 2018-05-21T12:01:27 | 132,081,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,588 | py | from .entity import Entity
class Pendaftaran(Entity):
def __init__(self,skema_beasiswa_aktif,mahasiswa,waktu_daftar,status_daftar,status_terima):
super().__init__({
'skema_beasiswa_aktif':skema_beasiswa_aktif.data,
'mahasiswa':mahasiswa.data,
'waktu_daftar':waktu_daftar,... | [
"adrika.novrialdi@gmail.com"
] | adrika.novrialdi@gmail.com |
4bee8633074dd1f2174f4054fd7cd3ce218bf717 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nilearn/mass_univariate/tests/test_permuted_least_squares.py | e873dc0a17226b11dce52a062647e51e0e9f3452 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 23,016 | py | """
Tests for the permuted_ols function.
"""
# Author: Virgile Fritsch, <virgile.fritsch@inria.fr>, Feb. 2014
import numpy as np
from scipy import stats
from sklearn.utils import check_random_state
from numpy.testing import (assert_almost_equal, assert_array_almost_equal,
assert_array_less,... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
f2780023b958c24ce9a96cc053a798ca125226ef | 456e815c7ae4b72ae223cbc165f3cff7e6829582 | /scoring.py | 646fbd1850883a435912b6cf1f716d9a80cfeb94 | [] | no_license | Luche/Tesis | 25043a0528ee9714b0a2e134310304bfcfb06aba | b270fbf1caaa2a9c78b19785f60b0d7537d583b0 | refs/heads/main | 2023-08-05T13:15:39.096120 | 2021-10-08T08:54:41 | 2021-10-08T08:54:41 | 342,509,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | import glob
import nltk
import numpy as np
from datasets import load_metric
from bert_score import score
nltk.download('punkt')
metric = load_metric("rouge")
def load_data(path=""):
# path = "/content/drive/MyDrive/Colab Notebooks/Tesis"
can_path = path + "ref.txt"
ref_path = path + "out.txt"
src_pat... | [
"henrylucky68@gmail.com"
] | henrylucky68@gmail.com |
81e1ff36d764ebf2d6e179a45efa2e2ac9a119f4 | 71a7ed5dd56b89aea1795a3db1469e3006be783f | /configs/body/2d_kpt_sview_rgb_img/deeppose/coco/res50_coco_256x192.py | 2d2b20fa49d0e23356d688081388809183364474 | [
"Apache-2.0"
] | permissive | RunningLeon/mmpose | b6091416a2565778a1438b23edaa6620a2088a3e | 9ef202c0a4b2c28add32b530caf2ea0354843fe4 | refs/heads/master | 2023-06-30T04:46:52.917877 | 2021-08-05T08:54:24 | 2021-08-05T08:54:24 | 335,275,684 | 0 | 0 | Apache-2.0 | 2021-02-02T12:06:57 | 2021-02-02T12:06:57 | null | UTF-8 | Python | false | false | 3,956 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric='mAP', save_best='AP')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=None)
# learning pol... | [
"noreply@github.com"
] | RunningLeon.noreply@github.com |
6903e350a0ee38e643f722f9a5177bdc7d7da553 | 92f9fd4397d88619073c17174f3d52f5f489d4e4 | /qa/rpc-tests/bip9-softforks.py | 5b15b06663bbf376dc660a6a92e09ebf5fea6278 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | diablax2/bts | 380df7562d73a292e641faaff1b0d1e17a10f0a8 | fe3c727ce607e11bee64bb03afadb653e9bd23fd | refs/heads/master | 2020-04-24T21:57:40.173603 | 2019-02-25T06:33:48 | 2019-02-25T06:33:48 | 172,295,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,030 | py | #!/usr/bin/env python3
# Copyright (c) 2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.blockstore import BlockStore
from test_framework.test_framework import ComparisonTestFrame... | [
"47169271+BitcoinSDN@users.noreply.github.com"
] | 47169271+BitcoinSDN@users.noreply.github.com |
a77514a354202ea060c3808641ab83dce4cf439f | c29ff32eb5755c45d656162bb91df428eeab489d | /Main.py | ca4ecdf20d8df96838023848bc5e4b4aa30c2822 | [] | no_license | Larionov0/Listo4ek | f5f441dcd908dbd1f55768e3c62515a385ad4cb1 | c30dd00c999239ea205e6a5140b188de6553376f | refs/heads/master | 2021-06-27T17:04:02.950956 | 2021-01-15T14:26:49 | 2021-01-15T14:26:49 | 197,660,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,028 | py | import telebot
from telebot import types
import emoji
from data_handler import data as waves_data, units_data, weapons_data
from random import choice, randint
from funks import *
delete_data = {}
def add_delete_message(chat_id,message_id):
if chat_id in delete_data:
delete_data[chat_id].append(message_id... | [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
66966bcb8d5c95f3387b0ff7cb5433c094feea13 | d862f807a5dce63b917945cef10ecf95f7139a9d | /OnlinerParser/urls.py | 653993e81f539159eec28bc501c6da593da012ce | [] | no_license | al1enjesus/onliner_parser | 4e8123be5b57078d154bdbc46be515b9d9cd9ab9 | 986f11858346018d8622eb8ad2266ee9780ab62f | refs/heads/master | 2023-04-21T10:20:11.499842 | 2021-05-04T18:10:33 | 2021-05-04T18:10:33 | 364,343,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """OnlinerParser URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"wdybelievein@gmail.com"
] | wdybelievein@gmail.com |
f09d13ea1ba4616512b010c728325a334bb69c4c | ac70b3e5545a50366b532116edabcd4c0fc109c6 | /src/siamese_stage/infer.py | 01e14d08d81229660eb0e747516125bb87dcdc05 | [
"MIT"
] | permissive | CrueLu/DogEmbeddings | 46d234646bac0414500514241274b757ed89617d | 10936d0fa6d2a8461d3f14f091f27b54511d2fdb | refs/heads/master | 2022-01-11T19:24:43.464627 | 2018-04-03T06:40:06 | 2018-04-03T07:11:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from siamese import SiameseNetwork
# Construct Siamese network
model, base_network = SiameseNetwork()
model.load_weights('/book/working/models/siamese.h5')
def intermediate(embs):
return base_network.predict(embs)
| [
"ericlzhao28@gmail.com"
] | ericlzhao28@gmail.com |
1d0267680a1567f9e4051c363035858665d4a384 | 11cb1f15a6b9850b9575b5bfd745e5053eba7c84 | /pooldin/app/convert.py | edcb0eab8a585d06eddb26057acd2e3e45909f71 | [] | no_license | pooldin/pooldin | fa39e61aa28e7042bb8814032fd5739c0ed3625e | 3287b9e6039844161ed103d588a32fc635768c85 | refs/heads/master | 2020-05-18T23:28:06.807082 | 2012-10-09T00:38:57 | 2012-10-11T18:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | def to_bool(value):
if value in ['True', 'true', '1']:
return True
if value in ['False', 'false', '0']:
return False
return bool(value)
def to_int(value):
try:
return int(value)
except (TypeError, ValueError):
return None
| [
"watson.collin@gmail.com"
] | watson.collin@gmail.com |
bdb4d72815badc2db40b8e3ded2e1bcad504b4f4 | fedc097c85f12de797d4becd31de47f80013a488 | /Python_Test/PySample1/com/djs/learn/profile/TestDebugger.py | 36c76cceb3f6629f951ff8e4cfb90166a4857737 | [
"Apache-2.0"
] | permissive | djsilenceboy/LearnTest | 6291e272da2abb873720dfa9a55d58cdc7556d35 | 91c1ee4875a740d8be48fc9d74098a37e2f5cae6 | refs/heads/master | 2023-07-05T14:47:52.223970 | 2023-06-29T11:51:14 | 2023-06-29T11:51:14 | 61,952,430 | 3 | 3 | Apache-2.0 | 2022-12-16T09:01:24 | 2016-06-25T16:43:34 | Java | UTF-8 | Python | false | false | 271 | py | '''
Created on May 2, 2017
@author: dj
'''
def calc(a, b, c):
print("This is beginning.")
import pdb
pdb.set_trace()
print("To be end.")
calc(1, 2, 3)
# PDB command:
# bt, up, down
# step, next, return, continue
if __name__ == '__main__':
pass
| [
"djdarkguardian@gmail.com"
] | djdarkguardian@gmail.com |
86fcf6c74099436224d26ca4ccd9c27e498fcc0c | 11f7add72635ad985b3e98fd77e9426e8c74ab08 | /growthintel/growthintel.py | 7d641b9bad3fbb521fa21f28b0a5e9ec17603326 | [] | no_license | harshdarji/python | afa6b11338504567ece8bb1e78e841d13716ff14 | 8bad854304f423264b7b0724b87c7cd7de748cd6 | refs/heads/master | 2020-12-31T01:48:04.439466 | 2012-09-13T09:22:58 | 2012-09-13T09:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | APIKey="00a5f2164e5e49b29981ddcbe9df7d7c"
import parse
import json
output={"type":"FeatureCollection","features":[]}
postcodes=["AB","AL","B","BA","BB","BD","BH","BL","BN","BR","BS","BT","CA","CB","CF","CH","CM","CO","CR","CT","CV","CW","DA","DD","DE","DG","DH","DL","DN","DT","DY","E","EC","EH","EN","EX","FK","FY","G"... | [
"jeromecukier@gmail.com"
] | jeromecukier@gmail.com |
276d31696b5798d10682159add96252a4f789158 | e0b53df2148aa7d18478d1c3735d2186048496e6 | /sly_lexer_parser/fr_lexer.py | 678aacd0ca587cf5d400ebe5d7c98e5faa831dfb | [] | no_license | fherbine/trainingPython-Kivy | bb677150900f2d1c885ef712ac4f6c28ab275568 | 10d973bc939bc2b48b16acc59d259f955513409e | refs/heads/master | 2020-04-01T02:00:21.776997 | 2019-10-07T13:13:08 | 2019-10-07T13:13:08 | 152,761,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from sly import Lexer
class FrenchCalcLexer(Lexer):
tokens = { ID, NOMBRE, PLUS, MOINS, MULTIPLIER,
DIVISER, ASSIGNER, GPAREN, RPAREN }
ignore = ' \t'
ID = r'[a-zA-Z_][a-zA-Z0-9_]*'
NOMBRE = r'\d+'
PLUS = r'\+'
MOINS = r'-'
MULTIPLIER = r'\*'
DIVISER = r'/'
ASSIGNER... | [
"felix.herbinet@yahoo.com"
] | felix.herbinet@yahoo.com |
acc028e66e697d07b577ed54511081c0cd448e1f | 2af2779df24a94d80ee578b23b4cb41c6a5b520c | /scripts/blink_led2moorse.py | 13bce0d22bcee960c1854801853b712cf599281c | [] | no_license | vigneshragupathy/blog | 81221405383531270d8d86b97227965fdadd1239 | 0a63af59e2e113fdd8c30e2acee56fc857421932 | refs/heads/master | 2023-01-03T09:40:18.091683 | 2020-10-18T12:47:49 | 2020-10-18T12:47:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | # Import the GPIO and time libraries
import RPi.GPIO as GPIO
import time
#####Moorse code definition######
CODE = {' ': ' ',
"'": '.----.',
'(': '-.--.-',
')': '-.--.-',
',': '--..--',
'-': '-....-',
'.': '.-.-.-',
'/': '-..-.',
'0': '-----',
'1':... | [
"me@vikki.in"
] | me@vikki.in |
32d654a348320c21302268c73278d97e9540c221 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLES2/NV/framebuffer_blit.py | ada66373b0f3e2262f88cc60a536d0ce0840c18b | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p
from OpenGL.constant import Constant as _C
# End users want this...
from OpenGL.raw.GLES2 import _errors
# Code generation uses this
from OpenGL.raw.GLES2 import _types as _cs
_EXTENSION_NAME = 'GLES2_NV_framebuffer_blit'
def ... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
c520dd7bddfc90caab08af4bb0a8517af01ac98a | 0422bca79c61ee4630f7c762e77ca9780b05e3ff | /pattern/text/nl/parser/__init__.py | 590127d45bbbde61c6675e815462d4cc4e8842d0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kkoch986/pattern | 69ac11d12ea4fd2bb581e3343bca021cf6e46c92 | db807c888dcd15f515afe31753c9b0345a11b542 | refs/heads/master | 2021-01-18T04:26:13.078631 | 2013-02-14T03:29:25 | 2013-02-14T03:29:25 | 8,186,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | #### PATTERN | NL | RULE-BASED SHALLOW PARSER ######################################################
# Copyright (c) 2010 Jeroen Geertzen and University of Antwerp, Belgium
# Authors: Jeroen Geertzen (Dutch language model), Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
# http://www.clips... | [
"tom@organisms.be"
] | tom@organisms.be |
cfd7b02747987b034cf4487a4f0d184a14a698da | 43a4fd934407a963c876dc1b15fd7052e693592b | /GearBot/Util/RaidHandling/RaidShield.py | 2920e7cee1e644e445fd3d504d578a43fb9c6170 | [
"MIT"
] | permissive | mrkirby153/GearBot | aa02fdd32bec292a54e8e3805bd829f16522cdc8 | a61d936c12e906c7bcfaa840a585ee25ffc06138 | refs/heads/master | 2020-05-29T18:59:55.450101 | 2019-06-02T09:54:18 | 2019-06-02T09:54:18 | 189,318,104 | 0 | 0 | MIT | 2019-05-30T00:31:06 | 2019-05-30T00:31:06 | null | UTF-8 | Python | false | false | 1,444 | py | from Util import GearbotLogging
from Util.RaidHandling import RaidActions
class RaidShield:
def __init__(self, shield_info) -> None:
self.shield_name=shield_info["name"]
self.start_actions = [action for action in shield_info["actions"]["triggered"]]
self.raider_actions = [action for actio... | [
"aenterprise2@gmail.com"
] | aenterprise2@gmail.com |
c14063ae8b5ff7c11f6410404f09ba2e0c88559e | 8c20ced083224b8afb7c8337265810a350b916f6 | /api/predictor.py | 77a427701068cff081e62c3750c613ac0cc0ae26 | [] | no_license | girginsoft/soyaddanparti | d0947797335cf00b9295335abde3686b67d86ac1 | 4a95ac6f487ab2e893cc36e6b7904e5cd1445127 | refs/heads/master | 2020-05-09T21:14:26.422251 | 2019-04-15T08:03:14 | 2019-04-15T08:03:14 | 181,436,415 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | from nltk import ngrams
from sklearn.externals import joblib
from collections import OrderedDict
from flask import jsonify
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
def load_feature_list():
response = S3.get_object(Bucket=BUCKET_NAME, Key=FEATURE_LIST_FILE)
json_str = response['Body'].read()... | [
"noreply@github.com"
] | girginsoft.noreply@github.com |
3f4bbf3c6260dc4cc2bb2f44c44e22db6ea458bb | 214c3dccf41fc5e178a9c95083c82d0555b774d4 | /logic/LSTM.py | 845b95b2418811d74fc8e3c33eae94414332cb25 | [] | no_license | MichalSzewczyk/neural-network | 098d4d6797ddb1c598cb905e70f13a29d89fbad1 | 4eef8db1cf55d2616ecc1f75335a40bf048e0eba | refs/heads/master | 2020-04-17T14:37:53.019355 | 2019-01-27T16:59:05 | 2019-01-27T16:59:05 | 166,664,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import torch
from torch import nn, FloatTensor
class LSTM(nn.Module):
def __init__(self, word2embed, id2train, id2valid, batch_size, max_len_sent, embedding_dim, hidden_dim, output_dim):
super(LSTM, self).__init__()
self.word2embed = word2embed
self.id2train = id2train
self.id2vali... | [
"szewczykm94@gmail.com"
] | szewczykm94@gmail.com |
882aa794bd871d4fa726624fca83d3207874b12b | 75351b49a226e6af5e46f6ab2d75e4ae22549cab | /mega/helpers/gdrive.py | e6a868d9ac089654fe8d6b446acf6f7f1f71a3ae | [] | no_license | wonkru-bot/megadlbot_oss | 31331570ae88de26260b7bd63e67c08a4243b23b | 9fa5d50b651c428048edd65d08943990095271f7 | refs/heads/master | 2022-12-25T14:39:07.526253 | 2020-10-06T12:03:17 | 2020-10-06T12:03:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | import os
import base64
import logging
import aiofiles
import mimetypes
from googleapiclient.discovery import build
from google.oauth2 import service_account
from googleapiclient.http import MediaFileUpload
from mega.database.users import MegaUsers
from datetime import datetime, timedelta, timezone
class Gdrive:
... | [
"eyaadh@gmail.com"
] | eyaadh@gmail.com |
e00ea1cfb0a012d2762bd8d9ab89d6d147f0c170 | adb6755eb1a3d91375e6b4e9b8c1afd07f85313b | /venv/Lib/site-packages/pandas/tests/io/test_excel.py | c527451cc6d27da20440880d1bc8730d44c74e32 | [] | no_license | Atwinenickson/Socialmediaclassifier- | af54b559569e80004c441fc90dc44b0ee945555d | 05c5abbaba8694d9bf95d745ffca75c17ac69621 | refs/heads/master | 2022-12-15T01:33:18.073259 | 2019-06-07T15:38:18 | 2019-06-07T15:38:18 | 190,616,071 | 1 | 0 | null | 2022-12-08T05:13:29 | 2019-06-06T16:41:17 | Python | UTF-8 | Python | false | false | 102,135 | py | from collections import OrderedDict
import contextlib
from datetime import date, datetime, time, timedelta
from distutils.version import LooseVersion
from functools import partial
import os
import warnings
from warnings import catch_warnings
import numpy as np
from numpy import nan
import pytest
from pandas.compat im... | [
"atwiinenicxon@gmail.com"
] | atwiinenicxon@gmail.com |
99a885ced2259ddd980d7178fc0d7ae23cd5c7cc | 1334505cc093b2796c80c83a358f39aaa9bb7392 | /things/parmed/LES/run.py | 20454ca47cbeedcf04b143b5b04b152fa4dd1b15 | [
"BSD-2-Clause"
] | permissive | hainm/amber_things | 031703f1b39c1c1ceae3f1186cb1020b68260e13 | c4c6de411e6b83f1d0dd723d892253a88f5125e5 | refs/heads/master | 2021-01-21T04:47:49.404282 | 2016-07-10T23:19:59 | 2016-07-10T23:19:59 | 36,897,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | import parmed as pmd
pmd.load_file('new.parm7', 'new.rst7')
| [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
71ac256aa2adf47b4dd47df90dc1e02cc82de548 | 34039eb012beca4fbd0ed96d523bf88bf39cffdf | /potFieldsClassCode/controller - Matthew Chun.py | b0e9208b74749729c11a2753870aa37f24f5e007 | [] | no_license | hsudakar/racecar2019 | c72392edc9e415d584ab2e621b843b8361f03a30 | 40e45bb0490709e5468f303bf37ec19fcf156230 | refs/heads/master | 2020-06-26T03:05:00.533385 | 2019-07-29T17:06:41 | 2019-07-29T17:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | #!/usr/bin/env python
import numpy as np
import sys, math, random, copy
import rospy, copy, time
from sensor_msgs.msg import LaserScan
from ackermann_msgs.msg import AckermannDriveStamped
import time
class Racecar:
SCAN_TOPIC = '/scan'
DRIVE_TOPIC = '/drive'
def __init__(self):
self.data = No... | [
"bpaez@g.hmc.edu"
] | bpaez@g.hmc.edu |
c35ac0e38e1bf86dd30321937444199e6b545717 | 478009111504d54f45490f71c1e61190ecfede3f | /sesion_4/test_xl2.py | 54fc999f79dc94a336ef6161315e7708b6b13766 | [] | no_license | BeatrizInGitHub/python-sci | 9938c406e9642385d602971e985668765dfabbfa | d8ed9656184b5f08d41430ed5a770dc6f4550893 | refs/heads/master | 2020-05-22T19:46:08.065601 | 2017-02-26T02:15:31 | 2017-02-26T02:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from openpyxl import load_workbook
wb = load_workbook("Libro1.xlsx")
ws = wb["Hoja1"]
cells = ws["C4:F10"]
mat = []
for r in cells:
row = []
for cell in r:
x = cell.value
row.append(x)
mat.append(row)
print mat
x = ws["C4"].value
x = mat[0][0] | [
"badillo.soft@hotmail.com"
] | badillo.soft@hotmail.com |
51cf140ce032eb19a30ee3990d6bf89971df2ab8 | c1fcdd80101aeae0ba8b4ae0e229f58ed58fd41f | /testPredictor.py | fe7bea830d5e4f619513d78c2e0e5b9ab4ea4023 | [] | no_license | luizgh/ModelEvaluation | 367432f0456052f539c61766b00f1f59bc5fa3a5 | 2933918276d0dcc42d484d9163c4b6c9ea32f26a | refs/heads/master | 2016-09-06T04:15:11.140896 | 2014-03-19T00:07:46 | 2014-03-19T00:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import unittest
from Predictor import Predictor
from TestUtils import *
class testPredictor(unittest.TestCase):
def testAll(self):
logProbabilities = numpy.asarray([[0.4, 0.80, 0.50],
[0.45, 0.4, 0.41],
[0.4, 0.41, ... | [
"luiz.gh@gmail.com"
] | luiz.gh@gmail.com |
27686e6e5f8eccbf4f84eb31338d61161279c57e | 19e062dd35430ba371305f9ab3bac00eada00bf8 | /manage.py | 99b7e3d68a71c1ea4567ed2bd4909c0316b881dd | [] | no_license | amitraikkr/djangodock_prj | 9b0d5166bff6d29d3979281d0dac3965f2fed65b | 4bb89a9ecb7a650f4a507a5f7c4fdb73d16d2b7c | refs/heads/master | 2023-03-27T02:52:39.001425 | 2021-03-23T00:54:20 | 2021-03-23T00:54:20 | 349,776,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangodock_prj.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"amitraikkr760@gmail.com"
] | amitraikkr760@gmail.com |
a14a5c7fab69f053d5297c0667fd620b3f5ce400 | 107a379811077c75bf884bc925ca28b82e62a0da | /monitor/etc/graphite/local_settings.py | a07530334f21fbde10fea535b79df6539e09d1a6 | [] | no_license | stackdio-formulas/monitoring-formula | f11aff5196b07e48328723e13f3215b5b72e4efa | 0582b28c0c43eb796bd94c5dd893ed0874335c0d | refs/heads/master | 2021-04-22T06:44:34.350717 | 2017-10-16T14:22:00 | 2017-10-16T14:22:00 | 25,693,796 | 1 | 2 | null | 2017-10-16T14:22:01 | 2014-10-24T15:04:15 | Ruby | UTF-8 | Python | false | false | 9,004 | py | {%- set secret_key = salt['pillar.get']('monitor:graphite:secret_key') -%}
{%- set storage_dir = salt['pillar.get']('monitor:graphite:storage_dir') -%}
{%- set db_password = salt['pillar.get']('monitor:graphite:db_password') -%}
## Graphite local_settings.py
# Edit this file to customize the default Graphite webapp se... | [
"charlie.penner@digitalreasoning.com"
] | charlie.penner@digitalreasoning.com |
ad90f70fbd5560a5d6802f1070e7578b594b569f | ed6324dbe6ef35b21c8c11f11d866ac60b4b0132 | /registry_project/apps/main/models.py | ff3224414822e90e1f9ff37203bb73a97373dd78 | [] | no_license | sdcasas/registry | 2c41a252f18f1b9ab6c80ae77790720d6b07603c | 5919298392e6e048a35d76bae9002ce57b4bff47 | refs/heads/master | 2020-03-28T21:53:22.551255 | 2018-10-01T20:17:08 | 2018-10-01T20:17:08 | 149,189,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | from django.db import models
from apps.util import models as utilmodels
class Module(models.Model):
name = models.CharField(max_length=300)
description = models.TextField(blank=None, null=None)
class Meta:
verbose_name = "Module"
verbose_name_plural = "Modules"
def __str__(self):
... | [
"sdcasas@gmail.com"
] | sdcasas@gmail.com |
3bda4a5bb9ba317a71ccec87961bb03d971ff69d | 3927b532310d8bc236d102854efac7cf11f27855 | /superlists/lists/urls.py | 0e6b25bf7dc2278394c1ddb3ed0a6a12a141bc02 | [] | no_license | lepirescomp/tdd_python_studies | 8ba60a11092b03a0a3495ed93bd019b8159e8d1a | b253599cc78590acd9a66d0fcf0be44ff7bb5f59 | refs/heads/master | 2023-05-15T06:09:36.771539 | 2020-07-25T22:10:07 | 2020-07-25T22:10:07 | 280,016,882 | 0 | 0 | null | 2021-06-10T23:15:19 | 2020-07-16T00:55:32 | JavaScript | UTF-8 | Python | false | false | 247 | py | from django.conf.urls import url
from lists import views
urlpatterns = [
url(r'^new$', views.new_list, name='new_list'),
url(r'^(\d+)/$', views.view_list, name='view_list'),
url(r'^(\d+)/add_item$', views.add_item, name='add_item')
]
| [
"lepirescomp@gmail.com"
] | lepirescomp@gmail.com |
8ccabfc5878446d9961222bfabb5e529f1876ecb | 00f18153e38eef712e8c4c139623226e540a356a | /Credit_Calculator_2.py | 93cef3251f6489ccb05d2013e37c75bf74d6e6ed | [] | no_license | plojhi/Python_Credit_Calculator | 086cb071202105bd23719aeef75b7b38f134a36d | 43a29fcf8772cd08c7f8db16925b5ff6b708e194 | refs/heads/master | 2020-12-27T02:36:39.087863 | 2020-02-02T07:39:23 | 2020-02-02T07:39:23 | 237,735,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | import math
import sys
def credit_type():
P = 0
A = 0
n = 0
i = 0
for types in args:
for j in range(len(types)):
if types[j] == "=":
if types[:j] == "--principal":
P = float(types[j+1:])
elif types[:j] == "--pa... | [
"noreply@github.com"
] | plojhi.noreply@github.com |
a0b726ca16865f5077e8d0a563538ac2f6752e45 | 874153914c2784eb164c271e4a68c01265e5ce7f | /tool/module/arkon_config.py | a6a18adaf5c5f245e552d73e4e0c95d158b9cff6 | [
"Apache-2.0"
] | permissive | random-archer/mkinitcpio-systemd-tool | 3c6f572244fb84e9eab4fa1291d4e5526a614751 | 5685070783975c934c517d603bcfd614f8b194a3 | refs/heads/master | 2023-08-17T20:52:13.040297 | 2022-12-21T14:20:10 | 2022-12-21T14:20:10 | 59,916,137 | 108 | 29 | NOASSERTION | 2023-08-13T09:35:00 | 2016-05-28T22:00:58 | Python | UTF-8 | Python | false | false | 2,750 | py | #!/usr/bin/env python
#
# shared config for build/setup/verify cycle
#
import os
import datetime
import nspawn
# detect build system
def has_ci_azure():
return "AZURE_EXTENSION_DIR" in os.environ
# no http proxy in azure
if has_ci_azure():
nspawn.CONFIG['proxy']['use_host_proxy'] = 'no'
nspawn.CONFIG... | [
"andrei.pozolotin@gmail.com"
] | andrei.pozolotin@gmail.com |
bd42285b2775c2bc449211d34086b9219ceab4fb | 1c76e59804d5686f4f6407d572b638f5669ad9ab | /leetcode/valid parentheses/faster_valid_parentheses.py | 5f7089758f8ee61c894179454e1c0e34dd79ea13 | [] | no_license | Turall/leetcode | 28b9ccd24b32309ad77c0ad5e8a72f1b11a3bafd | c510cc2cc494070542b35d744eafb381fe7d0994 | refs/heads/master | 2020-05-21T06:19:28.899393 | 2019-05-15T06:46:28 | 2019-05-15T06:46:28 | 185,941,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | def check(s):
if not s:
return True
temp = []
breckets = {"(": ")", "{": "}", "[": "]"}
for parenthese in s:
if parenthese in breckets:
temp.append(parenthese)
elif len(temp) == 0 or breckets[temp.pop()] != parenthese:
return False
return len(temp) == ... | [
"tural_m@hotmail.com"
] | tural_m@hotmail.com |
9b66a0e02508ee60fbd50d1de623179d0ef4f34b | 9cec93a18ea94504947820205d0faae4d67ecd8d | /H2TauTau/python/eventContent/common_cff.py | cd998b53c2a17602f3659cbf83da20caa949c0ea | [] | no_license | DESY-CMS-SUS/cmgtools-lite | de88b1d5dc20a925ed5b7c7be69fa3ef677955c6 | db52d50047178563a0eb7f5858ae100aa408ec68 | refs/heads/8_0_25 | 2021-05-23T04:36:22.900460 | 2017-11-09T10:32:41 | 2017-11-09T10:32:41 | 60,184,794 | 3 | 9 | null | 2021-02-17T23:22:12 | 2016-06-01T14:37:18 | Python | UTF-8 | Python | false | false | 1,693 | py | import copy
common = [
# 'drop *',
'keep double_fixedGridRho*_*_*',
'keep edmTriggerResults_TriggerResults_*_*',
'keep patPackedTriggerPrescales_*_*_*',
'keep patElectrons_slimmedElectrons_*_*',
'keep patJets_slimmedJets_*_*',
'keep patJets_patJetsReapplyJEC_*_*',
'keep patMETs_slimmedM... | [
"jan.steggemann@cern.ch"
] | jan.steggemann@cern.ch |
28e9a28d0506b14afc1df502489b8cf5a7abf67b | cbe3a71a33d783e68f6da5a8cf43f30991fc0646 | /app/translate.py | 1c96a509daf1da8d9617e3d31f7999a653e0b32c | [] | no_license | garethbreeze1993/flask_microblog_tutorial | 65d0e3eb2113ef6a60a432aa63942695f4b520aa | 44ad685fb5c76fc2dca0274b32f5dccd2abd6250 | refs/heads/main | 2023-01-22T20:51:41.508328 | 2020-12-05T16:51:48 | 2020-12-05T16:51:48 | 318,836,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | import json
import requests
from flask_babel import _
from flask import current_app
def translate(text, source_language, dest_language):
if 'MS_TRANSLATOR_KEY' not in current_app.config or not current_app.config['MS_TRANSLATOR_KEY']:
return _('Error the translation service is not configured')
data = [{... | [
"gareth.breeze1993@gmail.com"
] | gareth.breeze1993@gmail.com |
0247f8d4f45c85ecf055e2b5e59598a913f4f131 | 12404199bbc771ca8ddd3fd02c5d599100633502 | /apps/maap/migrations/0001_initial.py | 4b7ca5168c01833484c7bec5ca8630bc49466aa6 | [] | no_license | apanruning/nomenclador | 9712e6248a2788dc75cf84fdf3d7a425fab6cbec | f27251a86ee52e5267295df239ca068ae6fc0f3f | refs/heads/master | 2016-09-05T20:21:17.926508 | 2011-03-21T01:08:50 | 2011-03-21T01:08:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,085 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'MaapMetadata'
db.create_table('maap_maapmetadata', (
('id', self.gf('django.db... | [
"maturburu@gmail.com"
] | maturburu@gmail.com |
f2823cca9d54e10f9edbd92f0ac793533752b9a5 | ca3e17da908ab06b27b451e2a7cd5593211e0dda | /solutions/01/kepler.py | 2caace095ec801519f8d37bc9b4c970828fc7725 | [] | no_license | ArmaanSethi/Physical-Modeling | e34ffee50ee2bf61716b08a4abe2e416773965e8 | 031d7f0fe994b3a6dcd5e91917dbdc5fcb38ea05 | refs/heads/master | 2020-04-11T05:13:16.950401 | 2018-12-12T20:43:32 | 2018-12-12T20:43:32 | 161,541,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,429 | py | #=============================================================
# Test bank for ODE integrators: Kepler problem.
#
# Contains the functions:
# get_planetdata : returns basic information about planets
# set_odepar : setting global variables for get_dydx()
# get_odepar : getting global variables for get... | [
"armaan.sethi@gmail.com"
] | armaan.sethi@gmail.com |
f16e00871bb29e5f1bbe0af1268aab7a20e5c408 | 9e80ef3b434e26c50878a7c5d6ef3b33e0b8d457 | /given_armstrong_number_or_not.py | 0feffbd6ad2c93c65c496b8e380cb638b5b9a0b1 | [] | no_license | nikhilrane1992/Python_Basic_Exercise | 8a337dc0d3cb80fa6560a9de98ae4bbf1c9e91ad | bd3759b0c2e24a140a417f952c8fdff4f995e6d7 | refs/heads/master | 2021-08-08T13:20:34.702325 | 2017-11-10T10:49:47 | 2017-11-10T10:49:47 | 105,880,075 | 1 | 4 | null | 2017-10-11T05:58:04 | 2017-10-05T11:07:28 | Python | UTF-8 | Python | false | false | 597 | py | # Python program to check if the number provided by the user is an
# Armstrong number or not
# Method 1
num = raw_input("Enter a number: ")
n, t_sum = len(num), 0
for i in num:
t_sum += int(i) ** n
if t_sum == int(num):
print "{} is armstrong".format(num)
else:
print "Number is not armstrong"
print "-"... | [
"nikhilrane1992@gmail.com"
] | nikhilrane1992@gmail.com |
2e29fe62e754d295f00d590bcd2ce5ca0afddcf2 | 5ef2ebd4334769955cff15a03f5956b0fac6ba52 | /docs/conf.py | 15332c991b4e2357f380f776c35bd8c2c007fe0e | [
"BSD-3-Clause-Modification"
] | permissive | smurfix/repoze.retry | b58bf0b1e96e995d8631e03d1eb51cea84bb2a3c | 0b7eae20b2ae29180bc36a5549ae9e54e5b6a7bd | refs/heads/master | 2021-01-17T08:00:17.562716 | 2013-12-03T09:16:39 | 2013-12-03T09:20:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | # -*- coding: utf-8 -*-
#
# repoze.retry documentation build configuration file, created by
# sphinx-quickstart on Mon Aug 9 08:03:46 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
... | [
"tseaver@palladion.com"
] | tseaver@palladion.com |
cf586d21d70ab55c9b7d5a8e1e146b94a0e7493b | 4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947 | /atlas/foundations_events/src/test/consumers/jobs/queued/test_queued_job_notifier.py | d0480777c4e91860a0d9142ea598f1e067386f54 | [
"BSD-3-Clause",
"MIT",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | yottabytt/atlas | c9d8ef45a0921c9f46d3ed94d42342f11488a85e | b040e574fbc64c833039b003f8a90345dd98e0eb | refs/heads/master | 2022-10-14T11:12:12.311137 | 2020-06-13T13:19:35 | 2020-06-13T13:19:35 | 272,008,756 | 0 | 0 | Apache-2.0 | 2020-06-13T12:55:29 | 2020-06-13T12:55:28 | null | UTF-8 | Python | false | false | 1,369 | py |
import unittest
from mock import Mock
from foundations_spec.helpers import *
from foundations_spec.helpers.spec import Spec
class TestQueuedJobNotifier(Spec):
job_notifier = let_mock()
@let
def consumer(self):
from foundations_events.consumers.jobs.queued.job_notifier import JobNotifier
... | [
"mislam@squareup.com"
] | mislam@squareup.com |
61afb06b14cebb1b2e48fc3470a43ba7a3778d28 | 614c28bcf7e0443065e9172e0de04ac6494d38ef | /core/forms.py | 8e5e79253477780939b0053571098d029ae05742 | [] | no_license | inood/foodgram-project | a7a26d2d4c9c89a773a8084bfcc3a25ea1e65fe1 | 00d066cbacaa781838474a6e36db3e47618a1bc9 | refs/heads/master | 2023-02-11T19:18:47.371882 | 2021-01-11T13:16:34 | 2021-01-11T13:16:34 | 315,265,172 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from django import forms
from core.models import Recipe
from foodgram.settings import ITEM_COUNT
class RecipeForm(forms.ModelForm):
class Meta:
model = Recipe
fields = ('title', 'description', 'cooking_time', 'tags', 'image')
widgets = {
'description': forms.Textarea({'rows': ... | [
"inood@yandex.ru"
] | inood@yandex.ru |
eb8e03b50b9cf04c181f5fd214e1461f869755bb | beea119ff63911711c906ea82cd7c8fa0b33f149 | /src/oscar/apps/dashboard/catalogue/mixins.py | b924a7dbbda53e107a9875e6c67e2c80b06ce6bc | [
"MIT"
] | permissive | benjaminbills/fundizshop | 6157316182ffa0045d68737315682c361f968ce9 | b5d09f70c0a728c74efa72a37b03efef2bed9d3d | refs/heads/master | 2023-06-21T19:05:08.120925 | 2021-07-13T05:00:15 | 2021-07-13T05:00:15 | 379,179,978 | 1 | 4 | MIT | 2021-07-07T09:18:29 | 2021-06-22T07:27:11 | Python | UTF-8 | Python | false | false | 529 | py | class PartnerProductFilterMixin:
def filter_queryset(self, queryset):
"""
Restrict the queryset to products the given user has access to.
A staff user is allowed to access all Products.
A non-staff user is only allowed access to a product if they are in at
least one stock rec... | [
"paulkush7777@gmail.com"
] | paulkush7777@gmail.com |
992d734c0a60e30c0ac311832377a1bb0b471d35 | f56bf63efa7f6e8d00f3f593ebef9ae15a97a57b | /pythonday2.py | 8496de757c1a17a0d04f7f11cf63512585af1f97 | [] | no_license | thomhard-lab/pythonday1 | c8822ea7b9ef2fbf1cfc46a2efb234b6dda7da8d | 4e02696cc001612c9305b9cbfe2d957aa11eddc9 | refs/heads/main | 2023-02-06T13:34:57.385450 | 2020-12-17T14:28:05 | 2020-12-17T14:28:05 | 321,659,624 | 0 | 0 | null | 2020-12-15T12:21:44 | 2020-12-15T12:21:43 | null | UTF-8 | Python | false | false | 4,718 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
kardus = ['aqua', 'sprite', 'cocacola', 'fanta']
print(kardus)
# In[2]:
botol = 'sprite'
print(botol)
# In[3]:
print(kardus[3])
# In[4]:
print(kardus[-1])
# In[5]:
kardus[0]='cleo'
print(kardus)
# In[6]:
kardus[-1]=80
print(kardus)
# In[7]:
print... | [
"noreply@github.com"
] | thomhard-lab.noreply@github.com |
de2cee78d88fad86b3dfd3e9394490c17a9be289 | 3df663b68b55ea6ebac628aba7b5489a6a36d25e | /validadorCPF.py | 99a7e808e7816a16de454892c16262e232b3e68e | [] | no_license | adroaldo-jr/Validador-de-CPF | eeda5e8eefdaede6058098b5d2b67bd8af395755 | 1e5a6e53b0d5973b8d5776bff85e850f2f399e6f | refs/heads/main | 2023-06-04T03:34:43.220465 | 2021-06-29T00:21:51 | 2021-06-29T00:21:51 | 381,184,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | while True:
cpf = input('Digite um CPF (somente números): ').strip()
# Faz os cálculos para validar o CPF
novoCpf = cpf[:-2]
reverso = 10
total = 0
for index in range(19):
if index > 8:
index -= 9
total += int(novoCpf[index]) * reverso
reverso -... | [
"adroaldosouto@gmail.com"
] | adroaldosouto@gmail.com |
40ff46ac61dab69c55f35bf02697ae1ce5adca82 | 88841c4b8c8a2d8c12186105510d325ff84324a5 | /scripts/artifacts/bluetoothOther.py | 111a4684b9a7165e034b4f586b0c34ae67aa8dad | [
"MIT"
] | permissive | mastenp/iLEAPP | 404b8aca6b6bc6fab04240fdccf822839bade1e1 | ee40ef7505b36d0b9b04131f284a9d4d036514a5 | refs/heads/master | 2022-12-26T07:55:17.905307 | 2020-09-29T11:58:16 | 2020-09-29T11:58:16 | 272,011,420 | 1 | 0 | MIT | 2020-09-29T11:58:17 | 2020-06-13T13:12:05 | Python | UTF-8 | Python | false | false | 1,198 | py | import glob
import os
import sys
import stat
import pathlib
import plistlib
import sqlite3
import json
from scripts.artifact_report import ArtifactHtmlReport
from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows
def get_bluetoothOther(files_found, report_folder, seeker):
file_found = str(files_... | [
"abrignoni@gmail.com"
] | abrignoni@gmail.com |
b77dc7690fac0f34094f9a7ce9bdcf7977eb6be0 | 4c8b7a9a11310ac7aede6fa738f8e631f1193766 | /pywinusb/hid/tools.py | 35c4419a9de9386447c577a19b802be7558426b6 | [] | no_license | yshome-hb/hid_tester | a62550a790f4d2775bbd5baac54e473c072197ec | c1d53f45ebdfda1d0f00ad44d0797268db0c1db1 | refs/heads/main | 2023-09-02T06:34:46.445905 | 2021-11-11T07:29:31 | 2021-11-11T07:29:31 | 426,536,271 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,441 | py | # -*- coding: utf-8 -*-
"""
Other helper functions.
"""
from __future__ import absolute_import
from operator import attrgetter
from . import usage_pages, helpers, winapi
def write_documentation(self, output_file):
"Issue documentation report on output_file file like object"
if not self.is_opened():
r... | [
"hustshenyang@126.com"
] | hustshenyang@126.com |
d2cb686f16745b3f32e57a8074aa9761232ddbb2 | e9b40496c500793d3ab0886295d4cc7c2538c009 | /code/chap3/regTwoVarPlot.py | 43ca9869b2b65f27598fe6d186c043f23f2fd2ba | [] | no_license | gurbuxanink/Python-Companion-to-ISLR | e27ca0342f3ffc7df2bffc857a106535d34c7513 | f46aa0d35551e323a08c201def5ddd6154b09370 | refs/heads/master | 2021-09-11T02:07:54.072651 | 2021-09-06T06:43:42 | 2021-09-06T06:43:42 | 184,629,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | # Three dimensional setting with two predictors and one response
# We simulate data used in plotting
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import statsmodels.formula.api as smf
np.random.seed(911)
x1 = np.random.uniform(0, 5, 50)
x2 = np.random.u... | [
"naresh_gurbuxani@hotmail.com"
] | naresh_gurbuxani@hotmail.com |
d7f81f1b456b403d5cfaa53ae22d927009042b7d | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /service/surf/apps/filters/metadata.py | 49cdddb85d42d447a04530c4871e5959605a61e7 | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 2,079 | py | from collections import defaultdict
import requests
from django.conf import settings
from django.utils.functional import cached_property
class MetadataTree(object):
harvester_url = None
api_token = None
def __init__(self, harvester_url, api_token, warm_up_cache=False):
self.harvester_url = harv... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
3ea01b02f1d2247da82de5a03180b328416801ca | 1a80c38ea020a8b18bb2c61b55caff8a38f553b9 | /SWEA/trying/6058.py | 647d2ed1e2f5a17a5950b75fb675a9047cc7a63c | [] | no_license | jiwookseo/problem-solving | 775a47825dc73f8a29616ef7011e8ee7be346f80 | eefbefb21608ae0a2b3c75c010ae14995b7fc646 | refs/heads/master | 2020-04-19T03:11:02.659816 | 2019-08-14T08:59:06 | 2019-08-14T08:59:06 | 167,926,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # 6058. 새해 축하 파티 D5
# https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWbHe_w6AHIDFAV0&categoryId=AWbHe_w6AHIDFAV0&categoryType=CODE
def gen():
a=0
for i in range(1,401):
a+=i
yield a
for tc in range(1,int(input())+1):
inp=list(map(int,input().split()))
b,l... | [
"spjo21@naver.com"
] | spjo21@naver.com |
b1a0b4815b9bfa38c9c14e9d2b66274c1cfce7da | 156ede071b75ce824dcac0dddb0162b6f83963ee | /03 Conditionals and Control Flow/04_how_the_tables_have_turned.py | fc37dfe32312e542870f5ada12c8207e4d9cd3b9 | [] | no_license | mindovermiles262/codecademy-python | c834b4a7f3b1381dd3e65db27b2edb15eabda9c8 | b6a6aa4db10192264ec2c88ddf4d1d16db66c533 | refs/heads/master | 2021-01-12T03:31:04.388402 | 2017-01-11T16:58:06 | 2017-01-11T16:58:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 11 08:35:31 2017
@author: mindovermiles262
Codecademy Python
For each boolean value in the editor, write an expression that evaluates to
that value.
Remember, comparators are: ==, !=, >, >=, <, and <=.
Use at least three different ones!
Don't just use True and False... | [
"mindovermiles262@gmail.com"
] | mindovermiles262@gmail.com |
d534c147b2b1de14fbf5db3b13e01bc44e796f15 | 96b3290c5b10222fc9fef339815388d572849845 | /manage.sjark | cf27c7640d8493a476b82ddca403ea5f4b84f9b1 | [] | no_license | hlindset/divensis | 7114aa10a89f6dbae7adb792de6800973c0d99e4 | b12b6fd35dbfa6727166c0b8ba68dd057a355927 | refs/heads/master | 2020-12-25T11:41:20.492308 | 2011-02-10T22:37:07 | 2011-02-10T22:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | sjark | #!/usr/bin/env python
import site
site.addsitedir('/home/www/.virtualenvs/d3/lib/python2.5/site-packages')
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py'... | [
"torkil@gmail.com"
] | torkil@gmail.com |
3147ed8320b6303dfd503e350957275f7d9e0b10 | 8337fec2d4e3ea85dd49f87da9f00024b6095190 | /addressbook/settings/local.py | f770a5215e8ada6e81cbdba43fc0d498653ee90b | [] | no_license | ValleyForgeTech/effective-django-tutorial | 12be30c9977b42083d75ae8697c33fbba07d8a13 | 5169c417664b88e29fb7beede6caa7f8d8411423 | refs/heads/master | 2021-01-16T19:17:39.593567 | 2014-06-10T03:13:09 | 2014-06-10T03:13:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'address.db',
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', ... | [
"mathew.goldsborough@foreveroceans.com"
] | mathew.goldsborough@foreveroceans.com |
8688ac67867a981e531391ddbcc4d45d57031d25 | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /google/ads/googleads/v6/services/services/ad_group_criterion_label_service/transports/grpc.py | 3858d13b56d6f9146bc2f4cc05078782cd0906a2 | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,967 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | hurricanelennane.noreply@github.com |
b50c1c5b1c3f1af01da5a81fe144e3b6e3bccdd9 | 43c9603d5314a7ba5f1a6e2f7445266002b54b77 | /account_parser.py | 2a9978f8c1e3050fcb456c50819e10b797899549 | [] | no_license | madjabal/notyouraveragebank | 6cc0dc26737765370a8cbae04395e58300f04694 | 62cfd29031d364424bc5aa75cc64ea7082f4aed9 | refs/heads/master | 2020-04-05T17:16:53.364069 | 2018-11-11T06:15:46 | 2018-11-11T06:15:46 | 157,052,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import statsmodels.api as sm
def find_still_cash(dataframe, give=False):
stddev = dataframe['Balance'].std()
min = dataframe['Balance'].min()
still_cash = round(min - stddev, 2)
if not give:
print("Ca... | [
"madjabal@bu.edu"
] | madjabal@bu.edu |
831d02112e7ceee36ced42de31fb8ccfb82dfac5 | 2247218311804a8e6ca0d07840ab918cd749376d | /tests/func/test_glr_parsing.py | 00ca40063da92a24e7c3ae3f8c0c690526bf186a | [
"Python-2.0",
"MIT"
] | permissive | morganjk/parglare | e48067ee99ead524d9bb311be80bc173e50ef5d2 | 39b8034d50d328844dfd91fcd94e23166056398f | refs/heads/master | 2021-07-18T09:44:39.758588 | 2017-10-22T15:08:56 | 2017-10-22T15:08:56 | 107,910,367 | 1 | 0 | null | 2017-10-22T23:17:58 | 2017-10-22T23:17:58 | null | UTF-8 | Python | false | false | 5,101 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import pytest
from parglare import GLRParser, Grammar, Parser
from parglare.exceptions import SRConflicts
def test_lr2_grammar():
grammar = """
Model: Prods EOF;
Prods: Prod | Prods Prod;
Prod: ID "=" ProdRefs;
ProdRefs: ID | ProdRef... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
c55b6c702c78501e61600c16337b8dad5c3dddb6 | 13754ebfa1517a8a847709c00db04578f4f5754f | /IT/214_database_management_system/p_m_jat/2019/lab_sessions/201601020_201601132_code1/throughput_plot.py | 30c5f7c6cf3404387033908431a24cf42bffc25c | [
"MIT"
] | permissive | shivani-nandani/AcadVault | 53c23be3ba763514fc7defda8eebba76100d6e1b | a89bad12cc498aa484d6a6005e036fb56985a406 | refs/heads/master | 2023-09-05T21:29:09.966860 | 2021-11-14T19:04:09 | 2021-11-14T19:04:09 | 260,447,543 | 0 | 2 | MIT | 2020-05-01T11:54:00 | 2020-05-01T11:53:59 | null | UTF-8 | Python | false | false | 1,379 | py | import matplotlib.pyplot as plt
import math
fp = open("parallel_vector_add.txt", "r")
f = open("serial_vector_add.txt", "r")
s = []
p = []
ser = []
for i, j in zip(f, fp):
t = i.split()
tp = j.split()
#print(t[0])
s.append(math.log(long(t[0]), 2))
if(tp[1] == "inf"):
tmp = 0
sup.append(tmp)... | [
"noreply@github.com"
] | shivani-nandani.noreply@github.com |
94fa79eb815b275ca6a5e5dadddd86fa66dfc38e | 48718ffbc6edc032eb3381ead91dacc71e0e7bfd | /timg/timglib/errors.py | 2b875feb06bee9ef87db346e86e92e05630ff8bb | [
"MIT"
] | permissive | 0xC4SE/timg | 4e1a7977372844d72e0b0131bacde962fca10257 | 063985a905862bdfeb79b2d9b1ab62d473bc2d9b | refs/heads/main | 2023-03-02T04:19:36.623481 | 2021-02-14T12:49:34 | 2021-02-14T12:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: thepoy
# @Email: thepoy@aliyun.com
# @File Name: errors.py
# @Created: 2021-02-08 17:04:25
# @Modified: 2021-02-10 14:24:27
class UploadFailed(Exception):
pass
class OverSizeError(Exception):
pass
class NotLogin(Exception):
pass
| [
"thepoy@163.com"
] | thepoy@163.com |
76875bec9b96853a5c5cb052cce66c86f04acb9a | 41ece9eafe777948758fa3c5d12bc238829164bc | /Python/Avito_parser/main.py | 05d89ab061ee7ff0ba70579be8cec111abb3f505 | [] | no_license | edition89/projects | d4d3a6ecb80cad18e74d9402c401d85077eb974a | d2052d89b2b460f8b6cb9d0f3a08904c50df7862 | refs/heads/main | 2023-04-06T13:02:30.321554 | 2021-04-19T08:46:20 | 2021-04-19T08:46:20 | 359,360,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,354 | py | import requests
from bs4 import BeautifulSoup
import csv
def get_html(url):
proxies = {'http': "socks5://99.109.24.9:1080"}
r = requests.get(url=url, proxies=proxies)
return r.text
def get_total_pages(html):
soup = BeautifulSoup(html, 'lxml')
print(soup.find('p', class_='text').text)
pages = s... | [
"roman_gabibullae@mail.ru"
] | roman_gabibullae@mail.ru |
1e741b4e3772f4de6d267d636bf813ac0c28d13d | c82c7b04df004c5f0cb371e56ec2a11d632032c1 | /simpy_airport.py | a0ad21e06217bf7d8c3cc05998ae3bb1c9e65e40 | [] | no_license | krangan2587/algorithms-master | ed560a56a496d6aa838712d411c7e410628b8450 | d6a2ef5ab059fc843e2d35480ffbc6bb3ac57a6f | refs/heads/master | 2021-07-05T12:38:33.617957 | 2021-05-08T16:37:59 | 2021-05-08T16:37:59 | 56,648,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py |
####### Homework 9 Question 4 using Simpy ######
# ---------- Import modules -----------
# import SimPy module
import simpy
# Import random module
import random
# ------------ Set constants ---------------
numCheckers = 35 # number of boarding-pass checkers
numScanners = 35 # number of scanners
arrRate = 50 ... | [
"kasturiranganp25@gmail.com"
] | kasturiranganp25@gmail.com |
f33fdb9037716d0a59e8f804848a001ca2e547e0 | b4dc0f5f0360f3b24ee5ada5cb90c14528ce66a7 | /책 나눠주기.py | bfce62d358b2e8706f4b637e21720ab0b89fecf9 | [] | no_license | YG-creator/Greedy_Algorithm | 508c92610adf1078317f7790aed365888d9ffe80 | 6614f8f2fcb1c333907a1dbeac550b692aa81bab | refs/heads/master | 2023-04-21T10:02:18.536358 | 2021-04-12T13:57:44 | 2021-04-12T13:57:44 | 357,213,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | T = int(input()) #테스트 케이스 갯수
for _ in range(T):
N, M = map(int,input().split()) #책수, 학생 수
books = []
for _ in range(M):
a, b = map(int, input().split()) #a이상 b 이하 책번호
books.append( [a, b] )
# b를 기준으로 정렬 후, ... | [
"2016272046@yonsei.ac.kr"
] | 2016272046@yonsei.ac.kr |
832c7aa91adfe0a5eaf875f4ef9aa36ef34176c8 | 49772506f78205290fb3229532bb81dae7afd6b2 | /src/subjects/serializers.py | 938a37462326353e5c062cfa8022d387153bd684 | [
"MIT"
] | permissive | rooneyrulz/explore_restframework_level_2 | 5fb06924ecff4550d9c4c5e510e99fc802207d87 | c2f0fab99a950e51d0dc49e8ab38dc6422e3f685 | refs/heads/master | 2021-09-23T07:44:36.957201 | 2019-12-04T18:58:32 | 2019-12-04T18:58:32 | 225,658,826 | 1 | 0 | MIT | 2021-09-22T18:05:08 | 2019-12-03T15:53:11 | Python | UTF-8 | Python | false | false | 457 | py | from rest_framework import serializers
from .models import Subject
class SubjectSerializer(serializers.ModelSerializer):
class Meta:
model = Subject
fields = ('id', 'name', 'teacher',)
read_only_fields = ('id',)
# def validate_name(self, value):
# qs = Teacher.objects.filter(name... | [
"ruzny@ruzny.com"
] | ruzny@ruzny.com |
f08d3bbd0dd875736377148ef15b65d78292cf9f | 638f2a3d825ddd36b5a501c00d1a2c317a56b7ce | /src/model.py | 5cde5ba891ac829576462dbb16287f4bb97fecdc | [] | no_license | vmccready/fraud-detection | 7742b4521fb8e15741575a9e88f30f567b9b01a2 | a549eca9ec2a3567c4846597c47819fe56c310c9 | refs/heads/main | 2023-04-05T14:11:39.430531 | 2021-04-21T20:06:00 | 2021-04-21T20:06:00 | 358,333,809 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | import numpy as np
import pandas as pd
import pickle
# from pipeline import get_X, get_y
from sklearn.ensemble import RandomForestClassifier
# BEST MODEL
# features - 'previous_payout', 'premium', 'no_payout_name',
# 'payout_toself', 'user_age'
def create_model(data, pipeline, model_path='models/test_model.pickl... | [
"vinson.mcc@gmail.com"
] | vinson.mcc@gmail.com |
a083f7ad8469cb81abd1209db8dd1c48afc39efa | 52d9f9fb6348c51e14c470e4405a79204ea98980 | /unit5_Auto_Test_Model/test5_3模块化与参数化/read_json.py | cf0bae59ca450578251cece4a4810693c6a6ce5f | [] | no_license | UULIN/automation_test | 0a815d9b1032d8d393e4f340bd294f17e20d194d | 5a193bb897d653a44e0376bcb6592d7b1811a424 | refs/heads/master | 2023-01-05T15:07:54.133329 | 2020-11-02T04:58:11 | 2020-11-02T04:58:11 | 280,456,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | """
读取json
"""
import json
import os
path = os.path.abspath("config")
with open(path+"\\user_info.json", "r") as f:
data = f.read()
userlist = json.loads(data)
print(userlist) | [
"1036190402@qq.com"
] | 1036190402@qq.com |
2d2ab5a792bc6425cc0658ad058e03676e4f4f14 | 3467bd7ea78649ebfb39746cf05663b7913691b3 | /ComputerAgent.py | 265b5a5e49695a79f10ead93674a1618f00b1f61 | [] | no_license | anindyy/halma-ai | a04b8bc50a73945c43309eb810d9e2bdfabb2d59 | 7113e5d3c2497c1da0d5a6b284ce75bda3342d30 | refs/heads/main | 2023-02-24T14:27:35.838865 | 2021-01-22T03:49:28 | 2021-01-22T03:49:28 | 331,825,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | from Agent import Agent
from Tree import Tree
from math import inf
from time import time
class MinimaxAgent(Agent):
def __init__(self, id, _time):
super().__init__(id, _time)
def play(self, board):
print("MINIMAX PLAYS")
bestval = board.value(self.id)
bestboard = board
deadline = time() + self... | [
"pamsrewari@gmail.com"
] | pamsrewari@gmail.com |
088f8b051d9ebba440d3ead3bdbd22c41891d7ee | 98371fb1fe6300ad42d18bfbfd029ac1a30d1eb6 | /d21.py | a3ec5fa8269a866ef3874f8f7e5e6a0e396babe8 | [] | no_license | Springo/AdventOfCode2020 | f96db67da9028524b4ce5dcb09509b13c93ffc36 | f5488d5c6f45f1d8b0ae7dbe8586ee4dce479c3a | refs/heads/main | 2023-02-03T22:55:36.681541 | 2020-12-25T05:42:30 | 2020-12-25T05:42:30 | 317,372,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | def readFile(filename):
lines = []
with open(filename, 'r') as f:
for line in f:
lines.append(line[:-1])
return lines
lines = readFile("d21input.txt")
al_list = dict()
ing_lines = dict()
al_lines = dict()
for i in range(len(lines)):
line = lines[i]
ls1 = line.split(" (contain... | [
"kevinmxia@gmail.com"
] | kevinmxia@gmail.com |
ad012277c0b78fc13734a65394c57cb8435f2783 | 2a5ebd4e349011b12dd25b3b7cd989f8731cce07 | /common.py | 8f7f588ad4a6c80f60c5071b09a6dc16d3a9a7d1 | [
"MIT"
] | permissive | Unknowncmbk/NeuralNetwork | d865c3f8d1c5985b6aee49235e10a3154c5cc5db | 1c05cbb36cd87c87f2d8ff9be32542e8ab908e57 | refs/heads/master | 2020-06-02T05:53:25.361402 | 2014-11-27T19:26:31 | 2014-11-27T19:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #
# Common numerical functions useful for perceptrons and neural networks.
#
# Compiled against Python 2.7
# Author: Stephen Bahr (sbahr@bu.edu)
def dot(a, b):
"""Return the dot (inner) product of vectors a and b."""
assert len(a) == len(b), "Lengths of %s and %s do not match" % (a, b)
return sum((ai * bi) for ... | [
"sbahr@bu.edu"
] | sbahr@bu.edu |
7a28ea1553bdc4de0d169a474e8f80f39f34399a | bf66a28310d934fd1b8b14f762b336b9ec893a04 | /spaces/management/commands/seed_detail_spaces.py | f9b9f8cc4f792d7c46b1fa631cb36906e2b90db2 | [] | no_license | jeongmin14/enter_cloud-backend | 0664a6563ea090926a8522b454b762afed1f5c9d | 789b358e8c3cf5be8505185c048e10556bfd9e0a | refs/heads/main | 2023-03-26T03:54:39.565076 | 2021-03-17T13:09:32 | 2021-03-17T13:09:32 | 348,644,724 | 0 | 0 | null | 2021-03-17T13:08:07 | 2021-03-17T09:09:14 | null | UTF-8 | Python | false | false | 3,291 | py | import csv
import random
import bcrypt
from django_seed import Seed
from faker import Faker
from django.contrib.admin.utils import flatten
from django.core.management.base import BaseCommand
from django.utils import timezone
from django.db.models import Count
from users.mo... | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
60d915aacf5bb27433fa991ce2f4ff01a97940b8 | 40f6aa355384efd0eb05ccf91f832e5b2aaa10bc | /mingw32/bin/gtester-report-script.py | ec1fefeae3480add88d609d268018c2bf5eaddf9 | [] | no_license | Persimmon-Consulting/git-sdk-32 | efd764dd562d8ef0c13558d5fd3111fa4d2723a5 | 5a2146abed2bd6a20f82e28e96f815ca8c95e60c | refs/heads/main | 2023-02-25T08:15:00.190961 | 2021-02-01T03:13:50 | 2021-02-01T03:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,114 | py | #!C:/git-sdk-32-ci/mingw32/bin/python3.exe
# GLib Testing Framework Utility -*- Mode: python; -*-
# Copyright (C) 2007 Imendio AB
# Authors: Tim Janik
#
# 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 Softw... | [
"ci@git-for-windows.build"
] | ci@git-for-windows.build |
0285552898e2f3c4ef99eed1b5f9c01d312dad95 | 5c41836471e08252f11bc51ce54e4d449f6a4f88 | /cajas/migrations/0004_auto_20180807_1115.py | b0877a004b33455f8b8122267004dd4dcc2bc3f3 | [] | no_license | wahello/dr_amor_app | 1e9be88681d94bda5425d006a769fd3c55edbadb | 3604f7992df97e981f6f72fd844b58186ebed6ef | refs/heads/master | 2020-04-27T10:46:46.453354 | 2019-02-25T04:50:34 | 2019-02-25T04:50:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.0.2 on 2018-08-07 16:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cajas', '0003_auto_20180801_2003'),
]
operations = [
migrations.AlterField(
model_name='billetemoneda',
name='activo... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
fa7186feee14a377eaf7cacdfd7aafc2db7bccca | 6518c74441a68fc99b2b08423b5ea11480806499 | /tests/tracking/test_artifact_utils.py | 42df335dbdc72043cd5ea533d5a16b1c13f91b18 | [
"Apache-2.0"
] | permissive | criteo-forks/mlflow | da58e64d09700623810da63999a1aca81b435b90 | 499284d8dc9e9ec79d8d9dbd03c58d162a2b7eaa | refs/heads/master | 2023-04-14T17:59:29.997458 | 2022-01-11T09:50:26 | 2022-01-11T09:50:26 | 191,391,769 | 5 | 4 | Apache-2.0 | 2023-04-07T15:16:20 | 2019-06-11T14:44:00 | Python | UTF-8 | Python | false | false | 5,304 | py | import os
from unittest import mock
from unittest.mock import ANY
import mlflow
from mlflow.tracking.artifact_utils import (
_download_artifact_from_uri,
_upload_artifacts_to_databricks,
)
def test_artifact_can_be_downloaded_from_absolute_uri_successfully(tmpdir):
artifact_file_name = "artifact.txt"
... | [
"noreply@github.com"
] | criteo-forks.noreply@github.com |
ff25ff702dbe8fbc4ba5a8fae2eeef3dc4c65831 | c6b85409d9e1e7a4cdac266d78c42715ec4f6fea | /blog/feeds.py | ed31d70ce9d3a537dab5139a56def1981d7c0e34 | [] | no_license | LissaAlissa/Django_Blog | d35cd73727bb8d8af294ca7d8ae732470e1fd92b | 90522a8ff0cc08548502a077f84a5321880e7247 | refs/heads/master | 2020-08-26T19:02:48.588274 | 2019-10-23T17:00:37 | 2019-10-23T17:00:37 | 217,111,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from django.contrib.syndication.views import Feed
from django.template.defaultfilters import truncatewords
from .models import Post
class LatestPostsFeed(Feed):
title = "My blog"
link = '/blog/'
description = 'New posts of my blog.'
def items(self):
return Post.published.all()[:5]
def it... | [
"davidovich.olga.v@mail.ru"
] | davidovich.olga.v@mail.ru |
c21c873a7bb3165f4fe9bd3f91f7f19f0165c4cc | 9f80330a51af33578c64c2a7f3db84c7190eaf68 | /core/serializers/user.py | 041cba00741807c73a2c6b7b508b9f2ad80c611b | [] | no_license | MashuqurRahman/bokshi-chat-dev | 501c0906e3a60716d2f7a07887c6bee21d699fab | 0b03ff3637ea8ac036b411c6a6c6dd2b12a22aa2 | refs/heads/main | 2023-02-28T03:56:59.475570 | 2021-02-11T09:06:26 | 2021-02-11T09:06:26 | 337,929,883 | 1 | 1 | null | 2021-02-11T09:06:27 | 2021-02-11T04:34:36 | Python | UTF-8 | Python | false | false | 375 | py | # core/serializers/user.py
from django.contrib.auth.models import User
from rest_framework import serializers
class UserListSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username')
class UserRetrieveSerializer(serializers.ModelSerializer):
class Meta:
... | [
"shahid.ice.nstu@gmail.com"
] | shahid.ice.nstu@gmail.com |
df611eb84cc4a732b0e4702ae54d667788b7c362 | 9eef3e4cf39a659268694cf08a4a799af8fb13e2 | /inference/surrogate/nn_surrogate/learning/training.py | 313ed4ae3a7b98e3561490f4cf3964ce074c4d2c | [] | no_license | cselab/tRBC-UQ | c30ec370939b949c989d2e9cd30137073b53e7d2 | cd7711b76c76e86bc6382914111f4fa42aa78f2c | refs/heads/master | 2023-04-18T03:06:49.175259 | 2022-10-25T15:45:07 | 2022-10-25T15:45:07 | 483,407,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | #!/usr/bin/env python
from copy import deepcopy
import torch
from torch.utils.data import DataLoader
def train_model(model,
data_loader: DataLoader,
x_valid: torch.tensor,
y_valid: torch.tensor,
criterion = torch.nn.MSELoss(),
lr=0.1,
... | [
"lucas.amoudruz@wanadoo.fr"
] | lucas.amoudruz@wanadoo.fr |
4d708ea3bd225f0c0c2dc484df2259a106ba8471 | f0fe4f17b5bbc374656be95c5b02ba7dd8e7ec6d | /all_functions/linux server/python GUI/menus/popupMenu.py | 1f03b6eadd92ccda984447a8fd4cfb671036029d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | Heroku-elasa/heroku-buildpack-python-ieee-new | f46a909ebc524da07f8e15c70145d1fe3dbc649b | 06ec2fda04d9e478ed2506400e460489b0ca91ab | refs/heads/master | 2022-12-10T13:14:40.742661 | 2020-01-29T14:14:10 | 2020-01-29T14:14:10 | 60,902,385 | 0 | 0 | MIT | 2022-12-07T23:34:36 | 2016-06-11T10:36:10 | Python | UTF-8 | Python | false | false | 2,177 | py | # submenu.py
import wx
########################################################################
class MyForm(wx.Frame):
""""""
#----------------------------------------------------------------------
def __init__(self):
"""Constructor"""
wx.Frame.__init__(self, None, title="Popup Menu Tutor... | [
"soheil_paper@yahoo.com"
] | soheil_paper@yahoo.com |
67b110211c48f58f63f581bf59716e00f685a415 | c4a01824e750f7a710fa5488128ec2694ad3f585 | /tensorflow_projects/ML_python_ch10.py | 7234eda5fa0583c6d53b2475df4fed0202f35a3e | [] | no_license | karsevar/tensorflow_projects | 4887391046c1bfc124a07a4f8599c8ef0b41face | 97d093f4dfeea83185c92d4cbf73d8b1c28cbacf | refs/heads/master | 2020-03-28T18:13:49.562167 | 2018-09-15T02:44:53 | 2018-09-15T02:44:53 | 148,862,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,173 | py | ###Hands on machine learning with tensorflow and scikit learn:
###Chapter 10 Introduction to Artificial Neural Networks
##The Perceptron:
#The Perceptron is one of the simplest ANN architectures. It is based on a slightly
#different artificial neuron called a linear threshold unit: The inputs
#and output are now numbe... | [
"masonkarsevar@gmail.com"
] | masonkarsevar@gmail.com |
a47695bab212efdb53838f47f47917c0959cdcb5 | 216da5e56b0d9139e220c423abb90ccf8a293ab6 | /colossalai/nn/layer/parallel_3d/_vit.py | ffe7a146af714eac4f707f6f443ebe65e2d6bca5 | [
"Apache-2.0"
] | permissive | hierarchyJK/ColossalAI | 0cb88eb6b238553bdd86b773d916d792086e219c | 0aa07e600c7119498d3a49492c9cebcdbe3e89a3 | refs/heads/main | 2023-08-25T17:22:24.620883 | 2021-11-04T06:26:28 | 2021-11-04T06:26:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,482 | py | import math
from typing import Tuple
import torch
import torch.distributed as dist
from colossalai.context import ParallelMode, seed
from colossalai.core import global_context as gpc
from colossalai.registry import LAYERS
from colossalai.utils import checkpoint, get_current_device
from torch import Tensor, dtype, nn
... | [
"kurisusnowdeng@gmail.com"
] | kurisusnowdeng@gmail.com |
4fb0267024365fe73642c4b39046867cd3b64c55 | 7412328d5ddf175ca4186a5d8015e03fcc12ad58 | /website_blocker.py | 5b3db032c4e22df099017d6fcacbff5bf6d95442 | [] | no_license | Subho25/Website_Blocker | e3f2e1bb62a37d80556445f2b9cedfaa6b19b1c2 | 320b444382ce45302e26dd9f4bdb2b7b999d903d | refs/heads/main | 2023-04-24T06:16:23.655970 | 2021-05-06T11:22:22 | 2021-05-06T11:22:22 | 325,788,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | import time
from datetime import datetime as dt
hosts_path = r"C:\Windows\System32\drivers\etc\hosts"
hosts_temp = "hosts"
redirect = "127.0.0.1"
website_list = [
"www.facebook.com",
"facebook.com",
"twitter.com",
"www.twitter.com",
... | [
"01chandrasubhodeep@gmail.com"
] | 01chandrasubhodeep@gmail.com |
3f87c89ac30e6067d6d60050f99e7ddc4417d01a | 0435b6282cfc7cb27c5c5f2d7d2bcbf160ca8d7d | /Project_2/linear.py | 7c9b6e7ce2bec81bd7b80dcd64aeeecc566bf256 | [] | no_license | zx-joe/EPFL-Deep-Learning | 39d97b1d02c2d4b5fdee471ffe41ce06328e2f9a | 8d2b1aa94608e6cdc2dcc60fa6c5f4e3b7e69e36 | refs/heads/master | 2022-12-11T11:11:07.960851 | 2020-09-08T09:03:21 | 2020-09-08T09:03:21 | 190,944,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | import torch
import math
from torch import Tensor, FloatTensor
import matplotlib.pyplot as plt
from module import Module
class Linear (Module) :
# one fully-connected layer
def __init__(self, in_dim, out_dim, eps=1., method='xavier'):
self.in_dim=in_dim
self.out_dim=out_dim
... | [
"xiao.zhou@epfl.ch"
] | xiao.zhou@epfl.ch |
29732b4e97e41afa600a1a52c1ba800ee682dec3 | 94146fef03b1b7e4f3bb5d02067772a3d3e114c4 | /Token.py | c70abacf27485d8df47e869f60da678d2a7c0d0a | [
"MIT"
] | permissive | PMARINA/Canvas-Autograder | a3654d15f8af5b80c7f8b37181487e3ddd931239 | 9a10b0872061202ea6311b6df257f1bbc071b798 | refs/heads/main | 2023-03-07T02:12:24.332766 | 2021-02-21T08:16:37 | 2021-02-21T08:16:37 | 340,815,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | """Handles the user token for making authenticated requests to the canvas api."""
import os
import pickle
import pyperclip # type: ignore
from loguru import logger
import Canvas_Request
import Variables
token_fp: str = os.path.abspath(Variables.TOKEN_FILE)
token_string: str = ""
def verify() -> None:
"""Save... | [
"bluerat33@gmail.com"
] | bluerat33@gmail.com |
cc29d5398e6d41ed19ef958c63351c898a368bb6 | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/boto/configservice/exceptions.py | 58aa550f9cd9b165a42667b8d7135033fda20174 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 2,528 | py | # Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# 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 ... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
232ac4debdccb67b46d0441af9c4ba867812edf9 | 3539d0e3ddd7849a14876e95f0332428ec28ebf7 | /Data Scientist Career Path/11. Foundations of Machine Learning Supervised Learning/4. Classification/1. KNN/7. classify.py | 9009fe68fc2f9cd150796ea094d743cfcc322a16 | [
"MIT"
] | permissive | DincerDogan/Data-Science-Learning-Path | ff146de2cf4ebc5fedfa9377babf959208dfe7e6 | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | refs/heads/main | 2023-05-08T10:53:47.449974 | 2021-06-06T21:27:31 | 2021-06-06T21:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from movies import movie_dataset, movie_labels, normalize_point
def distance(movie1, movie2):
squared_difference = 0
for i in range(len(movie1)):
squared_difference += (movie1[i] - movie2[i]) ** 2
final_distance = squared_difference ** 0.5
return final_distance
def classify(unknown, dataset, labels, k):
... | [
"aristyanto2320@gmail.com"
] | aristyanto2320@gmail.com |
39457cf330a0cc0001c530272b46b72c44f37a05 | ef37e8e9ac656e211ccf3354734261395907a12e | /sfotipy/urls.py | 6d76bd2cc401975533a9449802442d0465b3469d | [] | no_license | seethersan/sfotipy | 655846fd9b4e7c255b2ce328bda767597d6aa89b | f0d23cfd82df7c65fb4cdd9b1d3dac3bfed32cd7 | refs/heads/master | 2021-01-10T04:15:19.577795 | 2016-01-07T00:56:15 | 2016-01-07T00:56:15 | 49,170,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,172 | py | """sfotipy URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"carlos_jcez@hotmail.com"
] | carlos_jcez@hotmail.com |
aa73120bf09c8c6af195213100bedac6b5e7e642 | 54934cfe32ce5aa5c2e718b0c5c2afa4b458fe75 | /25ch/graph.py | 617c1d6ad6e8616a8e8c0e6ea2ca8c171b8b289c | [] | no_license | mccarvik/intro_to_algorithms | 46d0ecd20cc93445e0073eb0041d481a29322e82 | c2d41706150d2bb477220b6f929510c4fc4ba30b | refs/heads/master | 2021-04-12T12:25:14.083434 | 2019-11-09T05:26:28 | 2019-11-09T05:26:28 | 94,552,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | from random import randint
import pdb
class Graph:
"""
Graph data structure.
"""
def __init__(self, fname = None, numVertices = None, numEdges = None, weightRange = None, directed = True):
"""
Generates a weighted graph.
"""
self.adjacent = {}
self.weight = {}
... | [
"ec2-user@ip-172-31-91-31.ec2.internal"
] | ec2-user@ip-172-31-91-31.ec2.internal |
d3edd991480a17a75bc5d77d28df7498dfa829ef | f4271ab6fd88b2c05ccc45cdaa7611f06ba8a489 | /jianda/extra_plugins/qiniudemo/qiniudemo/settings.py | f5887a9d1db9958c9bbec1fe2ecf248c55f09752 | [] | no_license | wanganzhi1986/wantest | 245914f4a2ffcfd6d9a0e17576eedeecbe2156db | 6512e59816d3a111b602ca21f07bddc45b2ee022 | refs/heads/master | 2020-06-17T21:40:58.305121 | 2017-07-15T05:45:00 | 2017-07-15T05:45:00 | 74,971,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | """
Django settings for qiniudemo project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
... | [
"wangwei03@puhuifinance.com"
] | wangwei03@puhuifinance.com |
01f71854fb9d777d10176477c617eccd675ac52c | a3f1e80179c23d9202d72b75dd37a49b44785f45 | /api/client/test/test_api_catalog_upload_item.py | f3b1cbbfc6b43d84d22085c8e5fe119b0da41801 | [
"Apache-2.0"
] | permissive | pvaneck/mlx | b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27 | 6edaa0bd77787c56b737322a0c875ae30de6cd49 | refs/heads/main | 2023-05-14T06:08:38.404133 | 2021-05-04T01:41:11 | 2021-05-04T01:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | # Copyright 2021 IBM Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
311778ed50cc91a89d77cd08a94fd8589d8562ed | 55ba24f74f70e8a3bf2ab28dac0655eacfb8cdb9 | /src/feature_extraction.py | d0ec331c6264a6f87ccff30553b2cdef154acff3 | [
"MIT"
] | permissive | grantgasser/vehicle-detection | 7afd9130745dffbe8bcc19598b03cc759308389e | 812932d545eba088f530fa77dc9ef0399d30b713 | refs/heads/master | 2023-02-28T13:58:52.225288 | 2021-02-10T02:58:05 | 2021-02-10T02:58:05 | 318,337,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | from tqdm import tqdm
import numpy as np
import cv2
from skimage.feature import hog
def get_color_hist_features(img, bins=32, range=(0, 256)):
"""Compute and return color histogram features"""
rhist = np.histogram(img[:, :, 0], bins=bins, range=range)
ghist = np.histogram(img[:, :, 1], bins=bins, range=ra... | [
"glgasser@gmail.com"
] | glgasser@gmail.com |
d6eff62f0cf2c08de8264ef0002a1498a2529538 | 4d53f9c03ce769c51c4baa7c1920045c0f45f799 | /moon/viewer/layout.py | d3bc0c3b3ad282478e581481c9d2a8e264bc197a | [
"MIT"
] | permissive | epunzal2/moon-board-climbing | 9b206e001d1d0eb49a259dfba8d3d43c270be46e | ae149586099f4e0a0ee3664404f6493f19f6ad61 | refs/heads/master | 2023-08-15T03:11:08.297803 | 2020-06-08T21:31:37 | 2020-06-08T21:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,565 | py | import os
import sys
import tkinter as tk
from PIL import Image, ImageTk
from climbset import Climbset
import_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + "/types"
sys.path.append(import_path)
base_image = Image.open(os.path.dirname(os.path.realpath(__file__)) + "/cleaned.png")
def fix_tr... | [
"houghtonandrew0@gmail.com"
] | houghtonandrew0@gmail.com |
b75c4770199293de8d847af50386a6f6211d23b6 | 26c0f80688f75a188097a232c229a73c8e7cc6ed | /user/migrations/0031_alter_profile_zipcode.py | 26fb0ef6fbd873151e7d3d517d0ac2cbcf69cd3b | [] | no_license | creep1g/DjangoWebstore | 8207d7ea53c478fb7e5745e1c6ae6699102b5df5 | bd27340b86bf2289b8c14216462d932ccdf4986d | refs/heads/main | 2023-05-06T09:50:04.846489 | 2021-05-28T14:40:40 | 2021-05-28T14:40:40 | 371,730,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 3.2 on 2021-05-12 15:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0030_merge_0024_alter_profile_card_cvc_0029_profile_city'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"thorgilshjalmarsson@gmail.com"
] | thorgilshjalmarsson@gmail.com |
a86a3fd42452beca316aaf1e2ab27e00942906ad | 266c55fd4f94fdf85652f8000d4e0f3d7ded68a5 | /opener-project/get-er-done.py | cf1c838153bcd3724046f49cb514c5ec7c105a4f | [] | no_license | yuqing123/compjour-hw | 5a30c210518cc26e8b971267f1019a5ef5d57a50 | 16d5992b1a90f104273c6baa59a568e38bdbf736 | refs/heads/master | 2021-01-22T19:44:52.475524 | 2015-06-10T04:03:13 | 2015-06-10T04:03:13 | 33,498,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import os.path
filenames = [
"hello-world.py",
"imports-and-setup.py",
"stanford-news-download.py",
"stanford-news-heds.py",
"stanford-news-topics.py",
"get-er-done.py",
"fetch-and-unpack-twitter-data.py",
"read-sunlight-csv.py",
"read-twitter-json.py",
"twitter_foo.py",
"twitter_foo_fun.py",
"twitter-tablemaker.py",
... | [
"yuqingp@stanford.edu"
] | yuqingp@stanford.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.