blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59602afbce466d3a9113e0c7e330db6597cd02fa | cb242b1fdf3889d4df347f3102daf6584a0c40a4 | /threeandthrees/words.py | d562ed188fda92eba7607308a68f44f8b4960f5d | [
"MIT"
] | permissive | bwarren2/threeandthrees | d927711f0927a8e3493cd201ffdd8d930e5586f2 | 2a09a398ab332c27e2e7722e612fa18318b50e60 | refs/heads/master | 2023-05-25T23:28:11.706181 | 2021-04-30T15:12:45 | 2021-04-30T15:12:45 | 68,949,353 | 0 | 0 | MIT | 2021-04-30T15:12:46 | 2016-09-22T18:18:05 | Python | UTF-8 | Python | false | false | 2,546 | py | from collections import defaultdict, OrderedDict
import random
from colorama import init, Fore
import os
import re
init(autoreset=True)
safe_pattern = re.compile('^[a-z]{9}$')
def extract_words():
dir_path = os.path.dirname(os.path.realpath(__file__))
with open(dir_path + '/american-english.txt', 'r') as f:... | [
"bwarren2@gmail.com"
] | bwarren2@gmail.com |
7f21a3c4b4eab2603971a2c036ccf0062bc692a0 | 92d5c15b92356de9f66d2d4738f3c6f00ef2796f | /alembic/versions/11a00705ac61_added_a_bunch_of_gra.py | 125da279586118ae1e213bc3e51a31aadf58a062 | [] | no_license | colinmorris/moz-graphs | 2f88472b7ad23ee0c63977c2151ac102af475769 | f412c0564fb210327436da0468f78932bd21dca0 | refs/heads/master | 2016-09-06T04:36:39.322822 | 2013-07-27T22:00:14 | 2013-07-27T22:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | """added a bunch of graph vars for assignee
Revision ID: 11a00705ac61
Revises: 48044ce97c4f
Create Date: 2013-04-08 10:21:12.247290
"""
# revision identifiers, used by Alembic.
revision = '11a00705ac61'
down_revision = '48044ce97c4f'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands a... | [
"colin.morris2@gmail.com"
] | colin.morris2@gmail.com |
32c3db21179f71d7d3b81b90f71abe18b6ebcc50 | a757953b0fab1c4d05ce6b70b68b411df42bb887 | /raredecay/run_config/config.py | bf95bbd8a144a333eb7c63e6c9faeb67b38b1b7f | [
"Apache-2.0"
] | permissive | efueger/raredecay | 4e6ae0cff4bde925e2985335793dc7a138a5c772 | 4a92742016b2aea27e5156fee168d69d2c0361d0 | refs/heads/master | 2021-01-01T20:37:16.970625 | 2017-07-31T14:48:35 | 2017-07-31T14:48:35 | 98,898,305 | 0 | 0 | null | 2017-07-31T14:31:54 | 2017-07-31T14:31:54 | null | UTF-8 | Python | false | false | 1,379 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 16 13:44:43 2016
The configuration file for external operations.
@author: Jonas Eschle "Mayou36"
"""
RUN_NAME = 'Classifier optimization'
run_message = str("This could be your advertisement" +
" ")
OUTPUT_CFG = dict(
run_name=RUN_NAME,
output... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
84384e7ac129c854281286bde8c8fa39109edf50 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/409/usersdata/308/79040/submittedfiles/av1_programa1.py | cf9b07d9090afe0bfb3912b3b86c0d8a9fbf8726 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | # -*- coding: utf-8 -*-
#Lendo valor do usuário
x = int(input('Informe o valor: '))
#testando se é par
if (x%2==0):
print('PAR')
else:
print('IMPAR')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d25ac17866c59602f3a74c473525baa8b1525ecc | 42186fa6507999ce60d334a0f04d9ae2127579cd | /shanghai/crypto/aessss/aes.py | 28f4167b8afbc6cd5a1d96fa31eac1158ba77de1 | [] | no_license | Imtinmin/CTF_Challenge | ef8b62b3a4a1741d814d989f795a243257ff6f2b | ea276596f9effdbe0cf9ef4457e2e676e652bb74 | refs/heads/master | 2022-12-21T12:40:40.625562 | 2020-04-30T03:27:56 | 2020-04-30T03:27:56 | 158,999,004 | 18 | 3 | null | 2022-12-10T04:34:27 | 2018-11-25T04:53:04 | PHP | UTF-8 | Python | false | false | 6,458 | py | # -*- coding:utf-8 -*-
import random
import sys
import string
from hashlib import sha256
import SocketServer
from Crypto.Cipher import AES
from secret import FLAG, IV, KEY
class Task(SocketServer.BaseRequestHandler):
def proof_of_work(self):
proof = ''.join(
[random.choice(string.ascii_letter... | [
"954093370@qq.com"
] | 954093370@qq.com |
d882a075eccf5c70c14258c6c98aa38b84b83009 | e37fa62da82ae60561e59027f8626facc9728b4a | /learn_spyder/downloads/Chapter2/solutions/Exercise2-4.py | 8d0998a34134a66f4b644de906051a217539109b | [] | no_license | nhuntwalker/mystuff | ea05551ae17cfc0a6e4286a0dd97fe85f39bfe89 | bf2e79a1213fea1249ce93ef28d0caeffc710eb1 | refs/heads/master | 2021-01-19T01:04:22.215725 | 2016-06-23T00:22:22 | 2016-06-23T00:22:22 | 13,390,985 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | import ctypes as ct
# libc = ct.CDLL('libc.so.6') # in Linux/MacOS
libc = ct.cdll.msvcrt # in Windows
for c in range(128):
print(c, ' is a ctrl char' if libc.iscntrl(c) else 'is not a ctrl char')
| [
"nhuntwalker@gmail.com"
] | nhuntwalker@gmail.com |
1ce4e956fe58872f2719ab4f3c67b8c279caf0a8 | 8cf5c91fa744f49b40264061d4fd510ea761cf8f | /build/lib/dragonn/visualize_util.py | f672496759111da32eecdc588fa5a4607cc0eb20 | [
"MIT"
] | permissive | AvantiShri/dragonn | 0f38371ac7734099279f3b3e204565d9a663102f | aeb9674f39b71d07ff62d2c3745bef4a2e55b95f | refs/heads/master | 2020-04-23T18:01:34.394772 | 2019-02-18T06:07:40 | 2019-02-18T06:07:40 | 171,352,688 | 0 | 0 | MIT | 2019-02-18T20:37:59 | 2019-02-18T20:37:59 | null | UTF-8 | Python | false | false | 5,953 | py | # Adapted from Keras source code
# License: https://github.com/fchollet/keras/blob/master/LICENSE
import itertools
from keras.layers.containers import Graph, Sequential
from keras.layers.core import Merge
try:
# pydot-ng is a fork of pydot that is better maintained
import pydot_ng as pydot
except ImportError:... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
4eeccaf83120bc0894347b8916c466c18737500d | 4ecbc07cdc980f899510e0db2971ba754c474670 | /timm/models/layers/mlp.py | 05d076527cfb6f15bcf5f2830fa36777abbc5a1e | [
"BSD-3-Clause",
"GPL-1.0-or-later",
"MIT",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"CC-BY-NC-4.0",
"Apache-2.0"
] | permissive | shrikumaran/pytorch-image-models | 8c74ec7d705b6b2fb223d519afdd61f33c108cec | 6d8272e92c3d5f13a9fdd91dfe1eb7fae6784589 | refs/heads/master | 2023-06-16T06:41:30.088230 | 2021-07-08T18:23:55 | 2021-07-08T18:51:12 | 384,009,847 | 0 | 0 | Apache-2.0 | 2021-07-08T05:22:35 | 2021-07-08T05:22:34 | null | UTF-8 | Python | false | false | 3,774 | py | """ MLP module w/ dropout and configurable activation layer
Hacked together by / Copyright 2020 Ross Wightman
"""
from torch import nn as nn
class Mlp(nn.Module):
""" MLP as used in Vision Transformer, MLP-Mixer and related networks
"""
def __init__(self, in_features, hidden_features=None, out_features=N... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
a23aaeb1fe329a362d00beace17f570d5ab087b3 | 5cb3b0b88c1baa2fae9562ac4cad5f84d65221e1 | /w7/demo/demo/core/models.py | b936ac6f63740a7a568da59d6fbd5aca09523171 | [] | no_license | bobur554396/BFDjango2020Spring | aa7ad9a595b247100f876e36585368af078d862e | e7ef04be2cf4d2506c2212ea4509a106e12d4dd4 | refs/heads/master | 2020-12-15T07:07:16.214284 | 2020-04-13T19:16:28 | 2020-04-13T19:16:28 | 235,028,587 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | from django.db import models
from rest_framework import serializers
class Publisher(models.Model):
"""Publisher class"""
MALE = 1
FEMALE = 2
GENDER = (
(MALE, 'male'),
(FEMALE, 'female'),
)
name = models.CharField(max_length=300, unique=True)
city = models.CharField(max_len... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
a28d8b93e2c943b416dc0e882ce5ceeaff0889f8 | 551ef0567aca428a535775d3949f5d9670c0d29c | /abc/212/c/main.py | 9351e78f01dac0c8505cf070b9bc58365ee2fbc7 | [] | no_license | komo-fr/AtCoder | 7451a9402466ce8d487d0c521128732061c647df | c916889294cb12f21e74254de43b3e17e1b354bc | refs/heads/master | 2023-07-22T07:05:52.955188 | 2023-03-01T14:22:16 | 2023-03-01T14:22:16 | 213,109,943 | 0 | 0 | null | 2023-07-06T22:01:28 | 2019-10-06T04:44:49 | Python | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python3
N, M = list(map(int, input().split()))
a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
ab_list = []
for a in a_list:
ab_list.append((a, "a"))
for b in b_list:
ab_list.append((b, "b"))
ab_list = sorted(ab_list)
a = None
b = None
min_y = float("inf")
fo... | [
"komo.mdrms@gmail.com"
] | komo.mdrms@gmail.com |
4c0b163a7460d2fd4bc039cf7ea4f217d04db9cf | 47ce68e1ff970318fd31ac43405d0e1fa3594bf6 | /Models/biGAN/lowerDimBiganXEntropy.py | c888aeec7669d02cd851651a907718f7717dec9c | [
"BSD-3-Clause"
] | permissive | Midoriii/Anomaly_Detection_Diploma | 7196da379f8aefbd4546ca23e8303d1829e059fb | 11145e3e5210a4e45a33d98b138213edb7bc5d3d | refs/heads/master | 2023-03-25T20:42:56.961210 | 2021-03-14T01:13:39 | 2021-03-14T01:13:39 | 261,205,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,537 | py | '''
Copyright (c) 2021, Štěpán Beneš
Basic bigAN net, using cross entropy as loss and made to work on 192x192
'''
import numpy as np
from Models.biGAN.BaseBiganModel import BaseBiganModel
from Models.Losses.custom_losses import wasserstein_loss
from Models.biGAN.weightclip_constraint import WeightClip
from keras.lay... | [
"stephen.Team24@gmail.com"
] | stephen.Team24@gmail.com |
4f6c3c3b84254e921f2c0c5e943bbdf9507428ac | 54277288865f738e44d7be1d6b41b19c63af267e | /configs/vcop/pretraining/r3d_18_ucf101.py | eee5d0eb75ac9265d0ceb4f2ff2d8593597c7c29 | [] | no_license | scenarios/SR-SVRL | 7b41d29e16cff3020f333efc28a624d85bba4537 | 26e89ecb29355635b10a355f2f16f1b5db9c4e9b | refs/heads/master | 2023-02-26T06:16:13.314491 | 2021-01-30T16:30:57 | 2021-01-30T16:30:57 | 307,295,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | _base_ = ['./default_runtime.py']
work_dir = './output/vcop/pretraining/r3d_18_ucf101'
model = dict(
type='VCOP',
backbone=dict(
type='R3D',
depth=18,
num_stages=4,
stem=dict(
temporal_kernel_size=3,
temporal_stride=1,
in_channels=3,
... | [
"zyz0205@hotmail.com"
] | zyz0205@hotmail.com |
0df64cbead81c2a07c3c63de293eecf1dcd41184 | 875bb84440094ce058a2ec25a661a7da6bb2e129 | /algo_py/boj/bj1212.py | 3005d1075ae35471fa8e65763598520f538478f1 | [] | no_license | shg9411/algo | 150e4291a7ba15990f17ca043ae8ab59db2bf97b | 8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d | refs/heads/master | 2023-06-22T00:24:08.970372 | 2021-07-20T06:07:29 | 2021-07-20T06:07:29 | 221,694,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | print(bin(int('0o'+input().rstrip(),8))[2:]) | [
"shg9411@naver.com"
] | shg9411@naver.com |
1d75984677b077ce6e550ab347cff03ec6cfd208 | 02e2bae82882e9d16b00de32ffbb65b51010903c | /statement/models.py | 6558c6e70f924e858e576a94f51883682d69461d | [] | no_license | jack2150/rivers | 5bf9f11d0fa48aede825329bb8a0fc539ef43a11 | 2aa8bc18e8626a1a838053886a49a2b198c6d152 | refs/heads/master | 2021-01-17T13:13:02.839904 | 2018-11-09T08:48:42 | 2018-11-09T08:48:42 | 35,507,795 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 39,875 | py | import logging
from importlib import import_module
from datetime import datetime
from django.db import models
from django.db.models import Q
import pandas as pd
from pandas.tseries.offsets import Day
from base.ufunc import remove_comma
logger = logging.getLogger('views')
class StatementName(models.Model):
"""
... | [
"bvc100x@gmail.com"
] | bvc100x@gmail.com |
0199017464728830e0f1cc7a81ab6727cbc32e81 | f8ffa8ff257266df3de9d20d95b291e393f88434 | /Python - advanced/zajecia08/zadanie_domowe/wc.py | 8f7ba321ebbab792e39244c1e46ea04d4aff5b79 | [] | no_license | janiszewskibartlomiej/Python_Code_Me_Gda | c0583c068ef08b6130398ddf93c3a3d1a843b487 | 7568de2a9acf80bab1429bb55bafd89daad9b729 | refs/heads/master | 2020-03-30T05:06:26.757033 | 2020-03-02T08:53:28 | 2020-03-02T08:53:28 | 150,781,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Bartłomiej Janiszewski
from wc_funkcje import ustaw_logger, wc
import log
import datetime
if __name__ == '__main__':
start = datetime.datetime.now()
nazwa_pliku = 'zen.txt'
wybrany_szablon = 'pelny'
poziom_logowania = log.DEBUG
ustaw_logger(poziom_logowania)
wynik = wc(nazwa_pliku, wybrany_... | [
"janiszewski.bartlomiej@gmail.com"
] | janiszewski.bartlomiej@gmail.com |
7480bda28d7c6e29cbb2bd96889c9340d1a9e221 | 80e3dfac67631cef70da3dc015d4557d46d41801 | /src/grid/changemapanimations.py | 59382ea322cc21c033792db21c18f8d56677383d | [] | no_license | snizzo/lucrezia | 7b6d648f11581ddd21acd301df5426d77b6b21dd | fb41e5ba4435d48d702c58aa9402c10ab12a51b9 | refs/heads/master | 2023-06-22T13:14:06.634116 | 2023-06-18T22:42:14 | 2023-06-18T22:42:14 | 32,765,327 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #panda3d
from panda3d.core import NodePath, LPoint2i
from direct.showbase.DirectObject import DirectObject
from direct.interval.IntervalGlobal import *
#internals
from utils.toggle import Toggle
from utils.once import Once
from objects.grass import Grass
from objects.light import Light
from tile import Tile
from chara... | [
"happy.snizzo@gmail.com"
] | happy.snizzo@gmail.com |
a0b703f87a403de60bd497d01dc11969567edd6c | 2eb8e3606a8df45d432fdf56ee9aa24942304526 | /rocketgram/api/shipping_option.py | 55db89dd5aca13265cd5374ea45adc78d30833c9 | [
"MIT"
] | permissive | KulZlaK/rocketgram | 22848293980ba44dd9fb63db28f34be36c437c84 | 09587deecffcd7ccc9529f4d9e51221888870f23 | refs/heads/master | 2022-07-27T23:25:51.254444 | 2020-05-15T21:36:57 | 2020-05-15T21:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Copyright (C) 2015-2020 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import List
from .labeled_price import LabeledPrice
@dataclass(frozen=True)
class ShippingOption:
""... | [
"vd@"
] | vd@ |
4fcaed0256103e3eb8ace9827d79a215ae909c24 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/.install/.backup/lib/surface/preview/app/__init__.py | 8250cdb4a7ea1553778dd1cecb732f0c19282aa6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 2,988 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
aa3f4f7235ffe090bfb7628336f9b3504774ab15 | 4a4579254118db40fb008439d18ad8c573e8fc1a | /build/jsk_common_msgs/jsk_gui_msgs/cmake/jsk_gui_msgs-genmsg-context.py | f56cef5c14333e672ea233f015bc2fa7f8ca52be | [] | no_license | amilearning/AD_mpc_ws | 86ff6ef9e61c6cc5aae6e12f20c2c875b1930d41 | 1fc2d385f281e00c16aff688948f7296e02cbd3a | refs/heads/master | 2023-06-24T13:54:59.759921 | 2021-07-16T01:08:52 | 2021-07-16T01:08:52 | 386,465,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/hmcl/shared_dir/mpc_ws/src/jsk_common_msgs/jsk_gui_msgs/msg/Action.msg;/home/hmcl/shared_dir/mpc_ws/src/jsk_common_msgs/jsk_gui_msgs/msg/MagneticField.msg;/home/hmcl/shared_dir/mpc_ws/src/jsk_common_msgs/jsk_gui_msgs/msg/Touch.msg;/home/hmcl/sha... | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
5ea65368b06c233a66fb293222f5e0e86ade3e0a | f81c9451768a52bc22c6a2abe87c25615ea8b3e6 | /汇总文件/jobboleproject/jobboleproject/spiders/crawlJobbole.py | b191639c8f7518c6e3da765558ff142ab763b436 | [] | no_license | hanfang302/crawlercollect | 07cb7fb5faf85018e82f48b0209bd86dc5c52f8f | 8f7b286df8bf0a344c3656bda5c7fb96cee640dc | refs/heads/master | 2020-03-22T05:27:07.928855 | 2018-07-03T10:26:07 | 2018-07-03T10:26:07 | 139,566,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
#继承crawlspider,crawlspider有继承之spider
class CrawljobboleSpider(CrawlSpider):
#爬虫名称
name = 'crawlJobbole'
#域,制定可以爬取的url必须在这个域下面,不在的自动忽略
allowed_domains = ['blog.jobbole.com']... | [
"hanfang123@aliyun.com"
] | hanfang123@aliyun.com |
1321de452caf0060f6d2cf2523a3f418c5ce49c9 | 4e382ae46cf997ea2dbdfcfa463a57d3e0e9ad97 | /sols/different_ways_to_add_parentheses.py | bd10c6c02ef9f79a33afab5e46cb95900b8ae084 | [] | no_license | hayeonk/leetcode | 5136824838eb17ed2e4b7004301ba5bb1037082f | 6485f8f9b5aa198e96fbb800b058d9283a28e4e2 | refs/heads/master | 2020-04-28T03:37:16.800519 | 2019-06-01T14:34:45 | 2019-06-01T14:34:45 | 174,943,756 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Solution(object):
def diffWaysToCompute(self, exp):
def calculate(num1, num2, sign):
if sign == "+":
return num1 + num2
elif sign == "-":
return num1 - num2
else:
return num1 * num2
ans = []
fo... | [
"31617695+hayeonk@users.noreply.github.com"
] | 31617695+hayeonk@users.noreply.github.com |
679e412a82c2340b28045e6cdb388a19bfb5b799 | d628948e86841ae3efc93eba2e321dd58fe33b07 | /bookmanager/settings.py | 14f4a01b82c72de936cfd48b51e0a9eebea7e085 | [] | no_license | shd0812/django_demo | 8986dde23c2fd8ae4a46f8a938c9c0924200d4b2 | 832c028171795bf6feabc39d313bcad8cfbe5b94 | refs/heads/master | 2022-12-05T18:57:11.213951 | 2020-08-24T08:15:50 | 2020-08-24T08:15:50 | 289,303,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | """
Django settings for bookmanager project.
Generated by 'django-admin startproject' using Django 1.11.28.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"759275499@qq.com"
] | 759275499@qq.com |
bff8f74051ac91f5994980953d38279ba111917d | e9b9626ffce09bf011803a33b4780d8dcc6657e8 | /class9/collateral/put_file.py | aae2559cec9e5615c13bc1c06a49886309059ceb | [
"Apache-2.0"
] | permissive | zh0u0liver/netmiko_course | f7a91eb3f543e2a609172280f13b6bc8c4fbe1b9 | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | refs/heads/master | 2023-08-04T05:41:32.745403 | 2021-09-14T02:18:44 | 2021-09-14T02:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import os
from getpass import getpass
from netmiko import ConnectHandler, file_transfer
# Code so automated tests will run properly
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
# Need a privilege15 account (no enable call)
cisco3 = {
"device_type": "cisco_ios",
"hos... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
098d0a2a8b1145a3df6d306fd83f6c68df598e98 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/distiller/CWD/pytorch/mmrazor/configs/nas/mmcls/onceforall/ofa_mobilenet_supernet_32xb64_in1k.py | 341f4bda969cdd7625e1da7e3e5ff0c36e6fee57 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 1,671 | py | _base_ = [
'mmcls::_base_/default_runtime.py',
'mmrazor::_base_/settings/imagenet_bs2048_ofa.py',
'mmrazor::_base_/nas_backbones/ofa_mobilenetv3_supernet.py',
]
supernet = dict(
_scope_='mmrazor',
type='SearchableImageClassifier',
data_preprocessor=_base_.data_preprocessor,
backbone=_base_.... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
fc255fe8fed8197264367180513e6fb8aebecba2 | 08b439af0eeccb93b41193b65c196b7ab2dbe773 | /award/urls.py | 1ae3b1aec217ee245e5c22ac908b89354d53b4e5 | [
"MIT"
] | permissive | EidAbdullahi/hilal | a80aa3f6b7ce2a3098f5dcada9bbb2fc52dc6ba9 | 1ccb6a1b5a5143164ced9b8a4c742997abbb6296 | refs/heads/master | 2023-05-01T14:28:46.837200 | 2021-05-05T12:02:48 | 2021-05-05T12:02:48 | 363,429,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """award URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"eidabdullahi10@gmail.com"
] | eidabdullahi10@gmail.com |
515604f2abc3e0df4872c067064277872c874543 | 6f65ebe31650b73e9c5e77d598295eb1362702bd | /tools/Polygraphy/tests/logger/test_logger.py | 078390e71a50b887380cad96436dc31ad37a6be2 | [
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | hierarchyJK/TensorRT | d9b5be9964e54af8b2789a6e98f393519956ed90 | c2668947ea9ba4c73eb1182c162101f09ff250fd | refs/heads/master | 2023-06-26T07:01:08.922681 | 2021-07-12T09:28:23 | 2021-07-13T20:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
81c26e3a0d8ed242955d3e50604d0bd97065e591 | 7fa4633ea229fc866cc99992bf9f891663d39ec6 | /common/experiment_manager/src/experiment_manager/msg/__init__.py | d4cd96b7b9dc0d1ccf630dd04ed765622acb87f2 | [] | no_license | onuryuruten/rossi-demo | f7aeccfea9228e13dbab85642426dce3de5ba925 | ab3ef04c40f66ec0883c26910c79cb0c72209051 | refs/heads/master | 2020-12-25T11:42:15.966155 | 2012-01-20T08:17:50 | 2012-01-20T08:17:50 | 3,162,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from ._ExperimentState import *
| [
"mparlaktuna@gmail.com"
] | mparlaktuna@gmail.com |
5e8052af8629684bb42632d743efaf5d48119ba1 | 1b94aae63500b6ff94b0446d01c3c9bee385fad2 | /.history/chandori/account/views_20210824172332.py | 4c4c5078aeec6d0af4357fc59d04853d7bbcc83d | [] | no_license | miracle3070/chandori | 71389c2a9df76c242a5895c2c23d4394220f9c8e | b01d1eaa1d9c0d12d7abdc8f164039bcd9c42925 | refs/heads/master | 2023-08-18T11:46:11.303934 | 2021-09-28T19:23:22 | 2021-09-28T19:23:22 | 393,949,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserChangeForm
from django.utils import timezone
from .models import *
from .forms import CustomUserChangeForm
from django.contrib import messages
def edit(request):
retur... | [
"62284729+ehddus980@users.noreply.github.com"
] | 62284729+ehddus980@users.noreply.github.com |
65ed5768bb3bdfc61f10d6cc6a59dfbb999c8d92 | 4a020c0a492d931f7da5c452c9569fba06703686 | /testing/web-platform/tests/webdriver/ecmascript/ecmascript_test.py | cf27c01c06a02063b1347f6673721aec1f88a454 | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rbernon/wine-gecko | 353173511a790127ffa2ad39d630b8a0dcbbf5bf | 550ad9eac229b769992f421ce9492ca46edabaa0 | refs/heads/master | 2023-08-06T21:25:26.836672 | 2020-11-30T12:47:56 | 2021-09-30T08:14:19 | 411,965,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import os
import sys
import unittest
sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../..")))
import base_test
class EcmasScriptTest(base_test.WebDriverBaseTest):
def test_that_ecmascript_returns_document_title(self):
self.driver.get(self.webserver.where_is("ecmascript/res/ecmascript_test.htm... | [
"rbernon@codeweavers.com"
] | rbernon@codeweavers.com |
010582cd02fe383b3413bf2b655b36b3af22c368 | 7ba54b83de814cd34f0058e797cf3d6313057147 | /mmdetection/configs/xray/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_2x_nih_chestx_det.py | f3478d0c54101f9e68bb9062d6b3357c0452e8b7 | [] | no_license | TerryGriffin/COMP5300.AdvancedDeepLearning | 083344a939e99fe7e2119225e023ab8aebdda04e | 9521c3327ba6d8344711cd3e404e627af9ffc936 | refs/heads/master | 2023-02-01T10:06:00.355905 | 2020-12-16T02:05:12 | 2020-12-16T02:05:12 | 321,839,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | _base_ = './faster_rcnn_r50_fpn_2x_nih_chestx_det.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dic... | [
"tgriffin62@yahoo.com"
] | tgriffin62@yahoo.com |
f6b37a366b054c1e431aefa17fb9943058075c76 | 0b0f4c15abb143a4b24b3bb01b9a6184df6867bf | /hello_requests/yes_or_no.py | f8b0ac04aff02b0e85c9cd9e2d08c68386c67414 | [] | no_license | saida93522/hello_requests_python | efe15130cbb327a78d3ef1aa8d6e43fdaf339709 | 76dc533dea9e1b1413d04b3fc20c52987139b780 | refs/heads/master | 2023-05-02T20:43:30.906319 | 2020-10-16T20:00:32 | 2020-10-16T20:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import requests
import logging
class APIError(Exception):
pass
def yes_or_no():
try:
response = requests.get('https://yesno.wtf/api/')
response.raise_for_status()
except Exception as e:
logging.exception(e)
raise APIError('Error connecting to API')
try:
da... | [
"10088152+claraj@users.noreply.github.com"
] | 10088152+claraj@users.noreply.github.com |
4504613d10c713611621a028b61bb44666f0a9f3 | 716abd9e5ba4b72b72cc5f724a6cc0a6ad4390d1 | /6-Operators of Python/30-Identity-and-Membership-operators.py | 1c0385bd6405585f5684b04ece645772b30e7ea3 | [] | no_license | devopstasks/PythonScripting | ac45edd72dc134ec3539b962f02dfc866f365ecf | 48bc37733ae6b3be4e2d64909ffe0962b6908518 | refs/heads/master | 2023-03-29T11:18:01.329452 | 2021-04-07T03:25:20 | 2021-04-07T03:25:20 | 350,388,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | '''
===================================
Identity operators are used to find the type of: class/type/object.
There are 2 types of Identity operators
- is
- is not
===================================
x=6
type(x) -> <class 'int'>
y="hi"
type(y) -> <class 'str'>
type(x) is type(y) -> False
type(x) is not type(y) -> T... | [
"rpadhan2015@gmail.com"
] | rpadhan2015@gmail.com |
b7346b389ff30c566e8bc6651ae60b10c67ebf2b | 0e3462bd127c2072b34ac4885c034bde58ac8063 | /c_sharp_code_rewritten_in_python/transformer_command_line_interface.py | 7e6cb49274f86f384976fe5a54132f56ddee81b0 | [] | no_license | SNeicer/py_regex_translator_core | 608b3b6e5d4aff1496a910d38276562f25013cb7 | ea45e1eb556285f20f702ae6bd697aebd6f0efe6 | refs/heads/master | 2023-02-12T04:49:03.063797 | 2021-01-08T14:06:15 | 2021-01-08T14:06:15 | 326,164,216 | 0 | 0 | null | 2021-01-02T11:26:50 | 2021-01-02T11:04:11 | Python | UTF-8 | Python | false | false | 331 | py | from c_sharp_code_rewritten_in_python import interfaces
class TransformerCLI:
def __init__(self, transformer: interfaces.IFileTransformer):
self._transformer = transformer
def run(self, *args):
sourcePath = args[0]
targetPath = args[1]
self._transformer.transform(sourcePath, t... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
8eab42ec4e999316d34dc5b305592808d36f835a | 9dc8c299ee7d4a225002127cc03b4253c8a721fd | /libs/simulator/livepush_acl_topic_simulator.py | 823dabe3f0baee30b5bbd03a10492cff39593daf | [] | no_license | namesuqi/strategy_corgi | 5df5d8c89bdf7a7c465c438048be20ef16120f4f | 557b8f8eabf034c2a57c25e6bc581858dd4f1b6e | refs/heads/master | 2020-03-07T04:00:18.313901 | 2018-03-29T07:50:50 | 2018-03-29T07:50:50 | 127,253,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | #!/usr/bin/python
# coding=utf-8
# livepush_acl report simulator
from libs.simulator.topic_simulator import *
from config import push_review_duration
from libs.module.live_push import *
# live_push report livepush_acl
class LivePushAclTopicSimulator(TopicSimulator):
def __init__(self, log):
super(LivePu... | [
"suqi_name@163.com"
] | suqi_name@163.com |
a22c702811b62c295c71fa1fb4f4aff77ee8108e | 9188d0d7ce9fc5fadf4d2593741894e1448f9326 | /indico/vendor/django_mail/backends/locmem.py | 4e3f2ecda085f3995cb3fbe9698f0f8bd4f91571 | [
"MIT"
] | permissive | vaclavstepan/indico | b411410416acdfa50b0d374f89ec8208de00fb2f | 8ca1ac4d4a958f22f24580a790b3cb015570bdfb | refs/heads/master | 2023-07-21T04:42:03.031131 | 2021-09-01T09:54:17 | 2021-09-01T09:54:17 | 385,897,420 | 0 | 0 | MIT | 2021-07-16T13:07:32 | 2021-07-14T10:16:57 | null | UTF-8 | Python | false | false | 1,481 | py | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
# The code in here is taken almost verbatim from `django.core.mail.backends.locmem`,
# which is licensed u... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
192f5be2ea74ff5dd2215cd23fc641a35c5f9e09 | 3715df2c833919376a3ee44de8fc64d1c2abe8ce | /AutomlCore/build/lib/algorithms/classification/naive_bayes_complement.py | f057f2f40891211ae4bcc2e4da46ea7a74226a34 | [] | no_license | mindis/dachshund | 6c07f8eb6b9f75f66c74ec3748dfa42a31cff4d5 | 2f1b3e5866e06424c700f3a106051fe69bcb18bc | refs/heads/master | 2022-12-09T05:17:00.812348 | 2020-09-03T05:25:09 | 2020-09-03T05:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import numpy as np
from sklearn.naive_bayes import ComplementNB
from sklearn.metrics import accuracy_score
from hyperopt import hp
from utils import definitions
from .. import model, model_classification
class ComplementNBClassifier(model.Model, model_classification.ModelClassification):
def __init__(self, _project_... | [
"aoba0203@naver.com"
] | aoba0203@naver.com |
f4b07d056b6b0304d6a97622d9ff3ea596b95948 | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/input/func_e0604.py | d077f31adbfa8f55fc8501b1293f76262c0e2dfc | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 206 | py | """Test for invalid objects in a module's __all__ variable.
"""
# pylint: disable=R0903,R0201,W0612
__revision__ = 0
def some_function():
"""Just a function."""
pass
__all__ = [some_function]
| [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
c7cee1ce7b74766902666791db0f8f0747fb6459 | aabe7008e0eb77617f1a76cddb98e4b17fd5ce27 | /examples/model_compress/pruning/v2/movement_pruning_glue.py | a8365d9834075161641b7946bb41b2c961cfe190 | [
"MIT"
] | permissive | penghouwen/nni | a09a374a81be46fe246c425275585d5fe79404af | 2e6a2fd2df0d5700cb028b25156bb535a3fc227a | refs/heads/master | 2021-12-21T14:02:32.228973 | 2021-12-13T16:54:39 | 2021-12-13T16:54:39 | 435,926,123 | 1 | 0 | MIT | 2021-12-07T15:09:36 | 2021-12-07T15:09:35 | null | UTF-8 | Python | false | false | 4,715 | py | import functools
from tqdm import tqdm
import torch
from torch.optim import Adam
from torch.utils.data import DataLoader
from datasets import load_metric, load_dataset
from transformers import (
BertForSequenceClassification,
BertTokenizerFast,
DataCollatorWithPadding,
set_seed
)
from nni.algorithms.... | [
"noreply@github.com"
] | penghouwen.noreply@github.com |
ed8b7dbd7403201e805b8dbacb2d97cfdf5005eb | 0f59e486ea9d7c96b8c3f7f92bf063fc8389f1e8 | /vivisect/analysis/amd64/__init__.py | 2b48787dc8ec2faa3d32624e5f1ca487682d33a5 | [
"Apache-2.0"
] | permissive | vivisect/vivisect | ac259918b6281d9431c32a0b2307c61f9cab0dec | b07e161cc28b19fdda0d047eefafed22c5b00f15 | refs/heads/master | 2023-08-25T09:02:00.526532 | 2023-07-26T03:07:07 | 2023-07-26T03:07:07 | 26,651,759 | 833 | 181 | Apache-2.0 | 2023-09-07T03:43:53 | 2014-11-14T18:28:47 | Python | UTF-8 | Python | false | false | 34 | py | '''
Amd64 Analysis Modules
'''
| [
"invisigoth@kenshoto.com"
] | invisigoth@kenshoto.com |
2adf288db73ef957c82ad3b82c56653c52cf1dfb | 53e58c213232e02250e64f48b97403ca86cd02f9 | /16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisQCD_HT200to300.py | ca9031e1be70ac3888d31407f97e120bf09f4de2 | [] | no_license | xdlyu/fullRunII_ntuple_102X | 32e79c3bbc704cfaa00c67ab5124d40627fdacaf | d420b83eb9626a8ff1c79af5d34779cb805d57d8 | refs/heads/master | 2020-12-23T15:39:35.938678 | 2020-05-01T14:41:38 | 2020-05-01T14:41:38 | 237,192,426 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = 'QCD_HT200to300'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Summer16_07Aug2017_V11_MC_L1FastJet_AK4P... | [
"XXX@cern.ch"
] | XXX@cern.ch |
1ca9421c30d507ffd0c20ef335be2cd7e57b5697 | 347a6aac6fc40edab03d75a53e89053aeeb8fd72 | /quizzes/Quiz7.py | f9e8bdc18bfc69f7deba22dcd76922245d4bc853 | [] | no_license | jwilke/cs373 | 0d5de4676c13e83c8b9dbcab66140be53cebeaf9 | 7923f3710eaa76d38d8261d6dc596f2bfaf12a8e | refs/heads/master | 2021-01-16T00:23:35.227487 | 2012-07-05T22:53:14 | 2012-07-05T22:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | #!/usr/bin/env python
"""
CS373: Quiz #7 (9 pts)
"""
""" ----------------------------------------------------------------------
1. In the paper, "A Bug and a Crash" about the Ariane 5, what was the
software bug?
(2 pts)
the conversion of a 64-bit number to a 16-bit number
"""
""" -----------------------------... | [
"downing@cs.utexas.edu"
] | downing@cs.utexas.edu |
352b804747cc226f09e7a42316e6262c0a63a77b | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2020/August/Design HashSet.py | 8ac9ddd111bec7159b93c31f2ee92c9ef039863d | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | class MyHashSet:
def __init__(self):
self.numBuckets = 15000
self.buckets = [[] for _ in range(self.numBuckets)]
def hash_function(self, key):
return key % self.numBuckets
def add(self, key):
i = self.hash_function(key)
if not key in self.buckets[i]:
sel... | [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
94675a9a4c3a35afe8b4a98198dd51c0877c1b33 | 0ad3f130560a342cceb47889ab7ceac6d8442834 | /ltdmason/s3upload.py | 0d89112f890c34645e75833dfcb596932d59229c | [
"MIT"
] | permissive | AvdN/ltd-mason | dfd4cf4df19170e9422282b986ef95a06d566e51 | b14940037010b1399bd66888c4caef3dd350d76c | refs/heads/master | 2021-01-24T06:44:00.270568 | 2017-03-13T17:44:27 | 2017-03-13T17:44:27 | 93,316,933 | 0 | 0 | null | 2017-06-04T13:58:02 | 2017-06-04T13:58:02 | null | UTF-8 | Python | false | false | 13,865 | py | """S3 upload/sync utilities."""
from __future__ import (division, absolute_import, print_function,
unicode_literals)
from builtins import * # NOQA
from future.standard_library import install_aliases
install_aliases() # NOQA
import os
import logging
import mimetypes
import boto3
log = loggin... | [
"jsick@lsst.org"
] | jsick@lsst.org |
af8a2ebd0fe7f5f06e5aeccc636bf8704d77ef8a | ccf6945c819e25a3eae92103116b7d1063e21871 | /chess_piece_detection/app/other_models/alexnet.py | 6da26d5ea58921656765650c08f6ac477852e5d1 | [] | no_license | ace-racer/Extending-Board-Games-using-deep-learning | 67355eabec91ed8afb1150e4c2d6bb0068e74910 | 7171b14c80be35b0ee882322c318307779379e9a | refs/heads/master | 2020-04-10T05:32:18.705335 | 2019-04-22T11:42:47 | 2019-04-22T11:42:47 | 160,830,611 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | # Import necessary components to build LeNet
# Reference: https://github.com/eweill/keras-deepcv/blob/master/models/classification/alexnet.py
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Conv2D, MaxPooling2D, ZeroPadding2D
f... | [
"anuragchatterjee92@gmail.com"
] | anuragchatterjee92@gmail.com |
3415d6c90827899f16903882ab9e54d437fd5b09 | 34eb0a65adb4290d6224075a2700d432d5649de6 | /tachyon/common/restclient.py | 1d6c499cbfc98be41954791218186029b21669a2 | [
"BSD-3-Clause"
] | permissive | Vuader/tachyon_common | ae950e13ac14df590cc76b3c7f98c26434104217 | a675d13a251aeda16dba7a416354872ee41509e6 | refs/heads/master | 2021-01-19T09:51:55.904274 | 2017-02-15T11:50:00 | 2017-02-15T11:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,684 | py | # Tachyon OSS Framework
#
# Copyright (c) 2016-2017, see Authors.txt
# All rights reserved.
#
# LICENSE: (BSD3-Clause)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain th... | [
"christiaan.rademan@gmail.com"
] | christiaan.rademan@gmail.com |
4d8d26efe3b7019edb01e9d8bda2c443a49b9e38 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/adapters/IStatsAdapter.py | 09fc72b393427f042a93a4eee9e8594f486462b9 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,718 | py | # Embedded file name: scripts/client/adapters/IStatsAdapter.py
from locale import getpreferredencoding
from time import localtime, strftime
import Settings
import db.DBLogic
from HelperFunctions import wowpRound
from Helpers.i18n import localizeAchievements, getFormattedTime, localizeAirplaneLong, localizeTimeIntervalH... | [
"55k@outlook.com"
] | 55k@outlook.com |
12f85dfe3b746c02305c2dd7cc147b806129fb82 | 391d648132c1a05e7da575205eef89a7208a892a | /scripts/playground/phase.py | 0fe2427793d433ebdd4a2e65cbfcf3a84a814b9a | [] | no_license | michaelbateman/DemographicInference | c3ceaf69f8b554f3973473607d6b5201cca423f9 | b1e2529b1ce0710f82d2867d08588ae4a6c72bb2 | refs/heads/master | 2021-01-10T06:28:43.698581 | 2015-10-06T18:25:45 | 2015-10-06T18:25:45 | 43,770,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | import subprocess
in_file = 'ag1000g.phase1.AR2.3L.PASS.vcf.gz'
region_size = 5000000
num_regions = 50e6 / region_size
print num_regions
print int(num_regions)
for k in range(0,int(num_regions)):
i = int(num_regions) -1 - k
left = i * region_size
right = (i+1) * region_size
window = str(left) + '-' + str... | [
"bbeeefcake@gmail.com"
] | bbeeefcake@gmail.com |
19180fe87d05b23f4942f5c69caa88c9fb25a645 | 8e38169331b6fdec8cb61e2a8ed564023e2cba9a | /telluricpy/__init__.py | 5a1309d60edfe354a8ebb966a91bde80ceca426f | [
"MIT"
] | permissive | OpenGeoVis/telluricpy | 20b4dd0f77e9a60c3dd61dbfac2668c3994ffdc3 | b5cd5ac9e373137c33b2ecc98d4dfed4d0784699 | refs/heads/master | 2020-03-19T13:31:31.479146 | 2018-06-29T07:11:24 | 2018-06-29T07:11:24 | 136,583,691 | 0 | 0 | MIT | 2018-06-29T06:50:30 | 2018-06-08T07:32:21 | Python | UTF-8 | Python | false | false | 102 | py | from . import dataFiles
from . import modelOperations
from . import vtkTools
from . import modelTools
| [
"banesullivan@gmail.com"
] | banesullivan@gmail.com |
c3adcbeba8fc8166b6429a87de5ab17b4187ccfd | aabe7008e0eb77617f1a76cddb98e4b17fd5ce27 | /nni/experiment/rest.py | bdacc7c215ac759fdb551e7d4fa3d6e296e45fd1 | [
"MIT"
] | permissive | penghouwen/nni | a09a374a81be46fe246c425275585d5fe79404af | 2e6a2fd2df0d5700cb028b25156bb535a3fc227a | refs/heads/master | 2021-12-21T14:02:32.228973 | 2021-12-13T16:54:39 | 2021-12-13T16:54:39 | 435,926,123 | 1 | 0 | MIT | 2021-12-07T15:09:36 | 2021-12-07T15:09:35 | null | UTF-8 | Python | false | false | 1,156 | py | import logging
from typing import Any, Optional
import requests
_logger = logging.getLogger(__name__)
url_template = 'http://localhost:{}/api/v1/nni{}'
timeout = 20
def request(method: str, port: Optional[int], api: str, data: Any = None) -> Any:
if port is None:
raise RuntimeError('Experiment is not ru... | [
"noreply@github.com"
] | penghouwen.noreply@github.com |
e6bd6f44f4b8d52a1fe03affd4b5296e02733784 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03435/s544670590.py | b7a33f056509c825aa6f270f9dacfc4421f64bb9 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | c1= list(map(int, input().split()))
c2 = list(map(int, input().split()))
c3 = list(map(int, input().split()))
a1 = 0
a2 = c2[0] - c1[0]
a3 = c3[0] - c1[0]
b1 = c1[0]
b2 = c1[1]
b3 = c1[2]
if c1[0] == a1 + b1 and c1[1] == a1 + b2 and c1[2] == a1 + b3 and c2[0] == a2 + b1 and c2[1] == a2 + b2 and c2[2] == a2 + b3 and c... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2983a873d801ab0ebf4602895cbc7188cd6c679e | f02bf676e5fea7a94814b5afaf46e762f1781489 | /src/resource.py | 8ca43fe2a5ce19f8cf911be5902db91c21a1af32 | [] | no_license | PASTAplus/pastaplus_adapter | b514a0274eada7543fc742fbd7757b13c0e58940 | 369688ea41bf87dd27e50eb89376ce894dc828b1 | refs/heads/master | 2020-04-02T01:51:52.549760 | 2017-08-12T19:47:07 | 2017-08-12T19:47:07 | 83,488,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,851 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""":Mod: resource
:Synopsis:
:Author:
servilla
:Created:
3/10/17
"""
import logging
import hashlib
import xml.etree.ElementTree as ET
import requests
import d1_common.resource_map
import d1_common.types.exceptions
import d1_common.types.generated.dataoneTypes_... | [
"mark.servilla@gmail.com"
] | mark.servilla@gmail.com |
2be58aa42be5d9593ef75e0651cfefb8cbdd0f51 | 3b66632458e2463db62a800f9a0cf9e13c71a47e | /examples/template_tfe_multiple_optimizers/edflow.py | d0c88a39f566f2597d3f743824684633f16c3834 | [
"MIT"
] | permissive | pesser/edflow | eddb6d9341b861670946c157363933e9add52288 | 317cb1b61bf810a68004788d08418a5352653264 | refs/heads/dev | 2022-12-09T05:19:35.850173 | 2020-07-21T16:29:15 | 2020-07-21T16:29:15 | 146,750,121 | 27 | 15 | MIT | 2022-12-07T20:55:50 | 2018-08-30T12:59:11 | Python | UTF-8 | Python | false | false | 7,162 | py | import functools
import tensorflow as tf
tf.enable_eager_execution()
import tensorflow.keras as tfk
import numpy as np
from edflow import TemplateIterator, get_logger
class FullLatentDistribution(object):
# TODO: write some comment on where this comes from
def __init__(self, parameters, dim, stochastic=True)... | [
"supermario94123@gmail.com"
] | supermario94123@gmail.com |
1ce01c3e5eafef0398c727f2132d92cef69b14ab | 2b93a5f46980e475375e796de139ed46a53809a6 | /Functions/Calculator.py | 0095b099701cd2e5bbf751a81ce9b7acc2e6e00c | [] | no_license | ravi4all/PythonMay_11 | c9996cb0a2741a5a022c74129aa21c1f4b495aba | f0f3fb5e99a67e704df2a109a7af3d8d18010f9d | refs/heads/master | 2020-03-16T21:28:06.549963 | 2018-05-30T05:34:50 | 2018-05-30T05:34:50 | 133,000,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def add(x,y):
z = x + y
print("Addition is",z)
def sub(x,y):
z = x - y
print("Subtraction is",z)
def div(x,y):
z = x / y
print("Division is",z)
def mul(x,y):
z = x * y
print("Multiplication is",z)
# Menu Driven Programs
print("""
1. Add
2. Sub
3. Div
4. Mul
""")... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
1b168c8660752d0007441aec85f837fc3f33b6f2 | ca831a9dc9d6dc0b2cedc4d998b26600439b5f10 | /python/numpy/q4_np_concatenate.py | d47d611fb6d9b69f1a21103ef45d97b89b76e8e9 | [
"MIT"
] | permissive | mxdzi/hackerrank | c2579f4351fba5af1dec21a49485e043421c2dd8 | c8da62ac39a0c24f535eded74c102a9c0ccd7708 | refs/heads/master | 2022-12-26T20:10:36.948961 | 2022-12-08T18:27:51 | 2022-12-08T18:27:51 | 225,469,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | import numpy
def main():
N, M, P = map(int, input().split())
array1 = numpy.array([input().split() for _ in range(N)], int)
array2 = numpy.array([input().split() for _ in range(M)], int)
print(numpy.concatenate((array1, array2)))
if __name__ == "__main__":
main()
| [
"michal@dziadowicz.it"
] | michal@dziadowicz.it |
7ba0744fc18c12981135e6b474843ce4bdb643e4 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/requests_oauthlib/oauth2_auth.py | d8712fd46c49685f885010eb48c0e21094a5eea6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | from __future__ import unicode_literals
from oauthlib.oauth2 import WebApplicationClient, InsecureTransportError
from oauthlib.oauth2 import is_secure_transport
from requests.auth import AuthBase
class OAuth2(AuthBase):
"""Adds proof of authorization (OAuth2 token) to the request."""
def __init__(se... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
4cc5fa1c5d42c3b5b3744dc1eb24a06ed4c8e10c | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /test/test_siurl_list.py | 094c867212270e09508ac2b3c62b72a81fd28872 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
4b11dd4cd2213194d38521b0f83f8f3b572200c8 | d79c152d072edd6631e22f886c8beaafe45aab04 | /nicolock/users/migrations/0004_user_user_type.py | 92f9060fd70d6a9a282d30ca0b5d03f2722b99e2 | [] | no_license | kabroncelli/Nicolock | 764364de8aa146721b2678c14be808a452d7a363 | 4c4343a9117b7eba8cf1daf7241de549b9a1be3b | refs/heads/master | 2020-03-11T11:02:43.074373 | 2018-04-18T17:38:33 | 2018-04-18T17:38:33 | 129,959,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-06 23:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_companyprofile'),
]
operations = [
migrations.AddField(
... | [
"brennen@lightningkite.com"
] | brennen@lightningkite.com |
51b4d394824411e8488ff400df0a553116936ee9 | 9d3b8d5f45e5407f3275542cf5792fd2510abfe4 | /Chapter8-Practice/test_8.3.3.py | be0013a975a93a720f793d9350d06c6bec324a9c | [] | no_license | Beautyi/PythonPractice | 375767583870d894801013b775c493bbd3c36ebc | 9104006998a109dcab0848d5540fb963b20f5b02 | refs/heads/master | 2020-04-23T09:58:50.065403 | 2019-04-08T02:55:52 | 2019-04-08T02:55:52 | 171,088,504 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #返回字典
def build_person(first_name, last_name):
"""返回一个字典,包含一个人的信息"""
person = {'first': first_name, 'last': last_name}
return person
musician = build_person('jimi', 'hendrix')
print(musician)
def build_person(first_name, last_name, age=' '):
"""返回一个字典,包含一个人的信息"""
person = {'first': first_name, '... | [
"1210112866@qq.com"
] | 1210112866@qq.com |
262f3516ed9b97ec15c6b602731188fef2efd36d | aee7a6cca6a2674f044d7a1cacf7c72d7438b8b1 | /cup_skills/stats/average_rewardtest_score.py | c332ccef793a04daac6ef2eea3f62649d5182885 | [] | no_license | lagrassa/rl-erase | efd302526504c1157fa5810e886caccba8570f1b | 0df5c8ce4835c4641a2303d11095e9c27307f754 | refs/heads/master | 2021-05-13T13:36:12.901945 | 2019-08-01T02:13:15 | 2019-08-01T02:13:15 | 116,709,555 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | 16.363636363636363,46.36363636363636,28.18181818181818,20.909090909090907,18.181818181818183,38.18181818181819,52.72727272727272,31.818181818181817,2.727272727272727,30.909090909090907,17.272727272727273,17.272727272727273,49.09090909090909,11.818181818181818,50.0,27.27272727272727,46.36363636363636,31.818181818181817,... | [
"lagrassa@mit.edu"
] | lagrassa@mit.edu |
20407bfda932d7e6b053febedd6a5e1883e14e76 | b3c070597742904f963f44414e9195511770520b | /venv/lib/python3.8/site-packages/openapi_client/models/first_last_name_origined_out.py | 2563afe3a3c76fa871e515944e62259fec07abc6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | akshitgoyal/NLP-Research-Project | 7d98cf0bccd8fdfcc13a23e5f17fcc703aa4b565 | 6adf80cb7fa3737f88faf73a6e818da495b95ab4 | refs/heads/master | 2022-12-11T05:51:08.601512 | 2020-09-03T18:05:56 | 2020-09-03T18:05:56 | 270,881,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,677 | py | # coding: utf-8
"""
NamSor API v2
NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't fi... | [
"goyalakshit.ag@gmail.com"
] | goyalakshit.ag@gmail.com |
77bd1762c4aaac19096157edc60a32d1f6d81374 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/uribv6/db.py | b29be36943d31f0ffadcc44b5729663096da2e21 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 4,200 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
3a5e3a9076882a87027c00689734bedef960925d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03425/s478084192.py | 7e20b760b92578dea372ba9ffdd4d4f5431cd5bc | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from itertools import combinations
N = int(input())
A = [0 for _ in range(5)]
for _ in range(N):
a = input().strip()
if a[0]=="M":
A[0] += 1
elif a[0]=="A":
A[1] += 1
elif a[0]=="R":
A[2] += 1
elif a[0]=="C":
A[3] += 1
elif a[0]=="H":
A[4] += 1
cnt = 0
for... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8e9f3948ab5c1e5a196edddb2fe11e19304dd0e5 | 1cd0c5706f5afcabccf28b59c15d306b114dd82a | /siteapi/migrations/0004_auto_20170220_2215.py | b448ea88ca4bcdc7a5f1e878f3326138726cde40 | [] | no_license | jacobbridges/scribbli | fb1ed8633fc8ebcd7d989fbab2e051612bdc07d2 | eb21ca9f5ee4c7caba5a25b76c6cdfe81af5d995 | refs/heads/master | 2021-01-12T10:32:38.466332 | 2018-01-27T19:48:39 | 2018-01-27T19:48:39 | 81,711,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-20 22:15
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('siteapi', '0003_auto_20170220_2213'),
]
operations = [
migr... | [
"him@jacobandkate143.com"
] | him@jacobandkate143.com |
beb923b2521bb0f9e00e5a892115a68855650a54 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/servicebus/aaz/latest/servicebus/namespace/private_link_resource/_show.py | eae4030227ceaa104f1f40abb9b01954ee7cdcc9 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 6,208 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
84c9288217995f2610547ebe92e52a2f6e69d003 | d5ee3688c0df793a765aa7fca25253ef450b82e9 | /src/scs_mfr/opc_conf.py | a821e3faf7068277766ea4005206cbf8c299d8b0 | [
"MIT"
] | permissive | seoss/scs_mfr | 0e85146c57dfefd605967e7dd54c666bfefddf74 | 997dd2b57160df30ef8750abed7efa87831e4c66 | refs/heads/master | 2023-01-20T23:58:16.547082 | 2020-11-27T09:40:20 | 2020-11-27T09:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,256 | py | #!/usr/bin/env python3
"""
Created on 13 Jul 2016
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
DESCRIPTION
The opc_conf utility is used to specify whether an Alphasense optical particle counter (OPC) is present and if so,
which model is attached. An option is also available to override the host's defau... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
ad5ae115186a694489f6794a6279b0b75e037ee8 | 051c3ee44478265c4510530888335335ec9f7fdf | /ML_Applications/SVM/Mutants/code/SVM_rbf/DigitRecognitionApp_47.py | 2be1dd52e2ea4cb532d52028ef938535d52fe789 | [] | no_license | PinjiaHe/VerifyML | b581c016012c62d8439adfce0caef4f098b36d5e | 3bd7c49e45720c1cdfe0af4ac7dd35b201056e65 | refs/heads/master | 2020-03-25T19:40:39.996370 | 2018-01-30T08:58:58 | 2018-01-30T08:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | """
Created on Fri May 26 15:20:01 2017
#Digit Recognition for V & V
#Following note added by RR
Note:
1. The actual digits data from the http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits is different than the one referred in this sklearn example
2. For more info, refer this link htt... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
e23bc12419592f4b9956c4150d64796a12d4900f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03329/s950503139.py | 06a2ed1899ce879a8061ac47bf453dca06be7b16 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
def main():
n = int(input())
nums = []
n6 = 6
while n6 <= n:
nums.append(n6)
n6 = n6 * 6
n9 = 9
while n9 <= n:
nums.append(n9)
n9 = n9 * 9
nums.sort(reverse=True)
dp = [i for i in range(2 * n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6b31c5782ba2db81a6a2b0b105aa3a0552dcb4ad | 0e4519d3a94157a419e56576875aec1da906f578 | /Python_200Q/051_/Q059.py | 110df8a421ca7cff330c0a2f0054d5279bd7f11d | [] | no_license | ivorymood/TIL | 0de3b92861e345375e87d01654d1fddf940621cd | 1f09e8b1f4df7c205c68eefd9ab02d17a85d140a | refs/heads/master | 2021-02-23T17:30:50.406370 | 2020-10-02T06:43:25 | 2020-10-02T06:43:25 | 245,388,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import time
count = 1
try:
while True:
print(count)
count += 1
time.sleep(0.5)
# Ctrl + C가 입력되면 발생되는 오류
except KeyboardInterrupt:
print('사용자에 의해 프로그램이 중단되었습니다') | [
"ivorymood@gmail.com"
] | ivorymood@gmail.com |
6a2b5689eeaab249fbbcd16268bfeaf37add46d9 | a5a2abaf5c7a681ebea71b4034d7b12dbd750455 | /examens/migrations/0002_auto_20160210_0540.py | 4a24c8b6dac1ce2a87efbeacc069d098d652c98a | [
"BSD-3-Clause"
] | permissive | matinfo/dezede | e8be34a5b92f8e793a96396f7ec4ec880e7817ff | 829ba8c251a0301741460e6695438be52d04a2fc | refs/heads/master | 2020-03-15T11:25:56.786137 | 2018-04-23T13:47:20 | 2018-04-23T13:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,213 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
LEVELS_DATA = (
(1, (6107, 10442, 10531)),
(2, (2253, 12468, 12469)),
(3, (10603, 8167, 10447)),
(4, (8280, 15117)),
(5, (3412, 14)),
(6, (2256,)),
)
LEVELS_HELPS = {
1: """
<p>
... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
b4631acdfaeba6632543932c6d6b336b5eb9fa7f | 2485f7d6e12daa2c29926a7c87e2ab18f951a107 | /pypilot/signalk.py | a49f9d16378428197f19f51b84213e2e9ee31e36 | [] | no_license | mielnicz/pypilot | add65367b9b1d2630bad463aa82ce6463e177147 | f0c9b2d2c8a1107a0f114ebe528af2beee7ad161 | refs/heads/master | 2023-07-13T15:58:08.306890 | 2020-03-16T06:24:02 | 2020-03-16T06:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,095 | py | #!/usr/bin/env python
#
# Copyright (C) 2020 Sean D'Epagnier
#
# This Program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
impo... | [
"seandepagnier@gmail.com"
] | seandepagnier@gmail.com |
e78b99366d88cbdb16defac1ca2282fdf9ecf490 | 82f7c00aa14c95032fb6e6ff1029823404246b83 | /apps/statistics/rstats.py | a55468334938caefa6725db99cec04117e861e29 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gillbates/NewsBlur | 621feaa090cdc2fe9dcfcae4af7de3f40b69ba00 | 0eb2ccf4ebe59ff27d6ed822cc406a427cf3bf6a | refs/heads/master | 2020-12-30T17:32:03.999893 | 2013-07-01T00:12:41 | 2013-07-01T00:12:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,566 | py | import redis
import datetime
import re
from collections import defaultdict
from django.conf import settings
class RStats:
STATS_TYPE = {
'page_load': 'PLT',
'feed_fetch': 'FFH',
}
@classmethod
def stats_type(cls, name):
return cls.STATS_TYPE[name]
@classm... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
8cc839ce2eb3f1d63aae16b0a5a37c6d5b8669aa | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/identity/azure-identity/tests/test_authn_client.py | 3dac71b924c722a3ccaee3a40a4d6d8bfffbdf1c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 9,973 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
"""These tests use the synchronous AuthnClient as a driver to test functionality
of the sans I/O AuthnClientBase shared with AsyncAuthnClient."""
import json
import time... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
3dd8f60009e8e64694d233e8d52287efdf741784 | 0e92ded4d7059ff5d1a1235e0e5016395546bf93 | /itests/util.py | e22e459564962ba1d599ace095915a343d557d82 | [
"MIT"
] | permissive | VijayanB/asgard-api | f351ee949e52d9c49bc8a6a044d567d3fb2ad115 | 5444d81be33bf4af3c9cf5a2185c16ff10357034 | refs/heads/master | 2022-04-13T18:42:40.762838 | 2020-03-18T19:55:44 | 2020-03-18T19:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,131 | py | import asyncio
import os
import random
import string
from collections import defaultdict
from typing import Any, Dict, List, Type, Set
import asyncworker
from aioelasticsearch import Elasticsearch
from aiohttp import web, ClientSession
from aiohttp.test_utils import TestClient, TestServer
from aiopg.sa import Engine
f... | [
"daltonmatos@gmail.com"
] | daltonmatos@gmail.com |
1a635f7170026354750bc2dc5dfac90016d119ef | 096ccaca86872b03a137edf58221413073d770cb | /spiders/drizly_new.py | 948516a160d2bd3b74ee71a3d4f2f8a058cbaa65 | [] | no_license | DH-heima/webscrapping | f142962b50deed2628052dd7a48098a4afbcbada | 1dc8f81f45db0d4366391c3052c5ab36f4d4bc5d | refs/heads/master | 2022-02-02T23:26:22.520064 | 2019-06-13T13:38:10 | 2019-06-13T13:38:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,090 | py | import os
import os.path as op
from lxml import etree
parser = etree.HTMLParser(encoding='utf-8')
from time import sleep
from urllib.parse import urlsplit, parse_qs
import requests_cache
from validators import validate_raw_files, check_products_detection
from create_csvs import create_csvs
from ers import all_keywor... | [
"pierre.chevalier@epitech.eu"
] | pierre.chevalier@epitech.eu |
f6687c34620096ecab62771b37059ffc0b24c773 | 0e4f76fc3f9aae8b00a67806dffcfc6360e310d1 | /classes/ifcannotationfillareaoccurrence.py | 153502113434a6de9b77ae22bb820913bb7669da | [] | no_license | HassanEmam/PyoIFC | e11f3b330d3e758aaae47ee9e70b2ae5b5847432 | c2ec4e017ce366b07686491dbe22827aec2711c0 | refs/heads/master | 2020-07-31T14:27:53.305768 | 2019-09-24T15:41:28 | 2019-09-24T15:41:28 | 210,630,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | class IFCANNOTATIONFILLAREAOCCURRENCE(IFCANNOTATIONOCCURRENCE):
def __init__(self, FillStyleTarget, GlobalOrLocal):
self.FillStyleTarget = FillStyleTarget
self.GlobalOrLocal = GlobalOrLocal | [
"hassan.emam@hotmail.com"
] | hassan.emam@hotmail.com |
8bf9fe5983a368347046e3207f8b7633072051ca | 3546dd5dbcffc8509440c820faa7cf28080c5df7 | /python35/Lib/site-packages/numpy/fft/tests/test_fftpack.py | e46d78fadb1b219e6e2ee42a40dcf35b89a2e984 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | Matchoc/python_env | 55ad609c8270cc6148eda22d37f36709d73b3652 | 859d84d1717a265a4085ad29706b12c19c62d36f | refs/heads/master | 2022-02-13T11:05:51.825544 | 2020-06-05T02:42:08 | 2020-06-05T02:42:08 | 75,793,921 | 0 | 1 | Apache-2.0 | 2018-12-14T07:30:28 | 2016-12-07T03:06:13 | Python | UTF-8 | Python | false | false | 6,218 | py | from __future__ import division, absolute_import, print_function
import numpy as np
from numpy.random import random
from numpy.testing import TestCase, run_module_suite, assert_array_almost_equal
from numpy.testing import assert_array_equal
import threading
import sys
if sys.version_info[0] >= 3:
import q... | [
"matchoc@hotmail.com"
] | matchoc@hotmail.com |
00ffa9623b835b0bf4f8cab421978522270fe77f | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_QingDao_ZD_CLI.py | 9a483fb34fa64b69afd278f3ba300ea8d274eb7a | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,930 | py | import sys
import libZD_TestSuite as testsuite
from RuckusAutoTest.common import lib_KwList as kwlist
def tcid(tcid):
return "TCID:32.%02d" % tcid
def defineTestConfiguration(target_station):
test_cfgs = []
test_name = 'ZD_CLI_Testing'
common_name = 'wlaninfo -V: show VAP info'
test_cfgs.append(... | [
"tan@xx.com"
] | tan@xx.com |
774aad474bad9392a0edf5653a83c94f0f1b4b48 | fd55b40f4279c25c0d06dccd6bcd77b9a7dbff28 | /bivariate2/Udropout_kernels.py | 268deb2613b9ce61ee6d63aeff92071b77771fe2 | [] | no_license | albertfxwang/mypytools | 0e30420e2a570a3e18564fd28fc56eb55ecccbf9 | c6cdc8f1914cbc3a5b94dd25501782a3daf542f5 | refs/heads/master | 2020-04-10T19:06:54.193920 | 2015-04-20T01:36:37 | 2015-04-20T01:36:37 | 30,038,302 | 1 | 1 | null | 2015-01-29T19:55:09 | 2015-01-29T19:55:09 | null | UTF-8 | Python | false | false | 11,978 | py | #!/usr/bin/env python
import numpy as np
from transfunc import kernelgrid, kernel
from dropout_kernels import KernelFactory, DropoutKernelGrid
from dropout_selection import lbg_colorcrit as lcc
import os, sys
import udropsim_uflux as uu
import cPickle
from pygoods import Ftable
simcat_dir = '/Users/khuang/Dropbox/Res... | [
"astrokuang@gmail.com"
] | astrokuang@gmail.com |
12a2227ef7b5b606b94c018fd3c7fd65044f1ce6 | c6634a86b42477746df3fb37590ec40896344245 | /Ciclo 1/Lab ICC/Funciones/test.py | fce8f86be80129393576999720e64b92fdf43ce2 | [] | no_license | lordjuacs/ICC-Trabajos | 2163818fe52d3102c4258b1e8f3462092b55f8e1 | 68f4fc3ae1bd63d76fdbc0490300b9e4130e792e | refs/heads/master | 2022-04-11T06:58:00.367990 | 2020-03-29T19:40:43 | 2020-03-29T19:40:43 | 251,117,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def test(c):
d = 3
print(c)
print(d)
a = 0
if a == 0:
b = 1
test(7)
print(a)
print(b)
print(c)
print(d)
| [
"50754596+lordjuacs@users.noreply.github.com"
] | 50754596+lordjuacs@users.noreply.github.com |
a460eaab3d3a06de2e6ad1c493b1cd3337f33ec9 | 72185b74081ffc4d58b8de8081a5ccebed29113a | /tensorflow2/tf2cv/models/inceptionv4.py | 4e525c924823b7e05aca449852b73f97bba12e79 | [
"MIT"
] | permissive | ethan-jiang-1/imgclsmob | f575e5f53bf80a25d9ddf832178da22ca8425fc8 | ae4913400b64c064b3de7c9536b1b6c92f1e06e4 | refs/heads/master | 2023-04-21T06:07:05.835484 | 2021-05-16T10:28:32 | 2021-05-16T10:28:32 | 367,827,134 | 1 | 0 | MIT | 2021-05-16T08:42:49 | 2021-05-16T08:42:49 | null | UTF-8 | Python | false | false | 28,977 | py | """
InceptionV4 for ImageNet-1K, implemented in TensorFlow.
Original paper: 'Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning,'
https://arxiv.org/abs/1602.07261.
"""
__all__ = ['InceptionV4', 'inceptionv4']
import os
import tensorflow as tf
import tensorflow.keras.layers a... | [
"osemery@gmail.com"
] | osemery@gmail.com |
2c9f22569636a53ba7024b43c5fbc0137b68d6ad | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_337/ch6_2020_02_29_19_04_12_994734.py | 7bbc11c4c4ebea79ae6702f72b7f73c447ec34d4 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def celcius_para_fahrenheit (x):
celcius_para_fahrenheit = 1.8*x + 32
return y
| [
"you@example.com"
] | you@example.com |
7a7055c98db6e33109323e2cb20c2d9878f88586 | 28a2d58672a937c337b7310ed4c7d50219b176ce | /tests/test_search.py | ae98278b716f5a7645bbea496c41dd5e640c1bd3 | [
"MIT"
] | permissive | AnuradhaNaik/nyc-council-councilmatic | 9b7fc0fc255500222d96fc534a3638fd32d6ede7 | 94974de317e34dcb05165a7c23717960c400d942 | refs/heads/master | 2020-03-26T12:37:51.662574 | 2018-04-04T18:26:43 | 2018-04-04T18:26:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | from unittest.mock import MagicMock
import pytest
from haystack.query import SearchQuerySet
from django.test import TestCase, Client
from django.core.urlresolvers import reverse
from django.core.paginator import Paginator
# Different combinations of possible parameters
sorters = ['title', 'date', 'relevance', None]
... | [
"jean@jeancochrane.com"
] | jean@jeancochrane.com |
f5cbb9807a06669bd8a22ce5ff10a73f9986acba | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/scripts/plotting/DrawNuisancesAll.py | 1227c2b19c34b89db9d68cf7e0dc8e811857de0b | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 8,676 | py | #!/usr/bin/env python
#import json
import sys
import os
import ROOT
import optparse
if __name__ == '__main__':
print '''
--------------------------------------------------------------------------------------------------
__ \ \ | _)
... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
fa3c05b75bdac93c2ad02f1e4b234dbc2dc39fb2 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/9144ae424953dcd5cbab180fb68ad51108249353-<srccoms_extract>-bug.py | 70228bce66c7542f656b0ac20014a89b3610376c | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,891 | py | def srccoms_extract(srcfile, status_all, wlist):
'\n Given a source file ``srcfile``, this function will\n extract its API(doc comments) and run sample codes in the\n API.\n\n Args:\n srcfile(file): the source file\n status_all(dict): record all the sample code execution states.\n w... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
13253bbcb5a61616a6cb69054f8269129190e2ae | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/337/usersdata/280/100565/submittedfiles/diagonaldominante.py | f05a7e40031566c52ae540227f222395e0e02f05 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
import numpy as np
n=int(input("Digite n: "))
matriz=np.empty([n,n])
diag=np.empty([1,n])
cont=0
for i in range(0,n,1):
for j in range(0,n,1):
matriz[i][j]=int(input("Insira um valor: "))
for i in range(0,n,1):
diag[0][i]=matriz[i][i]
print(matriz)
print(d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5e65775bcde20459164350bf4eb7c0d6390187ca | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/eve/client/script/ui/inflight/target.py | 668e77d143a15c403bcae9b92c51fe48a9155e12 | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,502 | py | #Embedded file name: c:/depot/games/branches/release/EVE-TRANQUILITY/eve/client/script/ui/inflight/target.py
import blue
import uthread
import uix
import uiutil
import util
import state
import base
import random
import _weakref
import uicls
import uiconst
import xtriui
import localization
import telemetry
import math
a... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.com |
8311b5e7ac60b4884e1f00810a0af2d768c7ca97 | 7a20895c1a5ebe80bfffd6072d2efaa27892b4df | /base_challenge.py | e99d3d082accabd4ebf9723af2b30944ee52694e | [] | no_license | rhlobo/hackerhank_challenges | 609cf35cff04ef8cf34322418d86896d4057d8b0 | 18d75200587d9b259a84bcbbff6cfcdd1c91d6a8 | refs/heads/master | 2018-12-29T14:13:44.606310 | 2014-11-27T16:13:00 | 2014-11-27T16:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/env python
import tester
tester.configure()
'''
https://www.hackerrank.com/challenges/XXX
'''
import XXX
def solve(x):
pass
T = int(raw_input())
for _ in xrange(T):
args = [int(x) for x in raw_input().split()]
print solve(*args)
| [
"rhlobo+github@gmail.com"
] | rhlobo+github@gmail.com |
afa240d770a9b1b6bed14b5b46610250143b3006 | 28779d02314089e0a70a91cc1db875cd5024a395 | /tfx/orchestration/kubeflow/v2/kubeflow_v2_dag_runner.py | d5a9835313af31580c8b92a0124df1209ea97512 | [
"Apache-2.0"
] | permissive | voquangtuong/tfx | 4a2b41f6fd1238c8ae59f2080948d451b7668aba | ce2fd6fbde9845cd837c47089c3d6db2f87007b9 | refs/heads/master | 2023-04-10T21:25:06.404137 | 2021-04-20T03:13:12 | 2021-04-20T03:14:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,252 | py | # Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
8fffa06beb3240b52cbe74e56e6881e19d342e7d | cb81bfaa03921e6388ad6eb012051916d2c04772 | /jumpvisualiser/urls.py | bdd79bc10db3879acd4be1544ec95ae4c6a854d6 | [] | no_license | skyride/eve-jump-visualiser | 43d9c82da0922e04433f576e544b94a4ee35023b | 838053a8b50de337d52616c1e35c2cbb4a16c1d7 | refs/heads/master | 2018-06-27T23:11:18.332956 | 2018-05-30T18:18:04 | 2018-05-30T18:18:04 | 118,148,044 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """jumpvisualiser URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
C... | [
"adam.findlay@mercurytide.co.uk"
] | adam.findlay@mercurytide.co.uk |
dc391b93eb9bb7b4d45cbb1a5abe5ca9c9ab5285 | b8564a3aebbb85d24e3547cbd28f3654de1cfb6e | /darkworld/__init__.py | 69800e8fc9b722567ba06cf3199253e30e8f7b05 | [] | no_license | kwoolter/DarkWorld | 4a62949d1d37d1897fd1b2bb59dce244df403889 | fa11f53d4a27d7220229036a9708aa7f86e43504 | refs/heads/master | 2021-03-23T19:58:36.704359 | 2020-11-03T13:36:08 | 2020-11-03T13:36:08 | 247,479,909 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from darkworld.controller import DWController
| [
"keith.woolterton@gmail.com"
] | keith.woolterton@gmail.com |
e071c6d32cf23a91804981e1c9fbd363874efec7 | d996edcd595c565c5725a16286ce8d338af67246 | /src/rl/qlearning/sarsa_agent.py | 6204f1b366a0ea9e6d541dbc86fc6eab2e9efaf8 | [] | no_license | preddy5/dltemplate | fbbfce7660c451495e255cf8d8437e4b4e207f9c | 77b04b767cbd4914e0a3d3609c645e475aabcc43 | refs/heads/master | 2020-04-28T19:37:04.893001 | 2019-03-13T13:35:04 | 2019-03-13T13:35:04 | 175,517,056 | 1 | 1 | null | 2019-03-13T23:59:40 | 2019-03-13T23:59:39 | null | UTF-8 | Python | false | false | 1,071 | py | import numpy as np
from rl.qlearning.qlearning_agent import QLearningAgent
class EVSarsaAgent(QLearningAgent):
"""
An agent that changes some of its q-learning functions to implement
Expected Value SARSA.
"""
def get_value(self, state):
"""
Returns Vpi for current state under epsi... | [
"markmo@me.com"
] | markmo@me.com |
aaefa16d38f2d7ea1dc21425da2ace84fc7f1b87 | 058498e815b20950cc97033c2e4e55c732c3f909 | /tempest/lib/api_schema/response/compute/v2_1/floating_ips.py | 0c665905fe34dde28020cc2c8839f64852e8e61f | [
"Apache-2.0"
] | permissive | cisco-openstack/tempest | 49c56de4ee2422791fe5cd832083d7b6558c7d0d | 0bc47dbdd05b5d12d048c09800515c2bd03a16ce | refs/heads/proposed | 2021-01-22T00:11:00.113774 | 2020-06-26T09:32:55 | 2020-06-26T09:32:55 | 24,151,261 | 2 | 5 | Apache-2.0 | 2020-08-07T06:13:20 | 2014-09-17T15:46:17 | Python | UTF-8 | Python | false | false | 4,677 | py | # Copyright 2014 NEC Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | [
"mtreinish@kortar.org"
] | mtreinish@kortar.org |
a69a45a82ed766a21c7056d57f6569f2d180450f | fe03eab6477db3f7f3667eefe369dd89d457a58f | /Run2Demonstrator/milliqanScripts/timeCalibration/plotTripleCoincidence.py | f94e68768254ded82d8cb2888577b3914042c347 | [] | no_license | milliQan-sw/milliqanOffline | c64a56173797cd00b9243e4ca7196515081834e6 | 4df6cb4a16ea88feea82b99f9f8c356dbce863cc | refs/heads/master | 2023-08-23T13:39:17.513848 | 2023-08-17T20:16:20 | 2023-08-17T20:16:20 | 123,949,343 | 3 | 7 | null | 2023-09-13T06:59:02 | 2018-03-05T16:47:13 | Python | UTF-8 | Python | false | false | 3,871 | py | #!/usr/local/bin/python
import ROOT as r
import pickle
import os,sys
import pandas as pd
r.gROOT.SetBatch(True)
r.gStyle.SetOptFit(0)
# inputFile = r.TFile('recalibTree.root')
inputFile = r.TFile('/Users/mcitron/milliqanScripts/realTripleCoinc.root')
# inputFile = r.TFile('AllTripleCoincidenceNominalHVNov7_v2.root')
... | [
"mcitron@cern.ch"
] | mcitron@cern.ch |
89a5ee9e158505e8dec2b66c3914cb369c48eb39 | 1e7ce1c56f3030aa6df1e928bab559f50c59bad5 | /homepage/tests.py | c7d12c23566f23ea318652893201412b06dcf0c7 | [] | no_license | AIRob/WxRobot | f7fe37331c399a9d7fb467c7e913f10cc981f8eb | b27a48edb44694d4faa349d68d9b753fe4063276 | refs/heads/master | 2020-06-05T04:53:11.310909 | 2019-05-17T06:46:30 | 2019-05-17T06:46:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | <<<<<<< HEAD
from django.test import TestCase
# Create your tests here.
=======
from django.test import TestCase
# Create your tests here.
>>>>>>> acb8c86e5915306157008056c793ddc27ee3fd97
| [
"1194681498@qq.com"
] | 1194681498@qq.com |
847e3c09351b69ab1c0163179a460ae8d4ab2c66 | 193283457d285d8ddcaa28c3d06dc0546820a224 | /virtual/bin/easy_install | c807322d4e51bf8e12a16ed26965966644e0050d | [] | no_license | ALKEMIA-CHARLES/connectpy | 39c3e3139b6ab4e8173d0c01b2bd59dce607999d | 1659a8ab7fa0183b1ecc6f307c8436540b6a64a8 | refs/heads/master | 2021-05-24T15:30:49.262152 | 2020-04-06T22:32:09 | 2020-04-06T22:32:09 | 253,630,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/home/charles/Documents/moringa-school-projects/connect-4/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"charlesmtawaliJr@gmail.com"
] | charlesmtawaliJr@gmail.com | |
50351090dc204e3bf9d7ee545c28949f6f6d83bc | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/551.py | cf4c418fdeef20399f363ec5314f670826471da8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
import sys
class Recycle:
def solve(self,low,high):
ans=0
for offset in range(high+1-low):
num = low+offset
num_str = list("%d"%num)
for i in range(len(num_str)-1):
modified_str_list = num_str[i+1:] + num_str[0:i+1]
if modified_str_list[0] == '0':
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8e3302d62e49391b32e25a39d6ddb24d0aa64cf2 | 4650ddcf27ddf908c1f38702fe4491df92232905 | /v1/my_site/models.py | ce740596944e1772fdef7c5b105e5c6e515dc0a1 | [] | no_license | volitilov/webface | 0e765232544496fcb1527175cc51e6287ed2797e | 7141c47fe9e86337183faea42be92663ef24afd9 | refs/heads/master | 2020-12-30T15:55:15.023542 | 2017-06-04T18:30:36 | 2017-06-04T18:30:36 | 91,187,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | from django.db import models
from django.utils import timezone
from django.conf import settings
class Category(models.Model):
class Meta:
verbose_name = 'Категория'
verbose_name_plural = 'Категории'
title = models.CharField(max_length=30, verbose_name='Название', unique=True)
def __str__(self):
return sel... | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
3392eb8b2392427e0ee3784a06465a7fbe30b026 | 679ce4b323f79b2425976201324c6c1f88b95199 | /Python/Resource/Themes/Version1/theme_publisher_2022-10-24.py | 0cc74626bf9151f49ebf4a49972e3d4beb9b570b | [] | no_license | abriggs914/Coding_Practice | ff690fb5f145a11f4da144f3882b37f473b10450 | 3afd7c59e0d90f0ef5f6203853e69f853312019b | refs/heads/master | 2023-08-31T04:04:58.048554 | 2023-08-29T13:23:29 | 2023-08-29T13:23:29 | 161,865,421 | 0 | 1 | null | 2022-10-27T08:35:29 | 2018-12-15T03:20:14 | Python | UTF-8 | Python | false | false | 37,481 | py | import os
import json
from colour_utility import *
from tkinter_utility import *
#######################################################################################################################
#####################################################################################################################... | [
"abriggs1@unb.ca"
] | abriggs1@unb.ca |
f930b669bdff8766d9fe09ddcf376ca7cb482bdc | c68aea1de91b46ae684792123c61e84c44ea0266 | /code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/distutils/tests/test_config.py | a3844974f2ad2b3535ec7a830b7ad4b928887f54 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi",
"Python-2.0"
] | permissive | Winfredemalx54/algorithm-challenger-1 | 12e23bed89ca889701db1b17ac540ce62ce86d8e | 761c2c39e041fb155f853385998d5c6318a39913 | refs/heads/master | 2022-11-22T15:03:01.548605 | 2020-07-11T12:26:31 | 2020-07-11T12:26:31 | 297,955,141 | 3 | 0 | Apache-2.0 | 2020-09-23T11:58:19 | 2020-09-23T11:58:18 | null | UTF-8 | Python | false | false | 3,870 | py | """Tests for distutils.pypirc.pypirc."""
import sys
import os
import unittest
import tempfile
from distutils.core import PyPIRCCommand
from distutils.core import Distribution
from distutils.log import set_threshold
from distutils.log import WARN
from distutils.tests import support
from test.support import run_unittes... | [
"bater.makhabel@gmail.com"
] | bater.makhabel@gmail.com |
f834375011f70f9856b73cfc2d76bbf75e4eda72 | 0b144606d44067d6160f1143a759fe7be1a67a93 | /spacy/lang/fa/lex_attrs.py | 99b8e27878bc52ac2dddbf7e67b24da9f088e1f1 | [
"MIT"
] | permissive | huaxz1986/spaCy | a64cba5eb0390068b48a8d4a49c6e8a8b0c22063 | c3c064ace40f4f310d2d220b54b4dc0325a1e3ba | refs/heads/master | 2023-06-09T19:20:46.409792 | 2023-06-02T12:29:52 | 2023-06-02T12:29:52 | 145,535,112 | 2 | 2 | MIT | 2021-07-09T08:11:47 | 2018-08-21T08:50:18 | Python | UTF-8 | Python | false | false | 1,386 | py | from ...attrs import LIKE_NUM
MIM = "م"
ZWNJ_O_MIM = "ام"
YE_NUN = "ین"
_num_words = set(
"""
صفر
یک
دو
سه
چهار
پنج
شش
شیش
هفت
هشت
نه
ده
یازده
دوازده
سیزده
چهارده
پانزده
پونزده
شانزده
شونزده
هفده
هجده
هیجده
نوزده
بیست
سی
چهل
پنجاه
شصت
هفتاد
هشتاد
نود
صد
یکصد
یکصد
دویست
سیصد
چهارصد
پانصد
پونصد
ششصد
شیشصد
هفتصد... | [
"noreply@github.com"
] | huaxz1986.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.