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
004e7855b08c1a4c1e62764c43bc7d5181587346
22aa2c87f0bfc2f381c4249ad41c5fac464819ae
/source_code/analytics/analytics.py
1ab88a05effbe0d54b59c97a27d70b9efa33c2ff
[ "MIT" ]
permissive
sohailhabib/SecurityMetrics
a25e2bc21f1ae35a5953b0b0c9d78d2c679c5a3b
7de3f462e89d97592e0c28a623bd6f7112b9a3b1
refs/heads/master
2023-08-02T08:32:43.910254
2021-10-01T01:56:31
2021-10-01T01:56:31
401,510,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
""" MIT License Copyright (c) 2021, Sohail Habib Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
[ "sohailyamin@gmail.com" ]
sohailyamin@gmail.com
a043d06cf760add938e1077f6f8fbe72858f2ca7
b5937131741010ec042d04a51cb51dd20157c637
/Lists-upto-exception handling/Functions, File Handling, Modules and Exception Handling/primefactors.py
9bc3c7663efa81f4a184303874ea2967b34d19ed
[]
no_license
Shakirsadiq6/Basic-Python-Programs
5314961b5eb472b12dcec045e1f5516d9f2ee3c2
2aea264d61acf0704b0bb66cf0ba936925d30cb9
refs/heads/master
2023-07-07T04:37:44.664604
2021-08-03T09:47:03
2021-08-03T09:47:03
345,914,173
0
1
null
null
null
null
UTF-8
Python
false
false
543
py
'''Write a function to obtain the prime factors of this number''' __author__ = "Shakir Sadiq" def primefactors(number): '''function for prime factors of a number''' while number%2 == 0: print(2) number = number/2 for i in range(3,int(number**2)+1,2): while number%i== 0: ...
[ "shakirsadiq24@gmail.com" ]
shakirsadiq24@gmail.com
caa61f239dd804cfd346a5bfbdd0c96f9db3019c
aa853a9094fff4b6e9b0ddc7469be29ad5f0f811
/poi_account_discount/__init__.py
fbcb99378cb4816bc628da5b14f4c85a93bfbda9
[]
no_license
blue-connect/illuminati
40a13e1ebeaceee39f17caa360f79e8deeaebf58
6682e60630064641474ddb2d8cbc520e30f64832
refs/heads/master
2022-01-06T00:55:58.465611
2018-11-24T04:30:03
2018-11-24T04:30:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2010 Poiesis Consulting (<http://www.poiesisconsulting.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
[ "yori.quisbert@poiesisconsulting.com" ]
yori.quisbert@poiesisconsulting.com
a43d8200644ab55109d29dd296181d6035385a15
c3293f55218021c8bc3856e25829fe0b4c140dd0
/code/GUI.py
47296cdbb867420fb2b27b703bb27e87399884e1
[]
no_license
BoGuo86/induction-motor-design-tool
f228298c8a1ec062cd9eff1f85def81a0334a1a4
b8489f4613dfa431a486ed0ca2f6c1f5999972cb
refs/heads/master
2022-12-23T01:24:33.592488
2020-09-29T21:42:26
2020-09-29T21:42:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,787
py
# Importing modules import threading from tkinter import * from tkinter import ttk from tkinter.ttk import * from mttkinter import mtTkinter from PIL import ImageTk, Image from Variable_Declaration import Variable import guli import time class Thread_main(threading.Thread): def __init__(self, name): thread...
[ "andrejgrunesi@gmail.com" ]
andrejgrunesi@gmail.com
69ce65da047bda6776179e27ce17ebcda32a87e1
040a6cc313a6200da1d176191707bfb896053db4
/descarteslabs/catalog/catalog_base.py
0729318b9da2c1d50cf45c9f6c684f13b12fdd4c
[ "Apache-2.0" ]
permissive
aashish24/descarteslabs-python
77747984994609205887262bafeec5e9d38fcd0c
00149115e8ef6cd1f48b0a6c689f5da07f69c306
refs/heads/master
2022-11-19T02:02:00.959896
2020-07-24T16:23:55
2020-07-24T16:42:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
36,013
py
from six import add_metaclass, iteritems, ensure_str, wraps from types import MethodType import json from descarteslabs.client.exceptions import NotFoundError from .attributes import ( AttributeMeta, AttributeValidationError, AttributeEqualityMixin, DocumentState, Timestamp, ListAttribute, ...
[ "support@descarteslabs.com" ]
support@descarteslabs.com
9c19ad2a558a99b718e3e70fbe64d7679a09444d
cc89320c0c261eb31a971bd01399b173a014a380
/basics/dbconnect_01.py
6c49973e9fa4f4316b2e445cc204f33c425bf0c8
[]
no_license
Nivedha221998/python
41ecceb6f23b598ab749a2f0cf60cf7672893e88
82a4a94f5a0f5305a80f68177a49b7f66a553ccc
refs/heads/master
2023-02-02T22:41:07.182187
2020-12-18T09:14:38
2020-12-18T09:14:38
322,485,858
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
import datetime; import mysql.connector; import json; from environment import host; def timestamp(): ct = datetime.datetime.now() return ct def timediff(a,b): return(b-a) def converter(d): return d.__str__() def connection(): a = timestamp() print(a) cnx = mysql.connector.connect(user...
[ "nivedha221998@gmail.com" ]
nivedha221998@gmail.com
d5d7bc6f783064bdf9f3c5a83dec9a899defc356
060967fa3e6e390ac0504172e6dea8421ffb9d98
/2022/python2022/aoc/day01.py
f8899599170d8fd6ebfed8fd5aa9f6cefed79066
[]
no_license
mreishus/aoc
677afd18521b62c9fd141a45fec4b7bc844be259
e89db235837d2d05848210a18c9c2a4456085570
refs/heads/master
2023-02-22T12:00:52.508701
2023-02-09T04:37:50
2023-02-09T04:39:44
159,991,022
16
3
null
2023-01-05T10:00:46
2018-12-01T22:00:22
Python
UTF-8
Python
false
false
901
py
#!/usr/bin/env python """ Advent Of Code 2022 Day 1 https://adventofcode.com/2022/day/1 """ from typing import List import heapq def parse(filename: str) -> List[int]: """ Parse the input file into a list of integers. Each integer is the sum of the numbers in a block. """ with open(filename) as fi...
[ "mreishus@users.noreply.github.com" ]
mreishus@users.noreply.github.com
bcf3914323be65181a8ba743c160c877da58bb0b
89082e16362f25e559f1f928641d26566b248cd1
/classwork20181022/range.py
9da58ec202263f1f578e37ba629f296733212ed9
[]
no_license
Andoree/Python-Study
fde1936607a9a49afd556b5f8c956a1076bbf2f7
10a6dad4b0c70639c9b2f54ebae3c56a35cbaafb
refs/heads/master
2020-03-29T13:41:28.587138
2018-12-05T20:55:42
2018-12-05T20:55:42
149,976,797
0
2
null
null
null
null
UTF-8
Python
false
false
303
py
def our_range(n): i = 0 while i < n: yield i i += 1 def my_range(end, start=0, step=1): i = start while i < end: yield i i += step for k in my_range(100, 0, 3): print(k) ''' i = our_range(5) print(i.next()) for k in our_range(5): print(k) '''
[ "and2900@inbox.ru" ]
and2900@inbox.ru
3e3a29d645d76489564f31b5593d1a2360b96136
ee3859a2d8bf0c2486fba02e7b0a7effa8f36563
/2022/python/day11.py
a10b7c76518ceef5b4a74c8b642491e7948e0fe5
[ "MIT" ]
permissive
majormunky/advent_of_code
a4a1727611021e57b02c2014669621614f784221
a5c22cbd37162234b28f9db8e32281286dcbbd26
refs/heads/main
2023-08-20T06:18:18.060244
2023-08-02T22:32:08
2023-08-02T22:32:08
226,026,329
0
1
null
null
null
null
UTF-8
Python
false
false
7,794
py
import time import sys from common import get_file_contents class Monkey: def __init__(self, lines, trainer): self.trainer = trainer self.name = self.parse_name(lines[0]) self.holding_items = self.get_starting_item_list(lines[1]) self.operation_val = None self.operation_typ...
[ "josh.bright@gmail.com" ]
josh.bright@gmail.com
da7a3b085d5e6082e0cb6992493c90567a8c0749
0046e32be68708ad9fb59d240077de7bc890d118
/cart/migrations/0004_auto_20190818_1605.py
4b986d243eece50941cba23959f33acf94c2f8ed
[]
no_license
ajitesh-30/Food-Service
bf6d07ae2020a88ed10690c3be54040b74d9f610
f1b56b24331355666c92590a2df3ab944807545f
refs/heads/master
2020-07-07T02:20:38.381964
2019-08-19T18:42:15
2019-08-19T18:42:15
203,214,942
1
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
# Generated by Django 2.1.8 on 2019-08-18 16:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cart', '0003_remove_cart...
[ "ajiteshs10@gmail.com" ]
ajiteshs10@gmail.com
ac42de600d441111b8757f73f24b818eb59e9234
462019a24638e96e57aa72c4b4435e10117642ae
/Test Modules/keyClass.py
fa1ca5ca0aae4cb5e01ade84acb56af2abab831a
[]
no_license
AkagiCoder/FR_System
b0cbe633eaa4661c25e97497108b282993b20160
8c279d50f3d3ccb37b8d7336f821f2d57c3d8eb9
refs/heads/master
2020-09-16T17:56:29.723666
2020-05-07T04:11:10
2020-05-07T04:11:10
223,846,055
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
# Class that defines a key class key: def __init__(self, num, code, dateCreate, timeCreate): self.num = num # Key's number indicating the position of the list self.code = code # Key's code self.dateCreate = dateCreate # Date when the key was genera...
[ "noreply@github.com" ]
AkagiCoder.noreply@github.com
5a77dfd5ba44232e1bc973bae201fe2b77eaf6f6
65ca528fbb4f5ed5d62806b6225c861dcf420084
/insert.py
34fe0cdc1423350a97474dd9ec9a5444d1f939a3
[]
no_license
pradeepganesamoorthy/python-basics
35bb3b7ac4fb382089f91cad7935f146760b4503
a0ac602d48167c72e3d6b85fd652d1893ba511dc
refs/heads/main
2023-03-09T06:23:47.410073
2021-03-03T05:28:45
2021-03-03T05:28:45
342,138,970
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
#Insert List1 = [1, 4, 5, 7, 8] List1.insert(3,10) print "Updated list" , List1
[ "noreply@github.com" ]
pradeepganesamoorthy.noreply@github.com
7f2890e6eef8d3b97cf77dd2662ed98a917826d1
631448f7133a783f6de769a36648bea049866077
/python/matrix/matrix.py
a7ee11d3f374dfb97aa5d52584ae79a961ff256f
[ "MIT" ]
permissive
parkerbxyz/exercism
1537c9e972864341d3c74f989f2a87f63ec9ac5c
cf5b82f5e80fbdf53d6939e5c997966a548a857a
refs/heads/main
2023-08-08T03:14:21.031642
2023-03-18T04:12:14
2023-03-18T04:14:35
179,165,373
0
0
MIT
2023-09-11T22:34:04
2019-04-02T22:01:29
Shell
UTF-8
Python
false
false
368
py
class Matrix: def __init__(self, matrix_string): self.row_list = [list(map(int, row.split())) for row in matrix_string.splitlines()] self.col_list = list(map(list, zip(*self.row_list))) def row(self, index): return self.row_list[index - 1] def column(self, ...
[ "17183625+parkerbrownxyz@users.noreply.github.com" ]
17183625+parkerbrownxyz@users.noreply.github.com
634e31435d8933c07718142efced149f7d9640e0
dbcc35274e1d2cc6cda75c825a6dca7c3aeb1a20
/game.py
c3475256d8cc748a66907060b8c685f59dfee4e1
[]
no_license
NullCodex/Flappy
2c130f51f5e56b481c0e64ef591df2985978bed8
f06efc3a34dc9167934b3476c5aff68601e41501
refs/heads/master
2021-01-10T15:02:05.949461
2015-11-27T02:59:28
2015-11-27T02:59:28
46,956,743
0
0
null
null
null
null
UTF-8
Python
false
false
3,713
py
#!/usr/bin/env python import pygame from pygame.locals import * # noqa import sys import random class FlappyBird: def __init__(self): self.screen = pygame.display.set_mode((400, 708)) self.bird = pygame.Rect(65, 50, 50, 50) self.background = pygame.image.load("assets/background.png").con...
[ "jamesonyu95@gmail.com" ]
jamesonyu95@gmail.com
a7d44b84305b45be2479048a5cb552f85539f5a2
38d3b3f4caf93c152070a660e4625bbdd99de5d8
/data.py
83bed3840916c9f6fe2c6181baaddc7fe2a1622d
[]
no_license
adwaye/neuralNetworks
d568282f685f589674d1d13ebf7130f4531a59b5
70a404c875d090359cbb2256ee1f758ddb2bbcd5
refs/heads/master
2020-03-31T17:43:13.259611
2018-10-10T13:59:48
2018-10-10T13:59:48
152,432,172
0
0
null
null
null
null
UTF-8
Python
false
false
3,303
py
import numpy as np import gzip import matplotlib.pyplot as plt import cv2 import os from build_image_data import _process_dataset IMAGE_SIZE = 28 NUM_CHANNELS = 1 PIXEL_DEPTH = 255 """ takes as input a gz-compressed ubyte object from http://yann.lecun.com/exdb/mnist/ and outputs it in folders that are named after th...
[ "adwayerambojun@gmail.com" ]
adwayerambojun@gmail.com
6544e45fed1939fd5ed348d360e7d109637bf1ed
b498fc42a8ad2fe90cc61a51eb00f0511a83bb4c
/Lists/combine_lst.py
54db543ca275887d0056382aaba899992c7b83d5
[]
no_license
chutki-25/python_ws
3d58ff2bc64b30da0ec9dd85265be94a3ad89bca
b0441c17367c356d9c92b4dce49165d2c8508f46
refs/heads/master
2022-02-25T09:08:06.692574
2019-07-24T18:22:12
2019-07-24T18:22:12
198,151,197
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
nums=[[1,2,3],[4,5,6],[7,8,9]] all_nums=[j for i in nums for j in i ] print(all_nums)
[ "sirikollur25@gmail.com" ]
sirikollur25@gmail.com
b06352210f635b17200179bc0e7ebec438a609f0
00c250de250d0993fae5dd9d8b17a4d4b6c46f0f
/master.py
ada4437cfc498f81ac57fce4b16ef5b014b9e1e6
[]
no_license
junnychen/git_exercise2
105f3b9b4ddc64333cda22a9594dca338e25e3f4
22d05cbbf6a3cfadd7687f6eee498edbd58ec4e5
refs/heads/master
2020-05-01T11:37:21.355453
2019-03-24T18:05:02
2019-03-24T18:05:02
177,447,764
0
0
null
2019-03-24T18:05:02
2019-03-24T17:38:26
Python
UTF-8
Python
false
false
52
py
sum = 0 for i in range(10): sum += i print(sum)
[ "junlin2222@Gmail.com" ]
junlin2222@Gmail.com
272cb28ffcea219a7b52db8a0dbf7f5718528369
f38078d2ae83f54b12bbccb298000668643d191d
/ImageClassificationCNN/model_loader.py
f06ad2d69ceb1d711454138b3b6b9999bf509408
[]
no_license
royd1990/DeepLearnInfilect
26de605d36c617da405346255690df0f4c4f0836
61eb515eb8e88d981ef6147650fe1e1663f52af2
refs/heads/master
2022-11-15T08:23:55.726407
2017-07-15T10:18:30
2017-07-15T10:18:30
95,906,386
0
1
null
2022-11-03T20:58:51
2017-06-30T16:33:59
Python
UTF-8
Python
false
false
2,693
py
import argparse import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data from week1.CNN.train import model_freezer if __name__ == '__main__': # Let's allow the user to pass the filename as an argument parser = argparse.ArgumentParser() parser.add_argument("--frozen_model_filename"...
[ "royd1990@gmail.com" ]
royd1990@gmail.com
c16804ef65ddaba3604e91cc5575aeae51e724d9
9442107662ffd710ab44a26218481bfc6286baeb
/python 3.6.4/chatbot.py
d5b5b68a4dd41530ac3b9ad298fbf0f183070c29
[]
no_license
TheSlothinatoor/Chatbot-Project
7a77ac1fd8ac1f8da1a314fb88016152c06bc08c
531e789b9db92a98f9137ea903ed261fb1202a3b
refs/heads/master
2020-08-07T22:14:39.885346
2019-11-15T11:31:02
2019-11-15T11:31:02
213,601,780
0
1
null
null
null
null
UTF-8
Python
false
false
442
py
import discord from discord.ext.command import Bot from discord.ext import commands import asyncio import time Client = discord.Client() client = command.Bot(command_prefix = "!") @client.event async def on_ready(): print("We have logged in") @client.event async def on_message(message): if message.content ==...
[ "31484277+TheSlothinatoor@users.noreply.github.com" ]
31484277+TheSlothinatoor@users.noreply.github.com
126074cc00f2903010c558fb7fffdd45e6708f18
2b362b5f6b2839613f4e4360d3b922d90162704f
/app/gitmanager.py
39daa072bd938c66ab98d6309b8c74f9356fb4d6
[ "MIT" ]
permissive
snehesht/blog
c4200de90efba1e2664937ec88aa6b1234e47fed
e579fce1d4f4a17fb6c9c7adfa3e05bbdc24aae6
refs/heads/master
2021-01-16T23:33:30.733846
2018-12-21T06:55:53
2018-12-21T06:55:53
64,437,625
196
9
null
null
null
null
UTF-8
Python
false
false
1,693
py
import subprocess import os from config import * # Update the GIT database repo def git_update(): current_dir = os.getcwd().split('/')[-1] try: if check_repo_exist(): # Checks if the directory is GIT_REPO_DIR_NAME or not, if not changes to that dir # This is to avoid recursi...
[ "mail@snehesh.me" ]
mail@snehesh.me
d2d048ae60943070dda3483a74b20995a1d2e5b6
016b23a5ba5fb0efdc5f5c8437176b0078cfa800
/thesale/theteam/migrations/0009_img.py
7302b56f818678c9ea5e7d776018fad19ce43cfd
[]
no_license
wcqy-ye/ourwork
3bae7161019444e527e760ff50c9bde97364d787
1ec80af71579200dc5c2dc34ac74fb6803107888
refs/heads/master
2020-05-09T09:50:49.682238
2019-05-21T05:37:26
2019-05-21T05:37:26
181,018,458
2
0
null
2019-04-12T13:55:51
2019-04-12T13:55:51
null
UTF-8
Python
false
false
527
py
# Generated by Django 2.1.7 on 2019-05-20 13:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('theteam', '0008_team'), ] operations = [ migrations.CreateModel( name='IMG', fields=[ ('img', models...
[ "2312309705@qq.com" ]
2312309705@qq.com
9e011f833190c003c501b34093c98fea67323259
6bf492920985e3741440ba53e1c7f8426b66ac1f
/snakemake_rules/rules/gatk/gatk_combine_variants.smk
4aeb72ab60e819d714f462e05f027c1fd761730a
[ "MIT" ]
permissive
ukaraoz/snakemake-rules
5b2ba7c9ec19d88b56067a46f66fd0c72e48c368
07e96afeb39307cdf35ecc8482dc1f8b62c120b9
refs/heads/master
2020-03-31T15:20:44.444006
2018-09-07T08:53:47
2018-09-07T08:53:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
smk
# -*- snakemake -*- include: 'gatk.settings.smk' include: 'gatk_variant_snp_JEXL_filtration.smk' include: 'gatk_variant_indel_JEXL_filtration.smk' config_default = {'gatk': {'combine_variants': _gatk_config_rule_default.copy()}} update_config(config_default, config) config = config_default cmd = re.sub("-Xmx[0-9a-zA...
[ "per.unneberg@scilifelab.se" ]
per.unneberg@scilifelab.se
82e714f9d7bf40c18e7816ef186fca4e30fa9493
48e43eec0e8399b034705b02916104be9335d64e
/SourceCode/MapReduce Stripes Mapper.py
6e6a0d878fff460ea63861749297d1919fc1d3ee
[ "MIT" ]
permissive
prakhardogra921/Movie-Pair-Analysis-using-Hadoop-and-Spark
c8d5f39e2d59aa65888c3f87e65a9bf0a1145926
aa5587bb4ee29e46ae34bf299ab70475f1cde5a5
refs/heads/master
2021-05-14T10:00:32.616508
2018-01-05T05:03:52
2018-01-05T05:03:52
116,341,022
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
py
#!/usr/bin/env python import sys import json movie_dict = {} skip_first = True count = 0 user = 0 movie_list = [] all_movies = "" for line in sys.stdin: if skip_first: skip_first = False continue info = line.split(",") if float(info[2]) >= 4.0: if user != int(info[0]): ...
[ "pdogra@cafex.com" ]
pdogra@cafex.com
d052fff3e9a8ca167ab284868d1d61e0dbb654ce
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/lib/pymodules/python2.6/papyon/sip/transport.py
20fe3f535a9615f5870fc8c179f1e13f2a9f1010
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
43
py
/usr/share/pyshared/papyon/sip/transport.py
[ "root@xinli.xinli" ]
root@xinli.xinli
bcdd0abe6750285e7fa6b8a7a95cdf85baaf302a
3bb1cf4309e0e6488aeb3e5ae8b78138cfdaa002
/kyopro_tenkei/90_54.py
8de332b75aa23b0227743cdd237feacaa92f0a7a
[]
no_license
show2214/atcoder
18a2dd0c2167fadeda2725a67d2d68d593b0bef9
7aae17b41b07bece746b34258b9514e145186327
refs/heads/master
2022-06-27T19:17:46.514876
2022-06-19T23:21:48
2022-06-19T23:21:48
249,148,332
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
N, M = map(int, input().split()) g = [[] for _ in range(N + M)] for i in range(M): input() for j in map(int, input().split()): g[N + i] += j - 1, g[j - 1] += N + i, from collections import * q = deque([0]) v = [0] + [-1] * (N + M) while q: c = q.popleft() for b in g[c]: if v[b...
[ "show2214@icloud.com" ]
show2214@icloud.com
dd8f89f1291812fd7b64a055c14821e6086c0c2a
2de2141dc66caf1dbdcae973e9ce54567b6d6b96
/Du/views.py
f44ee681540fd93052c4c6ed6e3d9e906b2a1dfd
[]
no_license
JacksonYANG/Du
c2f7bbd36bb9bd83821c38f3fc32a107e4c51f80
d1042a23aeeb329a7ce4dab7f8909309acd801c2
refs/heads/master
2020-03-25T20:12:32.860913
2018-09-17T06:30:46
2018-09-17T06:30:46
144,120,953
0
0
null
null
null
null
UTF-8
Python
false
false
4,508
py
from django.contrib.auth.models import User from django.shortcuts import render, get_object_or_404, redirect from django.contrib.auth import authenticate, login, logout import markdown # Create your views here. # 首页 from django.views.generic import ListView, DetailView from Du.forms import LoginForm, RegisterForm, Co...
[ "353904675@qq.com" ]
353904675@qq.com
d37f9e22a0ce9602b392ea28978bc30abdfac727
25f4e2ba489b3a55e59cb5d7b35c3cf643a5162d
/ambientevirtualromulo/meuaplicativo/migrations/0004_auto_20190813_1357.py
70a24fa6b46bad6e6c709d155b32e0ee8e5b0dba
[]
no_license
romulopin/crudpython
f3afa3888e39243003c7ca71f8b2c3a6183e8c83
a7ab12653293638b9fae7e7dcebf431c18fad667
refs/heads/master
2020-07-02T21:35:14.233611
2019-08-14T02:45:24
2019-08-14T02:45:24
201,671,846
1
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
# Generated by Django 2.2.4 on 2019-08-13 16:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('meuaplicativo', '0003_auto_20190812_1824'), ] operations = [ migrations.CreateModel( name='Produto', fields=[ ...
[ "romulo.s.pinheiro@gmail.com" ]
romulo.s.pinheiro@gmail.com
e77c7a685926bb163fb95b1898c1c03200116012
d84f7c22cc61958e9670eb0c6528ff208691aa5e
/homepage/homepage/settings.py
fdbe1a1cea8bbbd2c5565b21f012a4882e4f16da
[]
no_license
ronnnwu/RVEX
b1ad2a58e2399d4d70732b76dff4106d4ad9b7f4
537c06083a432e5030863c3fcb1e40ac5eb81dc5
refs/heads/master
2022-08-29T23:35:45.289001
2017-05-03T16:52:39
2017-05-03T16:52:39
90,172,137
0
0
null
null
null
null
UTF-8
Python
false
false
3,100
py
""" Django settings for homepage project. Generated by 'django-admin startproject' using Django 1.11. 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/ """ import os ...
[ "rcw278@nyu.edu" ]
rcw278@nyu.edu
a675be1dee75baf40dfd7bedb70f50cd49c2bf55
003f009950f4d5d69556c6505160e44c0f3392eb
/C-Cpp/Fibonacci/JobArray/wrapper.py
7e756594097dc715b6eb7f2c37002bee2c1e4afa
[ "MIT" ]
permissive
llsc-supercloud/teaching-examples
995e1727849d8e64f3cc97a434bcb660f991f6c5
2e5d1d4b59d2808eea82705165709b50289c1fb7
refs/heads/main
2023-07-06T09:25:28.669596
2023-06-23T15:38:51
2023-06-23T15:38:51
181,913,936
32
11
MIT
2023-06-23T15:38:52
2019-04-17T14:57:08
Jupyter Notebook
UTF-8
Python
false
false
692
py
import sys,os # Read in the file of inputs finputs = open(sys.argv[1],"r+") inputs = finputs.readlines() # The name of the executable we want to run exec_name = '../bin/fibonacci' # Determine which inputs to run if len(sys.argv) > 2: # if we pass in the task_id and number of tasks # This is the task id and numbe...
[ "lauren.milechin@mit.edu" ]
lauren.milechin@mit.edu
c73594f3fd6f39702628fa34cba3b2585af4b651
8a7660a4e592f2fbb5c8e353dc06743754e9e606
/python/pencilnew/math/is_int.py
1995f40c4221659c652ac53267dbf5755b0a1b08
[]
no_license
yangjian615/pencil-code
e5af53deb8d2e0aa895ce2f2f4dcf8505ec96b6c
50a158369926ed742fe6881cbf14c7cced7199b0
refs/heads/master
2021-01-24T18:12:52.291589
2017-03-08T18:10:29
2017-03-08T18:10:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
def is_int(s): """ Checks if string s is an int. """ try: a = float(s) b = int(a) except ValueError: return False else: return a == b
[ "andreas.schreiber88@googlemail.com" ]
andreas.schreiber88@googlemail.com
b115ae9cbf8febf57bc66fe07a163378faedddf7
e7b2c4a271d95edaec0b9d071ef95f4afded3023
/cloud/HyperlinkManager.py
725fa3edbdca16016fce3d3fc6503b56e7fe31cb
[]
no_license
gmy/CloudStorageAndTransmission
c5dc4792b0ca3c6f574aca42e4df0bb044339b1e
d22fb731081a56dc259708e5cfb4c003c09f2cb7
refs/heads/master
2016-08-05T08:02:15.948909
2014-06-07T05:18:20
2014-06-07T05:18:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
__author__ = 'gumengyuan' from Tkinter import * class HyperlinkManager: def __init__(self, text): self.text = text self.text.tag_config("hyper", foreground="blue", underline=1) self.text.tag_bind("hyper", "<Enter>", self._enter) self.text.tag_bind("hyper", "<Leave>", self._leave) ...
[ "gumengyuan@resnet-38-197.resnet.ucsb.edu" ]
gumengyuan@resnet-38-197.resnet.ucsb.edu
2b03c7cc20444724c7de6226946be343a76065e4
d29882486d57d5ba2c62c8557fd8b052c844555a
/tests/test_rules.py
ea77c9382da81d078db3ef73bd8b956bfd5146dc
[ "MIT" ]
permissive
Awesome-Of-the-Internet/algorithms-keeper
42dcd21827edafcd95746c2f81b7b6727b7b3200
a23941489ced44170e13f9f64aa9b8893bb3d8a7
refs/heads/master
2023-07-15T07:07:37.367689
2021-08-31T05:21:00
2021-08-31T05:21:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,531
py
import textwrap from pathlib import Path from typing import List, Optional, Tuple, Type, Union import pytest from fixit import CstLintRule from fixit.common.utils import InvalidTestCase, LintRuleCollectionT, ValidTestCase from fixit.rule_lint_engine import lint_file from algorithms_keeper.parser.rules import ( Na...
[ "dhruvmanila@gmail.com" ]
dhruvmanila@gmail.com
04f818c8d8d6447a4a6615bbd06b414243ac722d
3c95972abacdb1556a0df80eecebba2694492865
/test/request_network.py
fcd1c8682678e0f892ce8079eeec38c3fde9c1a7
[ "Apache-2.0" ]
permissive
chenweixu/bunnyc_mgr
6e6536ef21b17aeacf46263f1d5cca02ac648a78
1243fa951c45c665442212247d682ce3d39aec08
refs/heads/master
2022-04-30T09:15:56.618674
2019-08-09T06:01:38
2019-08-09T06:01:38
165,891,860
0
0
Apache-2.0
2022-03-29T21:57:33
2019-01-15T17:13:22
Python
UTF-8
Python
false
false
1,832
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Email: chenwx716@163.com # DateTime: 2017-07-09 18:26:45 __author__ = "chenwx" import json import requests app_url = "http://127.0.0.1:9002" req_url = app_url + "/api/v2/network" json_headers = {"content-type": "application/json"} class Network(object): """docstring ...
[ "chenwx716@163.com" ]
chenwx716@163.com
f1c5e69189bc8a90462b021c01db2e9eb96a1b0a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03239/s478967614.py
7b473b8df981d413d6bb9ee6fe7d2eb9b2bdec4c
[]
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
201
py
n, t = map(int, input().split()) ans = 100000 for i in range(n): c, tt = map(int, input().split()) if tt <= t: ans = min(ans, c) if ans == 100000: print("TLE") else: print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
08adebbe826f788b8506ac12bfe64a9e064ce640
95f32d9fa064222ae4b091f66500fad52667e246
/progress.py
5c10e49df438f34a7d666b3fa80b724ea70af586
[]
no_license
sehugg/cupaloy
ef2d483db57df76756aa776f7eef29854d54a6ee
522dab4e1785ba688db78c9fbbb21286454cedd1
refs/heads/master
2020-03-28T21:53:20.343750
2019-01-03T20:46:00
2019-01-03T20:46:00
149,189,630
1
0
null
null
null
null
UTF-8
Python
false
false
1,835
py
#!/usr/bin/python import sys,time class ProgressTracker: def __init__(self): self.files_visited = 0 self.size_visited = 0 self.files_max = 0 self.size_max = 0 self.count = 0 self.last_refresh_time = 0 self.refresh_interval = 0 self.current_name = '' self.goals = [] def pu...
[ "hugg@fasterlight.com" ]
hugg@fasterlight.com
a810239db0aeedff351d3d9efc5207a589a7f567
f1d3591ebc611960b5b3330159929f4134145f6d
/csqlite3/client.py
56c6c3787ba580fdc4609ea0bd29bc6fa7848bd3
[ "MIT" ]
permissive
AlanCristhian/csqlite3
bb2acc0acf9e09bee8a05770a77a7f3c7170ca84
c7b9fc1578fd7bd5d21d3fd7edcefbf563264929
refs/heads/master
2020-03-18T05:03:28.477142
2018-05-27T21:31:33
2018-05-27T21:31:33
134,321,822
0
0
null
null
null
null
UTF-8
Python
false
false
11,603
py
import atexit import logging import os import socket import threading import warnings import pathlib from . import utils _logger = logging.getLogger("Client") _PID = os.getpid() class _ConnectionSocket(utils.PickleSocket): def request(self, *message): self.write(message) response = self.read() ...
[ "alan.cristh@gmail.com" ]
alan.cristh@gmail.com
68021c77c0ee0ad4339ea6f035207dae6ea9a485
1a7e6b0f6281c7705e75e4ec57520388e9eac0bc
/loops/for.py
c4552e5eea11b9ffd5335eee02e07b0f508cfa3f
[]
no_license
drafski89/useful-python
139954cf521c4eec1c0bab3420185c6612c6fbd6
ebc3ff2f3ab89b1b9e4fb1c051564baddbeec8e8
refs/heads/master
2021-09-06T21:27:14.766923
2018-02-11T17:50:59
2018-02-11T17:50:59
108,578,058
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
# Basic example of implementing a for-loop # Create a variable called count to hold the current count count = 1 print x # For loop # for [variable] in range (start amount, stop amount, increment amount) for count in range(1, 12, 1): # Add 1 to count and print the result count = count + 1 print count
[ "brandt@mmsi.com" ]
brandt@mmsi.com
01ba65d8da0f32d363289cae1846027df987e112
28a462a28f443c285ca5efec181ebe36b147c167
/tests/compile/basic/es2017/EscapeRegExpPattern.spec
2289280aaa2efa7ea17a57ad0c73afcb15409c9a
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kaist-plrg/jstar
63e71f9156860dc21cccc33a9f6c638dfee448ea
1282919127ea18a7e40c7a55e63a1ddaaf7d9db4
refs/heads/main
2022-07-22T08:12:34.947712
2022-02-27T04:19:33
2022-02-27T11:06:14
384,045,526
6
4
NOASSERTION
2022-02-27T11:05:26
2021-07-08T07:53:21
Python
UTF-8
Python
false
false
1,405
spec
1. Let _S_ be a String in the form of a |Pattern[~U]| (|Pattern[+U]| if _F_ contains `"u"`) equivalent to _P_ interpreted as UTF-16 encoded Unicode code points (<emu-xref href="#sec-ecmascript-language-types-string-type"></emu-xref>), in which certain code points are escaped as described below. _S_ may or m...
[ "h2oche22@gmail.com" ]
h2oche22@gmail.com
dece9dbbfd2dd780ee3a8047c874acb51b1a0d50
03ff74fff064b69e5b41af42372a6cc33738c294
/project_advance_views/Blog/migrations/0013_auto_20190213_0516.py
43dedb029ef0a8f5093863b4fbf0e2cbbafa56d0
[]
no_license
rosaridho/DJANGO_MVC
189a6ba400984e91dd0b057072f8e60348619242
44e6f0bd0dcd7e9d268dc2580770c79d54aeda85
refs/heads/master
2022-11-28T04:57:03.973009
2019-02-13T13:55:28
2019-02-13T13:55:28
170,068,288
0
0
null
2022-11-22T03:25:38
2019-02-11T04:34:06
HTML
UTF-8
Python
false
false
396
py
# Generated by Django 2.1.5 on 2019-02-13 05:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Blog', '0012_auto_20190213_0512'), ] operations = [ migrations.AlterField( model_name='artikel', name='gambar', ...
[ "muhammadridhorosa@gmail.com" ]
muhammadridhorosa@gmail.com
a18b89fb83c54798265c1232a5612a39c65e53ff
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/ke4FSMdG2XYxbGQny_5.py
3eb2cfb5e413340d184121753557a8220852eae5
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
def even_odd_transform(lst, n): l=lst if len(l)==0: return l for i in range(n): for j in range(len(l)): if l[j]%2==0: l[j]=l[j]-2 else: l[j]=l[j]+2 return l
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a1dd46d126b3b32636fc69f0ddcb514cf076741c
ea35facf6d823e93706b5f551408250b1e089be9
/共通問題/9_2.py
e241ba9b38b5616e7210f25d70710da375922582
[]
no_license
YukiNGSM/PythonStudy
7a2d24f4762e384531eadd691858296b00b6a6b3
26310d0e007745ff4920ccd0fc3e51771cb2d5f1
refs/heads/master
2023-07-19T00:06:29.061255
2021-09-22T01:29:49
2021-09-22T01:29:49
409,025,304
0
0
null
null
null
null
UTF-8
Python
false
false
70
py
def hello(): for i in range(10): print(('Hello')) hello()
[ "ykh2135239@o-hara.ac.jp" ]
ykh2135239@o-hara.ac.jp
9fce20f8fc036410b74c53272e3f3ba7e0bbea05
9468507c1beeb2cb69591889605ea155d2cb7a63
/mysite/urls.py
3c3cb29f215257dcd4b0b3f45a2b59dd078c5b1b
[]
no_license
nimal54/drf-polls
2375e2f5b78670de40c72b51eb616a69e7f49a65
9b29230998146eb225e0cffa0703d6bed1cc876a
refs/heads/master
2020-04-25T00:21:14.952917
2018-03-16T11:54:53
2018-03-16T11:54:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
from django.urls import include, path from django.contrib import admin urlpatterns = [ path('api/', include('polls.urls')), path('admin/', admin.site.urls), ]
[ "will@wsvincent.com" ]
will@wsvincent.com
2105b7ef7452e7d5e92c95d2a3523538a6855b8b
0354baf04e26275d42858b8430e5a7de85d4ca98
/Tema3/main.py
20ee2025304e2d8b183cd71ef137d4844e83254d
[]
no_license
RazvanOprea/Numerical-Calculus
1e30d0ca67559b07eafee516f9d578ac2241c7ac
503b1a6b58dd128c8318439f5e2dfbd670ea2882
refs/heads/master
2020-03-16T22:40:20.789442
2018-05-11T14:15:42
2018-05-11T14:15:42
133,048,097
0
0
null
null
null
null
UTF-8
Python
false
false
7,897
py
import numpy as np def read_file(filename): f = open(filename, "r") n = int(f.readline()) # value of n vector_b = [] f.readline() # empty line for i in range(0, n): line = float(f.readline()) vector_b += [line] f.readline() # empty line lines = f.readlines() # matrix ...
[ "razvan.oprea96@yahoo.com" ]
razvan.oprea96@yahoo.com
6b3a7c7b06a0375d7d6fa057dced0728ce6731e2
645ed62c32f02dc3216c3e0b9cb8fcf93bd51813
/hello.py
05330901a44c34043476817809a076ed35906d39
[]
no_license
pstefy/Practica
c9f1308d56afec1613edf38453280dc81a334e6b
59e0d4fe3054e1ad0e89a18259c687b8ecde334e
refs/heads/master
2022-12-23T20:57:13.248330
2020-09-30T23:20:52
2020-09-30T23:20:52
300,057,412
0
0
null
null
null
null
UTF-8
Python
false
false
30
py
x = 3 y = 7 u = 2 d = 10 p = 9
[ "p.stefani16@gmail.com" ]
p.stefani16@gmail.com
e3be1a1f6685b9fd2ffac2f8b1023cb485b10a05
6d0cc0dec09ce05158a6e9133efb5b5a91999a13
/demo/test/test_resources.py
2302e7b9fac077a2aa8635eb50501277ef37f5ef
[]
no_license
Anafi/Simplification-processing
f05c7ccc3a822c131fb32797f01e02b08eb4f391
a49fe2c05b9b83f2bad13b74bf9dd878bea7eb04
refs/heads/master
2021-01-21T14:40:27.810677
2018-08-10T17:08:11
2018-08-10T17:08:11
56,625,463
1
2
null
null
null
null
UTF-8
Python
false
false
1,004
py
# coding=utf-8 """Resources test. .. note:: 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 2 of the License, or (at your option) any later version. """ __author__ = '...
[ "ioanna.kolovou@gmail.com" ]
ioanna.kolovou@gmail.com
4c46ee602378f6706ed2aef9bf2b0ede9745bb0d
a43f4af7867763fef334e6870972de943a608551
/pyplotter/hists/hists.py
bf9f0bdd86c0935b7c8bc59d12554dfe317883c2
[]
no_license
fscutti/FTKPlotter
79803c7a98c8ae7832e975aa6d3b2e7b87a29401
32c8a0fa1a87f0bfa7592f347a62d2df1dad51c2
refs/heads/master
2018-09-21T19:21:51.607374
2018-08-05T08:53:34
2018-08-05T08:53:34
111,771,837
0
0
null
null
null
null
UTF-8
Python
false
false
15,694
py
# encoding: utf-8 ''' hist.py description: histogram class ''' """ from numba import jit, jitclass, njit # import the decorators from numba import int32, float32 # import the types spec = [ ('value', int32), # a simple scalar field ('array', float32[:]), # an array field ] """ ...
[ "federicoscutti@gmail.com" ]
federicoscutti@gmail.com
f6ff32c2fbc6e0dd788eb9b46df526c2ed159555
e902c4dfca00539b4907e5d7cb497ed5276d9b63
/s3filter/op/join_expression.py
7ccff8c0a2047f36ba9416662670e12b26dbb06d
[]
no_license
jorgermurillo/s3filter
8584413bc1bfb57d439dcb7ff4596bcfc01be23d
068c6758d796d30d34198a0a3d2dd6748b5c0697
refs/heads/master
2020-06-18T09:58:16.785816
2020-02-20T16:57:19
2020-02-20T16:57:19
196,262,900
0
0
null
2019-07-10T19:20:39
2019-07-10T19:20:39
null
UTF-8
Python
false
false
535
py
class JoinExpression(object): """Represents a join expression, as in the column name (field) to join on. """ def __init__(self, l_field, r_field): """Creates a new join expression. :param l_field: Field of the left tuple to join on :param r_field: Field of the right tuple to join ...
[ "matt.youill@burnian.com" ]
matt.youill@burnian.com
e70f03225989cdb95aa90466d2d58693e5923a6e
dc2d0aff11ac347b6079d339f04cbe0276968973
/TORTUGA/problema7.py
83e9cf3e7b4a5f92b532e238d632e676c8c9837d
[]
no_license
CertifiedErickBaps/Python36
418f6b4815cb9fb329957d2fdb3a297ff2d1c3c1
447fdf6d1779ef73e4910ac94b5732553c0bb7dd
refs/heads/master
2021-09-24T00:00:09.207766
2017-05-20T23:25:19
2017-05-20T23:25:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
#Práctica 1: Gráficas de tortuga # Fecha: 24-Ago-2016 # Autor: A01379896 Erick Bautista Pérez # A01378568 Leonardo Valencia Benitez #------------------------------------------------------------------------------- from turtle import fd, lt, done, home, rt def repeticion(lado, pequeño): for i in range(1...
[ "erickburn01@hotmail.com" ]
erickburn01@hotmail.com
a8a992e957e28a9e6fc026939435cbf906993323
14d54067ff5bf1672349e4281b1da2cdd075e3ba
/scrapper/scrapper_clima_tempo/modulos/scrapper.py
0312ae726d1f3718d87f2d1cfa1a60e4ff6a6e1d
[]
no_license
rafaelaraujobsb/clima-tempo
17588b6e7623b9f03bff3b8e30f0433b1f75ffea
e3e93f09725ec812d55523ed63e02abd94b8c473
refs/heads/main
2023-04-06T02:07:45.108630
2021-05-11T13:06:26
2021-05-11T13:06:26
355,996,664
0
1
null
null
null
null
UTF-8
Python
false
false
1,403
py
import traceback from loguru import logger from scrapper_clima_tempo import celery from scrapper_clima_tempo.exceptions import Falha from scrapper_clima_tempo.servicos.scrapper import ScrapperClimaTempo from scrapper_clima_tempo.servicos.database import CollectionTempos, CollectionExecucoes @celery.task(name="scrap...
[ "bsb.rafaelaraujo@gmail.com" ]
bsb.rafaelaraujo@gmail.com
dd3846c36379f2ba6f577ad7a9d6873817778d0e
1f399edf85d995443d01f66d77eca0723886d0ff
/misc/config_tools/scenario_config/schema_slicer.py
26f29fed8aeda8fe07e61514b852614b50b3c4c8
[ "BSD-3-Clause" ]
permissive
projectacrn/acrn-hypervisor
f9c5864d54929a5d2fa36b5e78c08f19b46b8f98
390740aa1b1e9d62c51f8e3afa0c29e07e43fa23
refs/heads/master
2023-08-18T05:07:01.310327
2023-08-11T07:49:36
2023-08-16T13:20:27
123,983,554
1,059
686
BSD-3-Clause
2023-09-14T09:51:10
2018-03-05T21:52:25
C
UTF-8
Python
false
false
9,635
py
#!/usr/bin/env python3 # # Copyright (C) 2022 Intel Corporation. # # SPDX-License-Identifier: BSD-3-Clause # import os import argparse from copy import deepcopy from pipeline import PipelineObject, PipelineStage, PipelineEngine class SchemaTypeSlicer: xpath_ns = { "xs": "http://www.w3.org/2001/XMLSchema"...
[ "63571455+acrnsi-robot@users.noreply.github.com" ]
63571455+acrnsi-robot@users.noreply.github.com
3012a6bf4e8b1775a832b551f85b72760fb45ddc
8e44c510f2fde463d345c85bfe34f7fc044681f2
/brat_multitask/dataset_readers/span_field.py
f3b50ddde8865825349cbcf2b70544aaa2f6016c
[ "BSD-3-Clause" ]
permissive
nlpersECJTU/cmu-multinlp
87f35d945eee7a56b20b8abd2d72d4fe8b3c5582
f98f45d021358147171b9aba559b223dcad6a616
refs/heads/master
2023-02-21T06:55:24.098429
2021-01-12T23:15:32
2021-01-12T23:15:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,797
py
from typing import Dict from overrides import overrides import torch from allennlp.data.fields.field import Field from allennlp.data.fields.sequence_field import SequenceField class SpanField(Field[torch.Tensor]): """ A ``SpanField`` is a pair of inclusive, zero-indexed (start, end) indices into a :clas...
[ "zhengbaj@cs.cmu.edu" ]
zhengbaj@cs.cmu.edu
23beb603408e812540ec6088aba8d12c6bfbe746
e5502f889db8f23d571eed21b6786208e375eaca
/peogen/peogen/wsgi.py
b637d51265fa3f33f93a29c4132d6a80a52b7c32
[]
no_license
kurosh-wss/chat_django3
1e497bb335b41834acccb69805307fc70f7aa088
5fe92cad8df467a1e8d38c54344b5528192aacdb
refs/heads/master
2023-02-14T20:35:47.835401
2021-01-17T09:23:36
2021-01-17T09:23:36
328,913,035
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'peogen.settings') application = get_wsgi_application()
[ "kurosh7899@gmail.com" ]
kurosh7899@gmail.com
dc07e4c5023b62bbac3b5ed25bf1cbde99182341
54516826a15e4588decd4a040c3f3ae73b1f49df
/supplier/admin.py
d4cd50319ed56dfbd6c7cc180afdbbb36f403d02
[]
no_license
boyombo/shylock
9454b53ef285af692675be4fe7a176d1aa29ced1
c63ac02b3ee18160ec94c9e8462165eaf7e0f3b5
refs/heads/master
2021-05-05T11:10:13.523616
2018-02-06T08:10:47
2018-02-06T08:10:47
118,116,949
0
1
null
2018-02-06T08:10:48
2018-01-19T11:24:14
JavaScript
UTF-8
Python
false
false
147
py
from django.contrib import admin from supplier.models import Supplier @admin.register(Supplier) class SupplierAdmin(admin.ModelAdmin): pass
[ "bayokrapht@gmail.com" ]
bayokrapht@gmail.com
fc2c228b13be87058b739109ebd181f664a0efde
f1011ea46e0447cb2bb82137fb53c4673cf307be
/Day2/day2Presentation/crawlerAutismStudents2.py
70dfc62bd933a56c6439e7afff6cb85101ee5d2e
[]
no_license
RiptideStar/Python
4659eecfc1ec9186f3d694bd4764364205a498e6
71a914b69a9b31c68c0a924b86e253d4b7843d3b
refs/heads/master
2023-06-16T06:48:36.969699
2021-07-09T16:56:41
2021-07-09T16:56:41
349,828,869
0
0
null
null
null
null
UTF-8
Python
false
false
5,500
py
import requests import sys from bs4 import BeautifulSoup import sqlite3 print("--- Command Line:", sys.argv) api_url = "https://www.greatvaluecolleges.net/best-colleges-for-students-with-autism/" print("--- api_url:", api_url) def retrieveData(api_url): try: response = requests.get(api_url) except r...
[ "kyle1001001@gmail.com" ]
kyle1001001@gmail.com
c774de124f79f545af197812c70eacb83585d451
51709f4859383274aa72e8609e2e39bca565f050
/src/mini_psp/utils/metric_utils.py
e864696355ecbafb5ff1ba61c06c9a10671fa83e
[]
no_license
bochuxt/mini_psp
ba8adfb3c3bba88c6412b76d94a63d40f5741022
8c8796aaaac4b4e909a4c68a69adc01969626966
refs/heads/master
2023-03-19T11:43:33.041446
2020-07-30T10:22:41
2020-07-30T10:22:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,026
py
import numpy as np from sklearn import metrics def get_iou(target,prediction): '''Returns Intersection over Union (IoU).''' intersection = np.logical_and(target, prediction) union = np.logical_or(target, prediction) iou_score = np.sum(intersection) / np.sum(union) return iou_score def get_clas...
[ "Surya.dheeshjith@gmail.com" ]
Surya.dheeshjith@gmail.com
d947e01525da7cc192a8dec795755db3aa8b2b1b
7f3e27fd94a79ce8c21c1e3a488eb38a1ce614da
/clase_12/leer.py
3d7cfbceddb31af2cfd4720cbba52453b0c72629
[]
no_license
peligro/taller_practico_python
282262aa4030c132396a5c54b3d3731600fee51d
85b4bf78474246090b1206cc3ef124bd1e93ec70
refs/heads/master
2021-07-06T20:49:08.060073
2020-10-19T13:05:49
2020-10-19T13:05:49
197,222,488
1
1
null
null
null
null
UTF-8
Python
false
false
522
py
from xml.dom import minidom ruta= "/var/www/html/clientes/tamila/videotutoriales/python/clase_12/" xml = minidom.parse(ruta+"ejemplo.xml") docs = xml.getElementsByTagName("doc") for doc in docs: nodo1 = doc.getElementsByTagName("nodo1")[0] nodo2 = doc.getElementsByTagName("nodo2")[0] print(f"nodo1={nod...
[ "yo@cesarcancino.com" ]
yo@cesarcancino.com
23828eded591399cd9e25c17718e2bad16a679b9
4e67c4120a76085bf0810c4d44265262ce480fee
/text-based_adventure_game.py
e9714745cced134574b020157de39f2bc997c0d0
[]
no_license
jmuhlenberg/text_based_adventure_game
43c392a8f59d55fc39ef2faa9b61480780a0abd3
1cc42b480191327d539c293073d9bd6bac2326c3
refs/heads/master
2022-01-16T23:33:15.010648
2019-08-02T01:33:25
2019-08-02T01:33:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
#Text-based Adventure Game '''The Goal: Remember Adventure? Well, we’re going to build a more basic version of that. A complete text game, the program will let users move through rooms based on user input and get descriptions of each room. To create this, you’ll need to establish the directions in which the us...
[ "noreply@github.com" ]
jmuhlenberg.noreply@github.com
591449b125d681f0d0437280802fbedb02c911c8
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/train/summary/test_summary_ops_params_valid_check.py
cac9f18eeffc2b9351bd6aebc7b0a0aa6db27a80
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
5,741
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "zhujianfeng@huawei.com" ]
zhujianfeng@huawei.com
39ab273dae34141056fb99b2a557a0c095a9ee09
8cd90c5b92fe85158226de32b1fbb4c34ebd658b
/oscar_docdata/models.py
f3295ad74437b13549e68019e34d3e7aedc771ad
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
mvantellingen/django-oscar-docdata
772ec3db372f9571cf62932ad2fe945c65fd2d7f
983d3f8144e1feb67d4a2c5bb98b499e69e4ad44
refs/heads/master
2023-08-25T06:33:59.105290
2016-06-14T12:41:37
2016-06-14T12:41:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,043
py
from decimal import Decimal as D from django.db import models from django.utils.translation import ugettext_lazy as _ from oscar_docdata.managers import DocdataOrderManager from . import appsettings try: from polymorphic.models import PolymorphicModel # django-polymorphic 0.8 except ImportError: from polymorp...
[ "vdboor@edoburu.nl" ]
vdboor@edoburu.nl
98a2dca4914597a422b4febb17cf8b7424bda615
549887e0f791306267e2d5fc4892c4c59296ffcb
/Python/Simulation/Numerical_Methods/test_gauss_elimination.py
9d2a87f314c93e4e26878d12b8e7bb2b196b2c2b
[ "MIT" ]
permissive
MattMarti/Lambda-Trajectory-Sim
5083a5f22c2773475afc23ba2502bb41708d53f0
4155f103120bd49221776cc3b825b104f36817f2
refs/heads/master
2020-05-24T03:25:18.952071
2020-03-21T02:49:39
2020-03-21T02:49:39
187,071,273
0
0
null
null
null
null
UTF-8
Python
false
false
3,954
py
import unittest; import numpy as np; from gauss_elimination import gauss_elimination; class Test_gauss_elimination(unittest.TestCase): ''' Test_gauss_elimination Test case for the Gauss Elimination function, which solves linear systems. @dependencies python 3.6.0 unittest numpy ...
[ "43075587+MattMarti@users.noreply.github.com" ]
43075587+MattMarti@users.noreply.github.com
1e20830d7fb509ea67ad56afcd3cbb32e10e3c89
5fefcd078a421ddd00bc2cdd0f205a0942e983e4
/yencap-manager-3/DeviceStatusManager.py
b2be9a994eb494414e10562167dd890ed0ea7684
[]
no_license
backtosource/EnSuite
0ae2b6935d3aaf6ba7c7ef21761a1e0209e345ab
e82f0694b4f6d5f64b5449fbc37dfc9864b2dce7
refs/heads/master
2020-07-18T22:51:33.533130
2019-09-05T14:47:18
2019-09-05T14:47:18
206,328,215
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
from threading import Thread import time class DeviceStatusManager ( Thread ): def __init__(self, agents): Thread.__init__(self) self.agents = agents self.running = True def run ( self ): while self.running: time.sleep(1) for agent in self.agents: #print 'refresh status' agent.refreshSta...
[ "maximilian.huetter@gft.com" ]
maximilian.huetter@gft.com
966756ed8885d24a5f4e6cb78421769df901fd18
a0d5d9fa31f0cf5972a233dc53989992627f37e1
/mfscrm/wsgi.py
5280d389e72d9233c0cd57c3c7348a0505fe9406
[]
no_license
snaddimulla/assign2
c4aa8f0602e9eb5dc9efb3b49cfe633c5eaa806f
fdee5a5ebf85b99343fdd774581684b2bf636aa0
refs/heads/master
2020-04-25T17:20:49.193330
2019-02-28T16:34:39
2019-02-28T16:34:39
172,944,428
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
""" WSGI config for mysite project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTIN...
[ "snaddimulla@gmail.com" ]
snaddimulla@gmail.com
57c224a601154950df2e7940ebaf32c20361fd1a
fe89f98d94127d971c6a70bf28317a4c742f40ef
/model/AlexNet/AlexNet_Test.py
a904d545ea4295a32681afa93f73a94ad51b1b3d
[]
no_license
cyhgxu/pytorch_model_zoo
74f3c386407405b0764d85ba9aaf5cc269a1655f
be3522d99abfa65d5787d9134b53c43f62d83464
refs/heads/master
2020-06-13T20:47:24.057781
2019-03-27T15:19:20
2019-03-27T15:19:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
import torch import AlexNet import numpy as np import cv2 from torch.autograd import Variable resizeH = 227 resizeW = 227 pth_file = "model.pth" # model_file image_path = "313.jpg" #test_image classes = ["dog", "cat"] def AlexNet_Test(pth_file, image_path): model = AlexNet.AlexNet() model.load_state_dict...
[ "noreply@github.com" ]
cyhgxu.noreply@github.com
beca7bfe6544a571637927d1528faa1a57eff77f
edd4430ecc9fb5d92e5875ac701acce8ae773eb3
/algorithms.master/array : list/2Sum.py
1654b4d38794b531367e69014e7d822c50084faa
[]
no_license
apk2129/_personal
1a1ba8c38bb367d6b37d847546cbf7e3a0df5b12
83f95caa3f7a487e8561e69133772d5add4484e1
refs/heads/master
2021-01-18T03:17:05.180550
2017-10-23T01:04:29
2017-10-23T01:04:29
53,992,648
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
nums = [2, 7, 11, 15] target = 9 def twoSum( nums, target): if len(nums) <= 1 : return False diff_map = {} for i in range(len(nums)): diff = target - nums[i] if diff in diff_map: return [diff_map[diff],i] else: diff_map[nums[i]] = i print(twoSum(nums, target))...
[ "iAnish@Anishs-MacBook-Pro.local" ]
iAnish@Anishs-MacBook-Pro.local
264aa98cdced1e3a3b21e731910d92a4f81a7489
5db3d51ff9a0bd7647c2315a358cb4ec9299d9d5
/analyzeBusReportFnv2.py
f24d495ec4b04167e7b50dce7763a807fe53f163
[]
no_license
bikiranguha/Thesis_project
866385f51bd476448730c8169eb0b3c1dacba84e
1a52ba0fed86afb522bda067b8011b6940b4088d
refs/heads/master
2020-03-31T06:52:16.627848
2018-12-28T02:59:33
2018-12-28T02:59:33
151,997,984
1
0
null
null
null
null
UTF-8
Python
false
false
2,684
py
""" Function which generates a bus flow report of comed buses """ def BusReport(flowReportFile,Raw): from getBusDataFn import getBusData BusDataDict = getBusData(Raw) ComedPlusBoundarySet = set() flowDict = {} #FromBusLines = [] #ToBusLines = [] class flowReport(object): def __init__(self): self.toBusL...
[ "bikiranguha@gmail.com" ]
bikiranguha@gmail.com
be91b22431f62bbaccbbdb30b2dc7e2c7c2b81f8
f683e147b543a939da6240051bdb38c3a018ab80
/videotext/apps/core/migrations/0005_auto__add_field_note_type.py
af35dae9709293fc603520f9672bbed8006429b4
[ "LicenseRef-scancode-other-permissive" ]
permissive
ReportersLab/TheVideoNotebook_Public
ffae912262805470af1e0b6097a3ba3c53a015a5
77314c417c0e6b97a4b210e438dcac0cf202a27c
refs/heads/master
2020-12-24T15:14:28.244768
2012-07-31T13:33:23
2012-07-31T13:33:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,105
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 field 'Note.type' db.add_column('core_note', 'type', self.gf('django.db.models.fields.CharField')...
[ "charlie.is@duke.edu" ]
charlie.is@duke.edu
14ac05a13edaa90016691a783c85acc89dab2949
547e4724d80b9be67ada4d54e205c5b5182f484f
/symbol/detector.py
3ea97c49a85cdc5d7ef54580aa560f4f67348156
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
v-qjqs/simpledet-1
62d205b8d418ed7caf86325cb6e22cffec0e0dbe
06250f35419e94ff730400bd2ff79765608587fe
refs/heads/master
2022-11-14T18:17:37.170799
2020-07-04T06:18:25
2020-07-04T06:18:25
255,297,227
1
0
Apache-2.0
2020-04-13T10:36:11
2020-04-13T10:36:10
null
UTF-8
Python
false
false
3,043
py
from __future__ import print_function import mxnet as mx import mxnext as X from utils.patch_config import patch_config_as_nothrow class Rpn(object): _rpn_output = None def __init__(self): pass @classmethod def get_train_symbol(cls, backbone, neck, rpn_head): rpn_feat = backbone.get...
[ "noreply@github.com" ]
v-qjqs.noreply@github.com
386b1efce4d6fc612c355b0fef509a117895acef
493dcbc5b1c98b44d4a5d8e8c099e61840971c4c
/infogan.py
594d7c2c60fc0cb284669d4618095ec33608abca
[]
no_license
prabowst/infogan
90208fc59b7107fd18cfcdb1399f158d530a92f5
f98dae144d4f8743a3e476a01bcc4c65fafd1a18
refs/heads/master
2023-06-08T12:53:26.964162
2021-06-26T12:23:47
2021-06-26T12:23:47
380,393,422
0
0
null
null
null
null
UTF-8
Python
false
false
4,829
py
import tensorflow as tf import tensorflow.keras as keras import tensorflow_probability as tfp import matplotlib.pyplot as plt import seaborn as sns import numpy as np import pandas as pd import time from model import generator, discriminator from utils import sample_generator_input, plot_interval import warnings wa...
[ "prabowo@pop-os.localdomain" ]
prabowo@pop-os.localdomain
9b26142c32ecf8204f45e8bb32268a07bcd98909
bf33a9beac10eb1b1d26f606723cef86f74a81ce
/DjangoCv/asgi.py
97bc02d131aa9508a38ee473d22d8008ff0a3f6a
[]
no_license
Siabdel/DjangoCV
12c1f7722df712336f037aeb3c3a52d901c208a6
5b92ade3f320a1b28321ab8916e8545b6daea518
refs/heads/main
2023-09-05T06:23:09.118526
2021-11-19T18:02:02
2021-11-19T18:02:02
429,713,785
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" ASGI config for djangoCv project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
[ "siabdel58@gmail.com" ]
siabdel58@gmail.com
735ef7f0d53d9a005ed4ebdd72d9109150d2565a
0e950ad10240b79d5abf062ce1bd2550b2f07c5e
/projet/projetindividuel/urls.py
3514f138f2bb85031c268b64b62fbe2e92a269d2
[]
no_license
DesireBourdicGirard/ProjetIndividuel
a81e20499c4c41a8794bf31f0ede966f6777a511
8bcda9c5a0845ddf41a1b083734ebfd05e332269
refs/heads/master
2023-05-08T01:34:57.744815
2021-05-27T06:28:02
2021-05-27T06:28:02
368,464,125
0
0
null
null
null
null
UTF-8
Python
false
false
891
py
"""projetindividuel 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') Cl...
[ "desire.bourdic--girard@student.isae-supaero.fr" ]
desire.bourdic--girard@student.isae-supaero.fr
fb49db779e31377f1be78a9603a577f749e5e3eb
220deee0fa2de6e5eca47f0234ebf242b45bdc4a
/model.py
3a25e014100c2240fac2d3f71740e468cba4a61e
[]
no_license
driptaRC/pairwise-pseudo-labeling
cdfbdd7005114e34553f690d7fd0cb6b78bb8e0a
afe6b9b45bcd44d6af2c339ac5b77d48575669ba
refs/heads/master
2020-09-13T12:48:25.121448
2019-11-19T20:43:59
2019-11-19T20:43:59
222,785,735
1
0
null
null
null
null
UTF-8
Python
false
false
5,331
py
import torch import torch.nn as nn import torch.nn.functional as F def conv3x3(in_planes, out_planes, stride=1): """3x3 convolution with padding""" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) class BasicBlock(nn.Module): expansion = 1 ...
[ "noreply@github.com" ]
driptaRC.noreply@github.com
11968ac6828cd24eb472205d533c8b9f5c40a035
191ad1fc949d5e669fa9619a03525548c04f37ad
/Udemy_100_days_of_python/projects/Snake_Project_Advance/main.py
7cb34098eabf07d0c7ae284d726860ff6ef841ab
[ "Apache-2.0" ]
permissive
rubix-coder/python-basic-to-professional
6d466c99f361064db415c185c144f39ca6742b4b
c92ea38f04e4a6130c440b11a872664227af9c93
refs/heads/main
2023-08-18T01:42:06.159052
2021-10-16T07:11:41
2021-10-16T07:11:41
376,836,120
3
1
Apache-2.0
2021-09-10T11:03:10
2021-06-14T13:39:14
Jupyter Notebook
UTF-8
Python
false
false
1,144
py
from turtle import Screen from snake import Snake from food import Food from scoreboard import Scoreboard import time screen = Screen() screen.setup(width=600, height=600) screen.bgcolor("black") screen.title("My Snake Game") screen.tracer(0) snake = Snake() food = Food() scoreboard = Scoreboard() screen.listen() sc...
[ "p.jesal.work@gmail.com" ]
p.jesal.work@gmail.com
050cb07932aec46d401eabeded891b2a897ef2f5
d1c8378cdb0cfee06175ba65b4f74e08c77d5b56
/exp3/Titanic.py
e404d2c3302f15f18bd56df62438c742dc4a5eb2
[]
no_license
CroesusChen/ML_course
773118c6c017dbc20cd265b654a4632ff0f6b53f
77f4c65d6f995248f1d0f73863f99c7017660aa1
refs/heads/master
2023-06-18T17:35:02.546811
2021-07-16T10:45:19
2021-07-16T10:45:19
366,622,100
0
0
null
null
null
null
UTF-8
Python
false
false
8,677
py
# 数据分析 import pandas as pd import numpy as np # 绘图 import matplotlib.pyplot as plt import seaborn as sns df_train = pd.read_csv('./data/titanic/train.csv') df_test = pd.read_csv('./data/titanic/test.csv') # 填充数据值 def fillna_data(df_train, df_test): # 对训练集和测试集中的"Age"数据进行平均值填充 df_train['Age'] = df_train['Age']....
[ "1142257739@qq.com" ]
1142257739@qq.com
7d4a0dec4df51a61effdee4d6fd9465caf9543be
31fee9dff7edc3b319df4a31025a31f5030dbea9
/visualizations/ws_2d/stimulus.py
da0d969cd7e331f537d6928359068e039b311342
[]
no_license
bshimanuki/6.888
3dd81cc55accce7c3db55bde8aaee65d118fe158
d4b53725600694e0bb3025b6da2391177328ed21
refs/heads/master
2021-08-28T08:33:58.460647
2017-12-11T18:42:43
2017-12-11T18:43:01
110,302,658
0
0
null
null
null
null
UTF-8
Python
false
false
1,932
py
from scipy.signal import correlate2d import numpy as np from nnsim.module import Module from .serdes import InputSerializer, OutputDeserializer def conv(x, W, b): # print x.shape, W.shape, b.shape y = np.zeros([x.shape[0], x.shape[1], W.shape[3]]).astype(np.int64) for out_channel in range(W.shape[3]): ...
[ "robertverkuil@31-34-139.wireless.csail.mit.edu" ]
robertverkuil@31-34-139.wireless.csail.mit.edu
ba0be7176dc3d517c5dd3bdcb5cbbeee96a7aa3a
db241b5457dd8df4239214bdc31a221d7ffa7e25
/All_Code/Books/DeepLearningBasis/Chp06/overfit_weight_decay.py
1ef9b9c9bfbc49a15fae9240c710eb9249ccee9c
[]
no_license
TaoistQu/AI
cd8c26bf73aef20e5c48bd928a2067fdfef6241f
1f14dd5c202d3291a8867c53110f78f33c5ce316
refs/heads/main
2023-06-01T08:15:04.435754
2023-05-16T13:16:18
2023-05-16T13:16:18
263,840,509
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (C) 2022 # # @Time : 2022/11/8 23:28 # @Author : TaoistQu # @Email : qulei_20180331@163.com # @File : overfit_weight_decay.py # @Software: PyCharm import os import sys from dataset.mnist import load_mnist from common.multi_layer_net import MultiLayerNet fr...
[ "qulei_20180331@163.com" ]
qulei_20180331@163.com
a6fb2197fbf80b1c53e59f37f84370f5749ed5e1
b5dd8d1b798c94731a84c02d98aafb9147200a85
/sequence_labeling/SLBaselineSYNLinear/data/Instance.py
6ed47e34116c6f3ff8176de9230c270b70bc070a
[]
no_license
zhangmeishan/DepSAWR
1ae348dd04ec5e46bc5a75c8972b4bc4008528fe
104f44fd962a42fdee9b1a9332997d35e8461ff4
refs/heads/master
2021-07-09T20:56:56.897774
2020-10-27T05:41:08
2020-10-27T05:41:08
206,974,879
15
3
null
null
null
null
UTF-8
Python
false
false
8,126
py
class Word: def __init__(self, id, form, label): self.id = id self.org_form = form self.form = form.lower() self.label = label # 1 indicates word, 0 indicates syn self.wtype = 0 if label == "###" else 1 def __str__(self): values = [str(self.id), self.org_...
[ "mason.zms@gmail.com" ]
mason.zms@gmail.com
a50a5b14d076ee204bff5cbec2ad62033c1a5479
eec76ff305838ebc64e2a5199a53c9cdf934e4c0
/venv/Scripts/pip3-script.py
61faeb6409f603884ab8c1e08170273b968eac2a
[]
no_license
abbbhardwaj/BeBot
0011084f57aa5a20605dce79228e0ff22dcf023e
e3296013630b6c7481093bdfa26d9ae61de70587
refs/heads/master
2020-03-31T06:12:31.538064
2018-10-07T18:30:46
2018-10-07T18:30:46
151,972,256
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
#!C:\Users\divya\PycharmProjects\Bbot\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "abhinav.bhardwaj05@gmail.com" ]
abhinav.bhardwaj05@gmail.com
ae6e3f2fa193e2f24cc46236bc77b714f5a12766
4ff2c34eaadab04217ee1b919c2d8f144f2be0d7
/学习/test9.py
1b3adbef4c3126b4ec89bc9fbca09124cd74dec8
[]
no_license
DCDCBigBig/DianFall2021
485db3ac6e48d7b96db4481d332146f044e3447e
4cc8c8fa34a4be38ee0ee62bb043129af0de6f65
refs/heads/main
2023-09-04T03:12:40.534878
2021-10-21T16:20:30
2021-10-21T16:20:30
419,790,598
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
import numpy as np import cv2 print(cv2.CV_16U)
[ "ctdingchang23@163.com" ]
ctdingchang23@163.com
4d59b6d7525d2424cccd3c6215409bdfb7e78f33
171a89102edf10901e18a2c0f41c3313608d2324
/src/rogerthat/bizz/job/unschedule_service_api_callback_records.py
0a04dd74317213aea6716a58732b45ec57e5498c
[ "Apache-2.0" ]
permissive
gitter-badger/rogerthat-backend
7e9c12cdd236ef59c76a62ac644fcd0a7a712baf
ab92dc9334c24d1b166972b55f1c3a88abe2f00b
refs/heads/master
2021-01-18T06:08:11.435313
2016-05-11T08:50:20
2016-05-11T08:50:20
58,615,985
0
0
null
2016-05-12T06:54:07
2016-05-12T06:54:07
null
UTF-8
Python
false
false
1,170
py
# -*- coding: utf-8 -*- # Copyright 2016 Mobicage NV # # 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...
[ "bart@mobicage.com" ]
bart@mobicage.com
9e7c824bb664b478189cd3de400a4248b0012973
bcb83cd597ac6a6ff06f1594750fb0a1db5024b6
/opinion_mining/AMCBoot.py
c3778d895f257d33f38f8e8c700cc0c932e3f98a
[]
no_license
sherrylml/Opinion-Mining
7cd95135ff900ca1f63f9c2056775777983efa9e
81f15c5744258bc9699af6b688e27d34ba09a7ca
refs/heads/master
2021-01-25T07:39:46.657978
2015-05-31T07:39:04
2015-05-31T07:39:04
35,430,700
0
0
null
null
null
null
UTF-8
Python
false
false
14,946
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '' __author__ = 'LML_CH' __mtime__ = '2015/5/9' # code is far away from bugs with the god animal protecting I love animals. They taste delicious. ┏┓ ┏┓ ┏┛┻━━━┛┻┓ ┃ ☃ ┃ ┃ ┳┛ ┗┳ ┃ ...
[ "sherrylml@126.com" ]
sherrylml@126.com
7e72fb11137d1cc82500a43c590445b6d4222f54
11334e46d3575968de5062c7b0e8578af228265b
/Projects/subsumption_lewis/test_escape_behavior.py
4a60ca86e27a79e1aadad1e7cc150c9a55c47a09
[]
no_license
slowrunner/Carl
99262f16eaf6d53423778448dee5e5186c2aaa1e
1a3cfb16701b9a3798cd950e653506774c2df25e
refs/heads/master
2023-06-08T05:55:55.338828
2023-06-04T02:39:18
2023-06-04T02:39:18
145,750,624
19
2
null
2023-06-04T02:39:20
2018-08-22T18:59:34
Roff
UTF-8
Python
false
false
1,653
py
#!/usr/bin/env python3 """ FILE: test_escape_behavior.py PURPOSE: Test an subsumption architecture escape behavior REFERENCES: "Mobile Robots: Inspiration To Implementation", Jones, Flynn, Seiger p318 """ import subsumption import time import logging subsumption.inhibit_scan = False subsumption.inhibit_drive =...
[ "slowrunner@users.noreply.github.com" ]
slowrunner@users.noreply.github.com
1c26b5ba9c27247a493c7583c13c134bfa1408ee
bf36ea2c2175745bcb1cbfaba3afe77332f2ee3e
/src/scripts/stock_db_test.py
a1ec4272a69e3eb14666a491f699d38711bb6217
[]
no_license
SymPiracha/Stocks-Dashboard
80783f531b37d1b22234582efc561b43f2ce941d
8b73668bfa27d5dce05d9919a2126f18880a2bc1
refs/heads/main
2023-02-28T06:18:50.373216
2021-01-31T10:48:44
2021-01-31T10:48:44
334,278,808
1
0
null
null
null
null
UTF-8
Python
false
false
1,409
py
from iexfinance.stocks import get_historical_data from datetime import datetime from datetime import timedelta import matplotlib.pyplot as plt api_key = 'pk_495c80fadacc450e8d8912f83b9d4053' #got the token from the iex finance account. today = datetime.now().strftime('%Y-%m-%d') #stored the date when the function is...
[ "ibrahimnaveed@Ibrahims-MacBook-Air.local" ]
ibrahimnaveed@Ibrahims-MacBook-Air.local
dee1ec3736ca68ab8e05ad1f1f8b5418a5663a9a
5a333195fbed1201864ba08beb3582c954518590
/sort/quick_sort.py
e7476688fe6011fada2513b0d9d95cfe60758c80
[]
no_license
ljke/algorithm-py
b2bba2020dd3e058fb3b17e20bdc19c3e30fa12a
12bd7ad8778188dc4184e57711a7d21c566f42cd
refs/heads/master
2020-04-12T04:01:33.984769
2019-04-25T08:23:27
2019-04-25T08:23:27
162,282,546
0
0
null
null
null
null
UTF-8
Python
false
false
995
py
# coding=utf-8 # 快速排序 # 选取基准值,根据与基准值的大小关系对数据分区 # 递归调用,对分区也进行快速排序 # 非原地快排 def quick_sort(arr): if len(arr) < 2: return arr else: pivot = arr[0] less = [i for i in arr[1:] if i <= pivot] greater = [i for i in arr[1:] if i > pivot] return quick_sort(less) + [pivot] + quic...
[ "ljke1995@gmail.com" ]
ljke1995@gmail.com
c42ee65059fd84127b788c9f61f22f6091572c64
353def93fa77384ee3a5e3de98cfed318c480634
/.history/week01/hoework01/gettop10frommaoyam01_20200625172155.py
6673c7bd655b35c14f885d7566123eee9d12b9b9
[]
no_license
ydbB/Python001-class01
d680abc3ea1ccaeb610751e3488421417d381156
ad80037ccfc68d39125fa94d2747ab7394ac1be8
refs/heads/master
2022-11-25T11:27:45.077139
2020-07-19T12:35:12
2020-07-19T12:35:12
272,783,233
0
0
null
2020-06-16T18:28:15
2020-06-16T18:28:15
null
UTF-8
Python
false
false
1,024
py
# 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中 import requests maoyanUrl = "https://maoyan.com/films?showType=3"; user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36' header = {'User-Agent': 'Mozilla/5.0 (Windows NT ...
[ "31039587+ydbB@users.noreply.github.com" ]
31039587+ydbB@users.noreply.github.com
58fa54923fd2634f3278314421dd4b2484103e88
13f4dba586d98b872d2b815fe74026a852a657e3
/python/server/backends/twitter_helper.py
0cbb5d0665b65fd760fca0fd5d4e0f803018d837
[ "Apache-2.0" ]
permissive
henrypan/searchhub
6514bb0386605efa0e8046816c0bcc171565af04
aba1418a1016b00b6f4ba366c3c3d6553e64965c
refs/heads/master
2023-02-21T05:07:56.325515
2016-07-08T22:36:57
2016-07-08T22:36:57
63,719,853
0
0
NOASSERTION
2023-02-15T04:22:41
2016-07-19T18:53:11
Python
UTF-8
Python
false
false
3,350
py
from server import app from schedule_helper import create_schedule import twitter import json ''' Helper class for creating Twitter data sources ''' def create_twitter_datasource_configs(project): """ Generate the Twitter data source config for a given project :param project: the project :returns: the confi...
[ "gsingers@apache.org" ]
gsingers@apache.org
51d3ea922f240f9e7f32578863efe5c191e052d6
4bdb59c52bc98a94dd191d06f3a4db9ef9b640be
/Py/Web/scrap4.py
88fa14a7ae8ad6708094027a12dfb38e7775f85c
[]
no_license
aksaba/MyCodes
860ea121a87c49361bca3b80e5a10e04f9399053
ebad5b6cdcde903c4be1107b32f4bca2a5e5a0e8
refs/heads/master
2023-03-19T11:17:44.438495
2023-03-07T09:21:36
2023-03-07T09:21:36
126,673,416
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
import requests url = "http://duckduckgo.com/html" payload = {'q':'x'} r = requests.post(url, payload) with open("requests_results.html", "w") as f: f.write(r.content)
[ "aksabapathy@gmail.com" ]
aksabapathy@gmail.com
dc342444308955de1ce5c6fc868ec96bd56f7d1a
8d05ef4a66e89508ecb42297fb02aae3ba79d3e5
/Black_Jack.py
eed7b40d3e5e09631cf116700abdda1a5fd9d476
[]
no_license
OxyKerad/Black-Jack
62859135b029cc6c1caf1e2b5c23275ee737125d
3428f03366600c8aafcf4155739426018fc6203a
refs/heads/master
2020-03-19T18:13:39.257062
2018-06-10T11:24:30
2018-06-10T11:24:30
136,800,146
0
0
null
null
null
null
UTF-8
Python
false
false
5,601
py
import random import os class Cards(object): cards = ( '2_pik', '2_kier', '2_trefl', '2_karo', '3_pik', '3_kier', '3_trefl', '3_karo', '4_pik', '4_kier', '4_trefl', '4_karo', '5_pik', '5_kier', '5_trefl', '5_karo', '6_pik', '6_kier', '6_trefl', '6_karo', '7_pik', '7_kier', '7_trefl', '7_karo',...
[ "darek.belz@gmail.com" ]
darek.belz@gmail.com
7b95fcc33b3aa2249ed1f27138745f475927c2d6
cf14b6ee602bff94d3fc2d7e712b06458540eed7
/gs82/gs82/urls.py
0aecc6d4eeb66d7fa733fff9c8bcaddef8e0841a
[]
no_license
ManishShah120/Learning-Django
8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27
8fe70723d18884e103359c745fb0de5498b8d594
refs/heads/master
2023-03-29T09:49:47.694123
2021-03-28T16:04:34
2021-03-28T16:04:34
328,925,596
3
0
null
null
null
null
UTF-8
Python
false
false
307
py
from django.contrib import admin from django.urls import path from enroll import views from django.views.decorators.cache import cache_page urlpatterns = [ path('admin/', admin.site.urls), path('', cache_page(30)(views.home)), path('home/', views.home), path('contact/', views.contact), ]
[ "mkshah141@gmail.com" ]
mkshah141@gmail.com
72b89b38c0e3aa5b4434dab787a84864f5016e07
36e1bb79968425e0095b18c267e0f178c724b065
/src/lexer.py
28f53c8075ef7ea617a2de2cbfec6387632933c7
[]
no_license
nashrul-8/LIYN-Language
34a543410608c0a7885161c5799ef033c5d7f626
9ffc6f524976992c86e27094b0ef9236d3893d2c
refs/heads/master
2022-10-17T05:30:16.828141
2020-06-12T15:51:23
2020-06-12T15:51:23
251,566,219
0
1
null
null
null
null
UTF-8
Python
false
false
752
py
from sly import Lexer class BasicLexer(Lexer): tokens = {NAME, NUMBER, STRING, IF, THEN, ELSE, FOR, FUN, TO, ARROW, EQEQ, PRINT} ignore = '\t ' literals = {'=', '+', '-', '/', '*', '(', ')', ',', ';'} # Mendefinisikan token IF = r'JIKA' THEN = r'MAKA' ELSE = r'...
[ "noreply@github.com" ]
nashrul-8.noreply@github.com
52a1d88819372454adbfb076fdc2c7690c58f356
31d79a7b2b79a83ae21ec7d2c850bd39b79a8ddc
/CeVExercicios/ex099 - Proff.py
e5bd29f8b7f5ecd7626f8000276ed76dc39e6b5b
[ "MIT" ]
permissive
brunnossanttos/exercicios-intro-python3
a36fc5f0fdafbb1db1b22c6cf107654858da53d3
9d6630770af8fdd759441de78d1a5c824197f874
refs/heads/main
2023-07-25T00:36:46.068756
2021-08-26T13:43:49
2021-08-26T13:43:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
from time import sleep def maior(* num): cont = maior = 0 print('\nAnalisando os valores passados... ') for valor in num: print(f'{valor}', end=' ') sleep(0.4) if cont == 0: maior = valor else: if valor > maior: maior = valor ...
[ "85589872+brunnossanttos@users.noreply.github.com" ]
85589872+brunnossanttos@users.noreply.github.com
f7a3955559d747fba8970c5e5ee6fd29663aca62
d999ee6aa45752c17056a271de5a7cfe36ddcf23
/venv/Lib/site-packages/pyLibrary/queries/es14/format.py
5e7979c500261a17336f04aab204f23abe662ef2
[]
no_license
Parsav/Python
89f22b22e0106a66b0235b5e9997647045761dfe
6ff924c150dc14a8a9a51e1c1e20bcc250469d84
refs/heads/master
2022-12-28T22:43:45.177446
2017-02-06T21:31:21
2017-02-06T21:31:21
81,127,425
0
1
null
2022-11-29T02:38:03
2017-02-06T20:06:46
Python
UTF-8
Python
false
false
8,101
py
# encoding: utf-8 # # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http:# mozilla.org/MPL/2.0/. # # Author: Kyle Lahnakoski (kyle@lahnakoski.com) # from __future__ import absolute_import from __f...
[ "parker.lrrd@gmail.com" ]
parker.lrrd@gmail.com
3d987b5cc0963702e101d7203d9f854c5047bad2
7bfcb5cfd015e9c36c60962555f1033caaee1a02
/test.py
d4bec4dbda235606afbadb4ef2d274bfe11046eb
[]
no_license
LeoCCR/TPM_analysis
9ab749a3e2537eb46f49bb4e94fb3bc93cc7cdc2
497ed7492fbb6ee69b65d952862582d6dacae347
refs/heads/master
2023-01-13T07:36:48.206128
2020-11-22T13:29:12
2020-11-22T13:29:12
311,665,909
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# %% from operator import le import numpy as np import numpy.ma as ma from random import randrange x = np.array([float(randrange(1, 5)) for _ in range(10)]) y = np.array([float(randrange(1, 5)) for _ in range(10)]) # %% x[x == 1] = np.nan y[y == 1] = np.nan print(x) print(y) print(abs(np.ma.corrcoef(np.ma.masked_inv...
[ "private@private.com" ]
private@private.com
85fe7d6260a2e8eaa0bf6dfb8a880ca9f9c8aecd
cbad375d39bf673c6a5ddcb2af33c53e5cc47494
/cluster/affinity.py
25c75c47cc026c355a31bd00e446f4eb56004a76
[]
no_license
vambati/textcentral
f68640005ffb197797bbf5c0bec52436eb1903ce
0fb29c4c092510e4ec7beeca2d184ba3da43f751
refs/heads/master
2021-01-20T11:13:28.324284
2014-05-15T20:53:56
2014-05-15T20:53:56
67,584,699
2
0
null
null
null
null
UTF-8
Python
false
false
2,489
py
import numpy as np import sys import csv from sklearn.cluster import AffinityPropagation from sklearn import metrics # Text proc from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer import codecs def read_text_file(inpFile,delim): f = open(inpF...
[ "vambati@paypal.com" ]
vambati@paypal.com
9d86ebf7c63297ed3b76e1cc209398efa04eb21b
cf88d610b991925259bd43930b59c16954e75c85
/spectral_clustering.py
11674979c587bfe0070e7884ab6ddfb44afd3774
[]
no_license
jingxianWang9401/clustering-algorithm-model
5f4e171e39c402d6e443d37ac519cd05e6876b97
510ab4dafe4e14812f1155dae630e591f609d5e1
refs/heads/master
2023-01-24T07:45:52.792289
2020-11-23T03:01:49
2020-11-23T03:01:49
315,184,423
0
0
null
null
null
null
UTF-8
Python
false
false
2,095
py
# -*- coding: utf-8 -*- """ Created on Tue May 19 14:42:07 2020 @author: wangjingxian """ from sklearn.datasets.samples_generator import make_blobs from sklearn.cluster import spectral_clustering import numpy as np import matplotlib.pyplot as plt from sklearn import metrics from itertools import cycle ##python自带的迭代器...
[ "“wjx2016@mail.ustc.edu.cn”" ]
“wjx2016@mail.ustc.edu.cn”
70719139c13bdd3da9c10876ba08919046782dd0
240d849acbb68e9f897339c62cb425004b35dc60
/my_awesome_blog/blog/serializers.py
119c95a7f25a38e6124dc9bc1fdd4493e4eb00ba
[ "MIT" ]
permissive
DaniilAnichin/my_awesome_blog
12789b53194b0621cd576fa5fd5f53deda742c54
95f6f0fada796492894293b310db273d3a72356c
refs/heads/master
2020-03-30T09:50:13.136000
2018-10-01T13:36:30
2018-10-01T13:36:30
151,094,695
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
from django.contrib.auth import get_user_model from rest_framework import serializers from .models import Post, Tag User = get_user_model() class TagSerializer(serializers.ModelSerializer): class Meta: model = Tag fields = ('name',) def run_validators(self, value): pass def to...
[ "anichindaniil@gmail.com" ]
anichindaniil@gmail.com
bf136f9a5bba68dbe3ea23bdb7093d0d5a6364ba
8374b94097b8e2121fc18ee9124f9be1e8df853e
/homework_6/hw6_a.py
45f85d3546cd1a9a126125e285cbafe2c19d9a8c
[ "MIT" ]
permissive
cvetkovic/ooa
04769eeb29d630cd352d162d87e1f805f4e9d082
f5544b0ebb646f23449f0e7c3561f34ca8641e81
refs/heads/master
2023-02-06T04:24:58.210986
2020-12-20T21:19:08
2020-12-20T21:19:08
306,406,494
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from scipy.optimize import linprog c = [-20, -30] A = [[1, 3], [3, 1], [1, 6]] b = [75, 99, 288] x0_bounds = (0, None) x1_bound = (0, None) res = linprog(c, A, b, bounds=[x0_bounds, x1_bound]) print('a = ', res.x[0], ', b = ', res.x[1])
[ "l.cvetkovic.997@gmail.com" ]
l.cvetkovic.997@gmail.com
5ab870b4fd3246853a2cab66ab7427042d1e8217
ce63cda28f3467d1f57b410118e83b8a76777740
/alpha3/celery.py
b84abff93a0f155ca8ae1ac54483a719dd555d64
[ "MIT" ]
permissive
webclinic017/alphatrader
39fa21040bed60f7cb28682139b54b0290976b55
d97af1182e16f8281651832afb8938f2adebf065
refs/heads/master
2022-11-29T17:32:46.694706
2020-08-04T13:17:03
2020-08-04T13:17:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
from __future__ import absolute_import import os from celery import Celery from django.conf import settings # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'alpha3.settings') app = Celery('alpha3',backend='redis://localhost:6379') # Using a string here...
[ "kris@causematch.com" ]
kris@causematch.com
7b3ef7cafbb490a4c4d80df026a59221e5503557
9e7cf1ce552ccdf02bc103dfa4aacce24aa84fde
/catalyst/core/callbacks/scheduler.py
7a566912f15cb66aa80f330495456058b4ea467d
[ "Apache-2.0" ]
permissive
denyhoof/catalyst
69065a16fcac36df77bf180e91e12c85174635ac
a340450076f7846007bc5695e5163e15b7ad9575
refs/heads/master
2022-11-22T21:02:14.398208
2020-07-17T08:24:46
2020-07-17T08:24:46
279,684,159
0
0
Apache-2.0
2020-07-14T20:15:22
2020-07-14T20:15:22
null
UTF-8
Python
false
false
7,413
py
from typing import Tuple from abc import ABC, abstractmethod import torch from catalyst.contrib.nn.schedulers import BatchScheduler, OneCycleLRWithWarmup from catalyst.core import utils from catalyst.core.callback import Callback, CallbackNode, CallbackOrder from catalyst.core.runner import IRunner class SchedulerC...
[ "noreply@github.com" ]
denyhoof.noreply@github.com
0c29642a190cd6de6f413c71d0e36c58b397b93d
1fcf291cff3fd4e664b595bbcfdc3afb7c53701a
/fsleyes/displaycontext/shopts.py
6ca68ffe7554d793b128697465b3112b839e395a
[ "Apache-2.0", "MIT", "CC-BY-3.0" ]
permissive
neurodebian/fsleyes
c10af340db9e659b3e13320836da9d6aa30fb2c5
a790acdb97f4c8c4571b38189e5f9c57c51fa1c9
refs/heads/master
2022-06-11T00:01:24.284224
2017-12-07T00:12:07
2017-12-07T00:12:07
113,656,275
0
0
null
2017-12-09T09:02:00
2017-12-09T09:01:59
null
UTF-8
Python
false
false
6,976
py
#!/usr/bin/env python # # shopts.py - The SHOpts class. # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :class:`SHOpts` class, a :class:`.VectorOpts` class for rendering :class:`.Image` instances which contain fibre orientation distributions (FODs) in the form of spherical harmonic (SH...
[ "pauld.mccarthy@gmail.com" ]
pauld.mccarthy@gmail.com
0e501d9dd75b74a72158bedfcf1627e37e68a190
976628c3df55a8611159dc5a93965dff4809bb7f
/app/config.py
5c402f095919b10f15ec13009022d1daac61c1f8
[ "MIT" ]
permissive
songzhi/fastapi-templates
cf64f28378795e6c3cca164c37bfe30253df4be0
5364610ff37328cf82d1de93bbdf99811b2a4d12
refs/heads/master
2022-11-27T17:53:24.724477
2020-07-27T01:23:10
2020-07-27T01:23:10
265,873,670
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
from datetime import timezone, timedelta import os from pathlib import Path import sys BASE_DIR = Path(os.path.dirname(__file__) if not getattr( sys, 'frozen', False) else os.path.dirname(sys.executable)) TZ = timezone(timedelta(hours=8)) IS_TEST: bool = os.environ.get('TEST', False) is not None IS_DEV: bool = ...
[ "lsongzhi@163.com" ]
lsongzhi@163.com