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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56c2dc305f24ba5731f349d4284d1ede0e056579 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/ebs-default-kms-key-id_modify.py | 9590bdb3b63ab3aa9cd39ae2bf409a3fec3eef4f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/modify-ebs-default-kms-key-id.html
if __name... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
24afdc57d33138a22371de464d7a9b191044f405 | 70be3c06f85f79e5660a1943e08651c6a5dc1032 | /stats_test.py | 0c7911d12bc2571e969d8cd8d612a8f513152511 | [] | no_license | archisman-panigrahi/ppa-stats-1 | fa2353caedd88f3284e3cb8e723c676cefd9ad97 | bb69387c122fa9d532aa5917938a3df3caa77ad9 | refs/heads/master | 2023-08-22T12:51:32.148712 | 2021-06-17T04:44:49 | 2021-06-17T04:44:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | import collections
from launchpadlib.launchpad import Launchpad
from pprint import pprint
import os
_lp_cachedir = os.path.expanduser("~/.launchpadlib/cache/")
launchpad = Launchpad.login_anonymously('anon', 'production', _lp_cachedir)
def get_binaries(ppa_owner, ppa_name, package):
owner = launchpad.people[ppa... | [
"hsheth2@gmail.com"
] | hsheth2@gmail.com |
e30eac1ded6ffcfd4458f5a272fdbbeb01c07f3a | f3a7eae3031bb9afe75116a9b86278490ac4a7e6 | /text/symbols.py | c329f2df647246d4d8e564a02e78e26b68ac2691 | [
"BSD-3-Clause",
"MIT"
] | permissive | LOCS-AI/Multilanguage_Tacotron_2 | ea34c4fb41e8112537529945b5a31cf2e78d0610 | 82c788fb26d93c6735c54c2fe4ae7bcbd0eec69f | refs/heads/master | 2022-12-31T01:39:57.432804 | 2020-10-08T00:04:58 | 2020-10-08T00:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """ from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. '''
fr... | [
"thien@locslab.com"
] | thien@locslab.com |
20a86eda7d13a8fc89be63deebdf830ce2d59c53 | 3a8050cea13e94853954d52ff55552b0c3d8a2b1 | /extendedmodels/Race.py | 1dfc5f0b67395a14503170a067815fbb432fb8a9 | [] | no_license | marcelomrocha/frecog | eb5fb606fbeeff78982cf4322584cac1f1f84202 | 181a86df6e11203081372538fae274fbd37cfc89 | refs/heads/master | 2023-04-16T22:59:34.622823 | 2021-04-12T01:36:03 | 2021-04-12T01:36:03 | 355,626,321 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | from basemodels import VGGFace
import os
from pathlib import Path
import gdown
import numpy as np
from keras.models import Model, Sequential
from keras.layers import Convolution2D, Flatten, Activation
import zipfile
def loadModel():
model = VGGFace.baseModel()
#--------------------------
clas... | [
"noreply@github.com"
] | marcelomrocha.noreply@github.com |
325a3b9477e74cb62718555392992eecbe79e947 | e37665534d517821f1bdb907902a818773d28e58 | /autotrading/scheduler/trader.py | f9a8da82d4570e2ec8494617f00fdbc34d7505f2 | [] | no_license | hyeon95y/tutorial_trading_2 | 2103cc27c4ced490cb98e24d6c8e707ac4d51d2c | 1a5526deeffd50784fdeaf408416be060dadccb9 | refs/heads/main | 2023-02-28T05:26:29.245523 | 2021-02-06T07:37:51 | 2021-02-06T07:37:51 | 335,929,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,832 | py | import configparser
import datetime
from celery import Celery
from autotrading.db.mongodb import MongoDbHandler
from autotrading.machine.korbit_machine import KorbitMachine
from autotrading.pusher.slack import PushSlack
app = Celery(
"get_coin_info",
backend="redis://localhost:6379/0",
broker="redis://lo... | [
"hyeon95y@gmail.com"
] | hyeon95y@gmail.com |
34055673d955ae3740bf5aea6ba66a3cb020511c | 8c770324ddd14971f977f49ed29be2360d4ace6c | /assignment2.2.py | 267c9fdede76f5ec4fce384ecd620e91be5f89b8 | [] | no_license | Tathagatac001/Python_assignment | 9db4b0d9325696d4391fbf2723531b9dd765764b | 6b55546174a2a70a89e062e8680ab3b3d330fb47 | refs/heads/master | 2018-09-10T03:34:28.844667 | 2018-06-05T09:40:02 | 2018-06-05T09:40:02 | 115,848,048 | 0 | 0 | null | 2018-02-10T06:35:10 | 2017-12-31T06:52:47 | Python | UTF-8 | Python | false | false | 158 | py | my_input='*'
for i in range(0,2):
for j in range(1,6):
if i == 0:
print my_input * (j-i)
if i != 0 and (6-j-i) != 0:
print my_input * (6-j-i) | [
"noreply@github.com"
] | Tathagatac001.noreply@github.com |
e2305deb0d46015fcf8ec048392eb7496180110b | 73ed323e7fc049dd1dff3b6556987a5ed11db48e | /roman_to_integer.py | 1502741d73e71598134f514d19e6416dc6b0af1e | [] | no_license | andyOrigin123/LeetCode_easy_problems_with_python3 | 3c81fe5fac1cb0201ae1c37b5dbaea7531a3a4b5 | ede0c8ec7d325fc18741ca903b45e8d2ef963039 | refs/heads/master | 2020-04-30T20:54:39.944731 | 2019-03-26T15:11:01 | 2019-03-26T15:11:01 | 177,081,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | """
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve i... | [
"noreply@github.com"
] | andyOrigin123.noreply@github.com |
03608d220d4d293c64e7d19d2c5178953574c174 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7/W_w_M_to_C_pyr/pyr_6s/L7/step10_a.py | 6c005ce2d39cf14a6d40bc0a6f470140b0365a40 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942,122 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
b3de1c46413851b6c79b57c8ef17df6ce6239f08 | 7af268d7aa98473612afcb21fdeaf9ae4bfd6a5c | /electra_spacing/dataset/dataset.py | 4d540cb9b136e5ae3c9025ed54b60e7f1586c678 | [
"Apache-2.0"
] | permissive | seujung/electra_spacing | 3db19460a64cb9acde3d55e5ff72ba2a905ea3a1 | 7f7711567fff68284546e081f4236647dba6b5ac | refs/heads/master | 2022-11-28T14:04:08.971835 | 2020-08-14T13:48:41 | 2020-08-14T13:48:41 | 287,406,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,087 | py | import torch
import dill
import pandas as pd
from random import random
from operator import itemgetter
from electra_spacing.tokenizer import get_tokenizer
special_tokens = ['[PAD]', '[UNK]', '[CLS]', '[SEP]', '[MASK]']
class SpacingDataset(torch.utils.data.Dataset):
def __init__(
self,
file_path... | [
"digit82@gmail.com"
] | digit82@gmail.com |
1ac1bf0d486a318d12379426563fee9a8f6f22d6 | fe85138c949c6198184c591780831fd2e183a24a | /Address Book.py | 251c32fc6f328cd1f9352bc08e897b68bbe90efc | [] | no_license | valeri1383/Personal-Python-Projects | e98f6b7171298def019db4e28f6d176a709615cc | b7db81cb44668f549a7fd15de84c0cb23654ac3d | refs/heads/main | 2023-05-26T09:02:24.260700 | 2023-05-22T14:40:28 | 2023-05-22T14:40:28 | 337,518,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | from tkinter import *
root = Tk()
root.geometry('400x400')
root.configure(bg='cyan')
root.resizable(1, 1)
root.title('Address Book')
contact_list = [
['John Smith', '07567374343'],
['Terry Adams', '07569984343'],
['Allen Gibson', '07564474743'],
['Grant Foster', '07567396843'],
['Hall... | [
"noreply@github.com"
] | valeri1383.noreply@github.com |
f0ee93a4074c8da518c1450c274a30b1cdd2ac23 | fde3f15c0640d542d13d448947933defa7e3b1df | /src/_test/test_login_fail.py | 81965bdc1fc2ce631552b0ae289693e00617031e | [
"MIT"
] | permissive | zxdxjtu/cloudComputingProject | 8c67d559eed520d39a9ad0afbe626613b55ba334 | f5b1f9254e3795f1ee64eec7234643d4a98e5996 | refs/heads/master | 2021-05-04T05:55:25.829756 | 2016-10-16T17:04:13 | 2016-10-16T17:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app import app
from blueprint_test_case import BaseTestCase
class FlaskTestCase(BaseTestCase):
# Ensure login behaves correctly with incorrect credentials
def test_incorrect_login(self):
response = self.cl... | [
"rxie25@gmail.com"
] | rxie25@gmail.com |
6bf1fcb69afde705f23184d4247094c7518ea8a8 | 21a29ab436a0f48c9968da788ba6ee2c293a8ad1 | /scripts/pdts/pdts_dropA_t0.py | 9c54822e5a81b3a036abddd99ded99f9eceb23eb | [
"MIT"
] | permissive | bazhiyong/chempropBayes | 3520a8cc17d4fe556869229a0de3855538fa5440 | 88d660398a772705804568b671b3614c636505aa | refs/heads/master | 2023-03-19T19:15:13.219611 | 2020-12-30T14:50:59 | 2020-12-30T14:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | import os
import torch
# checks
print('working directory is:')
print(os.getcwd())
print('is CUDA available?')
print(torch.cuda.is_available())
# imports
from chemprop.args import TrainArgs
from chemprop.train.pdts import pdts
# instantiate args class and load from dict
args = TrainArgs()
args.from_dict({
'datase... | [
"willlamb@beaker.cs.ucl.ac.uk"
] | willlamb@beaker.cs.ucl.ac.uk |
9f04a9500f8175d8ed755a33ec11a015c460d1ad | dd32fef3e19dfde746c2a0e67a460470397c98fd | /scripts/converter.py | 2a430feebda1cf9b031ea53b1aaf8243c439c9ad | [
"MIT",
"Apache-2.0"
] | permissive | sujiongming-git/captcha_trainer | bfffeb9845d178d6c0fade75ac927cb2a00c7877 | fa14ebd42aad91cd97724c7bc275d79b1008facc | refs/heads/master | 2023-06-18T11:42:20.226556 | 2021-07-17T14:11:30 | 2021-07-17T14:11:30 | 295,317,327 | 0 | 0 | Apache-2.0 | 2020-09-14T05:53:18 | 2020-09-14T05:53:17 | null | UTF-8 | Python | false | false | 816 | py | import re
import os
import hashlib
# 训练集路径
root = "/Users/jm.su/Documents/code/captcha_trainer/scripts/taiwan-post/"
all_files = os.listdir(root)
for file in all_files:
old_path = os.path.join(root, file)
print(old_path)
if "-" in file:
file = file.split("-", 1)[-1]
print(file)
# continu... | [
"jm.su@aftership.com"
] | jm.su@aftership.com |
37d110627122f58399dd78c0806effabc6ac07e5 | c2014b0a4ee80f39d4f3c4578341312ea963e615 | /Assignment2/RFassignment2Predict.py | 26468bea0c38693611a0420f1d0f91ae7a05dc0c | [
"MIT"
] | permissive | MaximilianMihoc/MachineLearning | a65fb5d783076a76db3127d1cd661e01cb4fc79b | bee03a4beea58bc500c890229536536cf78c8f43 | refs/heads/master | 2020-04-01T18:28:49.371455 | 2018-10-21T14:36:32 | 2018-10-21T14:36:32 | 153,495,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | from pandas import DataFrame
from sklearn import preprocessing
from sklearn.feature_extraction import DictVectorizer
import numpy as np
import pandas as pd
import csv
from sklearn import tree
from sklearn import cross_validation
from sklearn.cross_validation import train_test_split
from sklearn.metrics import confusion... | [
"max.mihoc@gmail.com"
] | max.mihoc@gmail.com |
9a9b63a8daca2426c5e7f92f421d90edd8b68eb5 | ca0556d3dc6fb6b92e194c4ff0a979619e7be0e4 | /I2c7SegmentLed.py | 8baadc4d53fbc559a2402174d86b34a339e609fe | [] | no_license | dcityorg/i2c-7-segment-led-library-raspberrypi | 2216c46eb945faf1dab2c15f1a123208d0e0a889 | 62910936e6a43d6585925f493cf72b2d609e9ffe | refs/heads/master | 2021-06-13T20:01:15.431573 | 2021-03-10T19:47:50 | 2021-03-10T19:47:50 | 146,506,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,329 | py | # -*- coding: utf-8 -*-
'''
I2c7SegmentLed.py - class library for using 7 Segment LEDs
Written by: Gary Muhonen gary@dcity.org
Versions
1.0.0 - 7/31/2016
Original Release.
1.0.1 - 9/1/2018
Transfer to GM, and some minor changes
Short Description:
The... | [
"“gary@dcity.org”"
] | “gary@dcity.org” |
df8348437cb3f52a36143204a8098092a7baae05 | cdd2003610c4c451dc38781d5ece2cf4e8138c27 | /src/convert_rviz.py | cd66d10b1a8cd9aecf17d38b1ef969533384d9a9 | [] | no_license | DLu/rwt_config_generator | 7efb29d773dddae0868be14606ba91893fae806c | 873b1aa0d4c94cdba3b15ef85d46f70c26f6dc86 | refs/heads/master | 2020-12-24T16:24:02.304617 | 2016-03-03T19:04:52 | 2016-03-03T19:04:52 | 39,230,985 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | #!/usr/bin/python
from __future__ import print_function
import sys
import yaml
from rwt_config_generator import *
import argparse
import rospy
def warning(*objs):
print("WARNING: ", *objs, file=sys.stderr)
parser = argparse.ArgumentParser()
parser.add_argument('rviz_config')
parser.add_argument('output_html_f... | [
"davidvlu@gmail.com"
] | davidvlu@gmail.com |
9b8b028c0c0efe89315744409a6b69fe90a07bea | 7930635dae78d050ebe158303aa5343a8440a884 | /lesson05/lesson05-3.py | c57400cea3fe4ec5bba9412246963cfa06edd93d | [] | no_license | lexpol/python_homework | 1211bda3db32b869e34c4cca2264372f5c99b240 | 667fe61f7e23ed834f13c68c40a99ef21c39d5a7 | refs/heads/master | 2023-05-30T22:04:09.144029 | 2021-06-09T01:04:40 | 2021-06-09T01:04:40 | 365,838,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # 3. Создать текстовый файл (не программно), построчно записать фамилии сотрудников и
# величину их окладов (не менее 10 строк). Определить, кто из сотрудников имеет оклад менее 20 тыс.,
# вывести фамилии этих сотрудников. Выполнить подсчет средней величины дохода сотрудников.
#
# Пример файла:
#
# Иванов 23543.12
# Пе... | [
"lex@poltor.ru"
] | lex@poltor.ru |
f1335c1e683e0f3a387c4f90ecc635733f2dbce5 | 05a175090ffebdd0713802aba1469f2673fda3d3 | /IntroNN/hw2_delvalle_network.py | 1ad44467d98f1d231d562f3ccbe7f7afbf9dfee4 | [] | no_license | gdelvalle99/CS691-Deep-Learning-Projects | c41d8a835eeb4247d88d8121dcacba96b431ac1c | d6f6e1b9a2caf24e283d15acf78da1c4bf521897 | refs/heads/master | 2022-10-04T22:26:52.728823 | 2020-05-23T21:56:18 | 2020-05-23T21:56:18 | 266,417,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,952 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from sklearn import svm
N = 250
size = int(N/2)
Uh = 20
Ul = -1
x_min2 = [Ul, Ul]
x_max2 = [-Uh, Uh]
x_min4 = [Ul, -Ul]
x_max4 = [Uh, -Uh]
o_min1 = [Ul, ... | [
"gdelvalle@nevada.unr.edu"
] | gdelvalle@nevada.unr.edu |
3c36c0d10742f9c25af173e2077d9c835a3e3ff8 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2015/12/graph.py | d441a54ca1edf2545aaaa16e0d18be8ec8d7318d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 6,432 | py | # -*- coding: utf-8 -*-
"""
The :program:`celery graph` command.
.. program:: celery graph
"""
from __future__ import absolute_import, unicode_literals
from operator import itemgetter
from celery.datastructures import DependencyGraph, GraphFormatter
from celery.five import items
from .base import Command
__all__... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
1bbb87d1b2466539e6790d2e6a61b405410e979e | 80c87909c81f7d8253399c9e9e54969b68665c3f | /chp/charts.py | 3b632b7c0bb6c1a6fd28325cb8c6bf353cc3c746 | [] | no_license | it1525/CEMK_HP | cba429cedbb7603055d88b9947d439050ff840ff | 985039d617d6ec5cbff9a90bd877c9731ece62b3 | refs/heads/master | 2020-05-25T03:28:30.062835 | 2019-05-20T08:53:25 | 2019-05-20T08:53:25 | 187,603,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import pygal
from chp.models import Complain
from users.models import Profile
from django.db.models import Count
class DeptComplainBarChart():
def __init__(self, **kwargs):
self.chart = pygal.Bar(**kwargs)
self.chart.title = 'Department wise Complain Chart'
def get_data(self):
'''
... | [
"it1525@cemk.ac.in"
] | it1525@cemk.ac.in |
e43360af1818f7088e1ee3d0ef5d5ef217670f8a | 057caac442baac22cc9040519e3366156f79400e | /lista1/zadanie2.py | 4ef382a4e7f3f6901d3b3e6c524ca180d608cd8e | [] | no_license | KleczkoPawel/Python | 370239245e5a9e416b0f598bccd426034f2039c8 | ad565c1227ff4c621f2e996578a1d9a19d06f0e3 | refs/heads/main | 2023-03-27T10:04:06.788344 | 2021-01-21T07:30:52 | 2021-01-21T07:30:52 | 304,240,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import math
a=3
b=4
alfa=47
Pole=a*b*math.sin(alfa*math.pi/180)/2
print(Pole) | [
"noreply@github.com"
] | KleczkoPawel.noreply@github.com |
4568f2467a081a10c3b7057b1d105a5e0f16e682 | 2bd5e4c50dc9f0d19f9f20ffdaf0b88578fd7644 | /Matmatic.py | 42b7f86d1b6fe851238c47cc7550adf3098386e0 | [] | no_license | Mistik535/Zadachi | e248e9d0c6fc094545bab798af60870782868ce1 | d37b2b9fbd1c52c1d9a7345c8aa5a197e4527902 | refs/heads/main | 2023-07-03T10:25:50.728833 | 2021-07-22T17:23:55 | 2021-07-22T17:23:55 | 348,099,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # a = 2
# b = 2
# c = 3
# # #y = list(map(int, input().split()))
# x = (a + 2 * b - 3 * c) / (5 * a + 4)
# print(x)
#
# # dont work!
import math
#
# a = 2
# b = 2
# # x = (a ** 2) + (b ** 3)
# # w =
# x = math.sqrt(math.pow(a, 2) + math.pow(b, 3))
# print("x:", x)
#
# y = 1
# x = 2.136 + (2 / 3) * y
# print(x)
#
# a =... | [
"mr.chadway@gmail.com"
] | mr.chadway@gmail.com |
f025afbae8373d9c8e6056447c01f0f352ed3c2d | 12cf92d68790693e06a7088c98a856ced4536554 | /tools/pruneMentions.py | 5c04c03c14f9dac73b4c6d5f576ebdb6301d17d3 | [] | permissive | DaylightingSociety/SocMap | b334ff49c986c55c57dedc450e0bde035077daa3 | c8e9f40efdcee2c765cd02b6398d948fecf6bd83 | refs/heads/master | 2021-05-05T06:37:15.683469 | 2020-09-14T16:14:02 | 2020-09-14T16:14:02 | 118,809,485 | 18 | 4 | BSD-3-Clause | 2019-06-18T22:00:29 | 2018-01-24T19:07:59 | Python | UTF-8 | Python | false | false | 707 | py | #!/usr/bin/env python3
import sys, os
import igraph as ig
# This script deletes all edges with < threshold number of mentions
# It does *not* delete inaccessible nodes afterwards (see pruneInaccessible.py)
if __name__ == "__main__":
if( len(sys.argv) != 4 ):
print("USAGE: %s <mention threshold> <original.gml> <pr... | [
"milo.trujillo@daylightingsociety.org"
] | milo.trujillo@daylightingsociety.org |
706b1412b4d839f20812fa99a5bf77bacc68ade1 | 7aa82a17d3545ad418ce6defd84ec9e460937299 | /work/views.py | 8352fb4b2c73b7e59d3ae78eb6c4f4a00b58243f | [] | no_license | parin-2002/CRUD-IN-DJANGO | ad28052b69814a9f35c0427c82418440a82cb47a | 34557e9f9fc6a8e3e5d0d7edc7d070237b0387e5 | refs/heads/master | 2022-11-19T18:23:11.677185 | 2020-07-23T03:39:26 | 2020-07-23T03:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.shortcuts import render,redirect
from .forms import rgstudent
from .models import student
# Create your views here.
def reg(request):
if(request.method=='POST'):
form=rgstudent(request.POST)
if form.is_valid():
form.save()
form=rgstudent()
else:
form=rgstudent()
data=student.objects.all()
... | [
"1akashsuvagiya1999@gmail.com"
] | 1akashsuvagiya1999@gmail.com |
988e35a1c0043ed6844775a7278008acc5bd01fd | d6f7273500f28fcc0a378620cc4e417a08542992 | /turnedOn/turnedOn/wsgi.py | c1d388723b28d037f6d884e93b8b7bb43cc723a9 | [] | no_license | katelyndunaski/Turned-On | 109e1ecd168f97255c178b95cc289739da443fbb | 80b0e01d9ffd2c7b142a6ecbeb96e48a0f22f8fb | refs/heads/master | 2016-09-10T08:38:40.314407 | 2015-02-08T17:24:11 | 2015-02-08T17:24:11 | 30,468,506 | 0 | 0 | null | 2015-02-08T02:04:38 | 2015-02-07T20:07:49 | JavaScript | UTF-8 | Python | false | false | 391 | py | """
WSGI config for turnedOn 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/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "turnedOn.settings")
from django.core... | [
"ubuntu@ip-172-31-39-124.us-west-2.compute.internal"
] | ubuntu@ip-172-31-39-124.us-west-2.compute.internal |
4eb09dfed6ad25c8eddd6132f2dc73dff3fcc6a3 | 1933ef2c5b3ec58feeb50dd092d670f58a3ec2bb | /kospeech/models/modules.py | 352b6a0bd0bf59f8861fa3d7e573569560a2ad30 | [
"Apache-2.0"
] | permissive | hephaex/KoSpeech | 68275af311ae5c53548f7c7bc27fe9dd5b1e441b | bf3fa0dc6d50089164fd0b47e02620062718d407 | refs/heads/master | 2022-12-02T02:00:01.164265 | 2020-08-05T08:47:55 | 2020-08-05T08:47:55 | 285,344,731 | 0 | 0 | Apache-2.0 | 2020-08-12T14:53:11 | 2020-08-05T16:22:59 | null | UTF-8 | Python | false | false | 1,579 | py | import torch
import torch.nn as nn
import torch.nn.init as init
from torch import Tensor
class Linear(nn.Module):
"""
Wrapper class of torch.nn.Linear
Weight initialize by xavier initialization and bias initialize to zeros.
"""
def __init__(self, in_features: int, out_features: int, bias: bool = T... | [
"sh951011@gmail.com"
] | sh951011@gmail.com |
9a704f28f280264c0f0f116eb2b5f892f3e8a617 | 2b3e562da5d9b473f3a7dcb3ba833552e649b675 | /session3.py | 6c0c799a912ea879733bcd1f02e38c53ad9dadf3 | [] | no_license | Aakashdeveloper/python-web | 51f89c34e30beb0be1d8fdd2e01b3e2617a334b0 | fe163c193b20d23794eb327d2d580124e32fe152 | refs/heads/master | 2020-07-25T12:38:13.416166 | 2019-09-27T15:07:32 | 2019-09-27T15:07:32 | 208,291,750 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
x = 10
# In[3]:
y = 20
# In[4]:
x+y
# In[5]:
x*y
# In[6]:
x/y
# In[7]:
x-y
# In[8]:
10<<2
# In[9]:
10>>2
# In[12]:
x == 10 & y ==20
'''
docker run --rm -u root -p 8080:8080 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/... | [
"ahanda205@gmail.com"
] | ahanda205@gmail.com |
21ffffe2f10c8650b232760086dfbefe96216764 | c09f02ebc1c4418bf9324afd803532234293d6f5 | /CS61A/Project 2/trends_old3.py | d4d524fd8cdc2005ba0b1e2a888c2e360f710ecb | [] | no_license | jesseyli/OldProjects | a2fddabfbb6207616572c807fde71455f5197a6e | edc28b02bfdb2ea1f4041d879a20858b797e674f | refs/heads/master | 2021-01-10T09:05:07.294910 | 2016-02-05T07:34:04 | 2016-02-05T07:34:04 | 50,936,330 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,330 | py | """Visualizing Twitter Sentiment Across America"""
from data import word_sentiments, load_tweets
from datetime import datetime
from doctest import run_docstring_examples
from geo import us_states, geo_distance, make_position, longitude, latitude
from maps import draw_state, draw_name, draw_dot, wait, message, draw_top... | [
"jesseyli@berkeley.edu"
] | jesseyli@berkeley.edu |
b2b18b0466f68363ec428575924ddb25850628e3 | 0ce934553a854e5a3d28971f73be19d0912449bf | /homePage/migrations/0002_auto_20190311_1333.py | e5ee1021a560d11d27a4092636182d934d75cbd7 | [] | no_license | keennhlc/GKWeb | d0c1c2617e2334ee9aba6e3b741d049cf75c9a62 | db34c14a4be13fab1cf16de66fc406b7142d7fcb | refs/heads/master | 2020-05-01T09:19:13.871041 | 2019-03-24T10:20:40 | 2019-03-24T10:20:40 | 177,397,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Generated by Django 2.2b1 on 2019-03-11 05:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('homePage', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='newscontent',
name='news',
),
... | [
"keennweb@gmail.com"
] | keennweb@gmail.com |
106c53998b513b93b70be5cc2982f708c3ecf2b3 | 5a4124eea866334a9e3ddd94c57dbf1df7e3378a | /virtual/bin/pip | 6d53621274d2a5698a9d66f0e36ee6c3cd195680 | [
"MIT"
] | permissive | Elrophi/Housing | 6eb465c06918e67faadbc0cdad4bfe6d139a178f | dc3ccc545eb9d609a62495cbea76f4f849d4658a | refs/heads/master | 2023-05-12T23:45:58.201434 | 2021-06-08T13:09:29 | 2021-06-08T13:09:29 | 373,784,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/home/el/Desktop/moringa-core/python-django/Housing/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"elrophilskwaila@gmail.com"
] | elrophilskwaila@gmail.com | |
525051e2943540875900fe0b6db434ee527c30ba | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.py | 60afb66b6f88d5918aba22ca4b3b72c0ab5be76d | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 599 | py | """
Get hourly usage for Network Flows returns "OK" response
"""
from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
configuration = Configuration()
with ApiClie... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
9a1838d05d52c92ed2187545c5cfa8e07d8125ed | d7871f3ff716919da9e7a7c9d7ba3a0732114d63 | /3DMean.py | 015010600c692df66f624d29270865533cf62baf | [] | no_license | eric-risbakk/kework | 337040d2b8df6915c9d9ed8ccd5303bf51b82f62 | 705556213a6f5fb9da28f4010d2ca4999b1f0915 | refs/heads/master | 2021-07-10T10:36:12.665117 | 2017-10-12T13:05:24 | 2017-10-12T13:05:24 | 103,539,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py |
import scipy.stats as spstat
import numpy as np
import numpy.random as npr
import scipy.stats as spstat
import numpy as np
import numpy.random as npr
__author__ = 'Eric Risbakk'
__date__ = "2017-09-14"
__maintainer__ = "Eric Risbakk"
__email__ = "e.risbakk@student.maastrichtuniversity.nl"
DEBUG = False
TEST = True
... | [
"I6146197@unimaas.nl"
] | I6146197@unimaas.nl |
391b5234dde1dd8a811356eeeaa2d4e5f9d7a7ac | 1ae56f2ebb35f75c9e4ccb108b5eff2b158fa355 | /process_data.py | ab43b0172e6485bb40f1c534cb6c33c1d0795694 | [] | no_license | crrcgeorgia/air_quality | 5670d3b7390c2484d09238b9a985deb54688b27c | c16d8cd9b816cabccf425c4acb70d12dc32c9be1 | refs/heads/master | 2021-05-18T11:41:15.670321 | 2020-03-30T08:12:02 | 2020-03-30T08:12:02 | 251,230,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | from pull_data import pull_airq_range, pull_weather
from datetime import date, datetime
import pandas as pd
from fbprophet import Prophet
import progressbar
def air_processed(start_date, end_date, cut_points, cut_labs, *args, **kwargs):
air = (
pull_airq_range(start_date, end_date)
.quer... | [
"noreply@github.com"
] | crrcgeorgia.noreply@github.com |
a8e3cce479c0b620026b4944db203dae7b0979bd | b29d80506512e9cec2aa820c043c616751b13dcf | /serializers.py | 671d4c81e4ccca93029d7c7bbb733c0ca80d62a2 | [] | no_license | luvjoey1996/storageManager | f25e8d359294f28799e592f49febeea0ca1acb06 | 2d66820f05a80245e2c5ef2bcf56b00d3c747b8a | refs/heads/main | 2023-08-03T17:41:18.327926 | 2021-09-17T10:23:49 | 2021-09-17T10:23:49 | 407,498,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from marshmallow import Schema, fields, validate
from config import Configuration
from models import ServiceType
class CreateServiceSchema(Schema):
type = fields.Str()
class ServiceCreateSchema(Schema):
type = fields.Int(validate=validate.OneOf(choices=ServiceType.as_choices()))
memory = fields.Int(val... | [
"luvjoey1996@gmail.com"
] | luvjoey1996@gmail.com |
16ffe2ce0b7d1d05344cc7814fd04b63e4a84196 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hrbmax002/piglatin.py | 32eb09647dd7f6c75cec56edc0b28a10e8811327 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | def toPigLatin(s):
if s[len(s)-1] != " ":
s = s + " "
answer = ""
while len(s)>0:
temp = s[0:s.index(" ")]
s = s[s.index(" ")+1:]
if temp[0].upper() in ["A","E","I","O","U"]:
temp = temp + "way "
else:
temp = temp + "a"
w... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
707c7cb4f5f704f84ee4f3b07f62df36cb7bb8a2 | e1152ed447cf32f12acc1d71fddce1f6a1830023 | /zhaquirks/xiaomi/aqara_vibration_sensor.py | d1d8defe395ddaab7cea4adfeecbf5bcbd0962a7 | [
"Apache-2.0"
] | permissive | Gamester17/zha-device-handlers | f85d2ca864f7e6f977e46c3562b06ce9a3225790 | e7260ebb31025fbbbe5c5a9c2c8e7077aa85b66f | refs/heads/master | 2020-04-25T04:51:05.210691 | 2019-02-22T13:55:10 | 2019-02-22T13:55:10 | 172,523,970 | 0 | 0 | Apache-2.0 | 2019-02-25T14:44:06 | 2019-02-25T14:44:05 | null | UTF-8 | Python | false | false | 7,119 | py | import asyncio
import logging
import homeassistant.components.zha.const as zha_const
from zigpy.quirks import CustomCluster
from zigpy.profiles import PROFILES, zha
import zigpy.types as types
from zigpy.zcl.clusters.general import Basic, Groups, PowerConfiguration,\
Identify, Ota, Scenes, MultistateInput
from zigp... | [
"david.mulcahey@icloud.com"
] | david.mulcahey@icloud.com |
eb085418aab782c970d7166273fd9b9262c46f5b | c858d9511cdb6a6ca723cd2dd05827d281fa764d | /MFTU/lesson 7/Test work/test_F.py | b6885f38ec053864866d442146f62a2ba115c3a5 | [] | no_license | DontTouchMyMind/education | 0c904aa929cb5349d7af7e06d9b1bbaab972ef95 | 32a53eb4086b730cc116e633f68cf01f3d4ec1d1 | refs/heads/master | 2021-03-12T11:15:02.479779 | 2020-09-17T08:19:50 | 2020-09-17T08:19:50 | 246,616,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Необходимо найти НОД двух чисел, используя алгоритм Евклида.
#
# Формат входных данных
# На вход подаются два натуральных числа, по числу в новой строке.
#
# Формат выходных данных
# Одно число - НОД входных чисел.
def gcd(a, b):
if a == b:
return a
elif a > b:
return gcd(a - b, b)
e... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
6408b1b91926c28f6a0816eef12e75332aba15ac | 4113e7c9f1beb13a0ef963a6760e43b5cab676ce | /__init__.py | 4781cbd159824f702baafe799f5dee329fb4d432 | [] | no_license | charlieb/flowers | b413595b8ce1839123305ad96bdae6213a8b7faf | dca18ef10b849ee01518818279426699749a655e | refs/heads/master | 2020-04-19T08:36:48.699934 | 2017-01-09T04:12:00 | 2017-01-09T04:12:00 | 66,811,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | from .petals import petal, flower, draw
| [
"charlie.burrows@gmail.com"
] | charlie.burrows@gmail.com |
51705550782e5a0f8c41b524d7d0cf60b7edc565 | fcbf3ddca275606830d455a69df73e20ced6546a | /doc/conf.py | 9ca4ca664b3f765a31dd264254f24c060e447023 | [
"Apache-2.0"
] | permissive | KarchinLab/probabilistic2020 | 5f56e30e0c8484ac524081dd022c0159f24508ce | 8e0b1b9578bd8189b1690dd2f17476c3305b98dc | refs/heads/master | 2023-07-26T12:06:28.647117 | 2019-07-28T12:37:50 | 2019-07-28T12:37:50 | 57,408,263 | 8 | 7 | Apache-2.0 | 2023-07-06T21:02:44 | 2016-04-29T19:32:49 | Python | UTF-8 | Python | false | false | 8,727 | py | # -*- coding: utf-8 -*-
#
# 20/20 Permutation Test documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 28 13:53:42 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com |
ad0cdab693cf632e6b1795e623fb5a5965e77727 | 18a0f4ddefae1e9a0ddae86de7315bacd1a96491 | /apps/users/views.py | 6681229876742a55d927c790d13ae2c52aa24ef3 | [] | no_license | ZVR999/belt_reviewer | f1a2d41bcced69f906d73178f06acc4f6b215431 | ffe0099813bfb1389c0a52f400ba00fc2d9acf86 | refs/heads/master | 2020-03-29T04:05:46.229105 | 2020-02-11T17:40:10 | 2020-02-11T17:40:10 | 149,515,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from .models import User
from ..reviews.models import Review
from ..books.models import Book
import bcrypt
from django.contrib import messages
# Create your views here.
# Create a User
def create(request):
... | [
"zachkery999@gmail.com"
] | zachkery999@gmail.com |
33e3abf7249f08d1377e5d1805da84937ab779eb | 379934f86f2e7fce60c88222ed61bc106390271e | /glasslab/dataanalysis/misc/gr_project_2012/v1/boxplots_from_p65_gr_peaks.py | e7313cb2c1ebf8f13f60ddced648317001bc413a | [] | no_license | karmel/glasslab | a022fb3e1147382ba5f64c67d6db9b87b9bca2de | 754774390f03852d1385c5fffeb32fcdab5cd7e4 | refs/heads/master | 2021-09-04T18:00:49.650817 | 2014-10-06T19:37:25 | 2014-10-06T19:37:25 | 5,957,226 | 1 | 1 | null | 2019-09-22T16:55:29 | 2012-09-25T21:56:42 | Python | UTF-8 | Python | false | false | 1,966 | py | '''
Created on Oct 1, 2012
@author: karmel
'''
from __future__ import division
from glasslab.dataanalysis.graphing.seq_grapher import SeqGrapher
if __name__ == '__main__':
yzer = SeqGrapher()
dirpath = 'karmel/Desktop/Projects/Classes/Rotations/Finland_2012/GR_Project/'
dirpath = yzer.get_path(dirpath)
... | [
"karmel@arcaio.com"
] | karmel@arcaio.com |
07dc4711d757ebe944fcd4427827ad60b56c0574 | 6aaea15dbf99219f03b08f14582c4bbe085b41fc | /0304/bj7576_토마토.py | 16dd692c61cbd5d68aae8be8e2e55edb6aa70529 | [] | no_license | kkkin02/Algorithm | f6ade2d7bebc3bd878b0e1fb1b22206f146fcea7 | 797223528b344faea497fe8390d78cd683cd063f | refs/heads/master | 2023-03-17T02:40:38.407345 | 2021-03-05T14:01:54 | 2021-03-05T14:01:54 | 337,080,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | def tomato(t, box):
l = len(t)
if l == 0:
return -1
elif l == n * m:
return 0
dr = [-1, 1, 0, 0]
dc = [0, 0, -1, 1]
visited = [[0] * m for _ in range(n)]
q = []
for i in t:
q.append(i)
visited[i[0]][i[1]] = 1
while q:
p = q.pop(0)
r... | [
"rkddlsdud0720@gmail.com"
] | rkddlsdud0720@gmail.com |
6450073c33cb50db18dc4b145b95d18e75ee47b0 | e2d22f12f8e540a80d31de9debe775d35c3c5c22 | /blousebrothers/confs/migrations/0037_auto_20170117_1535.py | 6841343b2a40c2fbb431ff15ae9ddfd4cd5a80ee | [
"MIT"
] | permissive | sladinji/blousebrothers | 360c3b78ec43379977dbf470e5721e6a695b2354 | 461de3ba011c0aaed3f0014136c4497b6890d086 | refs/heads/master | 2022-12-20T10:24:07.631454 | 2019-06-13T13:17:35 | 2019-06-13T13:17:35 | 66,867,705 | 1 | 0 | NOASSERTION | 2022-12-19T18:15:44 | 2016-08-29T18:04:33 | Python | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-01-17 15:35
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('confs', '0036_auto_20170110_1100'),
]
operations = [
... | [
"julien.almarcha@gmail.com"
] | julien.almarcha@gmail.com |
0450edaf3b101ccb33050e851f1cf7ff76c42e14 | 8fd279f728b7a83e6f14fd6ab77da67459bd21df | /test.py | eed4c5c5c238b7175223f43ce87c4e216551fbf3 | [] | no_license | yiebo/stt-transformer | ec4de39fb3f54c8ab264aaa69f1b9b41c83d303f | 78a06451085064de0fd2417764183a1f4ea4b4d0 | refs/heads/master | 2022-09-09T11:32:19.265157 | 2020-06-05T16:06:16 | 2020-06-05T16:06:16 | 266,639,088 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py | from tqdm import tqdm
import glob
import os
import numpy as np
from prefetch_generator import BackgroundGenerator
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torch.utils import tensorboard
from torchvision import utils
import torchaudio
from torchaudi... | [
"yiebo-c@hotmail.com"
] | yiebo-c@hotmail.com |
c8e2155ef68a3eba87ea0e8c4cab9b582c3f5355 | 8bc3e7bd0fa1714b3d0466e940ed801cf9a4c5d4 | /pyvisual/node/io/system_var.py | 2e6dfeaf5a70761d5951b4abff26e7ec2a04eaae | [] | no_license | m0r13/pyvisual | d99b3512fefaf4a2164362a0b7aabd1df9ecee03 | f6b3e2217e647b80f1379716c00e8adb53975bca | refs/heads/master | 2022-02-21T22:24:22.467475 | 2019-06-17T20:38:48 | 2019-06-17T20:38:48 | 140,211,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | import json
import os
import time
from collections import defaultdict, OrderedDict
import imgui
from pyvisual.node import dtype, value
from pyvisual.node.base import Node
from pyvisual.editor import widget
SERIALIZATION_WRITE_INTERVAL = 5.0
SERIALIZATION_FILE = "system_vars.json"
# if you add another variable with a... | [
"moritz.hilscher@gmail.com"
] | moritz.hilscher@gmail.com |
1465bbad98fe6c51d22d31a82efaa6fba3362f45 | e8a285cb1dcdae6f1b6d8506b8d25a1d031d6cd7 | /cpptools/tests/test_write_pythia_hepmc3.py | d4e73a3185bc0137d2756b3b3f25a6b491647b97 | [] | no_license | matplo/heppy | f30558e4ff3c1720c63b4d82f739b3f8acadc53e | 88c931e3e7dcf57a3a476ef0a92f0204491cafb9 | refs/heads/master | 2023-07-07T18:17:04.486149 | 2023-06-29T20:45:32 | 2023-06-29T20:45:32 | 201,352,733 | 5 | 8 | null | 2023-07-04T21:57:31 | 2019-08-08T23:33:39 | C | UTF-8 | Python | false | false | 782 | py | #!/usr/bin/env python
import pythia8
import pythiahepmc3
def create_and_init_pythia(config_strings=[]):
pythia = pythia8.Pythia()
for s in config_strings:
pythia.readString(s)
for extra_s in ["Next:numberShowEvent = 0", "Next:numberShowInfo = 0", "Next:numberShowProcess = 0", "Next:numberCount = 0"]:
pythia.re... | [
"ploskon@gmail.com"
] | ploskon@gmail.com |
d820ae424b8b015df2aa8aee36762d571e6921f2 | 7b4d83e0e476110ed8ebf444da4f3125774ddcba | /projeto_extensao/PIL/ImageWin.py | 37cf8f26b7eecf295e7211894b42dde741dcf8a1 | [] | no_license | gefferson/projeto_extensao | 5fa70f99ac75b9dc2a09dbd5f458f6f74dcb7cf4 | 9ae9b232f6aabbe590b2791fda04ca4430f3655a | refs/heads/master | 2021-01-10T20:55:52.424534 | 2014-09-02T06:27:32 | 2014-09-02T06:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,375 | py | #
# The Python Imaging Library.
# $Id$
#
# a Windows DIB display interface
#
# History:
# 1996-05-20 fl Created
# 1996-09-20 fl Fixed subregion exposure
# 1997-09-21 fl Added draw primitive (for tzPrint)
# 2003-05-21 fl Added experimental Window/ImageWindow classes
# 2003-09-05 fl Added fromstring/tostring me... | [
"geffersonvivan@187-68-19-51.3g.claro.net.br"
] | geffersonvivan@187-68-19-51.3g.claro.net.br |
b1dc9e505c919a677e4ad516ba5eb32f5820c244 | 610dedfb6e21d297e8cdbcba599a4e564bd785cb | /EstruturaDeRepeticao/estruturaderepeticao-09.py | 8b4c1153a41989cbf2047c8067840d6a96441880 | [] | no_license | zumbipy/PythonExercicios | f7b2ddf2376b9ecb2aedc77531e3571dc746a12b | 7a17b78cf927a2889b93238542e90e00810c43e6 | refs/heads/master | 2021-01-23T10:43:47.997462 | 2018-07-22T14:58:44 | 2018-07-22T14:58:44 | 93,086,120 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Telegram: @ZumbiPy __ _ ___
# /_ / __ ____ _ / / (_) _ \__ __
# / /_/ // / ' \/ _ \/ / ___/ // /
# /___/\_,_/_/_/_/_.__/_/_/ \_, /
# E-mail: zumbipy@gmail.com /___/
"""
09 - Faça um programa que imprima na tela apenas os números
ímpares entre 1 e 50.
"""
# ===============================================... | [
"zumbipy@gmail.com"
] | zumbipy@gmail.com |
dc6940ccab54fe26f6cdd8418152ac93e3a870f6 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/tpu/feature_column_v2.py | 1a5bddb173a599ee196c98ef4cd8bf3483151377 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,102 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
66f6e4500621285bbbbaf51d4c572120cb3598e7 | 3b1229c458aa232bfcf11cd6da5f1275e9bb3a8f | /python/Python基础/截图和代码/if、while、for/PaxHeader/01-if比较运算符.py | 147895a71cc09ac233a82e6fae85d44e6ae21569 | [] | no_license | sunjianbo/learning | 4fee3ddc5e3d4040a49f2ef3e6f239fd6a67b393 | 384cb4e73cc67e390ee2f4be0da9fe0319d93644 | refs/heads/master | 2021-02-17T16:32:22.557614 | 2020-03-09T05:29:51 | 2020-03-09T05:29:51 | 245,111,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | 78 path=Python基础/截图和代码/if、while、for/01-if比较运算符.py
27 mtime=1491131771.711676
| [
"sunjianbo"
] | sunjianbo |
e372c12cb3b68da6d60f0b9badb77c5351675ea6 | dfd0036b13141f0a61ce29325044d9fc3accfa67 | /prob20.py | 165d4cd80e0efaa2f74d5cae6b4c7d1396f817cc | [] | no_license | V-Neck/Euler | a909a9265ce8b0b09204189adcf7655ffe9bec5d | 4710f1456cc9c23eb0564122878b4245bd6c33d8 | refs/heads/master | 2021-05-06T17:58:49.316448 | 2018-04-09T02:48:03 | 2018-04-09T02:48:03 | 111,858,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from prob15 import fact
print sum([int(i) for i in str(fact(100))])
| [
"evilepicproductions@gmail.com"
] | evilepicproductions@gmail.com |
6a5596e9f5936e591842035cd79dd7c31355ad3f | d169aaea184d13b92a79db7ddcdf6cafc8696fb7 | /ArrayMathematics.py | 40acb0b5e066a3de3f3559ea5c8b44e7419747c9 | [] | no_license | sahilshah1610/HackerRank | 71dcc6c5d5f8411240e12c2e74c31fc5c62d5ed0 | 1fd63624b05927bf5ac38ee206d4f7e79b000b68 | refs/heads/master | 2023-01-28T23:21:42.383578 | 2020-12-14T05:21:36 | 2020-12-14T05:21:36 | 314,386,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import numpy as np
if __name__ == "__main__":
n,m = map(int, input().split())
arrA = np.zeros((n,m),int)
arrB = np.zeros((n,m),int)
for i in range(n):
arrA[i] = np.array(input().split(), int)
for i in range(n):
arrB[i] = np.array(input().split(), int)
print(arrA + arrB)
print... | [
"sahil.shah56@gmail.com"
] | sahil.shah56@gmail.com |
c55fcbc5290050fda7ddeebb2c0e6adec8d9980c | 703e6baed8e2b1efbd1aaee7eba3b6af1fb3fd84 | /nndist.py | 22521fb8082fa049edcfbd3e6d691c0c444eea03 | [] | no_license | deyh2020/EIT-computations | 12969400c2bec3810112a69da9a8d9a594ab2934 | 9159bff4bfda8b308a486b3404c90c0376e576eb | refs/heads/master | 2022-03-07T18:21:36.656263 | 2018-06-19T21:04:27 | 2018-06-19T21:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import pylab
import matplotlib as mpl
import numpy as np
import matplotlib.pyplot as plt
import scipy
from qutip import *
from scipy import linalg
from math import *
def nndist(x, n):
return np.exp(-4*pi*x*x*x*n/3.)*4.*pi*x*x*n
def nndistV(C, V, n):
x = (C/V)**(1./6.)
return np.exp(-4*pi*x*x*x*n/3.)*4.*pi... | [
"hudpsa@gmail.com"
] | hudpsa@gmail.com |
971a9e6462e076e0cd93f1bffaa93f96f40d2ccd | d8648e2c56452c6ee09aced281b0810a702467ec | /blog/migrations/0003_auto_20181217_1108.py | 69e6236703fe51a9a139a9de960baa01582cb1e5 | [] | no_license | nikhil0162/django_Project | c51018eacf4965b7edf62d1067c636476454e2e1 | 25c4f4c1c5065bcb127590a2339e4d7725078be8 | refs/heads/master | 2022-12-14T04:20:36.839251 | 2020-10-29T17:39:27 | 2020-10-29T17:39:27 | 159,532,188 | 0 | 0 | null | 2022-12-08T02:28:32 | 2018-11-28T16:30:36 | HTML | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.1.4 on 2018-12-17 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20181215_0712'),
]
operations = [
migrations.AlterField(
model_name='carpost',
name='launched_date... | [
"nikhil0162@gmail.com"
] | nikhil0162@gmail.com |
097f6aa61829185596618db0242a9f7088507c1b | 98005f697f615e55d1a34bbb8f71fb45dd11f2be | /agmapi/__init__.py | 275199dc36eeee47ba48903ed7abfd9d83c8931a | [] | no_license | sreecodeslayer/khub-task | 0a2bf12cc4d65c6feea0e3fde4cf0484ce5d779b | 97edf6670bcaa0675aed2f589644e31747d54862 | refs/heads/master | 2020-03-10T06:42:04.900308 | 2018-04-17T05:10:19 | 2018-04-17T05:10:19 | 129,244,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from flask import Flask, render_template
from flask_restful import Api
from .db import init_db
from .utils import init_logger, get_logger
app = Flask('agmapi')
app.config['DEBUG'] = True
app.config['MONGODB_SETTINGS'] = {
'db': 'AGMAPI',
'host': 'mongodb://localhost:27017/AGMAPI'
}
init_db(app)
init_logger... | [
"kesav.tc8@gmail.com"
] | kesav.tc8@gmail.com |
3227cb4f2668033863586798ab35d19867aa42b8 | 443690c3b6e0ab294cd24fee3db164b756a45f02 | /cs308app/migrations/0008_auto_20201116_2352.py | e1618e0313c80ad4fc2fba800e3361402dd86fee | [] | no_license | oziyildirim/DjangoSoftEng | 19175770fdce3c66506d0f48ce9309912cd42912 | 97bf4d8821867f94d70802d65bde92b1f3aeb1d9 | refs/heads/main | 2023-04-01T06:55:03.421094 | 2021-04-07T16:55:06 | 2021-04-07T16:55:06 | 336,238,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 3.1.3 on 2020-11-16 20:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cs308app', '0007_auto_20201110_2233'),
]
operations = [
migrations.AddField(
model_name='basketitem',
name='quantity... | [
"oyildirim@sabanciuniv.edu"
] | oyildirim@sabanciuniv.edu |
e3015d6511a097f72860e5b54e64757741b0778b | 7401dac35fa6ea9bdbddb9dad15f5879ba2c0507 | /acadbehaviour.py | b63e506090b12ae2641e0ab31f24d2ad1c551201 | [] | no_license | airrakeshkumarsharma/student-classification | 995b096dd612806faf49b60a9c1e22678db53e1d | 9b46cbe0d6d8747ce78762e327473861ee44b7a2 | refs/heads/master | 2020-03-28T01:27:46.794113 | 2018-09-06T13:00:46 | 2018-09-06T13:00:46 | 147,506,789 | 2 | 1 | null | 2018-09-06T05:13:55 | 2018-09-05T11:22:52 | null | UTF-8 | Python | false | false | 3,725 | py | import pandas as pd
import random
#Serial Number
sno = []
#Academic Behaviour
active = []
sem = []
#Higher Studies
name = []
mba = []
ms = []
mtech = []
#Job
govtjob = []
it = []
entrepreneur = []
#Co-circular activities
sports=[]
music=[]
dance=[]
others=[]
#General Behaviour
result=[... | [
"noreply@github.com"
] | airrakeshkumarsharma.noreply@github.com |
b0f8b3dc5a6fbec391eb180abdea385a1eda72cf | 3dab50196ae7c93ec7f0bb7ddc84c2409a989e15 | /13305.py | acc6652e9e7bfc9a919643103706dd5812e3ceb7 | [] | no_license | seounjin/baekjoon_algorithm | 7d8b6a8f51356ad862cdb3229ff628a9e1ca49d8 | a7a3f212992fd9248db9680c901536d68e5680bd | refs/heads/master | 2022-12-21T03:15:17.968041 | 2020-09-16T15:25:23 | 2020-09-16T15:25:23 | 185,127,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # 주유소
import sys
input = sys.stdin.readline
N = int(input())
# 도로의 길이
road = list(map(int, input().split()))
# 도시당 가격
city = list(map(int, input().split()))
road_len = sum(road)
road += [0]
answer = [0] * 100000
answer[0] = city[0] * road[0]
temp = city[0]
for i in range(1, N):
temp = min(temp, city[i])
... | [
"invanda7@gmail.com"
] | invanda7@gmail.com |
c5b435586383bec7e14c2017d6182ce5f217272e | 449147399b91db8ca3192e9960834a73967cd01d | /pandas-ml-utils/pandas_ml_utils/ml/data/reconstruction/__init__.py | 52b22fdb3e0d667496a779c3c98ac6e25c9b2549 | [
"MIT"
] | permissive | brunoreisportela/pandas-ml-quant | 04b81568b900d226bb7028ccbe81ea97d0c00587 | a80b06aab28f38c3c6cb298e96f497e4fcdb95a5 | refs/heads/master | 2022-12-18T23:51:38.297857 | 2020-09-08T06:14:16 | 2020-09-08T06:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from .prediction import assemble_prediction_frame | [
"ch9.ki7@gmail.com"
] | ch9.ki7@gmail.com |
51d514b03c5d8f55cd4062f7f5d8f84380a4ae58 | 8288c6f44ed26292b0795d2290763e19043a058d | /lab9gradient.py | 81a01b213cfa165f7db1d35c6a268be0b35c433e | [] | no_license | szymonln/Mownit2 | d763a1a40b44c45a6a95f26b355cf7442ff58943 | d27d1e194133e6930109eb4d2261bb10dd0590fa | refs/heads/master | 2020-04-03T15:33:26.161354 | 2019-02-08T14:31:46 | 2019-02-08T14:31:46 | 155,366,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | cur_x = 3
rate = 0.01 # Learning rate
precision = 0.00001
previous_step_size = 1
max_iters = 10000
iters = 0
df = lambda x: 2*x - 2.71 #Gradient
while previous_step_size > precision and iters < max_iters:
prev_x = cur_x # Store current x value in prev_x
cur_x = cur_x - rate * df(prev_x) # Grad descent
pr... | [
"szymonln@gmail.com"
] | szymonln@gmail.com |
e3bb0a08160c3b5afbb1561fc67f5e5b2b320380 | 43a676d507c9f3e007d46b9335c82f77e35350f6 | /config/wsgi.py | df17ccb416ed061cc0afd7cf24b277bc198a94b4 | [] | no_license | Zoxon470/nekidaem-blog | 79136fd9f4747afd01beb02bfd9d0c524493a6f6 | c2539963d149841397e9eb2d4153a73abea15da2 | refs/heads/master | 2022-05-02T20:14:05.805564 | 2019-06-27T21:50:57 | 2019-06-27T21:50:57 | 194,165,211 | 0 | 2 | null | 2022-04-22T21:53:15 | 2019-06-27T21:25:07 | JavaScript | UTF-8 | Python | false | false | 340 | py | import os
import sys
from django.core.wsgi import get_wsgi_application
app_path = os.path.abspath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.pardir))
sys.path.append(os.path.join(app_path, 'nekidaem-blog'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'config.settings.dev')
application = get... | [
"zoxon470@gmail.com"
] | zoxon470@gmail.com |
ca649f8cd329ae6e3c66facc2dfe5d27aa53dc6b | a70538105d0cb172c2f5628f083d53529904941b | /Watermelon.py | 04c38d409a4fa100bf7fb7a115aef465f1a1019a | [] | no_license | Raihan-009/Codeforces | 792be79991d1ade5aa87e779506173b5d4fac442 | 3bb53f2561a29793964ebaf76848de5be8ba975e | refs/heads/master | 2022-09-12T09:40:45.988289 | 2020-06-01T14:24:48 | 2020-06-01T14:24:48 | 268,368,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | '''
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.
Pete and... | [
"64744693+Raihan-009@users.noreply.github.com"
] | 64744693+Raihan-009@users.noreply.github.com |
494f4579cf7fca7b1eb90c375efb34a67f6d3cd4 | e319b3f9b80f0e8a843cec7edd65f19baa0c9f3b | /Interface/Dialogs/SpendOrRestoreSpellPointsDialog.py | 3aa7c90fe3e39e7fa58af55d966d06d1c6e5583f | [
"MIT"
] | permissive | Snackhole/PyFifth | 0e852ece4ef37d0cfa952d0b47d1d9c42ea6b1fd | 2a5419dea0309119d3ffbb5ba33ec14395d6dd59 | refs/heads/main | 2023-08-19T02:00:20.433299 | 2023-08-01T00:21:56 | 2023-08-01T00:21:56 | 125,868,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | from PyQt5 import QtCore
from PyQt5.QtWidgets import QComboBox, QLabel, QPushButton, QDialog, QGridLayout, QSizePolicy, QSpinBox
class SpendOrRestoreSpellPointsDialog(QDialog):
def __init__(self, CharacterWindow, RestoreMode=False):
super().__init__(parent=CharacterWindow)
# Store Parameters
... | [
"snackhole.dev@gmail.com"
] | snackhole.dev@gmail.com |
cbf179d79502288c0887998e124e14e76e67a723 | c271c196bf2730c20de42f75568336cd8ccd07d1 | /password_generator/settings.py | b735e335e8541b7ca0067bb54d2db2e9ee2e225f | [] | no_license | entry-dev/django3-password_generator | e68f97565944355c8001ad35a73118a8741a1106 | 74f2684e9cdd597bccf9a4aaedbc208625e42de2 | refs/heads/master | 2023-01-04T03:23:48.416370 | 2020-11-04T23:52:36 | 2020-11-04T23:52:36 | 310,145,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for password_generator project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
f... | [
"ivan.krstic@yahoo.com"
] | ivan.krstic@yahoo.com |
15834731332573ccf1a384394228b16286a05343 | f2e7442f38465fdd237c763c80f436e3f103221c | /experimental/HandKeyPointsCustom.py | caf05d577f753b76b5d6fd0187ac6e81faa72eb9 | [] | no_license | SuhelNaryal/Sign-Hawk | fda0f35efd9b0a7c17e0562efd7faac76367ab57 | 52e3e150b1ea30c7c4c15ee54f0dba09d0408dc7 | refs/heads/main | 2023-01-24T13:24:57.984937 | 2020-11-23T11:30:16 | 2020-11-23T11:30:16 | 303,287,298 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | import keras
import tensorflow as tf
def HandKeyPointsLoss(y_true, y_pred):
y_pred = keras.backend.cast(y_pred, dtype=tf.float32)
left_hand_true = y_true[:, :, 0]
right_hand_true = y_true[:, :, 1]
left_keypoints_true = y_true[:, :, 2:65]
right_keypoints_true = y_true[:, :, 65:]
lef... | [
"noreply@github.com"
] | SuhelNaryal.noreply@github.com |
62d9fb786e671921898f8a2ecbece758e2046377 | a5f5f19615d1af450338b8d1071b940bcc68ab91 | /core/mixins.py | 9beda68da1934370bd1b925f13dde7f55033d5b7 | [] | no_license | duydo131/hotel | 987943dc184d3f98fe96ddbd16c6a4453605c9e3 | b010d84a657ddb54c1f6c6add656fe21e5f74a31 | refs/heads/main | 2023-06-15T09:14:37.109199 | 2021-07-16T03:26:02 | 2021-07-16T03:26:02 | 369,415,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from rest_framework_extensions.mixins import DetailSerializerMixin
class GetSerializerClassMixin:
serializer_action_classes = {}
serializer_detail_class = None
queryset_detail = None
def get_serializer_class(self):
try:
return self.serializer_action_classes[self.action]
ex... | [
"dotheduybk131@gmail.com"
] | dotheduybk131@gmail.com |
8001d2f7a9d565237552aea7cbf4fd1650d437b9 | 912196d86c93c29b3b031792e3cf886420a0fbde | /core/rnn/rnn_minibatch_test.py | c8e233c8e50eb5ebf1c20a8a41d63c0c12daa8c2 | [
"Apache-2.0"
] | permissive | brian-lau/guac | fce363745c9a778733f1df765fd9c3b832fdeef4 | c3db6cdbe56a1cb04486650ea5473287ba159ad4 | refs/heads/master | 2020-05-29T11:55:34.494957 | 2015-10-28T02:17:34 | 2015-10-28T02:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,065 | py | # adapted from https://github.com/lisa-lab/DeepLearningTutorials
from collections import OrderedDict
import copy
import os
import re
import random
import timeit
from hyperopt import STATUS_OK
import numpy as np
import pandas as pd
from scipy import stats
import theano
from theano import tensor as T
import common
... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
99e00483b2fcb94681bab327da53cc9bd655b160 | 9644e6b9b8bf64dac7b95cd527b5364653bf7ea7 | /stuff_map/migrations/0002_car.py | 7969ea652672628e197f29e5bbe827b897c46cb4 | [] | no_license | mittonface/stuff_map | d6e651cb0fc96c3985e4ca4cfa0f75000c4f78e0 | 5b758ee713c4c11c3a5c4ffceac04ea80b5583bb | refs/heads/master | 2020-06-14T03:59:39.848546 | 2016-12-04T17:21:16 | 2016-12-04T17:21:16 | 75,493,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-03 17:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stuff_map', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"bmitton@gatech.edu"
] | bmitton@gatech.edu |
b2cd196a4e77d83e542be25199838e0b8ec80ff9 | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/assessment/automate/formatters.py | dac02f8f9749219cec476cf1e0392f3c9036f96a | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 2,065 | py | def rca(import_value, export_value):
if import_value is None or export_value is None:
return "NA"
elif import_value > 0 and export_value > 0:
return "Specialised"
elif import_value < 0 and export_value < 0:
return "Unspecialised"
return "Inconclusive"
def rca_diff(import_value,... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
aecb50d16e4b98d83419ea535baee6629c26a325 | 8060b19318440ff2fbd728afd9435d4b5a3f1da6 | /code/metadata/build_nodelist.py | ae79eb7f27e1ed301c80a478032048397612d20c | [] | no_license | Irallia/IZW-HU-Parasites | dae82db2600a96bdce7cffb228c07cdc6dde5226 | b0d70f671fa489ba132e2cffb81ff6d6fc431fe5 | refs/heads/master | 2021-01-25T08:13:18.646633 | 2018-05-20T20:25:51 | 2018-05-20T20:25:51 | 93,733,091 | 4 | 3 | null | 2018-03-21T13:36:06 | 2017-06-08T09:43:17 | TeX | UTF-8 | Python | false | false | 4,547 | py | import csv
import datetime
import sys
from code.utilities.Helpers import print_time
from code.utilities.nodelist_util import read_tags, tag_node
from time import gmtime, strftime
from Bio import Phylo
from termcolor import colored
# path_freelivings = "./data/interaction_data/reduced_freelivings.csv"
# path_parasites... | [
"irallia@chrigelyra.de"
] | irallia@chrigelyra.de |
50956f529320e551f07a71600677d930f51f66ab | 4b7883843049d01fa718368f09ee0aa41167f595 | /1HelloWorld.py | e27b7c5f2a359339b94f53dc65f6d1b6e00538f6 | [] | no_license | rickyjreyes/Python_Tutorial | fac324fa94e28e45f8c1293b6c4f0fe8db714052 | 00c1e90e732a6066f1324df52ee6832a85b5d6bb | refs/heads/master | 2021-06-12T03:33:53.140440 | 2017-03-19T08:25:15 | 2017-03-19T08:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # HelloWorld.py
#
# First Program!
# This prints hello world
print("Hello World!")
# More Practice: Make 5 of your own prints
print("My name is Ricky!!!!")
print("My favorite color is blue!!!!")
print("Video games are cool!!!!")
print("I love to code!!!!")
print("This is Python :)")
# This is a... | [
"noreply@github.com"
] | rickyjreyes.noreply@github.com |
bb78b536e10ed1c070713095bc6926c0d668fe9b | 680ef089e77f3d510f0fbe7d632c01fb497e2a57 | /manage.py | 6b33c09231ad589a05eba9ffb021c19d258c0cd0 | [] | no_license | kupuk090/idaproject_test | 3fa4ef68ba9ca921edb4ad603ba39e5c9a3f9b7f | e92cbf615bc360fc44f45c746be3f4431b48ee41 | refs/heads/master | 2023-04-09T10:29:22.869203 | 2021-03-21T22:59:41 | 2021-03-21T22:59:41 | 350,136,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'image_resizer.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"kupuk090@gmail.com"
] | kupuk090@gmail.com |
8664746b874b28b034fc07228953772e842c71df | 392b644e8be2bdd5cb0e2656483786a7ce6c1ef9 | /setup.py | ffbe34a51be9405e0e1d23e19a09f3910435ace8 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"Python-2.0"
] | permissive | pandrey76/python_client | 67287b41a826ed6c2c1c5b87f30582261e35777c | 3b8a8ca471dbb2178687e7febbf216f81b49fcca | refs/heads/master | 2022-04-12T15:29:49.863787 | 2020-02-13T03:31:08 | 2020-02-13T03:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | #!/usr/bin/env python
"""
setup.py file for GridDB python client
"""
from distutils.command.build import build
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
try:
with open('README.rst') as f:
readme = f.read()
except IOError:
rea... | [
"katsuhiko.nonomura@griddb.org"
] | katsuhiko.nonomura@griddb.org |
840981ee699fd005cdcb4fa9ecbb2214b62fced0 | a6986f430351dcc871d035f8361ca377ddc90edf | /HouseAnalysis/house/migrations/0001_initial.py | afdaea7fc6b90257183f31bc00fc8691e54c02e0 | [] | no_license | qijianchuan/HouseAnalysisWeb | d9f65a91cb1dba2bfea482214c6b532a59e21a8c | 8a619c77bdfb3516c37df912d6fe7bf14d27e706 | refs/heads/master | 2023-03-15T23:23:02.677191 | 2020-04-30T14:59:19 | 2020-04-30T14:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,836 | py | # Generated by Django 2.1.5 on 2020-03-12 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Api',
fields=[
('id', models.AutoField(auto... | [
"zj20162325@163.com"
] | zj20162325@163.com |
9207dc3cabf5a523ba87298730ea3d3b9f8d7750 | 7a01d168819027ed74021395edf55c79419b1e74 | /miSitio/urls.py | 06f844768f45cce9e92f4a22619de57896d7bf07 | [] | no_license | TeresaHRivas/my-first-blog | 4f2347f53faf222f7279de1d89f282815cf94422 | a6794fca9249ec2d41730f4e420c537e09d045d4 | refs/heads/master | 2020-07-20T15:21:27.431700 | 2020-02-28T22:36:38 | 2020-02-28T22:36:38 | 206,666,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """miSitio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"teresahrivas4@gmail.com"
] | teresahrivas4@gmail.com |
b7b979b04b0a3ebb22cfc3527178b9ed7832184d | e104a337a1e3ced474511d258645109641aca01d | /movie/views.py | 71f002084a1d9a6d4d76757bebb7e17068740b8b | [] | no_license | mjkya/MovieVersity | 3be879faa68ce6855cc8e935723a50f7b5ed790f | 7eede648bb9d8bb8108c780feb513bfc8884bc89 | refs/heads/master | 2020-05-19T10:51:18.997948 | 2019-09-01T06:32:26 | 2019-09-01T06:32:26 | 184,977,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from django.shortcuts import render,redirect
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
# Create your views here.
from .models import Movie
from django.urls import reverse_lazy
from .parser import parse_movie
def movie(request):
re... | [
"noreply@github.com"
] | mjkya.noreply@github.com |
e706179c11effcfa8f133d63d2655724fca4d1e9 | 0005e05b9d8b8ad0d3c3c0539b2ded9db6e9f1dd | /codechef_client/models/tag.py | 4cdd6e64295823ef02e369ae6ce1a056970ea646 | [] | no_license | termicoder/codechef-client-lib | a3e3de2b300355c5daa5ed3fad03a9859af13d86 | 74d6b21787c75a987e3451751f5554e4cc6cf469 | refs/heads/master | 2020-03-27T17:58:45.298121 | 2018-09-30T18:03:14 | 2018-09-30T18:03:14 | 146,889,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | # coding: utf-8
"""
CodeChef API
CodeChef API to support different applications. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Tag(object):
"""NOTE: This class is auto... | [
"diveshuttamchandani@gmail.com"
] | diveshuttamchandani@gmail.com |
0ee27c2b6c2029409b39052286ba40d81a836616 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShHBJJMM/YW_HBJJMM_SHSJ_067.py | 4cb90cd9223c79893514c907a5e29a58cc20a03f | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from log import *
sys.path.append("/home/yhl2/workspace/xtp_test/MoneyFund/moneyfundservice")
... | [
"418033945@qq.com"
] | 418033945@qq.com |
1c5c459904e78434ad22ecd6cb261de1f2c29f83 | 4c378e60497ce892f5c25cbe7d6fc439124141ea | /solutions/226. Invert Binary Tree.py | 96d9017e0473c9f2cd4b047c540206dea030ce6d | [] | no_license | udhavsethi/play | 8008369d4c582f6db33a5737a3d9d68e5afc38c3 | 885d5b6e0a05051554fb61eb501a44a785098f3a | refs/heads/master | 2021-11-27T11:40:52.847607 | 2021-11-23T18:49:40 | 2021-11-23T18:49:40 | 147,461,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
if root:
root.left... | [
"udhavsethi@users.noreply.github.com"
] | udhavsethi@users.noreply.github.com |
ca9384417c7381029549dc4cefe6c3c2371e83ab | 9547ba5d65029c7eb3975d888bc1c5579bd455c2 | /Spark-DF-Sql/10-AggregationsDemo/AggDemo.py | e8ad9a72a4caf8bdd34de50850b03aef84c65224 | [] | no_license | vinayavs/spark2-python | 53ebd2769525eca2e3727cb171fd43de87fd9d84 | bba1eedd232bd0ea3d1ac72293475d561326c1a4 | refs/heads/main | 2023-04-08T15:29:25.391387 | 2021-04-06T07:32:34 | 2021-04-06T07:32:34 | 352,007,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from pyspark.sql import SparkSession
from pyspark.sql import functions as f
from lib.logger import Log4J
if __name__ == '__main__':
spark = SparkSession.builder.master("local[2]").appName("Aggregations Demo") \
.config("spark.sql.shuffle.partitions", 2) \
.getOrCreate()
logger = Log4J(spark)
... | [
"vinayavs@gmail.com"
] | vinayavs@gmail.com |
0e65d65def490ae82f7776d64b2d70c86abf7d55 | b838b2ecce195d1293b0ff485b3d76bc0adb5d70 | /st36/Film.py | 1b7fe8b7ddd61874118e09afd00ffd4cf7fdb2cb | [] | no_license | BelyaevaSveta/ASM.17.Lab1 | e4d37c8b7600cf3f7bf787dd396678315b19d57d | ee20998877a4e511a778a7afd52cb977b55aa2f5 | refs/heads/master | 2021-05-07T04:52:05.904334 | 2017-11-28T10:30:42 | 2017-11-28T10:30:42 | 111,489,081 | 0 | 0 | null | 2017-11-21T02:36:19 | 2017-11-21T02:36:19 | null | UTF-8 | Python | false | false | 1,363 | py | from .Actor import Actor
import pickle
class Film:
def __init__(self):
self.enter_film_name()
self.actors = {}
def enter_film_name(self):
self.film_name = input('Enter new film name: ')
def print_film_name(self):
print('Film name is %s' % self.film_name)
def print_al... | [
"noreply@github.com"
] | BelyaevaSveta.noreply@github.com |
ad0df481b83aad3cb9398d08e94d900100182e33 | 1db17195776328739b465902f6bf2d53bff0f9ac | /logs/2021-09-08-11-39-20/ricequant.py | 24df136b934372a0a551256e7528110b92791d25 | [] | no_license | eulancer/convertible_bond | 01f56d3d318dd7343e2547b3c6a1ad184c25880d | 2778fb5ee2c0145758565e5cfe83392a879d429b | refs/heads/main | 2023-07-28T22:43:45.553292 | 2021-09-18T09:16:40 | 2021-09-18T09:16:40 | 407,878,522 | 1 | 0 | null | 2021-09-18T14:12:34 | 2021-09-18T14:12:33 | null | UTF-8 | Python | false | false | 5,808 | py | # -*- coding: utf-8 -*-
from datetime import date
import rqdatac
import pandas as pd
def read_data(today):
txn_day = rqdatac.get_previous_trading_date(today)
df_all_instruments = rqdatac.convertible.all_instruments(
txn_day).reset_index()
df_latest_bond_price = rqdatac.get_price(
df_all_in... | [
"paulhybryant@gmail.com"
] | paulhybryant@gmail.com |
92cd077f58237f62504c76208cda5a489cb6ee9f | 525252226b3c6b76fd0916084e9de7de9db2ae60 | /backend/tests/test_gasfeed.py | d13ec3c809b000f2b5ee40bcdbc9ac1753047945 | [] | no_license | james4388/gas-price | 8215f429249d2985ea964eea6ea7e63b74faf7b8 | 3e380146a8698c84443bba2b11f3829710ad0e69 | refs/heads/master | 2022-12-02T14:17:15.893681 | 2020-08-06T05:29:25 | 2020-08-06T05:29:25 | 278,273,476 | 3 | 0 | null | 2020-07-15T18:17:16 | 2020-07-09T05:41:30 | JavaScript | UTF-8 | Python | false | false | 1,221 | py | from flask import url_for
from tests import BaseTestCase
from gasprice import config, create_app
class GasFeedTestCase(BaseTestCase):
def test_brands(self):
with self.app.app_context():
resp = self.client.get(
url_for(
'GasFeed.station_brands'
... | [
"nhutrinh@leafgroup.com"
] | nhutrinh@leafgroup.com |
1df207e3ac0e742b82e1992b634d3bbf48dbfbe2 | 70331cc864c44a3f30883d40073f048d1a5a8e3f | /main.py | 69d7007bdd8659110ec9a209219a24a98be176d3 | [] | no_license | rmar6544/Day-7-Hangman-3-Start | 5c0f310925b8ba4b3f87db019c7f25e94865cfd8 | ea538f6cff8433bc9ee90c32794593c938d8a4e5 | refs/heads/master | 2023-04-04T23:43:08.966646 | 2021-04-07T23:06:28 | 2021-04-07T23:06:28 | 355,696,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | #Step 3
import random
word_list = ["aardvark", "baboon", "camel"]
chosen_word = random.choice(word_list)
word_length = len(chosen_word)
#Testing code
print(f'Pssst, the solution is {chosen_word}.')
#Create blanks
display = []
for _ in range(word_length):
display += "_"
#TODO-1: - Use a while loop to let the use... | [
""
] | |
3e0492db360ce01a76f540ff3bf14d2133ae8153 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bogies.py | e575bb083362fdfd4e25d0bf21f424dc5070f88d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._bogy import _BOGY
#calss header
class _BOGIES(_BOGY, ):
def __init__(self,):
_BOGY.__init__(self)
self.name = "BOGIES"
self.specie = 'nouns'
self.basic = "bogy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1fabea699593b6f7717d53f0a54019114c626198 | 470c55bca410969d772593c5b0cc7f63fc97354f | /compiler/tools/conf.py | 3fb06ce1918cb2e16b6a819e5802c9294f1a0a41 | [
"BSD-2-Clause"
] | permissive | knz/restcrumbs | b19fd250a021f1b77c25a48c7163204d4021381d | 494ea1fc5788b0ec8823e0000607da4187c39986 | refs/heads/master | 2016-08-08T15:22:52.301680 | 2011-02-28T18:38:56 | 2011-02-28T18:38:56 | 1,422,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | # -*- coding: utf-8 -*-
#
# Blah documentation build configuration file, created by
# sphinx-quickstart on Tue Nov 9 10:40:39 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | [
"r.c.poss@uva.nl"
] | r.c.poss@uva.nl |
dffede7cbbfa98929853b8241f6a1e945007f560 | e5fb2d912415c302221604126afa7cbbb0a039c0 | /keras_gym/policies/test_special.py | d19afe8e363fc4399127c8f76a179ab42414bef4 | [
"MIT"
] | permissive | KristianHolsheimer/keras-gym | fc034025a1180b1124fe1a25886b54088d2f3552 | 0296ddcc8685e1ce732c3173caaa0fd25af9ef58 | refs/heads/master | 2021-06-28T21:57:50.122753 | 2020-09-30T04:29:15 | 2020-09-30T04:29:15 | 174,637,157 | 17 | 5 | MIT | 2019-08-02T22:48:41 | 2019-03-09T02:09:03 | Python | UTF-8 | Python | false | false | 1,012 | py | from gym.envs.toy_text.frozen_lake import FrozenLakeEnv, RIGHT, DOWN
from .special import UserInputPolicy
class MockInputFunction:
def __init__(self, return_value=None):
self.return_value = return_value
self._orig_input_fn = __builtins__['input']
def _mock_input_fn(self, prompt):
pri... | [
"kristian.holsheimer@gmail.com"
] | kristian.holsheimer@gmail.com |
097439d4e5e15a04cbe777f77fd0434256fd16d1 | a61ca7b89ef5817b2027239ece9dd175f776c8f3 | /rcsb/app/chem/LogFilterUtils.py | 86c6b9113eaef1e38f51a767d80d66d89057586c | [
"Apache-2.0"
] | permissive | rcsb/py-rcsb_app_chem | 7da2941f6e0d0f8ff0f5a802a3edb689d283659b | 64ca10e6ccf8b604fa3d16ab72406408b22c0aca | refs/heads/master | 2023-08-17T21:33:51.660687 | 2023-01-09T17:30:07 | 2023-01-09T17:30:07 | 245,858,180 | 0 | 0 | Apache-2.0 | 2023-01-09T17:30:08 | 2020-03-08T17:31:37 | Python | UTF-8 | Python | false | false | 866 | py | ##
# File: LogFilterUtils.py
# Date: 29-Jun-2020 jdw
#
# Pre-filter for Gunicorn/Uvicorn health check requests -
##
# pylint: disable=E1101
import logging
logger = logging.getLogger(__name__)
class HealthCheckFilter(logging.Filter):
def filter(self, record):
return record.getMessage().find("/healthcheck"... | [
"john.westbrook@rcsb.org"
] | john.westbrook@rcsb.org |
83da69b3ca2edaf7ca26891e03e9d0eafd7f5cb2 | 3cbf8706ea6655aad48d6bb0c34a4d7f5d6b2fdf | /depth/self_supervised_sfm/train.py | 73671c45601f5f768f1fe3bf22a2e3a02d20caad | [
"MIT"
] | permissive | seo-dev/cvml_project | cf166f7aa513bdbc5b23941d8cb19b53bbdc400b | 7c95ce22db6f31dc4624af9417edffde021b5351 | refs/heads/master | 2022-12-06T07:43:11.906512 | 2020-08-27T03:08:38 | 2020-08-27T03:08:38 | 290,434,881 | 1 | 0 | MIT | 2020-08-26T08:04:37 | 2020-08-26T08:04:36 | null | UTF-8 | Python | false | false | 14,224 | py | import argparse
import datetime
import os
import tensorflow as tf
from dataset import KittiSFMDataset
from disparitynet import DisparityNet
from posenet import PoseNet
from utils import pixel_coord, ssim_loss, smooth_loss, bilinear_sampler, forwardproject, backproject, disp_to_depth
parser = argparse.ArgumentParser(... | [
"daryl.tan@easymile.com"
] | daryl.tan@easymile.com |
d5c3dd5a7e5b2f8332dda72ef2737f66f62832b9 | 4f35782ac42f1cc65581b6f21b7a80be8f0164cc | /resources/todo_item.py | 86400c55f8c6821098187dc26050847564cb707d | [] | no_license | Rhemm/berry | 2da3cb202040b130ff566a78f6fb98efac1cace4 | 0c908bc4cbbdf770ac8c5b66d0cbf2b115ac456b | refs/heads/master | 2020-04-23T21:04:40.382398 | 2019-02-21T04:47:18 | 2019-02-21T04:47:18 | 171,459,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | # -*- coding: utf-8 -*-
# pylint: disable=R0201
"""
Module providing todo item resource.
"""
from flask_restful import Resource
from flask_restful.reqparse import RequestParser
from flask_restful.inputs import date, boolean
from bson import ObjectId
from application import mongo
from common.utils import validate_id
... | [
"yslfhe@gmail.com"
] | yslfhe@gmail.com |
a20070b324979ddb978268aa926e7c238120fb98 | 94354828fc025e091165d2a68d692d6645290140 | /apps/user_operation/adminx.py | 8e02327027feb7c3efba6a92eb832823ded15720 | [] | no_license | simon-wxm/MxShop | 02350944a9756887dcd4a95aebf8801fea6df54f | 309b9e52b9e018b9ab5a7631492d59b280b085d6 | refs/heads/master | 2022-12-13T13:41:43.660462 | 2019-07-04T10:40:16 | 2019-07-04T10:40:16 | 191,779,173 | 0 | 0 | null | 2022-12-08T01:04:15 | 2019-06-13T14:31:42 | JavaScript | UTF-8 | Python | false | false | 543 | py | # coding = utf-8
import xadmin
from .models import UserFav ,UserAddress,UserLeavingMessage
class UserFavAdmin(object):
list_display = ['user','goods','add_time']
class UserLeavingMessageAdmin(object):
list_display = ['user','message_type','message','add_time']
class UserAddressAdmin(object):
list_disp... | [
"wangxm5721@163.com"
] | wangxm5721@163.com |
26288ab26b891bd354d684ad66484d83d8fb746a | bf0b7643d9d9f83ea2820df9847a11cf52c8a5bc | /app/models.py | a9b6171b3936f4c683ccee0846d8cfc24309bd39 | [] | no_license | ducknessman/dust | 269851e4f420e01da14247565d65deff7c7c2a17 | 5dad23fd39aa5302f2e17dd286beca7b82446fcc | refs/heads/master | 2023-05-11T07:44:23.914855 | 2020-08-17T12:30:45 | 2020-08-17T12:30:45 | 259,030,166 | 2 | 1 | null | 2023-05-01T21:40:59 | 2020-04-26T12:54:17 | CSS | UTF-8 | Python | false | false | 7,069 | py | #!/usr/bin/env python
#! -*-coding:utf-8 -*-
#!@Author : zhuxx
#!@time : 2020/05/06 19:04
from datetime import datetime
from exts import db
from werkzeug.security import generate_password_hash,check_password_hash
# 用户表
class User(db.Model):
'''
_password:对内密码
password:对外密码
'''
__tablename__ = 'us... | [
"1160154212@qq.com"
] | 1160154212@qq.com |
3084a00a20347e2a00d4110f699cde1dff559340 | d1a5d8bdaf7c27daf3a5aebde84be7cefa371723 | /dlc2_model_training (copy).py | 115e631869346886b255211c96b48c7808389be2 | [] | no_license | sambeettiady/dlc2_he | 1c7b811f3294022edaeb59494a19731badfbf56d | c54d5365b742951524458b92d0b31b028f9e195d | refs/heads/master | 2020-03-30T06:07:49.117344 | 2018-09-29T08:05:31 | 2018-09-29T08:05:31 | 150,840,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,333 | py | #Import image transformation packages
import skimage
from skimage import filters, io, exposure, color, segmentation, feature, morphology
from skimage.feature import canny
from scipy import ndimage as ndi
from scipy import misc
import skimage.transform as skt
#Import required packages
import numpy as np
import pandas a... | [
"noreply@github.com"
] | sambeettiady.noreply@github.com |
6a08c2f08d79f432c3bf319defed10312a65bde4 | 3501c13c0465b6a4a333840243b583710dbeb959 | /kodēšana.py | 48b2a7a204b83790edb1610465ad2a5f88ac9fcf | [] | no_license | DaigaSarkane/RTR105 | e5032330fe42e08c925013ccc815118bfd23b7cc | 13a619bc8e61938758643be95b163fb58c6758ad | refs/heads/master | 2020-03-28T03:24:01.695389 | 2019-05-03T08:46:25 | 2019-05-03T08:46:25 | 147,642,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> original = "To be or not to be"
>>> type(original)
<type 'str'>
>>> len(original)
18
>>> original[0]
'T'
>>> original[1]
'o'
>>> original[2]
' '
>>> original[18]
Traceback... | [
"daiga.sarkane1@gmail.com"
] | daiga.sarkane1@gmail.com |
f496a31b97699a52d2a516cdc3c0651dbc0f2db5 | ce68b4e79620f8209b22bb72f8896c9a7cc01698 | /dis_train_week.py | 3f6b93b0465af25304fb167aef7fb7d8d25cdf62 | [] | no_license | ajithpad/Indian_railways | 2eb82f093361ce891026e6d88a7adbcff75f76bc | f6d9d2908127e3f945180c95b47191d74949add9 | refs/heads/master | 2021-01-20T17:07:12.057935 | 2016-11-11T07:57:01 | 2016-11-11T07:57:01 | 62,805,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | #Code to use bokeh to plot the distribution of trains for a given station across the week
import pickle
import numpy as np
from bokeh.charts import Bar, output_file, show
import pylab as pl
import seaborn as sbn
from bokeh import mpl as mpl
from bokeh.io import output_notebook, show
dis_trains = pickle.load(open("da... | [
"ajith.physics@gmail.com"
] | ajith.physics@gmail.com |
8ada09c41d2c212d35513c2278b4de86e8462604 | 1619eff6f62daf2109134cf49f1a1f8c4a45d639 | /product/urls.py | eea12a79437bfc40a6f0fb188604935c3db8daec | [] | no_license | Loay159/esntls.co | aa92a4647cdecaa159f69b175aefa813c5af358d | 5cafef4267e1bdf115c5a49a0fdf66580721a478 | refs/heads/master | 2023-08-03T10:12:27.188706 | 2021-09-23T09:15:01 | 2021-09-23T09:15:01 | 403,773,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | from django.urls import path
from .views import *
from dynamic_rest.routers import DynamicRouter
urlpatterns = [
# path('', ProductsAPI.as_view(), name='All_products'),
# path('<int:id>', ProductItem.as_view(), name='specefic_products'),
# path('category/<slug:category>', CategoryAPI.as_view(), name='Men_p... | [
"88399225+LoayAshraf@users.noreply.github.com"
] | 88399225+LoayAshraf@users.noreply.github.com |
5da9adf25b89d369656bd244e97b7be62c895405 | ce918cd9b23a4cd44861a8ba7448abac218c9761 | /0x03-python-data_structures/11-delete_at.py | 22abba5f9291ba9766a7213758d301401397b5fc | [] | no_license | adrielt07/holbertonschool-higher_level_programming | 80318056730a5c1bea0e95f7308b1499fab93a22 | adb04252e63ba714d2c65f25597778c89f6878a9 | refs/heads/master | 2020-03-09T14:48:29.225685 | 2018-10-07T00:48:45 | 2018-10-07T00:48:45 | 128,843,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python3
def delete_at(my_list=[], idx=0):
if idx < 0 or idx > len(my_list)-1:
return my_list
del my_list[idx]
return my_list
| [
"adrieltolentino@outlook.com"
] | adrieltolentino@outlook.com |
b739d2efc981f15f251d102759aa0a3696382421 | 975a3b8189fffde47256b52901bcce9b5d8b1001 | /app.py | 6e0e28db9d423cdf8e340b69678b4ee67aaaa5b4 | [] | no_license | FrancisGKing/RedditToMessengerBot | f7db66e7b6b3150dd42473002ddd7eb11efc47df | 25c4f09da5c5b456f88738b00cd6674bedb984ef | refs/heads/master | 2020-04-17T03:39:27.733581 | 2019-01-17T09:09:19 | 2019-01-17T09:09:19 | 166,194,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,438 | py | from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
import json
import requests
import os
import praw
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
db = SQLAlchemy(app)
reddit = praw.Reddit(client_id='QhZh0AZf4HlrXg',
client_secret='g7vBRIAfYRFEBJtXr... | [
"francis.kingjr@gmail.com"
] | francis.kingjr@gmail.com |
2e3fcba553d7bb1fd1bf38c8ca6fd92ca74e91d4 | be862c96024320595afd7736605f94928be5f90d | /Crawler/私活/person_info.py | a8ea63dff59472dc088f8a2670225911586b8e2d | [] | no_license | SmasterZheng/leetcode | 1b35b72efc6ea6add605d08b13d7abcffbdf05e8 | 11b33fcbab47969ebd0bfc2f41cb50a976881910 | refs/heads/master | 2023-04-24T14:45:53.285565 | 2021-05-15T06:52:29 | 2021-05-15T06:52:29 | 264,981,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,091 | py | # -*- coding: utf-8 -*-
# @Time : 20201228
# @Author : zhengxz
import requests
import json
from bs4 import BeautifulSoup
import pandas as pd
def get_html():
'''获取html'''
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-e... | [
"xiaozhangzxz@163.com"
] | xiaozhangzxz@163.com |
b696c2d48b27c31a6a2b374d40a31649b1a5774c | 28d5b9d208a861703840837ad6302cd7e3f84d42 | /process.py | 87a80d181d435e34caf88251aacfe4543cab462d | [] | no_license | jagmeet787/Malicious-App-Detection | d4f5ee9b747d05799886483b157c62a15a94420b | c5925a36aafcbc60ccd30c69685220644652c34c | refs/heads/master | 2020-05-14T17:58:33.647278 | 2019-04-18T18:26:04 | 2019-04-18T18:26:04 | 181,902,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | import time
from permissions import PermissionsResource
from database import database
from androwarn.warn.report.report import generate_report
from androwarn.warn.analysis.analysis import perform_analysis
from androwarn.warn.search.search import grab_application_package_name
from androguard.misc import AnalyzeAPK
... | [
"jagmeet787@gmail.com"
] | jagmeet787@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.