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
213 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
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
aabf19160a17327f82a222f78771dd42ed1bac4b
d603e5407706f1565a52f6b7a69073ee55c7c809
/pythonProject3/venv/bin/chardetect
30571812ce653f691b3f9b79ad3a67cd18217c43
[]
no_license
obuhh/TreeGen
9d9f187ac4841a66feb83124980e868f94aaee62
f4691b48cfe9b659afccb86d5fd0e669aeb3ec4e
refs/heads/master
2023-05-06T21:24:34.333638
2021-05-30T11:48:04
2021-05-30T11:48:04
372,199,503
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/Users/ivanobuhov/PycharmProjects/pythonProject3/venv/bin/python # -*- coding: utf-8 -*- import re import sys from chardet.cli.chardetect import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Obukhov.I.P@gmail.com" ]
Obukhov.I.P@gmail.com
867d461fb328950aa3f4006290a8ecddd6bf3993
0a43afbcba776ed8ada0fef5425b1507aa4d51c1
/smartbook/smartbook/sales/views.py
e49dfbf1221388510021574678f4a94867d10fe4
[]
no_license
geethusuresh/inventory-systems
c76d6d10429f483499594df8c8f34d780531f18c
fd4211d29042776fa47da92162cbbbe8220090cd
refs/heads/master
2021-01-02T08:51:31.278578
2014-09-28T07:35:54
2014-09-28T07:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
38,507
py
# Create your views here. import sys import ast import simplejson import datetime as dt from datetime import datetime from decimal import * from num2words import num2words from django.db import IntegrityError from django.db.models import Max from django.contrib.auth.views import password_reset from django.shortcuts im...
[ "geethu@technomicssolutions.com" ]
geethu@technomicssolutions.com
ec6f71dea44bb33840b8a9d2801b571e4dff1aa1
d2332604fc80b6d622a263b2af644425a7e703de
/fast-track/strings/4_valid_anagram.py
4b6cd138e04b2cd36803e6c0e4c3755c99e2ed8a
[]
no_license
abhijitdey/coding-practice
b3b83a237c1930266768ce38500d6812fc31c529
6ae2a565042bf1d6633cd98ed774e4a77f492cc8
refs/heads/main
2023-08-14T23:31:06.090613
2021-10-18T21:35:56
2021-10-18T21:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
""" Given two strings s and t, return true if t is an anagram of s, and false otherwise. """ def get_char_counts(string): char_counts = dict() for char in string: if char in char_counts: char_counts[char] += 1 else: char_counts[char] = 1 return char_counts def ch...
[ "ashiz2013@gmail.com" ]
ashiz2013@gmail.com
eb9ac70c92bde94bcc4cc6f1e1aef0cd1e1fd53c
4caeaf20ed11cdf6e7a7d8ec5059f104b96d640e
/data/build_dictionary.py
ab0ee3e00ebd075b01d34d9422b028aa327dc1ad
[]
no_license
ketranm/ptardis
53bd6c77dd8f4a93da79c25cd73b001158f9f876
db39dc0a2fb6b3de5a41966a0832e0b91888d97c
refs/heads/master
2021-03-16T05:06:23.313930
2017-05-30T14:13:18
2017-05-30T14:13:18
75,545,428
1
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
from __future__ import print_function import numpy try: import cPickle as pkl except: import pickle as pkl import sys import fileinput from collections import OrderedDict def main(): for filename in sys.argv[1:]: print('Processing', filename) word_freqs = OrderedDict() with open...
[ "ketranmanh@gmail.com" ]
ketranmanh@gmail.com
901549bbef2eef25933f5287fabd5b99d0d5745f
8a77b736a4a3b9fd346fabf4365bc587c6dae17a
/TASK4/pendulum.py
e37e828432ff432f30e25eb95ad056599f1e62cd
[]
no_license
yashica-patodia/KRSSG-Task-Round
993aaa7b7629106eaf56f2d51a740dfca8d1d91c
aff97ad2fea7c287350e381dc914dcf43688ac33
refs/heads/master
2022-04-06T12:15:38.309592
2020-03-12T15:53:12
2020-03-12T15:53:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,047
py
import gym from gym import spaces from gym.utils import seeding import numpy as np from os import path class PendulumEnv(gym.Env): metadata = { 'render.modes' : ['human', 'rgb_array'], 'video.frames_per_second' : 30 } def __init__(self, g=10.0): self.max_speed=8 self.max_to...
[ "pmjindal@gmail.com" ]
pmjindal@gmail.com
6951a375f0ba97f41392f710d9d61781e2d6a461
5c72a1a8c77dc245ce7621f14abee2f6d9e73be7
/ApiGen/apigen.py
24b4b9b69392eb10228306a04097659a1e48640e
[ "MIT" ]
permissive
stpettersens/sublimetext-buildtools
298982e985a37da87a2d439f33b8cba69881c3d3
6d05dc04a27accf3d68af9149f7e009fb74d1cd3
refs/heads/master
2021-01-15T23:45:52.237007
2015-04-19T02:10:25
2015-04-19T02:10:25
28,088,740
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# Wrapper for ApiGen (PHP) import sys import platform from subprocess import call def invokeApiGen(File): cmd = ['apigen', '--quiet', '--source', File, '--destination', 'doc'] if platform.system() == 'Windows': cmd[0] = 'apigen.cmd' print('ApiGen ~ Documenting PHP file: {0}'.format(File)) call(cmd) invokeApiGen(s...
[ "s.stpettersen+github@gmail.com" ]
s.stpettersen+github@gmail.com
290de03dc1d03cdf4b413673a35a2329d0de79e7
a6334b9f035ac7d418c9b4ced04559a4eefb9591
/basic/day14/函数参数补充.py
31de948b75b7a21ea0ef3ff6db3012334d9ad624
[]
no_license
Mr-Ma-Github/python
e814f7bb6b9926c577450dfe940c27eca5343407
07473087493bf528e7195e66d236ac0c5abf310e
refs/heads/main
2023-06-17T11:36:07.590368
2021-07-22T09:40:48
2021-07-22T09:40:48
217,192,361
1
0
null
null
null
null
UTF-8
Python
false
false
3,656
py
# -*-coding:utf-8-*- # @作者:haiyu.ma # @创建日期:2020-11-25 0:19 # @Software:PyCharm # ---------------------------------------------------------------------------- # 2.5 命名关键字参数 # 在定义了**kwargs参数后,函数调用者就可以传入任意的关键字参数key=value,如果函数体代码的执行 # 需要依赖某个key,必须在函数内进行判断 # def register(name, age, **kwargs): # if 'sex' in kwargs: # ...
[ "haiyu.ma@genomicarebio.com" ]
haiyu.ma@genomicarebio.com
78e923729c6421060621119dff0a8c2341d97acb
918e83ac92034e47fd79586c58a33e04d7f18026
/setup.py
d66763457ed15d8bbe33323d51f40eba46394a6a
[]
no_license
danieljhubley/projecteval
74c559d3fd4b229bfb0befd1b56f0ef9057830e7
b360e9e07b13f6813620b436ba926f88c900f28c
refs/heads/master
2020-06-05T19:22:52.476259
2014-10-12T21:16:09
2014-10-12T21:16:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='EValProject', version='0.1', description='', author='', author_email='', url='', install_require...
[ "austinvalle@gmail.com" ]
austinvalle@gmail.com
d022c070c9c0e15bdedbc0bd09c53b5ccaf0959a
22da469a6083d3c1d9979e26186e1c14a39c2b6a
/controllable_gan/model.py
a4c0b86226c900689b63e312d64df0e83ef2d098
[ "MIT" ]
permissive
ErikValle/controllable_image_synthesis
5b5971c267bf3505a13b1fcc4bb3ba9a87bc3a66
296fd5115ec385f9fcb94529afff2c138abae3c8
refs/heads/master
2022-11-22T09:58:39.698623
2020-07-23T15:48:23
2020-07-23T15:48:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,589
py
import torch from copy import deepcopy from torch import nn from .models import Generator2D, Generator3D from .config import build_renderer, build_primitives from .renderer import RendererBG, RendererMesh from utils.commons import Camera, init_weights class Generator(nn.Module): """Generator composed of 3D Genertor,...
[ "yiyi.liao@tue.mpg.de" ]
yiyi.liao@tue.mpg.de
8a473f45a043cd730543734cb26eb8423679ea77
bd03b46cd37c0b86ceb0b4d004315e5bc71ef6a9
/mysite/settings.py
44b3308553f0bc14ed0947dde2537e5f432eada9
[]
no_license
kmci/my-second-blog
cd4b5e1c41627c012d7da437751caca74e464226
e6de351076652b1704122c9a6d2981b519ff2c3e
refs/heads/master
2021-01-21T16:27:37.334025
2017-05-20T14:14:44
2017-05-20T14:14:44
91,889,810
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.10.7. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "kmci.groningen@gmail.com" ]
kmci.groningen@gmail.com
7427a528878b92af0bd4d6d3b7833e536c9f3af1
8b0609185265189fbec81023975221bb26cc6592
/lib/core/function.py
2d13c102f4d81ef56e705126541d2ecc27a6f776
[]
no_license
witzou/HRNet-Facial-Landmark-Detection
24afb5064444869c142cb4f7fcfd0bd0af880bb7
3c9f92a1887e259fede461ce40f303e23f2d0c00
refs/heads/master
2020-05-20T21:02:16.212344
2019-05-05T01:45:26
2019-05-05T01:45:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,444
py
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Created by Tianheng Cheng(tianhengcheng@gmail.com) # ------------------------------------------------------------------------------ from __future__ import absolute_import from ...
[ "victorchanchina@gmail.com" ]
victorchanchina@gmail.com
8751d4e2d0601a2a6fc46e4be43cb42d39e50d0f
77da591f123ff8991f42fa71dfb3a0c0bdbf5c20
/sortKeypoints.py
ec5b1ccf17beffef8d497afc3de274e441b6cdfb
[ "MIT" ]
permissive
franzqueissner/mimic-detection
d80462fbc6da273e94d0f1d7323d6bc2a90a5a0b
9dc49cf57baaa7da8bb1d8eee0efe00b57384fca
refs/heads/main
2023-03-12T03:52:21.844276
2021-03-05T09:14:16
2021-03-05T09:14:16
339,536,329
0
0
null
null
null
null
UTF-8
Python
false
false
3,451
py
import math from getKeypoints import Keypoint from classes import Mouth, Eye, Eyebrow # helper functions def get_line_length(start_x, start_y, end_x, end_y): """ takes x and y of start and end point returns distance of those points """ a = end_x - start_x g = end_y - start_y length = math.sqrt(a**2+g**2)...
[ "franzqueissner@gmail.com" ]
franzqueissner@gmail.com
dc249fd778ca98ecbc6b3b862b7660fbb8310715
a4ebfeefa95e97d60f9ad2fe36e75e59e3b50769
/Trial_Aligned_Analysis/Trial_Aligned_Utils.py
7aa0ed89d59bb10ef4bd5bd2df5ea1bdb13b351b
[]
no_license
matt-j-harvey/Widefield_Analysis
9f1566ac26d4164d988ab9a43d953f228b15746d
e03037e909ce986d8221113e1bbf5d46ddd7ad70
refs/heads/master
2023-05-01T12:30:27.064246
2023-04-24T11:23:37
2023-04-24T11:23:37
252,776,416
0
0
null
null
null
null
UTF-8
Python
false
false
3,526
py
import os import h5py from tqdm import tqdm import numpy as np import statsmodels.api as sm import matplotlib.pyplot as plt import pandas as pd import tables from datetime import datetime from Widefield_Utils import widefield_utils def get_session_averages(activity_dataset, metadata_dataset): # Load Session L...
[ "matthew.jc.harvey@gmail.com" ]
matthew.jc.harvey@gmail.com
0b49bc0737db31a4c7283699ef3d676d3bdd2b95
993c7725673fccb6aedf5c1553a6e149b14b7dd8
/Solutions/Assignment 6 - Homework 5/MCRT_Erick_Shepherd.py
a34c35ea15636c9a75be304cb6152377fdcce407
[]
no_license
ErickShepherd/UMBC_PHYS220_2018
4ec5cadb97ca7f99d7337f123c6b8035f68a1b2e
cca3a1c7c3d4d95001e273687a28c04febf855b3
refs/heads/master
2020-03-09T02:24:47.946689
2019-05-15T18:49:18
2019-05-15T18:49:18
128,539,009
0
0
null
null
null
null
UTF-8
Python
false
false
11,254
py
#!/usr/bin/python # coding=utf-8 """ Monte Carlo radiative transfer model, PHYS 220, UMBC. Course information: -------------------------------------------------------------------------------- Name: Introduction to Computational Physics ID: PHYS 220 Instructor: Dr. Zhi...
[ "ErickEShepherd@gmail.com" ]
ErickEShepherd@gmail.com
be1add6da439f0d174d5c0dbee0ab718d982202a
650d95087647219a4ad21d4a8d7d263b48191c66
/scikitlearn/day02.py
12aa31d76252bd50cbfe707fee3b26762cb8a5dc
[]
no_license
WaterDavid/MachineLearning
50f3206a618e2137b36e3f06f95ae8ae8ddc7e8e
89b97c23d62b9f54fa513de6e0b4c5f8e627798a
refs/heads/master
2020-08-16T03:22:30.668070
2019-10-16T03:33:38
2019-10-16T03:33:38
215,437,694
0
0
null
null
null
null
UTF-8
Python
false
false
2,640
py
from sklearn.datasets import load_iris, fetch_20newsgroups, load_boston from sklearn.model_selection import train_test_split from sklearn.neighbors import KNeighborsClassifier from sklearn.preprocessing import StandardScaler import pandas as pd import numpy as np def knncls(): ''' File descriptions train....
[ "1841765644@qq.com" ]
1841765644@qq.com
edd05aa7a6d0b2519f15498c48e760666baaf731
e9c7f991c319efe0b1831e8e8360e13c3e177555
/Python_do_zero_Guanabara/06_Metodos/desafio/100_desafio.py
ed4107d33cd4045e831afb18d8b04a91da717e45
[ "MIT" ]
permissive
HenriqueSOliver/Projetos_Python
a3c4cabc61442221da968df55a463d9ad5865fcc
f18c5a343ad1b746a12bd372298b2debe9bc65ec
refs/heads/main
2023-06-05T03:11:42.879988
2021-06-17T22:26:03
2021-06-17T22:26:03
327,629,919
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
from random import randint from time import sleep def sortLista(lista): print('Sorteando 5 valores da lista: ', end='') for c in range (0, 5): n = randint(1,100) lista.append(n) print(f' {n}', end=' - ', flush=True) sleep(0.5) print('PRONTO') def somaP(lista): s...
[ "HenriqueSOliver85@gmail.com" ]
HenriqueSOliver85@gmail.com
95467d6db570497c21bc5b91ad0364019f764688
dff5752e1675e0ec57a2b05b89d7a044e72eb26e
/wholegraph/common/basics.py
77010cca9b33bd296cd87335ac62ccc08b90fa2f
[ "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
zbn123/WholeGraph
5d6a97f9dc2474a7b05017073026d577df7e0cad
a9131580d7c0305fbf4a47aa4d735ff5ea776866
refs/heads/main
2023-03-14T05:25:49.874672
2021-03-03T15:01:57
2021-03-03T15:01:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,323
py
# # The MIT License (MIT) # # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation...
[ "xiaonans@nvidia.com" ]
xiaonans@nvidia.com
17e47c09d3f09f878513877a720bec4810bda7d2
b0da90788ade4abc067f8e000ff66fec709fe46e
/send_internet.py
782e8cbf935a478da4963d0c3119e16e523eb5dc
[]
no_license
zlroy1023/dataGenerator
13e3fce18d528fb5fad82c9d4c7b97cef6fe4ee5
c6578d8ed2c293c967757d2dc74d7272e817fc54
refs/heads/master
2021-01-25T12:19:47.439229
2015-01-22T12:54:38
2015-01-22T12:54:38
29,678,707
0
0
null
null
null
null
UTF-8
Python
false
false
1,462
py
#test.py import json import urllib2 import httplib import time import random # Data from keyboard ''' print 'please input the data [time(sentat=543), node, inputs]' print 'ex: [[535, 10, 150, 250],[530,17,1437,3164]]' data_string = raw_input() ''' # Construct post_url (without apikey) post_url = 'http://emoncms.or...
[ "zhangli21117@gmail.com" ]
zhangli21117@gmail.com
4681259f82617ba5a09860ebcd688d94a01d71ed
9d6218ca6c75a0e1ec1674fe410100d93d6852cb
/app/supervisor/venvs/supervisor/bin/echo_supervisord_conf
6de0696c980aed451f221b8ebe2d45ed7f743467
[]
no_license
bopopescu/uceo-2015
164694268969dd884904f51b00bd3dc034695be8
5abcbfc4ff32bca6ca237d71cbb68fab4b9f9f91
refs/heads/master
2021-05-28T21:12:05.120484
2015-08-05T06:46:36
2015-08-05T06:46:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
370
#!/edx/app/supervisor/venvs/supervisor/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'supervisor==3.1.3','console_scripts','echo_supervisord_conf' __requires__ = 'supervisor==3.1.3' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('supervisor==3.1.3', 'c...
[ "root@uceociputra.com" ]
root@uceociputra.com
6fa87a602b99e6a95996dd3fcef8f8a9e179a148
aaecaaeb5ea07a5cd5a07152b8e9e46ca62b01e7
/models/resnext.py
9d7ca1c0b113093f5eae8cd895aa29b5d7cd79c0
[ "Apache-2.0" ]
permissive
XJay18/ImageClassificationKit
a7d966ca8e129ef489170442021f1cd2c9faafa7
8437474e48d2c1a866642c6d1a3402561be93226
refs/heads/master
2022-10-04T23:26:15.763601
2020-06-06T06:06:26
2020-06-06T06:06:26
269,881,596
1
0
null
null
null
null
UTF-8
Python
false
false
2,757
py
import torch import torch.nn as nn from models.common import apply_init from models.resnet import ResNetMini class ResNextBlock(nn.Module): def __init__(self, in_channels, depth, groups=1, stride=1): super(ResNextBlock, self).__init__() self.conv1 = nn.Conv2d(in_channels, depth, 1, stride=1, bias=...
[ "XJay18@users.noreply.github.com" ]
XJay18@users.noreply.github.com
1ee20f13ba8bf3c7087ecf6741220c27e99b2723
ad122dd96c659420f5c3e626d176c335bc4016f1
/atm.py
32c9f9074e552a13050c31a26a81e2b539c5a17c
[]
no_license
Ananya236/ATM
ce25e1cc70498a3828a8adf416016cf7b33088aa
0599b592d85060ed027da72443694a243a6b9549
refs/heads/master
2023-06-25T18:22:54.263971
2019-04-01T09:55:49
2019-04-01T09:55:49
391,157,589
0
0
null
null
null
null
UTF-8
Python
false
false
7,535
py
import xlrd import xlwt from xlutils.copy import * from tkinter import * from tkinter import messagebox from PIL import ImageTk, Image import time global root root=Tk() root.geometry('1200x800') root.title('ATM') r=Frame(root) r.grid(row=0,column=0,sticky='news') Label(r,text='ATM',font=('Aerial 70 bold')).grid(row=0,...
[ "ananyagupta2306@gmail.com" ]
ananyagupta2306@gmail.com
ea7c93ee1f0f97548d27b8d38c2d65404d374fc1
678a8567f296c3e23f16e8bf70b11f7040b794ab
/old_code/OLD_no_proxy_scrape.py
a670f792949da33ac6929f7340c0296b6285cac6
[]
no_license
AusterweilLab/GitHubData
51ac67386868d6561a4d91e606f4759f3a2116a8
3bbeee20009f70261da40963ff6aee024b8a2ebf
refs/heads/master
2020-07-18T03:09:05.953780
2020-03-24T04:33:48
2020-03-24T04:33:48
206,162,459
2
0
null
null
null
null
UTF-8
Python
false
false
5,060
py
import re, os, json, time import requests # XXXXXXXXXXXXXX DEPRICATED XXXXXXXXXXXXXXXXXXXXXX # Github rate limiting = 5k per hour #time.sleep(3600) # ------------- Load file, each newline is a json blob ------------- files = list(map(lambda x: x[0], list(map(lambda x: x[2], list(os.walk('urls'))))[1:])) for fi...
[ "amadam15@asu.edu" ]
amadam15@asu.edu
6e96f37974584af5283f0c71d6223bbb97d88318
0d113c40226fa5e7fbb00a288e1bb6b260b67c1d
/Teilimplementierungen_QUALM/Trainingsdatenselektion/evaluation_scripts/tagger_eval_perceptron_brown_fiction.py
f00be1391b0a5196afa56028ee427721803eca56
[ "MIT" ]
permissive
kieferca/qualm
24f50c9ea56764a66853b628b5bdd1575a70b1ff
165c1ad62b1e5924ad2aab5c897b921a33528f48
refs/heads/master
2020-04-22T11:16:05.709191
2019-04-18T10:47:19
2019-04-18T10:47:19
170,333,631
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
import nltk import readData as d #Twitter print("Brown Fiction: ") tagger = nltk.tag.PerceptronTagger(load='false') tagger.train(d.brown_fiction) print(tagger.evaluate(d.tree)) print(tagger.evaluate(d.brown_fiction)) print(tagger.evaluate(d.brown_reviews)) print(tagger.evaluate(d.conll)) print(tagger.evaluate(d...
[ "kieferca@gsamelap4.informatik.uni-stuttgart.de" ]
kieferca@gsamelap4.informatik.uni-stuttgart.de
1857d9fa00f10a982e13a209bad6f488c3bc808d
95ab2a593ad6803cdbbaed1642c858d7c6a42802
/admin.py
ae34e082385fec731b8f5bdeffe777a82b68a1b5
[]
no_license
shansclensky/donatelove
c39d63ed2dade5845cb7cae28a830ad207e7da30
b46805946aaf955f692ed5427fc816ee8270406e
refs/heads/master
2020-03-29T11:53:09.014735
2018-09-26T04:26:52
2018-09-26T04:26:52
149,875,430
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from .models import Organisation,OrganisationCorpusFund,OrganisationExpenditureLog,UserDonation,Profile,Donations_required admin...
[ "shansclensky66@gmail.com" ]
shansclensky66@gmail.com
9db7915b5779306042bd48c65ebeeac02448799e
cb665e03506aeb5fbd0eda87ecfbe7dea84d35d3
/RunDART.py
49a061ce7224e81ca121f167cc0fb922d725a33b
[ "Apache-2.0" ]
permissive
z5476t4508/3D-DART
c894fa0a47ab05ff3bd5bd2771739f6dfe87c00a
c94ab30f8d96ab1232d55ed136bc8299dcaa5112
refs/heads/master
2022-06-23T13:11:43.642610
2020-05-04T12:13:32
2020-05-04T12:13:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,064
py
#!/usr/bin/env python2.7 from __future__ import print_function USAGE = """ ========================================================================================== Author: Marc van Dijk, Department of NMR spectroscopy, Bijvoet Center for Biomolecular Research, Utrecht university, The Net...
[ "b.jimenezgarcia@uu.nl" ]
b.jimenezgarcia@uu.nl
e6d659c3c44e036e0b4dca6febe405013b3b58f2
764f47445160b57c510f1995ba7b7a95a33c0851
/myfirstproject/myfirstproject/views.py
a1e3f02ae9787ce8ffc5697d227035909bd49a9c
[]
no_license
vladdok1/djangoProjecs
aefa7b64a316a3f8e3d788518dce0cbab03f68a5
6a8c5dc65b919f79ccd0cb15099cfe42f1810edd
refs/heads/main
2023-03-05T21:12:04.425794
2021-02-18T08:33:11
2021-02-18T08:33:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from django.http import HttpResponse from django.shortcuts import render def about(request): return HttpResponse('This is about page!') def home(request): return render(request, 'home.html',{'greeting':'hello'})
[ "vladislav@MacBook-Pro-Vladislav.local" ]
vladislav@MacBook-Pro-Vladislav.local
470f12100c3a223e6a08e2b8fd494ea90ec33d22
a85e4216a0b402706c64285229c924530eb742a8
/utils/HelperUtils.py
ce34b5966b8948caa5789c49b768a89a2648b11e
[ "MIT" ]
permissive
ZIllR0/Driver-Security-Analyzer
cbc8589c0ce5f8f4b3f9843db4214e2077599583
0c562975c1477da8d65a14eb872a981f709d6b94
refs/heads/main
2023-01-01T09:02:34.165736
2020-10-27T02:23:14
2020-10-27T02:23:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
231,776
py
# Copyright (C) 2020 Alibaba Group Holding Limited import idaapi from idaapi import * from idc import * from idautils import * require("idaapi") import time from enum import Enum import graphviz import plistlib from capstone import * from UtilClasses import * idaapi.require("UtilClasses") from HeaderClangParser impo...
[ "noreply@github.com" ]
ZIllR0.noreply@github.com
c6f36a097ac49b78ead5f1098692a08dd4141bfc
fb713f3bef240bf80d40a700fee832c085e4202b
/project_euler/Problem000-025/problem_018.py
f85f3193635d8ef7f1f4486b5b63e4d792fb3d7c
[]
no_license
BenjaminStienlet/CompetitiveProgramming
814289e21436290f992e0d192cafafc1466289fe
85b5104d94da7863341aaf2dbbba10b68ba085f2
refs/heads/master
2020-04-06T07:04:17.759908
2017-04-27T20:10:02
2017-04-27T20:10:02
18,189,228
0
0
null
null
null
null
UTF-8
Python
false
false
1,586
py
""" Maximum path sum I ======================================================================================================================== By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is, 3 + 7 +...
[ "bstienlet@gmail.com" ]
bstienlet@gmail.com
8b271ff4cc0baee9212bc20abad191b519738461
c53089da32c2d2d8a6fb0739078a6385c0023105
/Stephanie/Modules/facebook_module.py
678ff5efe5a9a2b054a037b91f81e1f0d5de9ac1
[ "MIT" ]
permissive
damnabhi007/stephanie-va
71183f77521e692bc250bb9ae7966a9f0faa575c
222b3c774ba32c60068e02c38448b4fcca957837
refs/heads/master
2023-07-05T09:51:56.830083
2023-06-22T09:31:59
2023-06-22T09:31:59
119,633,993
0
0
null
2018-01-31T04:19:26
2018-01-31T04:19:25
null
UTF-8
Python
false
false
5,586
py
import pytz import datetime import requests import facebook from Stephanie.Modules.base_module import BaseModule class FacebookModule(BaseModule): def __init__(self, *args): super(FacebookModule, self).__init__(*args) self.oauth_access_token = self.get_configuration('facebook_oauth_token') ...
[ "ugupta41@gmail.com" ]
ugupta41@gmail.com
fe5a0e993e2966d81c13db9bbb99062c610898f1
85dbe10ae9c49af99a863bb44daeb760839fa6ae
/prototype/proto.py
b7aba5f8fae274fec6b99cdc9a9f9a444dd25b09
[]
no_license
dalyon2/redclusterui
87ae12ae9ce8d57f713f32089e105da7606577c7
87a33dfcd49832347ea4a2e66908a5706940c8c8
refs/heads/master
2021-01-11T14:23:37.194777
2017-02-27T17:07:00
2017-02-27T17:07:00
81,364,545
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
from flask import Flask,render_template import redis db = redis.Redis('localhost',port='6379') app=Flask(__name__) @app.route('/') def coolstuff(): return render_template('index.html') @app.route('/<path:path>', methods = ['PUT', 'GET']) def home(path): if not db.exists(path): #does the hash exist? ...
[ "ubuntu@ip-172-31-1-69.us-west-2.compute.internal" ]
ubuntu@ip-172-31-1-69.us-west-2.compute.internal
d2acfc253b855655cd841431f192315acbd4c3f0
54063dafa322c5184222f5c3c27ffac1f99e5c60
/analyze_chain.py
575818040766023f7c813114b74e7bf8fbb7752c
[]
no_license
nonky/sample_questions_2016
dae7ff940e007e2bcca5dcc2c4f34499d390e0e3
f6e3151f991bce8dc0c13b8aeeebae751f4e0707
refs/heads/master
2020-12-25T08:38:00.444769
2016-06-10T14:00:40
2016-06-10T14:00:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
import numpy from matplotlib import pyplot as plt plt.ion() samps=numpy.loadtxt('example_chain.txt') #to look at convergence, we can plot the Fourier transform of the #chain samples. If we see a bend with many points below it, we #can be confident of convergence #let's also just check one parameter for now. You s...
[ "sievers@cita.utoronto.ca" ]
sievers@cita.utoronto.ca
9045e8959b82e90b76c2d07a2fee20ef8d12aa6c
bec0383f2afd255a72afeb9049a898615e547327
/electrum/electrumabc_plugins/ledger/auth2fa.py
d8d3f06db1dd469486c258771f356621ed869f65
[ "MIT" ]
permissive
Bitcoin-ABC/bitcoin-abc
a73024a513be2c9c419f8bece06dbadde2af3fb7
57176a00e4d660487c41b92207da4bf27e5c0026
refs/heads/master
2023-09-04T11:26:24.295624
2023-09-01T14:24:40
2023-09-04T05:20:03
89,913,655
1,359
768
MIT
2023-07-19T16:41:26
2017-05-01T09:58:15
C++
UTF-8
Python
false
false
7,270
py
import copy from btchip.btchip import BTChipException from PyQt5 import QtWidgets from electrumabc import networks from electrumabc.address import Address from electrumabc.i18n import _ from electrumabc.printerror import print_error from electrumabc_gui.qt.util import PasswordLineEdit helpTxt = [ _( "You...
[ "pierrekn@gmail.com" ]
pierrekn@gmail.com
0a14047eb3f8abf77d2f4a9b22206743c40dce4e
8e069c3fec6dc64cfa741daf6fe63212cc0be6fc
/src/p236_sol4.py
390daf3dd35a33c59d3783768681ea7fc400d82c
[]
no_license
hpplayer/LeetCode
81b9651d6ebf53287b1f27241be211add3e3bc8a
527df4581439cbfa52ac17c96f56b0447f87c3f0
refs/heads/master
2020-05-16T21:33:20.991009
2015-11-01T03:55:10
2015-11-01T03:55:10
31,480,577
0
1
null
null
null
null
UTF-8
Python
false
false
1,361
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} root # @param {TreeNode} p # @param {TreeNode} q # @return {TreeNode} def lowestCommonAncestor(self, ...
[ "hpplayer@live.cn" ]
hpplayer@live.cn
fdd21d4d71c7b30ff70161a9427d5934c9c8ae1e
cd3307b864100f9c238fdbd5b81d494a248521a3
/photos_bot.py
987801a3206d0585eb0c789d433014d20de6e975
[]
no_license
jjconti/photos_twitter_bot
da91ed29d0cde4431263fe1ee7335eacf4adf5c2
6f9e453be5dca8f7e37cc9644eaad18003788074
refs/heads/main
2023-08-17T08:48:25.960885
2021-06-25T22:39:43
2021-06-25T22:39:43
380,368,302
0
0
null
2021-09-16T23:22:44
2021-06-25T22:41:18
Python
UTF-8
Python
false
false
1,084
py
from twitter import * import glob import time token = "" token_secret = "" consumer_key = "" consumer_secret = "" LIMIT = 10 SLEEP = 144 t = Twitter( auth=OAuth(token, token_secret, consumer_key, consumer_secret)) # Send images along with your tweets: # - first just read images from the web or from files the re...
[ "jjconti@gmail.com" ]
jjconti@gmail.com
a4c811a731798bb0b5be5c186d7d12bfacb9d8c5
1e46489ff6f87f1491b43788d009c32aeded2e98
/check_port.py
65ce6be066d505d0fdc90f8a468a50503c404c51
[]
no_license
liguifan/EIT-master
811a36d25b0e9bb5be9b341828b3f6b7ed5f1fca
f16a3e4df5d5b193d88bf296c3c253d95b9886bd
refs/heads/master
2022-03-24T06:39:35.439498
2019-12-02T01:18:49
2019-12-02T01:18:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Nov 30 01:30:43 2019 @author: Sherry """ """ check portfolio data, comparing with Quantopian""" import pandas as pd file_name_list = ['port_avg_roll_l1_thr0.005_fill',#wrong, updated 'port_avg_roll_l1_thr0.0025_fill',#wrong, updated...
[ "Sherry@Shery-Chen.fios-router.home" ]
Sherry@Shery-Chen.fios-router.home
122907204fcfbe12805810cb93f16d24086bef65
92d2b8b93c56176ef311ee91dbbc36812568500e
/Random_Forest.py
ee014444b3ec20c902dc0a79eb1a02941d6d89ab
[]
no_license
rudradesai200/MLAlgos
bd823c33cc4bdaa0bfab89717f271c80cfc3287d
3aa2d9e881b59f6010c389557c3a96848d6e74a1
refs/heads/master
2023-05-08T01:18:46.312764
2021-05-24T08:42:38
2021-05-24T08:42:38
315,779,541
0
0
null
null
null
null
UTF-8
Python
false
false
2,558
py
import numpy as np from DecisionTreeContinous import DecisionTree class RandomForest: """ RandomForest Implementation with Base Class - DecisionTree TODO: - Implement Categorical attributes - Allow Weighted Samples """ def __init__(self,num_trees=10,num_nodes_stop=2,max_level=-1,cri...
[ "rudradesai200@gmail.com" ]
rudradesai200@gmail.com
49f9a5e68ade3a0b46ee8d48c4574c7a8baebf11
86f05c482d5c23cfdbc8b646d50380c0b8242731
/ListMethods.py
9d15dd063b5769fc53da0d1a6f870f0e0da53d1b
[]
no_license
HussainWaseem/Learning-Python-for-Data-Analysis
526ef0e46abeb2ab105d7c60788a1aaadef78d5b
83e824ac24188fe924b0b1494a83089abceb8edf
refs/heads/master
2021-04-06T15:37:27.587340
2018-03-08T08:31:42
2018-03-08T08:31:42
124,361,615
0
0
null
null
null
null
UTF-8
Python
false
false
4,473
py
''' Some popular Lists Methods ''' # 1. list.sort() = Modifies the uniform typed-list. Return type = None. a = [80,45,96,74,100] print(id(a)) a.sort() print(a) print(id(a)) # both ids are same. Therefore it only modifies the old list. Doesnot creates a new object. print(a.sort()) # Returns None. Since s.sort() ret...
[ "syed.azadar313@gmail.com" ]
syed.azadar313@gmail.com
6019f6a2b408d602d005375f8b5abcb9d269579b
9a0197809a09f71a6b7629669acae144c13828d9
/microblog/settings/common.py
b7a04276640d6b77bec96928f14affcb67b90343
[]
no_license
Yuri-Kosaki/microblog
6284743ed1be2ec7eaad12b38ad2e249ff2ce733
8edddddf0b18f2f87a65d5772f84c19ff3fe4f62
refs/heads/master
2020-03-28T08:25:27.404459
2018-09-08T19:46:14
2018-09-08T19:46:14
147,958,119
0
0
null
null
null
null
UTF-8
Python
false
false
3,803
py
""" Django settings for microblog project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
[ "bebejuli7339@gmail.com" ]
bebejuli7339@gmail.com
e988b6ac71afa38870ac502a5fffbdd2d8c2ae66
8a7470ad0e9e74ac78d97a37a971665adda602ef
/Prac_02/Online test 2.0.py
64893ad9a725366cab800364268d92c3654f3bfa
[]
no_license
Mampson/Cp1404
9c37a45defadcd8755a3a40f10697cc298eeb854
16ba9cc74ea882aa3e7239dd9e73e1f33331211e
refs/heads/master
2020-03-26T22:54:24.818892
2018-10-23T05:21:05
2018-10-23T05:21:05
145,495,501
0
0
null
2018-09-04T03:26:36
2018-08-21T02:28:10
Python
UTF-8
Python
false
false
59
py
text = "Enjoy the test" result = text.strip().split()[0]
[ "matthew.sampson@my.jcu.edu.au" ]
matthew.sampson@my.jcu.edu.au
f788e66bd6713d4220c4bf3a7ca216100c42438b
a828c589fd3ccd5268e42e9c6a678a95ffd292aa
/app/routes/routes.py
edc14e807648e24f177efc6bf03a6ddb3720053c
[]
no_license
sheyslong/Naisth
18e81313de6bd9c00031ac277d2bdc8fb8d46b66
d0bdb5a071484a422dac813efa7e183868c82e9d
refs/heads/master
2022-03-23T17:09:25.820637
2019-12-13T18:59:01
2019-12-13T18:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,106
py
import json from app import app from flask import render_template, redirect, url_for from pygments import highlight, lexers, formatters from app.response import * from app.routes import company, key from app.routes.util import * @app.route("/", methods=['GET']) def index(): return render_template('home.html', menus=...
[ "sheilla.silva@ccc.ufcg.edu.br" ]
sheilla.silva@ccc.ufcg.edu.br
d2d0dace518cceb6507be4aa12d8f81bf62ab457
c1a6d814e7b3cca1f029e7a1fea491948af3444e
/leetcode/LongestValidParenthesis.py
36d195aba3149072a17fa0607d907d539a7fd3a3
[]
no_license
zinking/acmcatchups
f2ff71ad4f4be4865eed1c1dd59f8dbaa4e257f4
824b01872c5955009d181c9fb53270ec7ca5ef70
refs/heads/master
2020-12-18T19:34:40.584361
2017-10-25T13:14:00
2017-10-25T13:14:00
4,783,058
0
1
null
2016-04-24T09:45:09
2012-06-25T14:54:12
C++
UTF-8
Python
false
false
1,294
py
__author__ = 'awang' class Solution(object): def longestValidParentheses(self, s): """ :type s: str :rtype: int """ def top(ps): if len(ps)>0: te = ps[-1] rr = 0 while len(ps)>0 and te>=0: rr+=t...
[ "zinking3@gmail.com" ]
zinking3@gmail.com
e5263d18dfbdd972bbd90ce3f26a2c62c3caf47a
f470a0a8d7f671cdf70c8476b77ee99009b1d75e
/MAIO/Project/Programming/Test_Triangular_Interpolation.py
46ba214a61ad1fadbc49dd6fd0d0aba56e579fcd
[]
no_license
MarkDekker1/Study20162017
40fa639cee290066820341d15b1e87406b830301
701e7a8b8bde6012a27596d1d9b8b3a37314c5ba
refs/heads/master
2020-07-28T19:57:48.501791
2016-11-01T12:49:19
2016-11-01T12:49:19
67,404,864
0
0
null
null
null
null
UTF-8
Python
false
false
3,982
py
def experiment_res(x, y): """ An analytic function representing experiment results """ x = 2.*x r1 = np.sqrt((0.5 - x)**2 + (0.5 - y)**2) theta1 = np.arctan2(0.5 - x, 0.5 - y) r2 = np.sqrt((-x - 0.2)**2 + (-y - 0.2)**2) theta2 = np.arctan2(-x - 0.2, -y - 0.2) z = (4*(np.exp((r1/10)**2) - 1)...
[ "Mark Dekker" ]
Mark Dekker
4157aa216fbdcc601f2d234eaa9a89a15f440ec6
90427286ebc65f96b03e49f6ed94843138e9aed6
/wirehome.automations.message_responder/1.0.0/script.py
bf5f441bab20ab91f48fca243a6580d7c83d1d98
[ "Apache-2.0" ]
permissive
chkr1011/Wirehome.Packages
432cf58be3d53bd8de1bee42d0200edb09c7e486
ffcb5e6c410c9030c58626881ef95bbe3550efc4
refs/heads/master
2023-09-02T18:18:02.804863
2022-03-06T11:47:11
2022-03-06T11:47:11
126,233,912
5
3
Apache-2.0
2019-05-31T16:36:39
2018-03-21T20:03:02
Python
UTF-8
Python
false
false
1,947
py
config = {} subscriptions = [] def process_logic_message(message): type = message.get("type", None) if type == "initialize": return __initialize__() if type == "enable": return __enable__() if type == "disable": return __disable__() else: return wirehome.response_c...
[ "christian.kratky@googlemail.com" ]
christian.kratky@googlemail.com
0535e31655cca344b677d76dbfff6337bdd4e55f
864fd94eacac2ec37ea20feec3de161f357a0b1a
/py-src/synthesizer.py
923c1edec6dfcc78d6f6deeff1ebd83e80659365
[]
no_license
yusuke-matsunaga/afsyn
0c13e9236f63bcc5ee47b34fcd3d7e7f00b1662e
38bd191bbbf65848bf2e8096d39b8e4b3b30e611
refs/heads/master
2023-01-08T05:20:41.230765
2020-11-06T05:41:21
2020-11-06T05:41:21
306,373,024
0
0
null
null
null
null
UTF-8
Python
false
false
1,987
py
#! /usr/bin/env python3 ### @file synthesizer.py ### @brief 回路を生成するプログラム ### @author Yusuke Matsunaga (松永 裕介) ### ### Copyright (C) 2020 Yusuke Matsunaga ### All rights reserved. from scheduling import scheduling from binder import bind if __name__ == '__main__' : import sys import os from op import Op ...
[ "yusuke_matsunaga@ieee.org" ]
yusuke_matsunaga@ieee.org
2a99a7db473372aeeb7fa4a6ffac6b7e5ed25760
5058401352fd2b80bf33bd4a0c0acc77b0e05231
/python/makeexec/makeexec.py
a4205f5d195154aaa03e44e18c1d69e964d28ad9
[]
no_license
pgl/mcandre
3b81ee64bf10ccaf02b9a1d44ed73e20cbcad4b6
81055895d872e2f93cd055f5a832c6d89848e3a3
refs/heads/master
2021-01-24T20:25:24.672765
2013-10-24T09:06:25
2013-10-24T09:06:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,189
py
#!/usr/bin/env python """Properly shebang and mark a file as executable""" __author__ = "Andrew Pennebaker (andrew.pennebaker@gmail.com)" __date__ = "3 Apr 2006" __copyright__ = "Copyright 2006 Andrew Pennebaker" import sys import getopt INTERPRETERS = { "py":"#!/usr/bin/env python", "pl":"#!/usr/bin/env perl",...
[ "andrew.pennebaker@gmail.com" ]
andrew.pennebaker@gmail.com
82ee25d4e1bb8a101252b76b2a674d7caf39597a
4c6f08d806ba9e431e7947b04240d3a2503dc4ca
/3.feature/3.1.filter.py
a3caf3872a275e5469d45daafa1ca14b900c3a7d
[]
no_license
lovehyun/tutorial-opencv
415468c83ee4ad8ca4686ceb41a14c5ac822c5ac
dccf9e79358693742d735a1d084cd77d78eda052
refs/heads/master
2023-07-16T07:03:21.771063
2021-08-21T08:31:00
2021-08-21T08:31:00
396,325,111
7
1
null
null
null
null
UTF-8
Python
false
false
434
py
import cv2 import numpy as np img = cv2.imread('../Resources/Photos/shape.png') cv2.imshow('shape', img) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # [1 1 1] [0.111 0.111 0.111] # G = [1 1 1] G = [0.111 0.111 0.111] # [1 1 1] [0.111 0.111 0.111] kernel = np.ones((3,3), dtype=np.float64) / 9 prin...
[ "lovehyun@hotmail.com" ]
lovehyun@hotmail.com
fb3d22f475441b51c0e68f11d799ebd713d1b812
87382c73a987c6395e35dddf3ec34d03a2d38e4b
/design.py
287fdbd51056a10d4a3acc192cca3e60eec9e8eb
[]
no_license
Bolteren/lesson01_QT
f8ea0194a09cfadd4b40eeedc1972db503abae67
b2627a3f97cd136921678cb482d87cdf47487f7a
refs/heads/main
2023-06-30T03:11:58.644180
2021-07-27T18:12:59
2021-07-27T18:12:59
389,940,727
0
0
null
null
null
null
UTF-8
Python
false
false
2,507
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'design.ui' # # Created by: PyQt5 UI code generator 5.14.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWin...
[ "BolterHell@gmail.com" ]
BolterHell@gmail.com
9e11d9b929c0c2d083a7f573add7740b52a1b878
96901d0fc591e6d0962859980713f2a7baaa3a67
/api/serializers.py
b2ad978a593d79f9d23a601c0941f2622347f3bc
[]
no_license
nchen0/Sprint-Challenge--Django-I
fc457fb948d01da78b4c33b2982803eb3770538a
aa4476a455aa655d43f1112c92d79bbad10e59b5
refs/heads/master
2020-03-29T10:19:15.396358
2018-09-21T17:56:43
2018-09-21T17:56:43
149,798,996
0
0
null
2018-09-21T17:55:16
2018-09-21T17:55:16
null
UTF-8
Python
false
false
741
py
from rest_framework import serializers, viewsets from .models import PersonalSong class SongsSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = PersonalSong fields = ('title', 'artist') def create(self, validated_data): user = self.context['request'].user ...
[ "nicky.chen0@gmail.com" ]
nicky.chen0@gmail.com
b6589c60543e2eb852a24bba5a6d75cbcd07891a
805ef01d18578bdbe136d00c8ad82e0148fb3396
/model-in-image-blog/weblogic-deploy/lib/python/compare_model.py
68f4dde752f1ec42590743e9f32c3655ab1f18fa
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "BSD-3-Clause", "UPL-1.0", "BSD-2-Clause" ]
permissive
iRohitBajaj/weblogic-poc
8c14c2087817fa6f08d8b0ab49d200b1460add77
4c749f86759d78d34b66883371a1e257f5e5761e
refs/heads/main
2023-01-04T11:11:51.162265
2020-10-25T20:35:07
2020-10-25T20:35:07
305,476,195
0
0
null
null
null
null
UTF-8
Python
false
false
27,692
py
# Copyright (c) 2020, Oracle Corporation and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # # ------------ # Description: # ------------ # # This code compares python dictionaries. It is used to compare the new vs the old version. # If ...
[ "rohitextrastuff2@gmail.com" ]
rohitextrastuff2@gmail.com
b66586acf64dd69666c18207ed9ae0d5adfc0844
bb12da8a0d637b68255b04b182fdd47558bec12e
/tests/test_differ_enums_aohdiffopts.py
e3fd4159f13302d70f7549839fd4de0876f038b0
[ "ISC" ]
permissive
wwkimball/yamlpath
03f1dffc0c5d5208d43fca33578de9ad0074c395
be7af7de60e920659b535aaae39046e84c85c248
refs/heads/master
2023-08-25T07:42:53.174510
2023-03-30T22:32:16
2023-03-30T22:32:16
184,194,939
102
20
ISC
2023-03-30T22:32:17
2019-04-30T05:05:17
Python
UTF-8
Python
false
false
827
py
import pytest from yamlpath.differ.enums.aohdiffopts import AoHDiffOpts class Test_differ_enums_aohdiffopts(): """Tests for the AoHDiffOpts enumeration.""" def test_get_names(self): assert AoHDiffOpts.get_names() == [ "DEEP", "DPOS", "KEY", "POSITION", "VALUE", ] def test_get_choices(self): ...
[ "30981667+wwkimball@users.noreply.github.com" ]
30981667+wwkimball@users.noreply.github.com
fa6e9c389078146c368b5362c5a13805d283f14b
0b4a626379f3445e5cdb7bc9d8712d8641e00d66
/ClassifyContigs.py
56f4adfc5fae879d3513ebfd0b1361c8ff74f550
[]
no_license
ValentinaPeona/REPdenovo
047dd8ab55242fc0c236426a06661687d5b41819
2a6d2bb3dbfe7fd7fbbff8231437cf549a3b313c
refs/heads/master
2021-01-21T02:45:22.238162
2015-03-07T06:34:52
2015-03-07T06:34:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,051
py
__author__ = 'Chong Chu' import sys import os from subprocess import * from collections import defaultdict from BasicInfoPaser import readContigFa def isSufPreOverlap(seq,ilen,icutoff): if len(seq)<ilen: ilen=len(seq) sprefix=seq[0:ilen] istart=-1*ilen ssuffix=seq[istart:] cmd="./TERefi...
[ "chongchu.cs@gmail.com" ]
chongchu.cs@gmail.com
2b36e3a81b26841d7cc8efc5d2beecf6b1a49a11
0b54d4250fbe91c244bfc28a46e7c36a5e36cd31
/Module/SurfsUp_Challenge.py
b5512dfb1648616d4fd45028095a82431cc8b95a
[]
no_license
rick2stack/surfs_up
03d413898f9d0a235a79543db89ba83b47a2fa36
672bd47d173400242d6fc7e952189392807ae092
refs/heads/main
2023-07-15T02:13:58.895391
2021-08-29T15:16:17
2021-08-29T15:16:17
394,811,320
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
import datetime as dt import numpy as np import pandas as pd import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify #import app engine = create_engine("sqlite:///hawaii.sqlite") Base = automap_ba...
[ "82985823+rick2stack@users.noreply.github.com" ]
82985823+rick2stack@users.noreply.github.com
7ce9433197bacbca3625d3fe9ea0a702c90361df
1cdb017e6ba611cb4b739019f2d6847d73adab4e
/H10_1.py
e75d9c432c0e587784b1d5c3d9c8a5486bcf531c
[]
no_license
cherwin/automate-the-boring-stuff
70c7221f6e6fd39fc3675b7fc88f73fa27795106
09700f119e4964cf9d7d21f3b6bb0ffb7aaead85
refs/heads/master
2020-03-21T14:10:37.293563
2018-07-01T20:38:42
2018-07-01T20:38:42
138,644,594
0
1
null
2018-06-25T20:09:59
2018-06-25T20:09:59
null
UTF-8
Python
false
false
488
py
#! usr/bin/env python3 import logging logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s') logging.debug('Start of program') def factorial(n): logging.debug('Start of factorial(%s)' % (n)) total = 1 for i in range(1,n + 1): total *= i logging.debu...
[ "michellemaas@live.nl" ]
michellemaas@live.nl
fd7ced01e9d737f0054f4f42b05bb91b509b47de
a7ef6aff413d9ecb4a29fc986c710b6813be9667
/cloud_functions/preprocess.py
3bd47a09b437ac0428b0a1f4982e61920e257a8f
[]
no_license
klmilam/ieor4577-sentiment-analysis
04393132c993114f6ae6740291f221042049260b
437bbc99f04e9230e1c1c5b3ccd0b1376e8fc84a
refs/heads/master
2021-09-05T00:37:11.678626
2020-03-10T00:08:02
2020-03-10T00:08:02
240,971,518
0
0
null
2021-08-25T16:00:16
2020-02-16T21:49:39
Python
UTF-8
Python
false
false
3,918
py
"""Preprocessing library to clean and embed tweets""" import json import os from urllib.parse import urlparse import zipfile import tensorflow as tf from nltk.tokenize import TweetTokenizer class PreprocessTweets(): """Library to perform preprocessing for sentiment analysis on tweets.""" #pylint: disable=too...
[ "kmilam@google.com" ]
kmilam@google.com
369600eb04fb78121977a41f64c63cab8ecd8243
6fa0d5d3b61fbce01fad5a7dd50258c09298ee00
/Algorithm/BOJ/1051.py
267eb1c6bd32d770b9a4e55572968cf549d5ad9d
[]
no_license
athletejuan/TIL
c8e6bd9f7e2c6f999dbac759adcdb6b2959de384
16b854928af2f27d91ba140ebc1aec0007e5eb04
refs/heads/master
2023-02-19T13:59:06.495110
2022-03-23T15:08:04
2022-03-23T15:08:04
188,750,527
1
0
null
2023-02-15T22:54:50
2019-05-27T01:27:09
Python
UTF-8
Python
false
false
1,216
py
N,M = map(int, input().split()) base = [input() for _ in range(N)] def rectangular(l): while l: for i in range(M-l): for j in range(N-l): if base[j][i] == base[j][i+l] == base[j+l][i] == base[j+l][i+l]: return (l+1)**2 return rectangular(l-1) retu...
[ "vanillasky84.0627@gmail.com" ]
vanillasky84.0627@gmail.com
037ce96b5fa4c5d09566f3ecd49eced15312ac07
a36cb10aa2d8ec4f98f7130b70c1c9de2bc334a0
/06-Acceso-Base-de-Datos/Ejercicios/ejercicio13.py
b7826fef3479179fc71d8837bd1cc0e60200bd1b
[]
no_license
mrgold92/python
3d71cd69d6f23a46631f56b130ea84a344f79aa1
9dab6e42cb51823e09d54bf6d31ae1367b2bedb2
refs/heads/main
2023-05-07T11:15:38.065893
2021-05-15T15:01:26
2021-05-15T15:01:26
360,465,006
1
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
import pymssql con = pymssql.connect(server='localhost', user='david', password='root', database='northwind') cursor = con.cursor(as_dict=True) idPedido = input("Identificador del pedido: ") cursor.execute("SELECT * FROM orders WHERE OrderID = %d", idPedido) pedido = cursor.fetchone() print(...
[ "davids1_4@hotmail.com" ]
davids1_4@hotmail.com
6d4d0559bdc496f96fdd682b9132b51d9fd0527b
8e8b059fc89410b0345b784997be6dc6e146eea6
/click.py
2fd355ae5e94558d6d8c48a26b4734073e2c313b
[]
no_license
ylly08/Cisco_Automation
36b6e4e0dea2037a64e1cdf44117b5772371bf53
29ac198f4035a48ff716c529ba36e008436d824c
refs/heads/master
2023-03-01T04:34:53.290327
2021-02-07T22:23:44
2021-02-07T22:23:44
335,030,802
1
0
null
null
null
null
UTF-8
Python
false
false
157
py
from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QTextEdit from PyQt5 import uic import sys ## def clickedBtn(self): print('test') #
[ "78171236+ylly08@users.noreply.github.com" ]
78171236+ylly08@users.noreply.github.com
a91abf6d5636baeb0668cc87fc1d2bd83b58edcd
518db5b8149440e7fa68698bfd20f2839b8ca697
/generator/group.py
b7523deed4753d70f3b29c88897887787ae37b77
[ "Apache-2.0" ]
permissive
aogn/python_train
a3cf7a66818764fbc628958321a15d860c4928e1
40131b24633c9771452813872061ca5335edecd8
refs/heads/master
2020-04-29T09:21:00.690232
2019-05-19T18:27:29
2019-05-19T18:27:29
176,021,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
from models.group import Group import random import string import os.path import jsonpickle import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of groups", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 5 f = "data/groups.json" for o, a in op...
[ "a.ognienko@gmail.com" ]
a.ognienko@gmail.com
52da75f4687b6745104bd38ebb4609cff31ace79
e89de1bda96ef95c0b7bb284c82b1fb61fd792fb
/auth/server.py
899eaa5180da7c4fb2c8825e4a4a3f483bdf04f6
[]
no_license
khasanovaa/DC
e7ce2950f49ae014177ca2519df15476c5a04b3e
b82cb81cd8b7a28cd2f7be556efb78f331ded41b
refs/heads/master
2023-08-17T15:30:47.784068
2020-06-08T13:56:52
2020-06-08T13:56:52
245,680,254
0
0
null
2023-08-14T22:10:16
2020-03-07T17:58:45
Python
UTF-8
Python
false
false
5,186
py
import tornado.ioloop import tornado.web import json from Database import DataBase from authconfig import AUTH_PORT import pika import secrets def print_elem(elem): return str(elem) class MainHandler(tornado.web.RequestHandler): def get(self): self.clear() self.set_status(200) respons...
[ "khasanovaaliya19@gmail.com" ]
khasanovaaliya19@gmail.com
e13a845d8ad34ca48f0ed68b71201f4bdde30e96
bd5a5b2e6984b6f537f3dab24cae456de57e615f
/Pokemon/__init__.py
f5ed173e327caf3d87d2c834dc8d95c2536bd8be
[]
no_license
CarefulAstronaut/Python_Fun
be79dd062f84d02434e67c91f9838e1a50e132d4
feefc5df079200875c0b38dfd0a8723ecd1ac4ce
refs/heads/master
2022-06-07T05:56:01.247024
2020-05-05T03:40:31
2020-05-05T03:40:31
260,126,316
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
# -*- coding: utf-8 -*- """ Created on Sun May 3 23:09:42 2020 @author: Mitch @Git: github.com/CarefulAstronaut """
[ "48593150+CarefulAstronaut@users.noreply.github.com" ]
48593150+CarefulAstronaut@users.noreply.github.com
06e5ba2bc7a4b4c2282f1ca9234873a44c3eccb8
f319aeb1e5d489268ade9e9ee8c7f1881608d70f
/utils/metrics.py
ed41baba0b872fa1cff29e445acd7baa8b25fe43
[ "MIT" ]
permissive
AfifCeshter/MD3
d0a59000d50588655cbd2aa085621a688fb74d38
3df45918e33437e9a2309f7965f34f3a75621059
refs/heads/main
2023-08-15T03:16:13.208308
2021-10-12T03:29:33
2021-10-12T03:29:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,259
py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Han" __email__ = "liuhan132@foxmail.com" import torch import torch.nn def evaluate_acc(predict, truth): """ compute the accuracy of predict value :param predict: (batch, _) :param truth: (batch) :return: """ _, predict_max = pre...
[ "liuhan132@foxmail.com" ]
liuhan132@foxmail.com
44bb08d1eb1cf06afe26eafcbb135c4b3e59f333
e31d6c6c74a71daf27d618de4debf59e8cb9f188
/gluon/losses.py
22f050cb0f61e493be60803078e9ba0ce4e905eb
[ "MIT" ]
permissive
vlomonaco/imgclsmob
574ebfbfe4be7a11c8742f34261bc4e7cc1f30be
d0d1c49a848ab146213ef4cbd37239799d0102d8
refs/heads/master
2022-04-18T16:03:11.361053
2020-04-14T06:17:36
2020-04-14T06:17:36
255,555,032
0
1
MIT
2020-04-14T08:39:59
2020-04-14T08:39:58
null
UTF-8
Python
false
false
5,009
py
""" Loss functions. """ __all__ = ['SegSoftmaxCrossEntropyLoss', 'MixSoftmaxCrossEntropyLoss'] from mxnet.gluon.loss import Loss, _reshape_like, _apply_weighting class SegSoftmaxCrossEntropyLoss(Loss): """ SoftmaxCrossEntropyLoss with ignore labels (for segmentation task). Parameters ----------...
[ "osemery@gmail.com" ]
osemery@gmail.com
3800e507e0ad096d70dcd54529c74c7523ece7fe
f3ea8b24bd36df891a5029cc0577f3c254866d6b
/mrmkt/common/sqlfinrepo.py
7bc4088f91f2f972ed657329bea9e43344c0abb7
[]
no_license
dtandersen/mrmkt
c416362810f07e47f0a889ebf52d9eafad880b6f
f5564a4b63239664138af69dabbadf970828fc21
refs/heads/master
2023-01-23T14:41:45.407879
2021-12-21T04:12:16
2021-12-21T04:12:16
200,109,614
0
0
null
2023-01-20T23:39:26
2019-08-01T19:41:14
Python
UTF-8
Python
false
false
10,741
py
import datetime from dataclasses import dataclass from typing import List from mrmkt.common.sql import SqlClient, JsonField from mrmkt.entity.analysis import Analysis from mrmkt.entity.balance_sheet import BalanceSheet from mrmkt.entity.cash_flow import CashFlow from mrmkt.entity.enterprise_value import EnterpriseValu...
[ "git@davidandersen.us" ]
git@davidandersen.us
2aaa480164f301f36f31bc190f51d6e44f83463b
68c19902ad22e2ca97a03ad563743f268db1dbbc
/.env/bin/rst2xetex.py
351232a625a04a67b5a2953c1805546f1dca39f7
[]
no_license
eksat/SatriaFinaceelTest
ef6e0e6c8120c6f6a4c8b7cb9da9369e8bf7f155
69d23d34f0d8de54169edb9a2b50898704bcefd1
refs/heads/master
2023-05-10T17:49:41.892496
2020-06-13T09:32:53
2020-06-13T09:32:53
269,935,480
0
0
null
2021-06-02T02:03:43
2020-06-06T09:42:28
Python
UTF-8
Python
false
false
897
py
#!/Users/satria/FinaceelTest/.env/bin/python # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: import locale locale.setlocale(loca...
[ "42401695+esatria@users.noreply.github.com" ]
42401695+esatria@users.noreply.github.com
7de408bda7a949ce5861b338e05c556e4ed692d7
3125d248b558204df339a923146175b2143508ad
/titanic-death/linear_working_system.py
62c9dfdf6ea4c1f683d37356315ff4cd8929e00c
[]
no_license
lagercat/ml-systems
f613d0e082134bf293fccf88fad5d8f7b035e683
71e3c07506a546bdfc3499658f652b6dac30373a
refs/heads/master
2020-03-20T17:34:03.064979
2018-06-29T21:47:46
2018-06-29T21:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,643
py
import tensorflow as tf from get_data import inp, load_data, load_submit, write_to_file def main(argv): (train_x, train_y), (test_x, test_y) = load_data() feature_columns = [ tf.feature_column.categorical_column_with_identity( key='Pclass', num_buckets=5), tf.feature_column.categ...
[ "malessebastian@gmail.com" ]
malessebastian@gmail.com
c2f18d8a7fb99472db5625ff1cc5f8c84531323b
e68ca6228eba927b81bfc666aa02bbbbfa060053
/byte_pair_encoding/bpe.py
3948cfbb43e67075fe9008a9548515ef35313f2f
[]
no_license
CecilJxSu/nlp-collection
4096d073e1e17570673405f71116b8d44484b661
109e6c98cc5caca5503fe5f94de0047b2e0da19a
refs/heads/master
2022-07-06T01:31:32.587657
2019-11-22T07:24:41
2019-11-22T07:24:41
222,379,738
0
0
null
2022-06-21T23:27:22
2019-11-18T06:37:04
TeX
UTF-8
Python
false
false
888
py
#!/usr/bin/env python3 import re, collections def get_stats(vocab): pairs = collections.defaultdict(int) for word, freq in vocab.items(): symbols = word.split() for i in range(len(symbols)-1): pairs[symbols[i],symbols[i+1]] += freq return pairs def merge_vocab(pair, v_in): v_out = {} bigram_p...
[ "ceciljxsu@gmail.com" ]
ceciljxsu@gmail.com
2e1c49c9ad0740b75147789a0c0d4b5d54c026b1
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D00A/JAPRESD00AUN.py
4fb33d38de066ce2be86ab6db137a31ba760f7d6
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
2,391
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD00AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 1, MAX: 2}, {ID: 'PNA', MIN: 1, MAX: 99, LEVEL: [ ...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
35791ba0523f6bea102456d45c4209ed01ba978f
783d2084639184ee5a0799948987d1846e1a3309
/src/preprocessing/Preprocessor.py
794eab450fe2a763a167df3d8303446075c84e93
[]
no_license
olegDk/data_preprocessing
0b55b07a65edbd341ba09b70bdf23d5baa964bfb
c41bf373b792e78e8b8864a0c89026163bdf98a4
refs/heads/master
2020-11-25T12:58:05.915400
2019-12-17T19:02:10
2019-12-17T19:02:10
228,674,564
0
0
null
null
null
null
UTF-8
Python
false
false
3,755
py
import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import StandardScaler, MinMaxScaler pd.options.mode.chained_assignment = None class Preprocessor(BaseEstimator, TransformerMixin): def __init__(self, scaler_type: str = 'standard'): ...
[ "oleg.davydiuk1995@gmail.com" ]
oleg.davydiuk1995@gmail.com
9e53dc3922044388bd092d80bd674f9ba64a8e1e
32f048a89a5d0fcba80b4d1df34a86e1ec849657
/src/day1/day1.py
cb1c982acc11999c4ec2b0e423d9e16b0b6210ff
[]
no_license
Z-P-J/PythonProgrammingEveryday
ef7e6c7dfd750a9ca54ba68bc39fdac52e133b45
895c8cc66d7baa3e1acd6bc8e0091df35b54a40a
refs/heads/master
2020-08-29T23:35:18.153960
2019-12-21T14:39:04
2019-12-21T14:39:04
218,203,367
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
''' 一球从100米高度自由落下,每次落地后反跳回原高度的一半; 再落下,求它在第10次落地时,共经过多少米?第10次反弹多高? ''' total = 0.0 temp = 100.0 for i in range(10): # 落地 total = total + temp # 反弹 temp = temp / 2 if i == 9: print("total = %f\n" % total) print("temp = %f\n" %temp) total = total + temp
[ "37832345+Z-P-J@users.noreply.github.com" ]
37832345+Z-P-J@users.noreply.github.com
96740dde834143aebf77144f9f9b5d732e356769
6c564d94f5351426cf18139758ea960582ddfbf6
/cz/newTencent/newTencent/items.py
327403e1aa7c38a3397a22ed6bf87b92e2f6f14a
[]
no_license
Fudeveloper/python
c4fbf1325bc40cc1a673eb2b92d6dd5d962658c3
cda3ca5e4b689000839f365f0c408bdab46521ac
refs/heads/master
2021-01-01T17:06:34.220994
2017-09-08T03:51:22
2017-09-08T03:51:22
97,908,484
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy class NewtencentItem(scrapy.Item): name = scrapy.Field() # 详情链接 link = scrapy.Field() # 职位类别 category = scrapy.Field() # 人数 ...
[ "wo951127" ]
wo951127
e1acda8fbe8f2ac2e632703766e1c62d312fa38b
0f49e106ef40ae3cd5544319e1ace91323d9485a
/toolbot/scripts/google_images.py
af28db44bf2cb75d85c356d8895e09ef148c4164
[ "MIT" ]
permissive
tgerdes/toolbot
1790718800230e82d96f4a236abad82e4036c74a
96d684942f817f183ff9d7b0436dbd2d8bbb9b0b
refs/heads/master
2021-01-21T06:53:19.858082
2014-09-17T14:08:17
2014-09-17T14:08:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
import re import json import asyncio import random import aiohttp GOOGLE_IMAGE_API = 'http://ajax.googleapis.com/ajax/services/search/images' def plugin(bot): @bot.respond(re.compile(r'(image|img)( me)? (.*)', re.I)) def image_me(msg): asyncio.Task(imageMe(msg, msg.match.group(3), cb=msg.reply)) @...
[ "thom.gerdes@gmail.com" ]
thom.gerdes@gmail.com
a5195a0440098dbf208d890e6e976bb32d1963bf
386645c18f7100cf056153082666c9deed39364a
/mobapp/urls.py
8bf52346eb57f9e413ce0d7fe43bc26569972dc7
[]
no_license
EscEller/Invictus-project
05e566cfc24e188d36d20928ab3a572435487e2f
82cc3d0715f0450d59baa6db6bc54e1833edc691
refs/heads/main
2023-03-11T23:09:49.156958
2021-03-03T09:55:57
2021-03-03T09:55:57
344,030,825
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
"""mobapp 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') Clas...
[ "noreply@github.com" ]
EscEller.noreply@github.com
a6fa34830ee3192b719d7b8f5eb427d212cd27e5
3fb93b805cd9c6d19f21a443001fec4597f9105f
/scripts/uncertainty_scripts/train_all_tables_rand.py
39396c100a5fe4dccab14176fe232075fcc79537
[ "Apache-2.0" ]
permissive
neuroailab/curiosity_deprecated
c3a5a28d93b5bb0d923719c8fe289cfc9a9feec3
65f7cde13b07cdac52eed39535a94e7544c396b8
refs/heads/master
2021-08-15T08:07:34.845737
2017-11-15T19:35:45
2017-11-15T19:35:45
69,374,295
0
0
null
null
null
null
UTF-8
Python
false
false
19,145
py
''' An object and a table, this time random. Note: first experiment didn't have the exp id switched, so it is tab. ''' import sys sys.path.append('/home/nhaber/local_copy/curiosity') sys.path.append('/home/nhaber/local_copy/tfutils') import tensorflow as tf from curiosity.interaction import train, environment, dat...
[ "haber.nick@gmail.com" ]
haber.nick@gmail.com
14373eb13da0c8a397a80097e05d062bdcde8455
f20abf7698b43b52ead1613a5b7ded2c4acec933
/tests/system/conftest.py
3a89ba763ba9172b49ccaca750728d701474ff6a
[ "Apache-2.0" ]
permissive
e7dal/gapic-generator-python
85aa63d5371632bece068d481038d9725fb276a4
eb4f4aa014db42dc240bbca600f4c59eff155dc9
refs/heads/master
2022-11-22T04:45:33.152563
2020-07-17T02:47:37
2020-07-17T02:47:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,927
py
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "noreply@github.com" ]
e7dal.noreply@github.com
8b0a8b7988defedcd15dfe7a31ee54d8f36cc403
9c3d21b36167447835beff437b5c865a0a12217a
/test/test_pima.py
8f67b22746b09152c326908507989e6e9a1c4ed8
[]
no_license
alamaranka/ML_TensorFlow
3188c8c2c09093200037606ec0e1f793bd35bbb8
0ab325f1ae0752cf035af102058fe00e26baecb1
refs/heads/master
2020-05-03T01:47:28.594300
2020-04-19T18:06:45
2020-04-19T18:06:45
165,538,966
0
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
from neural_nets import neural_nets from sklearn.preprocessing import LabelEncoder, MinMaxScaler from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score import pandas as pd import warnings warnings.filterwarnings("ignore") df = pd.read_csv('datasets/pima-indians-diabet...
[ "noreply@github.com" ]
alamaranka.noreply@github.com
07857e2eb62df9babde8c7eb0e291b84e707c4c8
79052ee42a843f6389dc7a4ae2b92512590715d9
/score.py
d354d5ce05ea36d8e5c8a18bf12fe120fe970d0a
[]
no_license
hlorenzi/mariokartbot
e72206842a6953bcbb8fc93d3ecba83ea0a4025c
30816ea28e393a875f1d8e8482b6ee6555972799
refs/heads/master
2021-01-16T05:28:48.520287
2017-08-14T23:15:44
2017-08-14T23:23:36
99,989,915
1
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
import math from bisect import bisect_left from bisect import bisect_right class ScoreManager: def __init__(self, cfg): self.cfg = cfg self.user_id_to_score = dict() self.sorted_scores = list() self.sorted_user_ids = list() def get(self, user_id): return self.user_id_to_score.get(user_id, self.cfg["...
[ "hlorenzi12@gmail.com" ]
hlorenzi12@gmail.com
830510183c1a21c8df0759aa9047cb4d65f415a3
639c1f8c8bec57cb49665142ae2985d50da8c757
/mysite/admin.py
5bf0c8b4754467c15524a98be087b8fd1762af6d
[]
no_license
info3g/hospitalevent
4c7d66d3af5b1e0e3f65cdd375b99324042f7c9b
fdd17bd7ae0828bd5bbdcf8fc61689f5485a571f
refs/heads/master
2022-11-05T12:47:23.700584
2019-04-23T05:51:05
2019-04-23T05:51:05
166,350,181
0
1
null
2022-10-28T12:29:33
2019-01-18T05:39:27
Python
UTF-8
Python
false
false
464
py
from django.contrib import admin from .models import * # Register your models here. admin.site.register(promisAnswers) admin.site.register(diseases) admin.site.register(symptoms) admin.site.register(treatments) admin.site.register(userProfile) admin.site.register(userProfileSymptom) admin.site.register(userProfileSympt...
[ "infothreeg@gmail.com" ]
infothreeg@gmail.com
23e0314fbfb3f4c418ab1b8c22231ae3cef34e7e
18dc535c39f6e003d53c7764ef6fad9725a3a231
/two/ddtt_spider/dytt.py
a9e0489784763a0c9220b56413494305f0f077e2
[]
no_license
zy-yz/Crawler
6cbd6d4db60a693a83e0fb69506741cc20cae4b8
e3e95899a4b6ad4a423cae1aa9288f5fd60f96cc
refs/heads/master
2022-06-28T05:43:57.904478
2020-05-14T13:18:19
2020-05-14T13:18:19
261,789,601
0
0
null
null
null
null
UTF-8
Python
false
false
2,149
py
from lxml import etree import requests BASE_DOMAIN = 'https://www.ygdy8.net' HEADERS ={ "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/" "537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36", 'Referer': "https://www.ygdy8.net/html/gndy/dyzz/list_23_2.h...
[ "1090712762@qq.com" ]
1090712762@qq.com
af84d173b03bc4baf8608acb5593489342c5e7e9
10bff8988a32aa1870a069893faec946ce0e384c
/pemilu/urls.py
18cc8322ddb81822fc28370e16ae6ac5ae8d9502
[]
no_license
jauharibill/pemilu-django
ec795ada16e587e110b7b6dcd07f1927a612ffe1
93ce289b3e05e89ff53b2c07ab7edffbe144b86d
refs/heads/master
2020-03-25T11:35:12.791464
2018-08-06T14:35:55
2018-08-06T14:35:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
from django.conf.urls import url from . import views urlpatterns =[ url(r'^$', views.index, name="index"), url(r'^show/(?P<choice>[0-9]+)/$', views.show, name="show") ]
[ "xcodebill@gmail.com" ]
xcodebill@gmail.com
8a87d3c15006f967d5b0d48dbd228929680398d2
1a23cc660649efe857808fef96740b4046f14713
/mysite/views.py
201c61bd6daca2e61d1d912d5faaef4ddd4cd0ba
[]
no_license
itd/djtest
b1df94b0651bf94582778338d472d42e583c1497
4903d0624892501ca3a361ce2feca18c12d8d082
refs/heads/master
2021-01-10T10:24:08.491299
2015-12-10T13:55:27
2015-12-10T13:55:27
47,764,800
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): return HttpResponse("Hello world. Polls index.")
[ "kurt@tool.net" ]
kurt@tool.net
0d10c4b5302f777b5282afe718c2615460335268
b7b8cac59c24c28efb3002f639865121d3b1f3e1
/hyperion/densities/flared_disk.py
2d8a944f205b11a0c8019c98cbbcd14e8881149c
[ "BSD-2-Clause" ]
permissive
koepferl/hyperion
51a461f3cde30faa6dc82f63803b659a831273d1
d43e1d06889e8b649038b85ef6721c64dd269a4e
refs/heads/master
2020-04-01T19:11:18.373471
2015-01-14T13:31:36
2015-03-30T15:38:08
34,328,089
0
0
null
2015-04-21T13:17:41
2015-04-21T13:17:40
null
UTF-8
Python
false
false
13,172
py
from __future__ import print_function, division import numpy as np from astropy import log as logger from ..dust import SphericalDust from ..util.constants import pi from ..util.convenience import OptThinRadius from ..util.integrate import integrate_powerlaw from ..util.validator import validate_scalar from .core im...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
67fa7ae938579c1b1bf7859b4a2ed0baf463a87b
02440b8275ef8697943d8a63c6149b3e0eb5631a
/services/users/project/tests/test_config.py
aa942ddec2aa763cc09102d6c5aab00f620702bd
[ "MIT" ]
permissive
EmEmGee/oddityhr
078576b599281187f180d2475273294a380d45f4
f6d8dad18b15089e2e34c36c45a6e0795a3db2db
refs/heads/master
2020-08-01T00:05:14.980208
2019-10-07T14:53:55
2019-10-07T14:53:55
210,795,207
0
0
MIT
2019-09-25T08:33:22
2019-09-25T08:33:22
null
UTF-8
Python
false
false
2,265
py
# services/users/project/tests/test_config.py import os import unittest from flask import current_app from flask_testing import TestCase from project import create_app app = create_app() class TestDevelopmentConfig(TestCase): def create_app(self): app.config.from_object("project.config.DevelopmentConf...
[ "24703421+EmEmGee@users.noreply.github.com" ]
24703421+EmEmGee@users.noreply.github.com
3b64b90411be6f00cfcba8c6d834c3c044629f05
8bb4a472344fda15985ac322d14e8f4ad79c7553
/Python3-Core/src/test/prompto/runtime/o/TestFilter.py
2b491c5cd234908a06c3b10241185209545c0ad8
[]
no_license
prompto/prompto-python3
c6b356f5af30c6826730ba7f2ad869f341983a2d
64bd3d97d4702cc912097d41d961f7ab3fd82bee
refs/heads/master
2022-12-24T12:33:16.251468
2022-11-27T17:37:56
2022-11-27T17:37:56
32,623,633
4
0
null
2019-05-04T11:06:05
2015-03-21T07:17:25
Python
UTF-8
Python
false
false
550
py
from prompto.parser.o.BaseOParserTest import BaseOParserTest from prompto.runtime.utils.Out import Out class TestFilter(BaseOParserTest): def setUp(self): super(type(self), self).setUp() Out.init() def tearDown(self): Out.restore() def testFilterFromIterable(self): ...
[ "eric.vergnaud@wanadoo.fr" ]
eric.vergnaud@wanadoo.fr
8a6911e8f3aa7b721efb786252483969a3699fb6
556f1b50acda9365228173309430125ebd8308f7
/anonymousfunction.py
eff923daa5adc95840800b1b0b2a7b1d98dbc717
[]
no_license
Bharanidhar-Reddy/temperoray
65c27a45339e1560e1ceb33b66dafc57498c6285
8775f89d3034000adf30cdd14e0aa9cb485b210d
refs/heads/main
2023-04-08T13:54:27.736412
2021-04-12T14:49:08
2021-04-12T14:49:08
357,202,169
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
# anonymous # Inline Functions # lambda Functions data = (lambda n1, n2: "Hi " + n1 + " " + n2)("Boss", "Bunny") print(data) li=[1,2,3] data2 = lambda *n1 : n1 print(data2(li)) add = lambda a, b: "Sum is {0}".format(a+b) print(add(5,6)) if 5 > 2: print("Yes")
[ "BharanidharReddy.Marthala@xs.nestle.com" ]
BharanidharReddy.Marthala@xs.nestle.com
c25a5a45f864948e400731e17e25a441fd5747c1
11f17f0bf564b81ae8befc3d47f03ed77a6136b5
/genmsg/build/catkin_generated/genmsg-extras.cmake.installspace.context.cmake.py
e9d57443659d4085270be68a2ce0115a20cb6fa9
[]
no_license
shishenghuang/octomap_cuda
b8f7472b3f0b31ece7cd565646c843a6a7af2e4c
936908bff027283ace5bac81af57454fd097a3b4
refs/heads/master
2021-05-18T12:14:53.768976
2020-03-30T08:18:32
2020-03-30T08:18:32
251,239,808
6
1
null
null
null
null
UTF-8
Python
false
false
1,327
py
# generated from catkin/cmake/template/cfg-extras.context.py.in DEVELSPACE = 'FALSE' == 'TRUE' INSTALLSPACE = 'TRUE' == 'TRUE' CATKIN_DEVEL_PREFIX = '/home/huan/git/octomap_cuda/genmsg/build/devel' CATKIN_GLOBAL_BIN_DESTINATION = 'bin' CATKIN_GLOBAL_ETC_DESTINATION = 'etc' CATKIN_GLOBAL_INCLUDE_DESTINATION = 'include...
[ "shishenghuang.net@gmail.com" ]
shishenghuang.net@gmail.com
d0ac59455b0338b38c3c6fb28dd4f59a9259b261
6eb35cb8d53ad226de2a6f78e16cb665644fbbdf
/orca/topology/alerts/matcher.py
b842957d8317f0f69e8a4cdeb3fccd3a67d98a4b
[ "Apache-2.0" ]
permissive
openrca/orca
631fbc55f72d7dd01563ebc784a259bf0fa75d22
3b3ddcb2c14cc550c586f64eb6ca01e827fbc451
refs/heads/master
2023-05-30T22:38:55.431661
2022-09-11T09:33:24
2022-09-11T09:33:24
218,142,874
88
18
Apache-2.0
2023-05-01T21:16:56
2019-10-28T20:51:10
Python
UTF-8
Python
false
false
1,211
py
# Copyright 2020 OpenRCA Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ "zurkowski.bartosz@gmail.com" ]
zurkowski.bartosz@gmail.com
cbc90977e6ca2f586faaeb2280ba99021af546e6
37738f194dbe5e2d8300235c7e8dca753a8e1788
/app/__init__.py
67267aa7b42db7055050a74e2ad9e4f22c5b50c1
[]
no_license
996473438/mylogintest06
797678f0fc3a9a868da20bffa08a91beec5811e0
0f4eef704e225e84a91fdecef5809f4dac9f2e35
refs/heads/master
2021-06-17T02:58:28.282171
2017-05-24T09:42:49
2017-05-24T09:42:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
from flask import Flask from config import config from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def create_app(config_name): app = Flask(__name__) app.config.from_object(config[config_name]) config[config_name].init_app(app) db.init_app(app) from .main import main as main_blueprint ...
[ "842887233@qq.com" ]
842887233@qq.com
35c4bdebc781d3d87cdc25b59b881a5ba5da2bed
a438748ac89d53b19e7f4130529906896f059b25
/Композиция.py
8cc2c2abe97d5c1760e95ec575d7544e5ac3e6d1
[]
no_license
Alexfordrop/Basics
90ead9294727a823eb044e5f2f69d8f29133d150
eda400424b2c72bd5e01a6c7cb14ad7ae29477d4
refs/heads/master
2023-06-08T16:42:26.704163
2021-06-27T20:46:27
2021-06-27T20:46:27
329,421,907
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
class Salary: def __init__(self, pay): self.pay = pay def getTotal(self): return (self.pay*12) class Employee: def __init__(self, pay, bonus): self.pay = pay self.bonus = bonus self.salary = Salary(self.pay) def annualSalary(self): return "Total: " + st...
[ "mishechkin.aleksei@mail.ru" ]
mishechkin.aleksei@mail.ru
8cd19573f4a8e7d1385ed68d3756130132e38628
fe8bfe081ef00f3cf217d5d44587670a4ed01e22
/websec/xss.py
f314580c3c5c01cbd903e04bd1bd78050f636a6f
[]
no_license
benediktkr/misc
93d0b38f3703fa2efa45c9142fffb20e2d5439d5
dd422362d2c17d77ea366589cde0e339a00412ff
refs/heads/master
2020-04-01T08:20:38.231118
2014-11-12T12:37:04
2014-11-12T12:37:04
17,826,307
1
0
null
null
null
null
UTF-8
Python
false
false
2,672
py
"""An encoding library to prevent against XSS. Implemented the rules described at OWASP Wiki: https://www.owasp.org/index.php/XSS_%28Cross_Site_Scripting%29_Prevention_Cheat_Sheet Not meant for production use. """ # --------- # Rule #0 # # Use a whitelist approach and neverinsert untrusted data without escapin...
[ "benedikt@audkenni.is" ]
benedikt@audkenni.is
5e0772427df693e3f2a8120f1d765d29e6ead877
b2ce9a394c82a891842620f61f0fd1b3dded4458
/SOFTDEV/data_proj/app.py
7b2e12124dd2d1936af06eda3b4094251e454d93
[]
no_license
angela97lin/Senior-Year-Projects
00fc3ef1eef330b64ebfa42d0b2929c8e956098e
63ec99bf001704a1649225e9f9aab78e19447104
refs/heads/master
2020-07-10T03:59:46.404984
2016-02-02T20:55:57
2016-02-02T20:55:57
26,330,583
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import google, re, datasearch from flask import Flask, render_template, request, redirect app = Flask(__name__) @app.route("/",methods=["GET","POST"]) @app.route("/index",methods=["GET","POST"]) def index(): if request.method=="GET": return render_template("index.html") else: button = request.form['s'] query ...
[ "ange@mit.edu" ]
ange@mit.edu
55534ee709363b369dcf170504fc395ae6dc4f75
c4060e70b65a215eaac820e91a4600bf040b7f6f
/Personality Prediction/finetune_models/utils/linguistic_features_utils.py
03a67b105a52baf5c8e295855e027d485ec61157
[ "MIT" ]
permissive
Srinivas200599/PrePred
fa291842da518129e564dfbb3ff7d5b0194fb625
10733b5871c5b24351d5548c5b65788aa335d4bc
refs/heads/main
2023-07-07T15:04:05.511539
2021-08-11T06:47:09
2021-08-11T06:47:09
394,885,734
0
0
null
null
null
null
UTF-8
Python
false
false
4,145
py
import numpy as np import pandas as pd import re import preprocessor as p from scipy.io import arff def read_and_process(path): arff = open(path, 'r') attributes = [] values = [] is_attr = True arff.readline() arff.readline() while is_attr: line = arff.readline() if len(line...
[ "addepallisaisrinivas@gmail.com" ]
addepallisaisrinivas@gmail.com
7909f7285c70e1cd8f35d44e1e0df1567e7c7104
d4a7ed22a20599c2f12a550b782327eea312cdc1
/doc/src/tutorial/src-odespy/osc2.py
de868146836989337530b80f18b4bb76a3852882
[]
no_license
rothnic/odespy
dcfca8593d738604fc7b6b66fbe8083c7358fc5c
dd50508030ab61047ca885bf0e842f1ad4ef38f4
refs/heads/master
2021-01-15T10:51:19.854871
2015-05-02T03:51:30
2015-05-02T03:51:30
35,228,290
1
0
null
2015-05-07T15:33:52
2015-05-07T15:33:52
null
UTF-8
Python
false
false
1,357
py
"""As osc1.py, but testing several solvers and setting sin(theta) to theta.""" from math import pi, sqrt class Problem: def __init__(self, c, Theta): self.c, self.Theta = float(c), float(Theta) self.freq = sqrt(c) self.period = 2*pi/self.freq def f(self, u, t): theta, omega =...
[ "hpl@simula.no" ]
hpl@simula.no
221b1b7d5f845d6d7746c0ed9bb12d2e378effb4
14b8cf0b67104b53534678b8c0e9525ace4714ff
/advanced/slots.py
dea855f1e73663fbad4d4b3eedbf4b439dc4301c
[]
no_license
bhfwg/py_learn
bb11898fd81f653643fc61949f43df751d317fcb
eca9da748bada67357961d1581d8ec890a3385f8
refs/heads/master
2020-03-27T15:01:25.881792
2018-06-05T01:36:26
2018-06-05T01:36:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
#!/usr/bin/env python # -*- coding: utf-8 -*- class Slot(object): __slots__ = ('x', 'y') s = Slot() # ## AttributeError: 'Slot' object attribute '__slots__' is read-only # s.__slots__ = ('x', 'y', 'z') class ListSlot(object): __slots__ = ['x', 'y'] def __init__(self): self.x = 1 self...
[ "penomivy@gmail.com" ]
penomivy@gmail.com
87413cada490a62e13fcdef1d96788fb6dfc038b
577ef269a3a04d475bb23bd824e717fc3dae8622
/pyglmnet/externals/sklearn/utils/config.py
7a6bc701f02f224cc473125fc06b7c430caeb938
[ "MIT" ]
permissive
glm-tools/pyglmnet
4b6583cbd28617b8ee58a8f59b1bc3c2f453b0e5
294fc6392e3228118e2a7932494d4665cb0c7c22
refs/heads/master
2022-02-28T09:08:18.321427
2022-02-08T15:54:13
2022-02-08T19:00:22
55,302,570
240
72
MIT
2023-08-17T17:49:08
2016-04-02T15:46:24
Python
UTF-8
Python
false
false
685
py
"""Global configuration state and functions for management """ import os _global_config = { 'assume_finite': bool(os.environ.get('SKLEARN_ASSUME_FINITE', False)), 'working_memory': int(os.environ.get('SKLEARN_WORKING_MEMORY', 1024)), 'print_changed_only': False, } def get_config(): """Retrieve curren...
[ "jasmainak@users.noreply.github.com" ]
jasmainak@users.noreply.github.com
12a576e8a31e61fea7f5a3f9fe96915166a395ed
319b151b0d12e2d78db7ec16d4f9787921a82e09
/Application_Main/Application_Main/settings.py
8e0e1edc0d5e47d780e8b2f5be7917f7b4b063b2
[]
no_license
AnkitV-Git/Django-Hospital-Management-System
ea03ec25188f9a9fdfa586357ef512836cf04e17
3d5f66a7450c46924524c805daecfe5f4b5bf5ed
refs/heads/master
2023-03-15T20:37:08.452358
2020-09-23T05:09:33
2020-09-23T05:09:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,519
py
""" Django settings for Application_Main project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ imp...
[ "devankitgupta01@gmail.com" ]
devankitgupta01@gmail.com
5aef16b6aeb2d157280392287cf28cad33e25528
9ac205e4d8f111608d1abbcfa78b5b6598c17955
/33.搜索旋转排序数组.py
d447ed77448cc4578fc79c195a6ccb85bf544fb8
[]
no_license
oceanbei333/leetcode
41ff0666da41750f7d3c82db53ec6f7f27125d3e
5d29bcf7ea1a9e489a92bc36d2158456de25829e
refs/heads/main
2023-03-16T18:17:25.232522
2021-02-28T04:56:40
2021-02-28T04:56:40
319,561,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
# # @lc app=leetcode.cn id=33 lang=python3 # # [33] 搜索旋转排序数组 # # @lc code=start from typing import List class Solution: def search(self, nums: List[int], target: int) -> int: return nums.index(target) if target in nums else -1 def search(self, nums: List[int], target: int) -> int: left, rig...
[ "hyram@wudun.net" ]
hyram@wudun.net
b5b2640ca99e082cad391347ae259fbcde256603
a08f02c9fef7473c4c1a2f72de0edf32471f26f2
/tango_with_django/rango/migrations/0002_auto_20160326_1944.py
860c0520b5cb95729cbf4be5f59be842ea4dc2ba
[]
no_license
yOPERO/demo
467310d4075cdfe0568948f791c2aa29bb20951a
00182f538ec351b02106470e176f6dd8849f18e6
refs/heads/master
2016-08-08T20:12:40.915450
2016-03-26T20:21:59
2016-03-26T20:21:59
54,794,462
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-03-26 19:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rango', '0001_initial'), ] operations = [ migrations.AddField( m...
[ "yopero666@gmail.com" ]
yopero666@gmail.com
b1863665d5df8299f85d024f894cc4a58c771faa
decb32e8dacd8f8b3f44ed80b88b41c19d8f49f4
/utils.py
0e92a5b321ec4bec53ed434c6cc830d33e5fa414
[]
no_license
YouvenZ/PET-anomalies-detection-in-bayesian-framework
1e2eb1b857e956c33e833f143c34c3cb7f4f318e
07ef95fbe4d4a55428dac7b93773b985e391e714
refs/heads/master
2022-12-19T08:22:45.590791
2020-09-28T13:33:03
2020-09-28T13:33:03
268,460,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
import torch import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F import matplotlib.pyplot as plt def truncated_normal_(tensor, mean=0, std=1): size = tensor.shape tmp = tensor.new_empty(size + (4,)).normal_() valid = (tmp < 2) & (tmp > -2) ind = valid.max(-1, keepd...
[ "rachid.zeghlache@etu.u-pec.fr" ]
rachid.zeghlache@etu.u-pec.fr
61334443dff95bdd7751b514c74720f8be96eb4f
1ab788ce84e446a98b085b62e1e17f8a2afa148d
/문제풀기/2112. [모의 SW 역량테스트] 보호 필름.py
f68fa9c9fa62e32bd2c49165bc5c321e56ed8bda
[]
no_license
kimjy392/exception
884dd26e1ec6f1c0357c1fe000742b1562adbeaa
b37e9c2f70adae6b93b94b86f96512469f431739
refs/heads/master
2022-12-11T20:33:25.632561
2020-08-29T13:26:08
2020-08-29T13:26:08
195,989,162
1
0
null
2022-12-06T23:20:02
2019-07-09T10:43:35
Python
UTF-8
Python
false
false
3,783
py
# def count(): # global isuse # isuse = [False] * W # for j in range(W): # i, start, cnt = 0, 0, 0 # while i < D: # if tboard[start][j] == tboard[i][j]: # cnt += 1 # else: # cnt = 0 # start = i # continue ...
[ "kimjy392@gmail.com" ]
kimjy392@gmail.com
26e5e4e336778eb55b1442f90880684ad2b58a5f
833db6ec88734aa3b694730f38ad001e6b81d8c5
/jobs/migrations/0003_auto_20191130_1515.py
c0589e5fc3c5e1a21bf93ee8b12ae5e56a1f7104
[]
no_license
BhanujaAggarwal/MahilaHaat
2f48baddb9515e88e45f9d7c66e5fce12bb3e552
2d8d76d2b52c4326b517dee571f4808616d7fdb4
refs/heads/master
2022-12-09T08:32:19.967438
2020-06-18T15:15:26
2020-06-18T15:15:26
232,671,348
1
1
null
2022-12-08T05:25:29
2020-01-08T22:19:44
Python
UTF-8
Python
false
false
811
py
# Generated by Django 2.0 on 2019-11-30 15:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('jobs', '0002_auto_20191127_1736'), ] operations = [ migrations.AddField( model_name='joblisting', name='gender', ...
[ "aggarwal.bhanuja@gmail.com" ]
aggarwal.bhanuja@gmail.com