blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d95d91e5870c43cbc1823099e8f62573c5ba5211 | 4a9de9ef1d1024fa72766e0e3a57749b0144e962 | /code/DM-Assignement-Kmean.py | c41baec9f06b47cf7e9afd996d36a3be662c5181 | [] | no_license | amitesh007/Data_Mining | 56b34896c6aeb0c87656aab37d9a4504f6e87676 | dea256cd0dbb7e34a1d6e258f4a45d55effac383 | refs/heads/master | 2020-04-04T15:49:05.615312 | 2018-11-04T06:02:26 | 2018-11-04T06:02:26 | 156,053,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,507 | py | """
Created on Mon Apr 23 12:14:42 2018
@author: Amitesh ranjan Srivastava
K-Means Clustering
"""
# Importing the libraries
import numpy as np
import pandas as pd
import random
def Kmean(proj):
filename=proj+".csv"
# Importing the dataset
dataset = pd.read_csv(filename)
total=len(data... | [
"noreply@github.com"
] | noreply@github.com |
17f11892021aba94087e4fa3abc455f4236097cc | 62a3fb17e7a6e7b553c519d1f44b64da0c92a36e | /server/api/admin.py | 5bad30814a93eed737cb507d61291f126bf70eb3 | [] | no_license | realitylab-at/dsb | 2e826ce623fc2fc5a2ca44e6502fcb6aabd8833a | 4e3d5dd69b3d5f21de13bc40e547887e0baa97bc | refs/heads/master | 2023-01-14T00:33:18.066428 | 2021-04-06T06:20:12 | 2021-04-06T06:20:12 | 233,031,537 | 1 | 0 | null | 2023-01-02T12:02:18 | 2020-01-10T11:18:31 | Python | UTF-8 | Python | false | false | 14,027 | py | # -*- coding: utf-8 -*-
import time, pytz
from datetime import datetime
from django.core import urlresolvers
from django.db.models import Q
from django.contrib import admin
#from django.contrib.contenttypes import generic
from django.contrib.admin import SimpleListFilter
from django.contrib.admin.models import LogEn... | [
"interface@p3k.org"
] | interface@p3k.org |
f376c1088626c268f63d016c25d700098d8d3d36 | ce6d35d356ba5696718abb41aa47da14b1e849a4 | /python-tools/mySplines.py | eab74b44eac0efc497192ee0f806198c36cf1480 | [] | no_license | lucaparisi91/qmc | 6a59993de84ce69ca52f255efebf2474d9891b22 | 238e51cdf0df367c78f5e315c52acb0350b6e184 | refs/heads/master | 2021-01-10T07:39:07.615316 | 2018-05-02T15:09:45 | 2018-05-02T15:09:45 | 47,068,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import numpy as np
from math import *
import matplotlib
# creates an array to fit
x=np.arange(0,pi,0.01)
y=np.sin(x + 0.5)
| [
"luca.parisi91@mail.com"
] | luca.parisi91@mail.com |
1e7759a2c76745ca96fd467642d869d2be1612be | 2d0f735dc972cf667e5d57a371b5bf2f91980440 | /Stack/NextGreater.py | ed08df815ec12f4d38907521da0aec892df0db74 | [] | no_license | Georgeyjy/LeetCodeSolutions | 81b175818f62960f8a9793052f72c773b4b89e3b | d2a38667103deb0c2f2985a81cfb3b8a3632ed58 | refs/heads/master | 2023-07-19T17:45:00.857689 | 2021-08-25T02:56:33 | 2021-08-25T02:56:33 | 299,679,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# @Time : 2021/8/23 17:25
# @Author : Yang Jianyu
# @File : NextGreater.py
# @Software: LeetCode
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
res, tmp = [], []
def recover_nums2():
while tmp:
nums2.append(tmp.pop())
for... | [
"yangjianyu@dragonest.com"
] | yangjianyu@dragonest.com |
9b3ced1227425e01e766e2662feb34222d969e98 | 678f3de123cbe3fe951cf4d8c0dffc1e7fbdc716 | /scripts/run_rf_optimisation_clean_300_gt.py | dac37f6462e49717f02c94b18892fa96a66ef1e0 | [] | no_license | cdesio/leaf_reco | 3c43455fc691d78f0b3e072a314d03b6e8ea9efe | 9581e30e823eab3deb0ee6b08b2f5cb8df7cb631 | refs/heads/master | 2020-04-24T02:51:44.043139 | 2020-03-31T10:57:42 | 2020-03-31T10:57:42 | 171,651,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py |
import numpy as np
from sklearn.externals import joblib
from sklearn.ensemble import RandomForestRegressor
import os
from sklearn.metrics import mean_squared_error, mean_absolute_error
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
import pickle
data_dir = '/storage/yw18581/d... | [
"yw18581@soolin.dice.priv"
] | yw18581@soolin.dice.priv |
6e7eb29cbefcb02da94a4dc5677af120f7be8255 | e03cd007b5db872f02284d4886e36c9cc07ca708 | /commerce/auctions/migrations/0006_auto_20200831_2317.py | 37bb6cda62a2f41bdac4a969da34b064bc1d769d | [] | no_license | lucascorumba/cs50-web | 38d88d2624c2e51ca4a44ddb26dab792a121cc93 | 48393b6d180c0728b71722fd2629e001b44ab005 | refs/heads/main | 2023-07-12T09:40:14.401920 | 2021-08-28T01:43:36 | 2021-08-28T01:43:36 | 392,445,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # Generated by Django 3.0.8 on 2020-08-31 23:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0005_auto_20200831_2310'),
]
operations = [
migrations.RenameField(
model_name='auction',
old_name='bids',
... | [
"noreply@github.com"
] | noreply@github.com |
a30004c94a461eeb29861d85a2c3be339ae13a97 | b687c0ad3174bad2b9a8129625a0876181f59dd1 | /calculate_cr.py | 928f7c9927eb2c99125ff207c8c65ec041f0b970 | [] | no_license | Aaron-Zhao123/ACS_dissertation | dc7bb9296707ab53737c26a86ae780743614ada1 | bf5212cd450d5a69f5227a1e64f2a27ed884e3f2 | refs/heads/master | 2021-01-22T08:39:52.350695 | 2017-06-12T14:06:37 | 2017-06-12T14:06:37 | 92,629,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import numpy as np
lenet_pr = [22.115, 92.475, 99.697, 32.914] #dynamic surgery with l1l2
# lenet_pr = [36.54, 87.90, 99.658, 18.42] #dynamic surgery
COMPRESSED_BITS = 4
# lenet_pr = [51.92, 79.84, 99.38, 49.9] #b
# lenet_pr = [35.38, 92.23, 99.55, 52.79]
lenet_pr = [i/float(100) for i in lenet_pr]
ele = np.array([0.5... | [
"aaronzhao0731@gmail.com"
] | aaronzhao0731@gmail.com |
9833d2b12e056b8b15c62a2acb3915c2751bc61e | 84f4f3c24c05d121188bc09e2e77a5c72b325462 | /ENV3.5/bin/symilar | f07e3add4c284babe9cf890de9a83ee31629f789 | [] | no_license | FremanZhang/blog | eff6e4b616f454063bec112fb0410327b8da9909 | 0fbd7b77a3dbc871205a3164ad8995ffff389e12 | refs/heads/master | 2020-03-19T20:20:16.870787 | 2018-11-22T08:03:02 | 2018-11-22T08:03:02 | 136,897,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/freman/Code/blog/ENV3.5/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"freman@yeah.net"
] | freman@yeah.net | |
a4096b7f1c4116a6ffaf257384b64bd4bd388996 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /String/6. ZigZag Conversion(Med).py | 1e80504fb03188e5ba70ed8751bed04c9c9c96c4 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | class Solution:
def convert(self, s: str, numRows: int) -> str:
if numRows == 1:
return s
store = [["" for _ in range(len(s))]for _ in range(numRows)];
i = 0;
m, n = -1, 1;
while i < len(s):
if m == -1:
m += 1;
n -= 1;
... | [
"huangxingyu00@gmail.com"
] | huangxingyu00@gmail.com |
d85ff8da66e28d47df80755796b5b30c21127fba | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /able_way/long_way/take_eye.py | cfcd983c2042f55d5d6e7c99ddba0ad24bf58cf2 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def good_time(str_arg):
problem_and_work(str_arg)
print('high_thing')
def problem_and_work(str_arg):
print(str_arg)
if __name__ == '__main__':
good_time('able_fact_and_life')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
3331920c786ce57ecc941a7a06350a9676937674 | 4e2242488aa49f0a7e4527253605692dce5146e0 | /generator.py | 48e5bffae91dfa10c0105f95fdb20d6dac6db778 | [] | no_license | doliom/GUI-Tkinter-authentication | 4c9092ab936140f26eb6486b0c0c558530ad2ee1 | 87c5d7745609388b4fad4a6dcf2fa7c7e91d561e | refs/heads/master | 2023-01-01T13:05:41.098601 | 2020-10-27T16:11:15 | 2020-10-27T16:11:15 | 299,434,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from random import sample
PASS_PHRASE = (
'abcdefghijklmnopqrstuvwxyz' +
'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +
'+=-*'
)
def generate(count=1, length=6, chars=PASS_PHRASE):
if count == 1:
return ''.join(sample(chars, length))
passwords = []
while count > 0:
passwords.append... | [
"srslyreader@gmail.com"
] | srslyreader@gmail.com |
3d62ba4d3d55863d8bf63c8e247b1ceed05cfd22 | 10fd1b79600275a6489dff5434adf5d5a362b89c | /test_diff_frame.py | dcbf643db8e362fa488b9a55240a42941c24b1cc | [] | no_license | KoapT/object-detection-scripts | d493919058acc14d5bd0a8c9dbac9df7d523bf58 | ec77368f9c651c8b0d471b44132233c4d7d36e74 | refs/heads/master | 2020-07-31T05:37:33.355783 | 2019-09-24T03:48:11 | 2019-09-24T03:48:11 | 210,502,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
video_file = '/home/wt/Desktop/repositories/anti-bird/input/panoramic-camera/10mniao.dav'
cap = cv2.VideoCapture(video_file)
if cap.isOpened():
print('open video %s success.' % video_file)
else:
print('open video %s fail.' % video_file)
exit... | [
"632649396@qq.com"
] | 632649396@qq.com |
68fb8dad76d94f766d800d59120907b2266b49d5 | 920d200e6e47e05d583416b6b6874192335f06e1 | /Project_6/main.py | 73f6d47efb80504e7876756900bf32f3aa50d53e | [] | no_license | surabhi96/ENPM673 | f2c2cc95a6b0f32ddd3f88a2534cfa29eb8325c7 | b1845dcd1d55eb3a58950c846d18b3bc0c395a0f | refs/heads/master | 2022-06-12T19:15:28.530306 | 2020-05-08T06:50:10 | 2020-05-08T06:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,754 | py | from __future__ import print_function, division
import matplotlib
# matplotlib.use('agg')
import matplotlib.pyplot as plt
import argparse
import torch
import torch.nn as nn
import pandas as pd
from skimage import io, transform
from skimage.transform import rescale, resize
import torch.nn.functional as F
import t... | [
"noreply@github.com"
] | noreply@github.com |
8a74b58a0dd3b1902117bf253eb1bc1fa3280e2f | 3d4a7079c0da1daf90a484ce487a7aa62add9da0 | /ml_backend/ml_face/face_recognition.py | 2ceb6758fafda899697b4e3f6726888240f41e25 | [] | no_license | LuuO/ML-Image-Processor | 9a9f71fc99670da2b31e13c129cc1d8132bbd223 | 25cc3ca3fd5f99d9a53ed265a339865bc60bd4f1 | refs/heads/main | 2023-05-01T09:35:25.785091 | 2021-05-21T03:56:50 | 2021-05-21T03:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | from sklearn.decomposition import PCA
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from ._face_recognition_dataset import build_train_dataset, build_prediction_dataset
class FaceRecognition:
def __init__(self):
self.__sample_size = (62, 47) # (height, width)
self.names = [... | [
"LuuO2000@outlook.com"
] | LuuO2000@outlook.com |
6824f019e4300ecd9a3efc0096428b6d6c8ac5c3 | c2639d1af52702cadb1893ec0a308ce7b3a9bb42 | /Devoir - Algos de tri.py | 7a46d11e37fa1a9fab9725c18d4285e9e79fa65b | [] | no_license | RM-NSI/algo_tri | db893740a8b30390df0a3d12608ba80279b0aacd | 63d5a8792a8cd0aa7779a60d3164416a847d8e1e | refs/heads/master | 2021-02-04T00:15:24.909324 | 2020-02-28T15:32:28 | 2020-02-28T15:32:28 | 243,579,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | def belong(n,t):
i=0
while i<len(t):
if n==t[i]:
return True
i=i+1
return False
def somme(t):
res=t[0]
for i in range(len(t)):
res=res+t[i]
return res
def PGint(t):
res=t[0]
for element in t:
if element>res:
res=... | [
"noreply@github.com"
] | noreply@github.com |
1eb1a3ffdbf0c0ad15bc3608e15ebb2672d8b659 | eb332586b512e7fe8bfcd25a269885ca1ea71d48 | /local/unit-tests/UT_local_response.py | 1c286ea3f7b577d66361c75b90837d667e6f98b1 | [
"Apache-2.0"
] | permissive | tcmitchell/geni-ops-monitoring | a39b2f985ffa1a8d47cefbb78c29fea6057189b1 | 8ea078175b6105dbe63064d74c2d50f1dfabfe96 | refs/heads/master | 2021-01-25T09:38:30.405709 | 2017-05-25T18:15:30 | 2017-05-25T18:15:30 | 93,867,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,260 | py | #!/usr/bin/python
#----------------------------------------------------------------------
# Copyright (c) 2014-2015 Raytheon BBN Technologies
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restr... | [
"sblais@bbn.com"
] | sblais@bbn.com |
faeda6d17f8876fc37209e58fdbcce9244b059fd | e41f140b8538db27e1656f239542e06083f4ec2e | /main.py | 43d650f0ad2a725126555925a8705f4c77b2eeb7 | [] | no_license | mroratobaptista/estudo-async | bcd1aad795ed70ea33d8240b9d6c04599ba49061 | 20a8649342596ca2b75ad34538b913097ceec9fa | refs/heads/master | 2020-12-02T21:00:32.935291 | 2017-07-04T18:50:35 | 2017-07-04T18:50:35 | 96,242,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import os
import time
import asyncio
import aiohttp
from openpyxl import load_workbook
PASTA_DOWNLOADS = 'downloads'
def gerar_url(mlb):
return f'https://api.mercadolibre.com/items/{mlb}'
async def pegar_titulo(mlb):
url = gerar_url(mlb)
async with aiohttp.ClientSession() as session:
res = awa... | [
"matheusrorato@gmail.com"
] | matheusrorato@gmail.com |
3ac63a37dd9fe036a533819ce394690375942cf4 | d1dfdb6c75d6b3db11fd7f4a82b064ba2bc46795 | /record_wav.py | 408007d0247e7c8f61ce61c754f2d8a5fae96d46 | [] | no_license | gonium/soundnetzfreq | 12eff244b31131cca7af160156a05025a07c7306 | 1782451be8ae00e56a839bcb68d937d89907ed5b | refs/heads/master | 2021-01-10T10:51:44.594502 | 2016-01-22T20:15:59 | 2016-01-22T20:17:56 | 49,506,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | """PyAudio example: Record a few seconds of audio and save to a WAVE file."""
import pyaudio
import wave
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "output.wav"
p = pyaudio.PyAudio()
print "Found %d audio devices" % p.get_device_count()
for i in range(p... | [
"md@gonium.net"
] | md@gonium.net |
2810fd51b4354ad7fd8d9e9928f1cc587879047b | 4f1d9cf4c4c4d589c3f289b49fbad0ee0c984942 | /boucles/pgcd.py | 68658a585b68e65aa1f16d2cda02013a0ca80304 | [] | no_license | khalillakhdhar/python_seance1 | cbb9d089a921cba19610c0ce7b0b9f1f9571130b | 05d436045f837fb8b1cc7d9b5caa9c4de6bf989c | refs/heads/main | 2023-03-18T10:36:23.733373 | 2021-03-13T08:48:58 | 2021-03-13T08:48:58 | 340,619,900 | 0 | 0 | null | 2021-03-13T11:05:32 | 2021-02-20T09:56:02 | Python | UTF-8 | Python | false | false | 124 | py | a=18
b=4
x=a
y=b
while a!=b:
if a>b:
a=a-b
else:
b=b-a
print(" le pgcd de %s et %s est: %s"%(x,y,a)) | [
"khalillakhdharatc@gmail.com"
] | khalillakhdharatc@gmail.com |
b569c9dd38a526d1cd48b1499ce724188897d69b | f1a9733d35d2dfd9471d0e084cd50a484e727382 | /L_algorithms/2_AddTwoNumbers/addtwonumbers.py | e047fed9c7482ac95420a2fa6b397b1418fd4746 | [
"MIT"
] | permissive | kenzhaoyihui/lettcode | 9e51bd5d57115ea457b3bfb211d102663cb54c3c | eed7683f187554f925dcad0afbec835bc98b343d | refs/heads/master | 2021-05-16T06:12:01.881237 | 2017-11-07T10:36:35 | 2017-11-07T10:36:35 | 103,372,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
n... | [
"2993614148@qq.com"
] | 2993614148@qq.com |
f583ffc9554da72889c5ff3330ae59ffb727248f | fa6c23ad3f7d5b8b36e9f6b62acbeae2cc1ea493 | /offer/string_replace.py | f5b83549832a87513d9f433a6c1e6d2202fbce64 | [] | no_license | yuzhiquan/PythonData-Structures-and-Algorithms | da08a301e90449c98ebe4a0c2d6a04980b2c08ae | 851b640f173c98d8b0bdca38314db4f350906ee7 | refs/heads/master | 2021-01-21T06:53:34.672890 | 2017-03-05T00:49:00 | 2017-03-05T00:49:00 | 83,293,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # -*- coding:utf-8 -*-
'''
请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。
'''
class Solution:
# s 源字符串
def __init__(self):
pass
def replaceSpace(self, s):
# write code here
return s.replace(' ', '%20') | [
"yuzhiquanlong@gmail.com"
] | yuzhiquanlong@gmail.com |
6e23795c082d9c880ab06a9e34ccd820e2e5f6d4 | d1c22a79eea429713a13ed0d91f6ced0b7e34d9c | /dbms_project/realEstate/apps.py | 10ab5e23f62fc4a57c44c8e886a12938e881be01 | [] | no_license | rahultg2/Real_Estate_Office | 29cd135c4b9971f308ffcd2cd8edc7c4c084f91f | d61a5a74208a6a42a0b1dfbed8beeda80fb58f87 | refs/heads/main | 2023-05-15T10:05:25.383058 | 2021-05-28T14:20:16 | 2021-05-28T14:20:16 | 364,491,714 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class RealestateConfig(AppConfig):
name = 'realEstate'
| [
"rsoni953804@gmail.com"
] | rsoni953804@gmail.com |
89fc0f04e2cc35ffa171ae6dd0afea0c9191c529 | cc432fe1675c6b9c0d61ec19295c2c7795d25c50 | /lib/gamemenu.py | 0c2b91db6c55e9bb9d11fe374efccd43bae8b499 | [] | no_license | Swarmers/Bunnies01 | 7e9cc6928266a090912babd2d782a6dcf155b580 | 58495e3df47c57b3bc7ce4b14429055c56ee4fd9 | refs/heads/master | 2021-01-23T13:42:12.897501 | 2012-09-28T20:24:18 | 2012-09-28T20:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,659 | py | # Copyright (C) 2011 Michal Zielinski (michal@zielinscy.org.pl)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is d... | [
"swarmers@gmail.com"
] | swarmers@gmail.com |
adf755248d01bee910715a09fd1c7196fd63850a | 5b5ee3e208fe1286a3f55022f7566802d232ccbe | /catkin_ws/devel/.private/collvoid_msgs/lib/python2.7/dist-packages/collvoid_msgs/msg/_PoseTwistWithCovariance.py | ae618702c19815cbece75e2c00e368707ed9e0b7 | [] | no_license | GUNROX95/CollAvoidAlgorithm | 65ca1951b172f46d70531ff132b132fdda81497b | 1fa07ae7a4d31cdd4fe8784774728348358390db | refs/heads/master | 2021-01-25T09:37:27.138741 | 2017-06-09T13:13:47 | 2017-06-09T13:13:47 | 93,858,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,866 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from collvoid_msgs/PoseTwistWithCovariance.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class PoseTwistWithCovariance(genp... | [
"shkulant95@mail.ru"
] | shkulant95@mail.ru |
148fb213015feb1540b835a3c3aa04040e41d88c | 6369ab85ac25eb5786f6747737a3834df42b1424 | /deleteNode.py | 8c919600dafe68598963d72788541d49559811c1 | [] | no_license | ThomasBJones2/HackerRank | e78022004b8896abc8e12487f1815a6e0696ebc3 | 22fa88eb68fbc42dfbc62f8585301d1807c2b332 | refs/heads/master | 2020-12-21T08:25:19.117165 | 2016-11-19T09:24:34 | 2016-11-19T09:24:34 | 56,036,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
#this is a stupid O(N) delete node, I was made to. Its not my fault.
class Solution(object):
def deleteNode(self, node):
"""
:type node: ListNode
:r... | [
"ThomasBJones2@gmail.com"
] | ThomasBJones2@gmail.com |
380ff41b42f8149fb0f95f550c5bedddd25c9232 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02724/s435287686.py | 462d510537b496c3a2a42ca1c7ffce6125472883 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | x = int(input())
hap = x // 500
hap2 = (x - hap*500)//5
ans = hap*1000 + hap2*5
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
beae05a4725f313f6711c8b015d1d6ed2bdd01b0 | 540ed334b689e4b04e4d1f74dfb5564ce3109db4 | /Charkaz/start/migrations/0002_bos.py | 5ec86e4297da6ed5312388b0aaa07fea35847626 | [] | no_license | Charkaz/SalesSystem-natamam- | d5b1e1e46d9bbbac677f957cb20337f88283df4c | c9dd85c532163bf875beebd67ff47ec26ac737b9 | refs/heads/master | 2023-01-20T01:23:15.054698 | 2020-11-19T10:12:33 | 2020-11-19T10:12:33 | 314,207,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.1.2 on 2020-11-07 13:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('start', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Bos',
fields=[
('id', models... | [
"alisanc91@gmail.com"
] | alisanc91@gmail.com |
33d72641ac0d442992fe4ce9dbdcc1a4cef73b0f | ff83ba40f532b7ea1cae917c727c87fd5d8ea153 | /reconb.py | cb5c036fe628fd4b548b34c4b1a04cad905ca6c2 | [] | no_license | idanbuller/Reconb | 7483081b9fd4bedcca463dfebee2c28d429a5299 | 16606f39cfee72041a36b132793ef9a1c077cf13 | refs/heads/master | 2023-06-01T10:08:23.730487 | 2020-04-28T07:32:37 | 2020-04-28T07:32:37 | 255,982,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,682 | py | #!/usr/bin/env python3
from services import hacker_target, google_domains, banner, brute_force
from people import hunter_io, mail_builder, linkedin
from extra import dorks, vt, pastebin, web_services, robots, admin_panels
from bonus import wappalyzer, reverse, webalayzer
import mysql.connector, csv, validators
fr... | [
"noreply@github.com"
] | noreply@github.com |
e1deab83389f3a158a86076670d0bded1a976175 | 99e57f00fcaf4469c1c1b79f2d17176aaef9a790 | /hr_payslip_batch_confirm/models/__init__.py | 07e6a958e3299a35542efcae0c6a19e9d50b4dda | [] | no_license | detian08/mcl | d007ffd0e869f3bd9a8c74bc8473119901f0de2a | 32d61148326c931aca0107c3894061773f287e33 | refs/heads/master | 2022-03-23T19:36:29.608645 | 2019-12-11T10:15:50 | 2019-12-11T10:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from . import hr_payroll
from . import hr_payroll_run | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
8818f59eb4c005ec1159556cdb9670486e7084e3 | bf280df59d2a4592c1ded1474f23385c4addba89 | /gem/web/blueprints/roles/controller.py | 0a50ac80d1ba4ee3427e83370b14db4ccd1d9dd1 | [] | no_license | akdasa/gem | f382c7bbe2d3987bf87e264684e50ac0475f5de6 | 15ca96d702443a8e256400e1ec13ed0b739348e1 | refs/heads/master | 2021-09-21T04:41:35.218007 | 2018-01-20T15:07:16 | 2018-01-20T15:07:16 | 106,115,014 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | from gem.db import roles
from gem.web.blueprints.crud_controller import CrudController
class RolesController(CrudController):
def __init__(self):
super().__init__(roles, namespace="roles", columns=["name"])
self._permissions = [
{"name": "proposals.create", "desc": "Create new proposal... | [
"advaita.krishna.das@gmail.com"
] | advaita.krishna.das@gmail.com |
038fdc40a3a521cb02d77534b62f022e96feb347 | 7180e2465f21b8e3b315da9f088ebf35175526fb | /剑指Offer/斐波那契数列/菲波那切数列.py | fb81646b98dbe796a3c6bf79851b3a8bbfc33e89 | [] | no_license | QunLeLZ/LeetCood | eb499520033147666f85ce1d3474102c2f951fa2 | 1b77e6c91b5fef442c74ed7cac1bb65144e0913e | refs/heads/master | 2020-04-03T02:57:34.701647 | 2019-01-03T14:49:41 | 2019-01-03T14:49:41 | 154,972,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # -*- coding:utf-8 -*-
class Solution:
def Fibonacci(self, n):
# write code here
if n <= 1:
return n
first,second,third = 0,1,0
for i in range(2,n+1):
third = first + second
first = second
second = third
return third | [
"a9276985676@qq.com"
] | a9276985676@qq.com |
83216ab4814f0ddc0657688c7f97149e35a3bdbb | 142362be3c4f8b19bd118126baccab06d0514c5b | /xapian64/site-packages/djapian/utils/decorators.py | 1deb7553ccf6014639b53b8845f5a841e5fbcb2e | [] | no_license | dkramorov/astwobytes | 84afa4060ffed77d5fd1a6e8bf5c5c69b8115de6 | 55071537c5c84d0a27757f11ae42904745cc1c59 | refs/heads/master | 2023-08-27T07:10:51.883300 | 2023-08-02T16:52:17 | 2023-08-02T16:52:17 | 191,950,319 | 0 | 0 | null | 2022-11-22T09:15:42 | 2019-06-14T13:44:23 | HTML | UTF-8 | Python | false | false | 898 | py | import xapian
def retry_if_except(errors, num_retry=4, cleanup_callback=None):
def _wrap(func):
def _inner(*args, **kwargs):
for n in reversed(range(num_retry)):
try:
return func(*args, **kwargs)
except errors:
# propagate ... | [
"zergo01@yandex.ru"
] | zergo01@yandex.ru |
72ed78d1946311751aacef03b5cd5e8568d811d2 | b274efc15c5a15fe8da5b3c7694f69f25599b81f | /video_access.py | 4535d99fcd36a5342465c219fd7f13e2983b5459 | [] | no_license | CloudHackathon/cloud-video-converter | ebac37a2031c1ee55343e7ef3fdccf8ca69bed93 | 0954d86d29bb9addbeae2ac5e10dcc9e50157623 | refs/heads/master | 2020-06-10T03:35:43.740470 | 2016-12-11T04:57:48 | 2016-12-11T04:57:48 | 76,098,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | #!/usr/bin/python
import MySQLdb
import os
import sys
import json
import socket
import trans
def insert_db(vname, format, segid, count, local_ip):
convsip = ""
try:
conn = MySQLdb.connect(host="10.66.129.25",user="root",passwd="leozhiqin!",port=3306)
cur = conn.cursor()
value = [vname, format, segid, count, l... | [
"leozhiqin@gmail.com"
] | leozhiqin@gmail.com |
019ab9a8348c516eab7132b6900f6f45b8172cdb | 243ce25168eea65144713a1100ca997a2d29f280 | /p68.py | aaea8a7b5cd711d48a2ecaed6cc2366716f5667f | [] | no_license | acadien/projecteuler | 6aa1efbb1141ecf36d6b23bb6b058070e5e881e0 | 2efb0b5577cee7f046ed4f67d0f01f438cbf3770 | refs/heads/master | 2020-04-28T21:33:49.631044 | 2013-12-06T19:25:20 | 2013-12-06T19:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/python
from math import *
from random import *
from itertools import chain,permutations
o_ind=range(5)
i_ind=[[5,6],[6,7],[7,8],[8,9],[9,5]]
def trysum(A):
if 10 in A[5:]:
return False
B=set([A[i]+A[i_ind[i][0]]+A[i_ind[i][1]] for i in range(5)])
if len(B)==1:
return True
re... | [
"adamcadien@gmail.com"
] | adamcadien@gmail.com |
f6574b50767f2e5634a32e21a8a0d7c92831866c | 36c79dd837dabf6ab1e8d699fd8cbf0bc340fe92 | /timeRecord/views.py | 3e2e30beeb63e23c3a78b9950c704efaa059bd3d | [] | no_license | chelseXie/timeSpider | 3fcff3fe90d3ad824757e766411992117e9260a0 | b66382db27c70d341f24edf8c36e6952aab2c146 | refs/heads/master | 2021-01-15T11:49:14.550985 | 2017-08-08T06:48:35 | 2017-08-08T06:48:35 | 99,634,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.http import HttpResponse
from timeRecord.models import User
# 数据库操作
def testdb(request):
user = User(nickName='runoob',mobile='13051321091')
user.save()
return HttpResponse("<p>数据添加成功!</p>") | [
"xiehao35755@163.com"
] | xiehao35755@163.com |
e3d93c357626b24d30d4a9f19b4b7486172005b4 | 4b3ff56fd0ef767e8294d93ed83b0bd252535080 | /NP2Interface/NP.py | 19f78585b9ac256bd1318a33d9164ffb4845b93a | [
"BSD-2-Clause"
] | permissive | kennycaiguo/PyGame_samples | 6223912bff4f2ab8b8a50c1ba157fcf39d8ca956 | 4612354c6da0a3a554f19b14595523f5b2df416b | refs/heads/master | 2022-12-20T13:56:00.361249 | 2020-10-03T08:55:41 | 2020-10-03T08:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | ## test numpy library for IronPython
def linspace(a,b,c):
d=float(b)/float(c)
s=float(a)
V=[s]
while(s<=float(b)):
s+=d
V.append(s)
return V
| [
"dcadogan@live.com.ar"
] | dcadogan@live.com.ar |
62b8d0a25002a4ce012a294ac2c35cf06f43af9c | 656b73e25471c77e6f010689b816168aea774bf1 | /ransac_curve.py | 58cd0fe6e5311b50aedf582e192abc2071323f5f | [] | no_license | tom13133/ransac | b45cb2d60a448fbf615fdbd4afec0b38911afba5 | dfbb60720d966e237e90f3f5ba30ea2a64d158fa | refs/heads/master | 2020-12-03T03:01:47.831102 | 2020-04-13T06:24:08 | 2020-04-13T06:41:03 | 231,189,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 31 13:39:17 2019
@author: yuhan
"""
import matplotlib.pyplot as plt
import csv
import numpy as np
import math
# estimate the curve parameters given three points
def curve_fit(hypo_inliers):
p1 = hypo_inliers[0]
p2 = hypo_inliers[1]
p3 ... | [
"zero000.ece07g@nctu.edu.tw"
] | zero000.ece07g@nctu.edu.tw |
3a062ab7dee1768038d5ad898ef260365867ac66 | db4bf72b44022900c888f6e03e60a48a19421419 | /manage.py | f6295844b73228b6c59579654a5d3f0a1986553b | [] | no_license | IqbalBintangsyah/AFI | 39af872dd03c658010b647e3857e51026669de93 | 5a3e16b6f28ba853ec522edec72f581b50631d47 | refs/heads/master | 2023-04-12T16:05:38.527909 | 2021-04-29T05:40:40 | 2021-04-29T05:40:40 | 362,702,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | 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', 'afi.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"iqbalbintangsyah@users.noreply.github.com"
] | iqbalbintangsyah@users.noreply.github.com |
0aeda51b0cce4f439f766c12a74cd8df10199861 | 4c7d5602910e3b929ed127549210be6fd746302b | /practical-python/Solutions/3_14/pcost.py | 5685d014454434ca3028e5232e46e677909f274e | [
"CC-BY-SA-4.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jianchengwang/todo-python | 8b57d5ce45ea855c8c1413024e82add2267bc9c2 | 36bdaf6fae714531946047ececca995d60f86e4a | refs/heads/master | 2023-03-07T06:22:22.301555 | 2021-11-26T07:08:02 | 2021-11-26T07:08:02 | 199,950,188 | 0 | 0 | MIT | 2023-03-05T16:12:56 | 2019-08-01T00:55:21 | Python | UTF-8 | Python | false | false | 414 | py | # pcost.py
import report
def portfolio_cost(filename):
'''
Computes the total cost (shares*price) of a portfolio file
'''
portfolio = report.read_portfolio(filename)
return sum([s['shares']*s['price'] for s in portfolio])
import sys
if len(sys.argv) == 2:
filename = sys.argv[1]
else:
file... | [
"jiancheng_wang@yahoo.com"
] | jiancheng_wang@yahoo.com |
ae9e61d3ae9ee479adabb49c6e4d75d50cecfd7e | b1f7c8eecdfc1e54e868430d7b6192b162f5a530 | /insta/signals.py | 2177664422d6238343c5645260f46897273c08a5 | [] | no_license | Nyagah-Tech/instagramWebApp | 490c9d8874c082132e9a0d78eb849e2b1136656b | abf3421a408ac1daf5f5bf20b76073ad73894eba | refs/heads/master | 2022-12-13T04:33:26.104920 | 2020-01-06T21:18:17 | 2020-01-06T21:18:17 | 229,194,006 | 0 | 0 | null | 2022-11-22T05:13:48 | 2019-12-20T05:08:18 | Python | UTF-8 | Python | false | false | 565 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
@receiver(post_save, sender=User)
def create_profile(sender,instance,created,**kwargs):
'''
this is a function that creates a profile of a user after registrat... | [
"dan@localhost.localdomain"
] | dan@localhost.localdomain |
14f7ea5a0fd4e2ab4ffa08421ed6e486da33ccfc | 4692f28f86ee84a76abfac8cc8a0dd41fcd402e4 | /tasks/github_tasks.py | ddf0c9af7bae0fe3c10ef1e08285fae600084aa1 | [
"CC0-1.0",
"BSD-3-Clause",
"Apache-2.0",
"GPL-1.0-or-later",
"MIT",
"0BSD",
"Unlicense",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-2-Clause-Views",
"MPL-2.0"
] | permissive | DataDog/datadog-agent | cc4b89839d6031903bf23aa12eccc2a3f3c7f213 | d960cdb7de8fa5d1c7138cfe58e754af80cb796a | refs/heads/main | 2023-09-04T10:45:08.138748 | 2023-09-04T09:13:43 | 2023-09-04T09:13:43 | 49,970,739 | 2,388 | 1,288 | Apache-2.0 | 2023-09-14T20:06:34 | 2016-01-19T17:40:41 | Go | UTF-8 | Python | false | false | 3,694 | py | import os
from invoke import Exit, task
from .libs.github_actions_tools import (
download_artifacts_with_retry,
follow_workflow_run,
print_workflow_conclusion,
trigger_macos_workflow,
)
from .utils import DEFAULT_BRANCH, load_release_versions
@task
def trigger_macos_build(
ctx,
datadog_agent... | [
"noreply@github.com"
] | noreply@github.com |
2389903b60b4264a9b460f5fe2add655e548d819 | e46ee16a807d538aa580eb7b1e517fa7a5fb442a | /zombieapocalypse.py | c21128dcf24067519bee553138f788775d3f96c0 | [] | no_license | cmckeag/Coursera-POC | c4beb01a39efc3daed8fe29203cf840384b3ec6d | 2dc1d6496275f921e140d8063c6d64d6fce2694a | refs/heads/master | 2020-03-28T04:50:10.153441 | 2018-09-06T22:21:10 | 2018-09-06T22:21:10 | 147,739,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,843 | py | """
Student portion of Zombie Apocalypse mini-project
Requires the poc provided modules to actually run, so the code won't work.
But the logic for the grid and breadth first search is accurate.
"""
import random
#import poc_grid
#import poc_queue
#import poc_zombie_gui
# global constants
EMPTY = 0
FULL = 1
FOUR_WAY... | [
"christophermckeag@Christophers-MacBook-Pro.local"
] | christophermckeag@Christophers-MacBook-Pro.local |
02778531cc548dda2bfadf226376a93af1bcd11f | 746bf62ae3599f0d2dcd620ae37cd11370733cc3 | /leetcode/contains-duplicate.py | 768cd64e1cb979d349fc2bf6872d9d0a27bb7e6b | [] | no_license | wanglinjie/coding | ec0e614343b39dc02191455165eb1a5c9e6747ce | 350f28cad5ec384df476f6403cb7a7db419de329 | refs/heads/master | 2021-04-22T14:00:48.825959 | 2017-05-02T12:49:05 | 2017-05-02T12:49:05 | 48,011,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Author: Wanglj
Create Time : 20151223
Last Modified:
判断列表中是否有重复的
'''
class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
nums_set = set(nums)
if len(nums_set) < len(n... | [
"hitwhwlj@163.com"
] | hitwhwlj@163.com |
86aa110c474a0437ba29edd80241a9c9e1f167f5 | 0a26e8bc3be5961b4d554be57eac42b94d0b342b | /user/apps.py | 38179d23264f53b1191ab9dfa3fa62dad4fe6a14 | [] | no_license | firaz-bug/murugan-bhavan | f9a7ffe6b5cd4e02b86d6b6f8790f0899d776e44 | 00c85175f1a6657457feda04661e9f92f499ee9b | refs/heads/master | 2023-03-11T12:13:31.092068 | 2021-02-21T08:05:12 | 2021-02-21T08:05:12 | 340,828,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.apps import AppConfig
class UserConfig(AppConfig):
name = 'user'
class AuthenticationConfig(object):
name = 'authentication' | [
"barathjr10@gmail.com"
] | barathjr10@gmail.com |
a00abbe94e66a3c2a350f31b410075866297c202 | 15e48fec851ae0c3780ff983d64ac42ef1deefb1 | /mythril/disassembler/callgraph.py | 1ca5f35778f17d61041ebd10e995916b20481a5f | [
"MIT"
] | permissive | somethingnew2-0/mythril | ee1836f4105625b25be3eb0275d4b8d9fd67dae8 | 2e627394a5f669a40120bd7cd7d4970f2a1b5484 | refs/heads/master | 2021-07-20T13:25:06.357680 | 2017-10-22T02:57:07 | 2017-10-22T02:57:07 | 107,824,670 | 0 | 0 | null | 2017-10-21T23:57:19 | 2017-10-21T23:57:19 | null | UTF-8 | Python | false | false | 3,471 | py | from laser.ethereum import svm
from z3 import Z3Exception, simplify
import re
graph_html = '''<html>
<head>
<style type="text/css">
#mynetwork {
background-color: #000000;
}
body {
background-color: #000000;
color: #ffffff;
}
</style>
<link href="https://cdnjs.cloudflare.com/ajax/libs/... | [
"bernhard.mueller11@gmail.com"
] | bernhard.mueller11@gmail.com |
e6c375b75128ac6fa0a153e094573e7757da7e2c | ee13ead20a9e0fcca072a6f5fd6054e453e97d40 | /H2H/Event/migrations/0001_initial.py | e3fded0316815c52d4ef5621f365ee6eeea4f6d8 | [
"MIT"
] | permissive | saefty/happy2help_backend | ade2cde5c7754f8b0e78a6c9d97c86a31848d298 | da4bbd8d18a122ec87fc9ebc655864f3789fd8a7 | refs/heads/master | 2022-12-10T05:21:38.237694 | 2019-01-29T20:54:59 | 2019-01-29T20:54:59 | 162,439,108 | 0 | 0 | MIT | 2022-12-08T01:29:19 | 2018-12-19T13:10:32 | Python | UTF-8 | Python | false | false | 2,611 | py | # Generated by Django 2.1.2 on 2018-11-14 15:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Organisation', '0001_initial'),
('Feedback', '0001_initial'),
... | [
"tahersaef@gmail.com"
] | tahersaef@gmail.com |
24af40a664f71b8bc3c4a75d08321e528be63db0 | 4b65d693c3149b8c83d548a70908ab8ed9c7cb59 | /demo.py | c98ad9345af5d5d3cd7ff904823df142e8e7e8d8 | [] | no_license | Hiromasa-H/RL_snake | a644b72340c126e8b634af4595341a58626d9585 | 37f88504fd38bd70c30ef21ab2cb7a021fadede9 | refs/heads/main | 2022-12-27T15:23:02.954081 | 2020-10-20T02:32:57 | 2020-10-20T02:32:57 | 304,896,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | from game import SnakeGame
from agent import Agent
from utils import *
import torch as T
import numpy as np
import glob, os
from datetime import datetime
plot_name = 'demo.png'
video_name = 'demo.mp4'
target_folder = "demo"
n_episodes = 20
pretrained_weights = "weights/latest.pt"
if __name__ == '__main__':
#del... | [
"hhiromasa217@gmail.com"
] | hhiromasa217@gmail.com |
62b7897f6f243bde43c73bd0addea96c61ff23d3 | e2d23d749779ed79472a961d2ab529eeffa0b5b0 | /gcloud/tests/core/models/test_user_default_project.py | a8944c2c0e485a689a536b1e3088ebda6139b172 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | manlucas/atom | 9fa026b3f914e53cd2d34aecdae580bda09adda7 | 94963fc6fdfd0568473ee68e9d1631f421265359 | refs/heads/master | 2022-09-30T06:19:53.828308 | 2020-01-21T14:08:36 | 2020-01-21T14:08:36 | 235,356,376 | 0 | 0 | NOASSERTION | 2022-09-16T18:17:08 | 2020-01-21T14:04:51 | Python | UTF-8 | Python | false | false | 2,282 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"lucaswang@canway.net"
] | lucaswang@canway.net |
c32c88fb41f9079617c7f05351d0dfdf4ec186f9 | d9be50d9e446af18067652488028a5fea6d0d1fc | /features/checkbox.py | 6c3a9c0876949136e1785803036cc5a7da0d2418 | [] | no_license | joshivaidehi/python-selenium | 9ce5d3a9e324f952cb7fa89bdeb84e450540c7b5 | f4bb5071676e1577f4f4884bd1aeeb5a48224b31 | refs/heads/master | 2023-02-12T13:51:28.836016 | 2021-01-08T10:34:05 | 2021-01-08T10:34:05 | 323,307,880 | 0 | 0 | null | 2020-12-28T13:56:52 | 2020-12-21T10:52:02 | Python | UTF-8 | Python | false | false | 322 | py | from selenium import webdriver
from selenium.webdriver.common import keys
driver = webdriver.Chrome(executable_path='/home/devx/selenium/chromedriver')
driver.get('http://demos.dojotoolkit.org/dijit/tests/form/test_CheckBox.html')
driver.find_elements_by_xpath(".//*[contains(text(),'cb7: normal checkbox.')]").click(... | [
"vaidehi.joshi@devx.work"
] | vaidehi.joshi@devx.work |
1ce6e360788df9bfd624084b9d52e63ebf6b79a4 | bc410e82f0b88cdba6c5ccc4c9f5ebbc3870c3e5 | /python/test_python3_cli.py | bcf3ccb60c5c6140d33a17bf0f572d5848899aa1 | [] | no_license | shlsheth263/malware-detection-using-ANN | d3c6be2cafc809d7acfe8c28c356f8f3d276fa2d | 28f78002ef505bd1fa2faedfd6fcdec318151bca | refs/heads/master | 2020-12-27T11:05:25.748158 | 2020-02-03T04:09:00 | 2020-02-03T04:09:00 | 237,879,887 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,290 | py | #!/usr/bin/env python
import sys
import time
import pandas as pd
import pepy
import binascii
import numpy as np
from hashlib import md5
import sklearn
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tensorflow.keras.models import load_model
def test(p):
exe = {}
print("Signature... | [
"shlsheth263@gmail.com"
] | shlsheth263@gmail.com |
830d6422e18a61a107869f74b705a1be4c49974a | 2617f1d679dbd1b0cfd220020e7f7682765aecd2 | /quicksort.py | 6b043296678f0f80cc4530661ec612f6aeade89e | [] | no_license | dragonlee8/leetcode | 33127fca733deb8914351fd751b744b976e62b5e | b6328e726c8d986d6b85e2d41c7e678e29dc1153 | refs/heads/master | 2022-03-28T04:00:54.690243 | 2022-02-16T15:53:02 | 2022-02-16T15:53:02 | 61,008,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | def quicksort(nums, start, end):
if start >= end:
return
pivot = nums[(start + end)/2]
left = start
right = end
while left <= right:
while left <= right and nums[left] < pivot:
left += 1
while left <= right and nums[right] > pivot:
right -= 1
... | [
"noreply@github.com"
] | noreply@github.com |
f9d7f2202c7c7b8cfb47887171023887d23fb306 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_192/ch50_2020_03_31_18_26_15_429003.py | 9cc22791965cdb59d8ef25da1a85490c844cd611 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def junta_nome_sobrenome(n, s):
n_s = []
espaco = [' ']*len(n)
i = 0
while i < len(n):
n_s.append(n[i] = espaco[i] + s[i])
i += 1
return n_s
| [
"you@example.com"
] | you@example.com |
afb6679c6f38ae89a8a656f3eb32febbd33d4f05 | 9070b4caaa0f216793f8cf4c24de9f3225d4e36f | /baselines/scd_soc/hiexpl/bert/file_utils.py | ea9b36ea24681701bb53275cfa43181c39b59c07 | [] | no_license | vdefont/archipelago | 239075918674e01fb000f5ec8fb6c1041d16390e | d0c2e63683383e557f30e2017713d699b8ef5e1e | refs/heads/main | 2023-03-28T16:22:26.312658 | 2021-04-10T23:35:29 | 2021-04-10T23:35:29 | 354,415,763 | 0 | 0 | null | 2021-04-03T23:31:44 | 2021-04-03T23:31:44 | null | UTF-8 | Python | false | false | 8,959 | py | """
Utilities for working with the local dataset cache.
This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp
Copyright by the AllenNLP authors.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import json
import logging
import os
import shutil
impo... | [
"tsangm@usc.edu"
] | tsangm@usc.edu |
e6b039e84646038f6ab8f1808e5e8055ceaa6c86 | 4bb3fa33d8056518647ca8d9a2446528d5a4e124 | /AES_App_for_NetApp/cdp/ciholas_serial_number.py | 15f002c6c316e871070bb00fe9b8f11d3e91b456 | [] | no_license | kunmukh/Location_Dependent_Cryptosystem | bb4a78883abf03502a3cce476e49ec05be7cd091 | 271f25757c5f700155a50ac4d5a568ba041c033e | refs/heads/master | 2020-04-13T12:46:18.858477 | 2019-08-28T02:14:16 | 2019-08-28T02:14:16 | 163,211,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # pylint: disable=trailing-whitespace, too-few-public-methods
class CiholasSerialNumber():
"""Ciholas Serial Number Class Definition"""
def __init__(self, value=0):
if isinstance(value, CiholasSerialNumber):
self.as_int = value.as_int
elif isinstance(value, str):
self.a... | [
"kunmukh@gmail.com"
] | kunmukh@gmail.com |
3b6ffa579942e3089b775231bc77f9c40543b419 | 670d0b11dc0b6e32457f871af31800e71bf07e47 | /Application Testing.py | 10681de90d86e41dcfab886552d676054ae58d99 | [] | no_license | M3llow/App-Testing | ad79fcd05413eeab0f71106cb98b3e19c6b63d6f | 9320af41c96a6d427f546b0fd1e3b481a8ec7ea5 | refs/heads/master | 2020-12-07T13:24:42.310095 | 2016-08-22T02:23:31 | 2016-08-22T02:23:31 | 66,232,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | score = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,
"f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,
"l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,
"r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4,
"x": 8, "z": 10}
def scrabble_score(word):
word = word.lower()
result = 0
... | [
"brockmannjacob@gmail.com"
] | brockmannjacob@gmail.com |
de6244f21e653fc65494bc12cdeb22d128f0e568 | 0404b6dd42e49c89fb236153b2801766f0cc93c7 | /keyrings/osx_keychain_keys/examples/backend_example.py | 9383771f5674fea96aa44f497d48b0b39564a10e | [
"MIT"
] | permissive | dany74q/keyrings.osx_keychain_keys | d0df077a627ab856cd81aca1387af36d58ae6796 | 5613d64344bd40ccd9df58a1d898d55f8903dfc5 | refs/heads/master | 2022-12-27T04:51:14.147690 | 2020-10-08T21:13:54 | 2020-10-08T21:13:54 | 297,014,154 | 5 | 0 | MIT | 2020-09-20T10:38:20 | 2020-09-20T06:13:58 | Python | UTF-8 | Python | false | false | 1,386 | py | from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey
from keyrings.osx_keychain_keys.backend import (
OSXKeychainKeysBackend,
OSXKeychainKeyType,
)
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primi... | [
"dany74q@gmail.com"
] | dany74q@gmail.com |
d31b2151339897d3c273a39862549c53ad53af07 | 6645f1de75a16895f2bdde1d3af49cc537b68d2c | /main.py | 77d5019fd2e71d23825d5a41db9d033091c2e56c | [] | no_license | deepakhr1999/cyclegans | 42d2e715daceb22e7f2f49ed682b0ff81e6760b3 | 3bc5f1763a0f753554a148f3e12fc2ff528febe9 | refs/heads/main | 2023-02-11T11:34:57.371200 | 2020-11-08T05:03:33 | 2020-11-08T05:03:33 | 308,601,974 | 2 | 3 | null | 2023-01-25T12:42:38 | 2020-10-30T10:49:24 | Jupyter Notebook | UTF-8 | Python | false | false | 618 | py | from models.PageMaker import main
import argparse
parser = argparse.ArgumentParser(description="Display results of monet2photo in a webpage")
parser.add_argument('--refresh', action='store_true',
help='run neural network to overwrite input and output images')
parser.add_argument('--dataroot', d... | [
"deepakhr1999@gmail.com"
] | deepakhr1999@gmail.com |
2591f45096bfbb30a7663d0aa7b8bbb5b3acf779 | 078b7e611eba828f9de284d9a853f0da03999b75 | /NewBegin/apps/users/serializers.py | 353a374f90dad386174ae1ac908990549222d8e6 | [] | no_license | xinsixiangyi/online | 209247a71d2ba7f91263c782762bbad7ca6db8e2 | e316091e15779dbdbfaf9d72255b9fa96bec9462 | refs/heads/main | 2023-05-08T03:49:16.611693 | 2021-05-27T09:30:29 | 2021-05-27T09:30:29 | 371,316,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | # users/serializers.py
__author__ = 'derek'
import re
from datetime import datetime, timedelta
from NewBegin.settings import REGEX_MOBILE
from users.models import VerifyCode
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from django.contrib.auth import get_user_model
User ... | [
"xinsixiangyi7@163.com"
] | xinsixiangyi7@163.com |
57407a4e5c3c287504c247c36f7b26e3cc36186b | f730a3792d71c7a6c4bc4418039de3420e067a20 | /app/snippets/views/django_view.py | 1a33c4b1b56ab72ab0f5076ca0bea15dc4691e22 | [] | no_license | kwonsoonwoo/drf | 7ec215cb557c7c8bf6f64dbdbe86f2baa6fdce76 | 448d7de623764a5a2fca8fba6073829d5fb14813 | refs/heads/master | 2020-03-23T09:04:25.918846 | 2018-07-28T14:57:36 | 2018-07-28T14:57:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from rest_framework.parsers import JSONParser
from rest_framework.renderers import JSONRenderer
from ..models import Snippet
from ..serializers import SnippetListSerializer
__all__ = (
'sn... | [
"zenuine1@gmail.com"
] | zenuine1@gmail.com |
38723203b79a0913486767469b468bcf4790caac | 795ba44e09add69a6c3859adf7e476908fcb234c | /backend/mod_training_1_27492/urls.py | 58881d4c5e4d89926432059cb0802a8f7062e3db | [] | no_license | crowdbotics-apps/mod-training-1-27492 | 0df7b863ef18e7ba4e3f1c34f1bac7554e184553 | 91815c10d4f8af1e18bb550db97373b4099a4ae9 | refs/heads/master | 2023-04-26T00:57:13.854464 | 2021-06-01T19:48:41 | 2021-06-01T19:48:41 | 371,498,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | """mod_training_1_27492 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'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7974a211f8fc21832caa43e5bd18d505112783f5 | 9ae3b4e8b1374afa3a58a3076b3d8f76756e4456 | /streamkov/worker.py | d02b0f284b25f16ba9eb24eba8e1b2a106efda51 | [
"MIT"
] | permissive | bhtucker/streamkov | be9b9e1bd31bda828f81a6b6a08b8ed6234e0d60 | 3ac733b82a41b2222722f44188d2e421ce16f4e0 | refs/heads/master | 2016-09-14T19:58:50.474391 | 2016-05-25T21:44:13 | 2016-05-25T21:44:13 | 55,984,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | # -*- coding: utf-8 -*-
"""
worker
~~~~~~
Task interface to app's MarkovGenerator
"""
from streamkov.text import generate_bigrams, decode_lines
from streamkov.utils import get_timeline, slow_sorted_lines
from streamkov import logger
import requests
import asyncio
@asyncio.coroutine
def receiver(queue, m... | [
"benson@chatid.com"
] | benson@chatid.com |
0f93c5c802745c040b196007f216fc2aeef1e9de | deb2ed6fdfb313e3c284ff48dd3ef397974207d9 | /ejerciciospython/ejemplo2.py | 3770b5c3c56972de87f5aabf14aaba8e3d4bba4a | [] | no_license | h-yuna282/ejercicios | 66c0c55b2ae4b46a7c6f8fd085c240946c66cdb1 | 0586a59e28905c726e2441cdd9fd55b02d11a635 | refs/heads/master | 2020-07-01T23:37:40.547906 | 2019-08-08T22:18:45 | 2019-08-08T22:18:45 | 201,345,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | num1 = int(input("Digite primer numero: "))
num2 = int(input("Digite segundo numero: "))
print("El resultado es: ", (num1+num2))
| [
"noreply@github.com"
] | noreply@github.com |
0e8eb7cfd16b0572c20b19d0ca5619c7eecbd659 | 7c9917d62959b8d69309d44362481356e632083e | /enzymatic_bias/profile_model_of_bias/kmer_init_tuned/dnase/24mer/model.py | 8e07a5bc7b4e1400fd6be929ca7b482df4c88a82 | [
"MIT"
] | permissive | kundajelab/bias_correction | bee77bd2d36268aa6b7046b817e9e349c8cc8238 | 521678ea8739473f793b0ce85e22e622d13df6fe | refs/heads/master | 2021-06-21T11:34:54.558788 | 2021-06-10T06:39:35 | 2021-06-10T06:39:35 | 218,137,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,974 | py | import pickle
import pdb
import numpy as np ;
from keras.backend import int_shape
from sklearn.metrics import average_precision_score
from kerasAC.metrics import *
from kerasAC.custom_losses import *
import keras;
#import the various keras layers
from keras.layers import Dense,Activation,Dropout,Flatten,Reshape,In... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
9363128897ed22273d5dd2b58846e010c3f7b877 | e48d9bc1b8cc5662793417b79208ebbbb371579e | /CourseScheduling/blueprints/user/models.py | 40d008c55f5e069a563253466f43e932323c694f | [] | no_license | yitongw2/CourseScheduling-Web | d14ccb5eba579e4c1ee4564270ac7c3071bc1d21 | b93bf38ee70e21bc4bf99cbabd7320d116e48f50 | refs/heads/master | 2020-12-30T11:01:52.255064 | 2017-11-18T09:57:34 | 2017-11-18T09:57:34 | 98,833,859 | 14 | 0 | null | 2017-07-31T00:48:57 | 2017-07-31T00:48:57 | null | UTF-8 | Python | false | false | 659 | py | from CourseScheduling.extensions import db
from flask_security import UserMixin, RoleMixin
from datetime import datetime
class Role(db.Document, RoleMixin):
name = db.StringField(max_length=80, unique=True)
description = db.StringField(max_length=255)
def __unicode__(self):
return self.name
clas... | [
"jennyzengzzh@gmail.com"
] | jennyzengzzh@gmail.com |
ba84359c177d1b7b9405c4e2b6a2c22bf8f0e1e4 | e965cac2359855d64f1c218a372a97bc20224f8e | /script/ros_cca2.py~ | 0f025a9daf3c3ccd5027e56d6b56f3079009fd01 | [] | no_license | cvpapero/rqt_cca | 45546a33e8e98971aa4f77e10c9e1b7c94f6dcee | c16227e9a4a19f813c617320cb42ca45dd625cb5 | refs/heads/master | 2021-01-10T12:42:13.199129 | 2016-01-17T08:58:01 | 2016-01-17T08:58:01 | 46,414,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,436 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math
import json
import numpy as np
import scipy as sp
from scipy import linalg as LA
from scipy import stats as ST
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import rospy
from visualization_msgs.msg import Marke... | [
"cvpapero14@gmail.com"
] | cvpapero14@gmail.com | |
757be31d0a8a594fac3f12372dc79f6099ba8392 | c4a88ea09e4719252ec047ee3ebf5ba30dd2bf58 | /sudoku_back_1.py | 481604e8ddd0a2e03c2ae9018b315e4f47878be7 | [] | no_license | lorentealberto/ProyectosYT | 9cce54cfa4e9d071b801ecf228361dc75a34dc6b | 26da2d6f2b18aaf5b9d50a3838632024e6ebe0c9 | refs/heads/master | 2022-12-02T20:58:40.302556 | 2020-08-10T20:22:20 | 2020-08-10T20:22:20 | 261,117,493 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | board = [
[7,8,0,4,0,0,1,2,0],
[6,0,0,0,7,5,0,0,9],
[0,0,0,6,0,1,0,7,8],
[0,0,7,0,4,0,2,6,0],
[0,0,1,0,5,0,9,3,0],
[9,0,4,0,6,0,0,0,5],
[0,7,0,3,0,0,0,1,2],
[1,2,0,0,0,7,4,0,0],
[0,4,9,2,0,6,0,0,7]
]
def print_board(board):
for i in range(len(board)):
if ... | [
"noreply@github.com"
] | noreply@github.com |
27034ddfc234a53e1d499e40e3fd290c87a9a6ec | ad4be75dce2bb1fc5ea2147e774af09a1c1235b7 | /week3/bst_check.py | 7adf4dd416756336f184c6925134c5a25b1897b3 | [] | no_license | AntonAtanasov/Algorithms | e68caaae0b34797ed6d61788666aec435f54baad | 1dc1fd5ed902330b8361fe8d1893e119d07b43f5 | refs/heads/master | 2021-01-13T17:05:27.275949 | 2015-06-29T17:35:21 | 2015-06-29T17:35:21 | 36,810,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | def isBST(current, min_range=minint, max_range=maxint):
return (current.value > min_range and current.value < max_range)
and isBST(current.left_child,
min_range=min_range, max_range=current.value)
and isBST(current.right_child,
min_range=current.value, max_range=max_range)
| [
"anton.p.atanasov@gmail.com"
] | anton.p.atanasov@gmail.com |
c51867d2cd55c0e97a84af6332cfcfd529eeb1d2 | 40be7c7a50b839a922c22ea624123b11e5da25cb | /feria/migrations/0003_franquicia_imagen.py | c252e9fbb8cc5b7835b3b8c49f36ae453c9fd74f | [] | no_license | LuberNavarrete/sistema | e70b15d0410402ceb6f3ba2a320886d5b225c65c | e4800f3aa2cdde69189a43dcf9543be85ed14693 | refs/heads/master | 2021-01-10T16:54:21.479466 | 2015-11-15T14:21:20 | 2015-11-15T14:21:20 | 44,011,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('feria', '0002_auto_20151008_1937'),
]
operations = [
migrations.AddField(
model_name='franquicia',
n... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a6f40790ec59ca880f820c6ea48eec991dbfbb07 | 59e27c001d25c82f0af71a371eb096eaa106a9db | /app/models/first.py | 844aebe310cc6014653701ce0dfa59a9dd37af0b | [] | no_license | zout/django-pylint-issue | a99ffba2178317b89a2280bf73258bd7d85cb6ca | 10e715ba8a56d254aecd12ff6961cca7cf06f20e | refs/heads/master | 2020-05-18T23:54:06.214231 | 2019-05-03T08:38:45 | 2019-05-03T08:38:45 | 184,723,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.db import models
class First(models.Model):
field_one = models.CharField(max_length=30)
field_two = models.CharField(max_length=30)
second = models.OneToOneField('Second', blank=True, null=True, on_delete=models.PROTECT) | [
"josh@peperzaken.nl"
] | josh@peperzaken.nl |
84c5cbf8c50468e4b487b9785187bd5ea5604ca4 | 2fa00f3b0fe9924bae481897a2e34f007dc2182d | /venv/Lib/site-packages/dash_html_components/Area.py | 792b891c5564f0bab8cb26f7286a3e2966d5f85b | [] | no_license | amifidele/eventbrite | c488843f1f659df1c323a4d72d7424f3cda66caa | 42f58aae12dbd9e6868d88817f8998d469ed7172 | refs/heads/master | 2022-12-17T17:20:54.045180 | 2020-03-31T13:53:00 | 2020-03-31T13:53:00 | 225,651,148 | 12 | 3 | null | 2022-12-08T05:24:41 | 2019-12-03T15:18:45 | Python | UTF-8 | Python | false | false | 5,710 | py | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Area(Component):
"""A Area component.
Keyword arguments:
- children (a list of or a singular dash component, string or number; optional): The children of this component
- id (string; optional): Th... | [
"amifidele333@gmail.com"
] | amifidele333@gmail.com |
47a4efe28c0c59472dab8e22210db969dc26542c | 66abb382a434aa079887ab899a2d81a1b913b572 | /Lab2/Zad2.py | 3dc3c93098d4c11df91cece15acdffc4607c233a | [] | no_license | trina24/ALK | 6b2452d8767324229c2f8ec8dc1ae7de900fb085 | a35354ad7b34742654ab918191abc545322c92ba | refs/heads/master | 2021-01-21T04:59:50.992997 | 2016-06-04T18:47:48 | 2016-06-04T18:47:48 | 52,913,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | # -*- coding: utf-8 -*-
# Napisz program generujący w porządku leksykograficznym wszystkie
# ciągi długości k zbudowane z liczb od 1 do n. Użyj algorytmu
# rekurencyjnego.
class Generator:
def __init__(self, n, k):
self.n = n # maksymalna wartość w ciągu
self.counter = k-1 # licznik ustawiamy ... | [
"katarzyna_kalek@wp.pl"
] | katarzyna_kalek@wp.pl |
c9c6b00ba2286bfff1bc7410a7a173b724a7a3a3 | 5c11dd73ca7924234bf55c3b007a73f4ab91f978 | /main.py | 284050373e5eb9642f5008b2e39b619754d60d7e | [] | no_license | zdenekmaxa/gae | 130fcd7e02320e5a8901310beb41ee9af6f14ce7 | 7f6ec68959fdc110cdca04d77abfba6e9d7d1afa | refs/heads/master | 2021-01-19T00:09:00.277201 | 2014-12-02T12:49:27 | 2014-12-02T12:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # -*- coding: utf-8 -*-
"""
Google App Engine experiment application.
Minimal application.
Main application file.
"""
import json
import logging as log
import datetime
import webapp2
from google.appengine.api import users
class RequestHandler(webapp2.RequestHandler):
def index(self):
msg = "current ... | [
"zdenekmaxa@yahoo.co.uk"
] | zdenekmaxa@yahoo.co.uk |
1b10b9a83b4874947e6fac5ad5f9b2b8a663e8f6 | 2c1df549222bcd56e1be51a400b6d698af891e16 | /web_attachment/__init__.py | 970b9fdbb5c17ca23d1f599064725c3b6aa88dcb | [] | no_license | pdldeepak/Odoo-DMS | b6fb971fb65cd6d0bfa7f33bf41966889bc87f6c | 8094a74c77b0b538ae2797afbcc670001198c4e7 | refs/heads/master | 2020-04-15T21:42:39.891462 | 2017-01-11T07:15:38 | 2017-01-11T07:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # -*- coding: utf-8 -*-
# © 2016 Hardikgiri Goswami < hardikgiri.goswami@gmail.com >
| [
"hardikgiri.goswami@gmail.com"
] | hardikgiri.goswami@gmail.com |
dc5563211af17e5d9915abd984491ee5099432da | e6104415919ab718f2cf36e646cce169641b9f6d | /pages/info_activity_page.py | 9916f9c90e53c4fc33a6001682089e7d95c1118b | [] | no_license | mskib77/Literowiec_POM | 1b2d3b1bf56d60f381927e3af5942edbac221afe | 6e6b33cec5aff7f7fbd8928a7bca3b6abbb8609d | refs/heads/main | 2023-04-12T00:53:23.776674 | 2021-05-21T12:47:51 | 2021-05-21T12:47:51 | 367,612,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from locators import InfoActivityLocators as IAL
class InfoActivity:
def __init__(self, sterownik):
self.driver = sterownik
def get_action_bar_title(self):
action_bar_tile = self.driver.find_element(*IAL.ACTION_BAR_TITLE)
return action_bar_tile | [
"mskib77@gmail.com"
] | mskib77@gmail.com |
0646418caf5fa366376086cdc798538ca64299b4 | 84bdbb67931f9c4cb4ab15917834b6275dd11139 | /print_function.py | a56a6036f2aa3106ce7664d61f4a5c003bb08120 | [] | no_license | skfreego/Python_Basic- | 4e597cea6a6c699e1298f689f663bcc4d180b417 | fcb72a929814252fd57ff7f6d557f8a97d5156e0 | refs/heads/main | 2023-08-22T01:37:30.998591 | 2021-10-13T17:00:50 | 2021-10-13T17:00:50 | 416,826,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | """
Task:- The included code stub will read an integer,n,from STDIN.Without using any string methods,try to print the following:
123...n
Note that "..." represents the consecutive values in between.
Input Format:- The first line contains an integer n
Output Format:- Print the list of integers from 1 through n as a... | [
"noreply@github.com"
] | noreply@github.com |
78f90d925d5388e274fa619781372f674717e2de | f99101addde6db47c0854c096c3da03622962421 | /server/api/Api.py | 5b8a848fe301293e9a54c1ab0a17222b91e5694c | [
"MIT"
] | permissive | HumaneWolf/tbanekart | 11ab61e4ca94d5917e371c043e5924413cca94c1 | 2fe76cea843935ca378dd00d2b02b34e66ad617f | refs/heads/master | 2021-04-15T04:13:07.239029 | 2018-08-14T08:32:06 | 2018-08-14T08:32:06 | 126,643,889 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from flask import Flask
from lib.Config import Config
from lib.Redis import Redis
api = Flask(__name__)
redis = Redis(Config['REDIS']['host'], Config['REDIS']['port'])
| [
"humanewolf@gmail.com"
] | humanewolf@gmail.com |
23b86de44ae5a0337a2b707813d617dc416de015 | db01067e88324466ba4743e5e53cd53de609c342 | /03. Lists Basics Exercises/03. Football Cards.py | c2d03bed8d506168b4eb5caf4e51b5211d83abdf | [] | no_license | IlkoAng/-Python-Fundamentals-Softuni | 07eaf89d340b2e60214ab5f8e896629ae680dc4a | 01a112b13e84ab2f29e6fc4ed39f08f395d54429 | refs/heads/main | 2023-05-18T02:11:53.676763 | 2021-06-06T15:39:22 | 2021-06-06T15:39:22 | 371,475,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | team_a = [1] * 11
team_b = [1] * 11
cards = input().split(" ")
for card in cards:
sep = card.split("-")
team = sep[0]
player = sep[1]
idx = int(player) - 1
if team == "A":
team_a[idx] = 0
if team == "B":
team_b[idx] = 0
if sum(team_a) < 7 or sum(team_b) < 7:
... | [
"noreply@github.com"
] | noreply@github.com |
acb1d6ec4e6f87ad172e462e0a3fafe493df060a | 9cf65e0068b486fa8627172ec2342eb6c5dc4fac | /test_items.py | 681e1293ff3ec63914c825e83ed7e142ecf4b1f1 | [] | no_license | victor-kozlovsky/stepik--pytest | 7b13e58334aa375d084a79595def4b5f7b30ca7f | eb84459b25fbfa8426289fbdf8c1d351ed11944e | refs/heads/master | 2020-09-29T20:03:50.234129 | 2019-12-10T12:35:48 | 2019-12-10T12:35:48 | 227,111,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from selenium.common.exceptions import NoSuchElementException, TimeoutException
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# import time
link = "http://selenium1py.pythonanywhere.com/catalogue/cod... | [
"victor.kozlovsky@gmail.com"
] | victor.kozlovsky@gmail.com |
1b0fbcc273e94c56c0520bb596c850412b00c466 | b846f9c9d3fa38710d68c3bc60bc8945cea78c05 | /nn/__init__.py | 3ffd0f006e24e63997b9b84d697faae490f8604a | [] | no_license | kraglik/surface | 781c51429f4c4f6aed05998aa8994582480e916b | 7c176437f358b583be4bfade1907548c8298b953 | refs/heads/master | 2020-09-17T06:08:45.174602 | 2019-12-02T10:25:59 | 2019-12-02T10:25:59 | 224,014,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from .module import Module
from .dense import Dense
from .conv2d import Conv2D
from .lstm import LSTM
from .maxpool2d import MaxPool2D
| [
"igor.kraglik@yandex.ru"
] | igor.kraglik@yandex.ru |
8c2771a8443899c60403dc6a3d8d3fcc2a387845 | 25c27119f47522e2759368638360b72c2a424ba8 | /scholarly_repo_django/manage.py | f6c2554ae21a1f4d29496e1582a056821f4182ce | [] | no_license | Numbers00/CS-121-Simple-CRUD-Fixed | 5043b5c1c501e14b2d5623541917939e12d29ef5 | cf905e44d44a237e19a67c19ad3a6739968d183c | refs/heads/master | 2023-05-23T03:06:24.690982 | 2021-06-13T07:48:38 | 2021-06-13T07:48:38 | 376,257,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | 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', 'scholarly_repo_django.settings')
try:
from django.core.management import execute_from_command_line
... | [
"kmaquino@up.edu.ph"
] | kmaquino@up.edu.ph |
7442ea62889e938751a525dbb31dd2d26072de0d | 7fd485b6bea41b99c855cf05557a584baba37078 | /bootstrap/middlewares.py | f90904ccef750d489dd2f6792549a04f6043d199 | [] | no_license | Liu-ShiSan/BootStrap | 29ad7b225b4822bec916110a6c0fb7c43a4915e3 | b599edaf35ab01ba57c16f1e0b7788b3d9f0f3da | refs/heads/main | 2023-08-11T09:22:44.296301 | 2021-01-17T08:52:47 | 2021-01-17T08:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,603 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class BootstrapSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"noreply@github.com"
] | noreply@github.com |
951e87820000a2ba516ce5733b3db4e751382387 | be0eda70579e191d7dd1ace87ccbda8a3e85474e | /app01/urls.py | 78bd401466e3cf6df768de0ca595ee3d970007da | [] | no_license | zxycode-2020/django_tutrital2 | 084ebe4a83e7a9724163ae54b816239ff2b0cce6 | 969ce0b3caca92c045afee0e5eb628f9afb35b48 | refs/heads/master | 2022-05-03T23:22:17.075830 | 2020-02-05T03:11:09 | 2020-02-05T03:11:09 | 236,920,126 | 0 | 0 | null | 2022-04-22T23:00:29 | 2020-01-29T06:40:39 | Python | UTF-8 | Python | false | false | 577 | py | from django.urls import path, include
from app01.views import index, article, test_url, student, \
students, args, reg, xuanran, orm_test, post_cls, get_cls
urlpatterns = [
path('index/', index),
path('article/<str:aid>/', article),
path('test_url/', test_url),
path('students/', students), ... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
fd720e27cae5455cad2c88d7db98a63d289be0e2 | c2d29753af6c439b882af02ea2669bdde4a67346 | /account_invoicement/models/stock_picking_type.py | 26bedb3f2cf044907b4f3388adaa17ea2f3142ff | [] | no_license | HassanRafat95/Task1- | 3ca9a8518a5df4002fa1e1e10c82f984e223e26d | d53ba0b8d2f852c1dfc7e986e131460a0803fc74 | refs/heads/master | 2023-06-30T07:08:35.926996 | 2021-08-05T15:15:38 | 2021-08-05T15:15:38 | 384,973,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from odoo import fields, models
class PickingType(models.Model):
_inherit = "stock.picking.type"
analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account')
| [
"hassanrafat95@gmail.com"
] | hassanrafat95@gmail.com |
e61e6eb81f56668ff66e12724b808982f135aef2 | c598e71fd1fdd9469b9616178cc4daab9a509841 | /4. Leader&Team Dynamics - from simulation to experimentation (with Simn Karg)/oTree/__temp_migrations/LCG/0058_auto_20190214_1123.py | 7a1d4d42f59c0ef92627abfbe40c4298373e6399 | [
"MIT"
] | permissive | Rnault/SCDC-archives | 0e8f7612c59ccb07b9708963481f9c5c7f3530b5 | 4de173bf807a235a3529d6e19ecc70de583173ab | refs/heads/master | 2020-07-05T19:15:27.241907 | 2019-11-30T20:37:04 | 2019-11-30T20:37:04 | 202,743,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-02-14 10:23
from __future__ import unicode_literals
from django.db import migrations
import otree.db.models
class Migration(migrations.Migration):
dependencies = [
('LCG', '0057_auto_20190214_1109'),
]
operations = [
migration... | [
"32672200+Rnault@users.noreply.github.com"
] | 32672200+Rnault@users.noreply.github.com |
8c337cd8b37757c3ace7aed284a4dead1ed11f28 | 06c1f9b64e7c5da3ac9abd5cc3d12693b11770a5 | /init_decode.py | d883e59ad6a48accea0f6073d64178d4c05dbaeb | [] | no_license | tingleshao/cam_eval | d49b0784d57833016e2059d7619f22d4d2edfda0 | 6a50c29a8c026017b83da1878255f945dc020484 | refs/heads/master | 2021-01-13T12:33:06.729506 | 2016-12-19T23:42:24 | 2016-12-19T23:42:24 | 72,567,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | # the class is responsible for init nvidia decoder
import os
import subprocess
import time
import sys
class init_decode:
def __init__(self):
print "you initialized an init_decode!"
def run(self):
print "run!"
def call_nv_decoder(self):
cmd = '/home/cshao/Downloads/Video_Codec_SD... | [
"tingleshao@gmail.com"
] | tingleshao@gmail.com |
582a643df45788250c258f8ccee8e9f8e4786584 | eae7186c753b4a653d0b02ed9812e1d8f6c72905 | /faculty/admin.py | b4ffa95e17c97b39eccea21a8050fbd4ff7a3d80 | [] | no_license | rajgoyal26/cse_website | ee850fb3fb1f637a40bdf2be938d0499f88308d3 | f69ed1af8ed3450f279b7b7ca4857bd46b36aac7 | refs/heads/master | 2020-03-21T08:08:06.812154 | 2018-06-27T17:59:11 | 2018-06-27T17:59:11 | 138,315,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.contrib import admin
from .models import Faculty
admin.site.register(Faculty)
| [
"rajgoyal260298@gmail.com"
] | rajgoyal260298@gmail.com |
e922e0052568453ba169d2cd12a89a0b08a36d04 | ccbd186e7c868ba546b07fd2a3b0f63ee9caac7a | /assignment3/newspaper/content/migrations/0003_contributor_contents.py | a1edba00911683dec57eecb5fded8260cde5d946 | [] | no_license | benafa/comp | b1f445a37ec5ab903ae2f070a587a255e1760d25 | 9afdc6df61fccf4c23981efc258d085d04d6769b | refs/heads/master | 2021-01-23T23:02:41.642232 | 2015-11-02T01:09:04 | 2015-11-02T01:09:04 | 42,831,600 | 0 | 0 | null | 2015-09-20T22:10:19 | 2015-09-20T22:10:19 | null | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('content', '0002_auto_20151004_2215'),
]
operations = [
migrations.AddField(
model_name='contributor',
... | [
"benanandappa@college.harvard.edu"
] | benanandappa@college.harvard.edu |
736e3fd5d6a3535433e469cd69c58237adefac58 | c3d392d21e7deb40a78cf0cf373560f14760ca9d | /hosts/ovirt4.py | 14722ab5482b6d31846149b8363095060801bb0d | [
"Apache-2.0"
] | permissive | rmkraus/ansible-ovirt | 7dc5b74ffce2f84def14cc03e42b0480e6088425 | bcd7c62420e775bc1152e04726c34d5e67b5ea08 | refs/heads/master | 2020-06-02T05:27:59.541073 | 2020-04-21T15:17:21 | 2020-04-21T15:17:21 | 191,053,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,817 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"rmkraus@gmail.com"
] | rmkraus@gmail.com |
9d94c65e8903e1c57b540298fa2372bc8a0a757e | a038f56dc42fc7c145d9faf48c8b9e56767277c6 | /integrationtest/vm/multihosts/ha/test_stor_sep_nfs_vm_ha_grace_stop_start_host.py | def5cb1f4f88951715eea803bab341d1d8733a11 | [
"Apache-2.0"
] | permissive | yelongyu/zstack-woodpecker | 495b5780190a1186400b20375c5e964c6a39b57f | fc802fd2bd17e8b3387db1efb150a6550676672d | refs/heads/master | 2022-02-17T10:51:05.318291 | 2017-09-29T01:42:20 | 2017-09-29T01:42:20 | 105,100,441 | 0 | 0 | null | 2017-09-29T01:45:03 | 2017-09-28T03:59:16 | Python | UTF-8 | Python | false | false | 4,810 | py | '''
Test for KVM VM force stop and start host check vm running on other host
The test is specific for NFS storage network separation scenario
@author: SyZhao
'''
import zstackwoodpecker.test_util as test_util
import zstackwoodpecker.test_state as test_state
import zstackwoodpecker.test_lib as test_lib
import ... | [
"zsyzsyhao@foxmail.com"
] | zsyzsyhao@foxmail.com |
a24038b8a160f6fdb13f63be8d66b6cae29dd3e1 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v5/proto/services/account_link_service_pb2.py | 972899082ca981068d71b76032f3fa541ac8301d | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 21,860 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v5/proto/services/account_link_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from... | [
"noreply@github.com"
] | noreply@github.com |
3f02240e0e65ce46c04c49f8a8fec4420809991a | 2ab0891a6a22f5a27bb6dbbabca929f77fc6db89 | /boomplay/migrations/0001_initial.py | 598681a77f51d2724586ff12c80e38bee3b57548 | [] | no_license | ruhiuclaire/trap2 | 7a00bff083ee900fb4aa35c17c15ba934550b31f | aa10302235682b3561d2423fec013bc3edc82246 | refs/heads/master | 2020-05-05T03:08:32.953088 | 2019-04-05T10:43:37 | 2019-04-05T10:43:37 | 179,662,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # Generated by Django 2.2 on 2019-04-05 10:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
... | [
"ruhiuclaire24@gail.com"
] | ruhiuclaire24@gail.com |
4052c872dbac2fd274177618ea0b913cd7c86450 | 6a9f06b967d7641ddff7b56425651b29d3e577f4 | /mindinsight/mindinsight/backend/datavisual/train_visual_api.py | a868a443c817c402a689b20195737d12c7706bd9 | [
"Apache-2.0"
] | permissive | ZeroWangZY/DL-VIS | b3117016547007b88dc66cfe7339ef02b0d84e9c | 8be1c70c44913a6f67dd424aa0e0330f82e48b06 | refs/heads/master | 2023-08-18T00:22:30.906432 | 2020-12-04T03:35:50 | 2020-12-04T03:35:50 | 232,723,696 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,850 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"756762961@qq.com"
] | 756762961@qq.com |
66e0c94bf4d3aaa4f0839a4397f2607a5d74a185 | 34fafe0ce4a28a0b2ace024858868ed030d5e432 | /Analyzer/test/Tamas/Unused/submitCrabJobsData_woProbQ_2018D.py | 42729836233e8ea9092e381402cb63f798d0b062 | [] | no_license | CMS-HSCP/SUSYBSMAnalysis-HSCP | d40fe64ece600fc0909a2c32eb07b4204784948c | 809271e1dacc98d34992561b5fcb502c01cc1172 | refs/heads/master | 2023-07-25T00:46:38.870643 | 2023-07-11T20:25:12 | 2023-07-11T20:25:12 | 164,119,298 | 3 | 16 | null | 2023-07-11T20:25:14 | 2019-01-04T14:47:05 | Python | UTF-8 | Python | false | false | 2,983 | py | import sys, os, time, re
import numpy as np
#from common_functions import *
from optparse import OptionParser
parser = OptionParser(usage="Usage: python %prog codeVersion")
(opt,args) = parser.parse_args()
datasetList = [
"/SingleMuon/Run2018D-15Feb2022_UL2018-v1/AOD",
]
codeVersion = sys.argv[1]
#just the number, li... | [
"vami.tamas@wigner.mta.hu"
] | vami.tamas@wigner.mta.hu |
c315e77f91ce3e4b8c7fa66b3d4d64961f75e6a0 | 67ae7f2a13f3f096e435831bf4f8d0d87a8e72d2 | /app.py | 10015f09accce3d1cf690e7258670301e236526f | [
"MIT"
] | permissive | KnightHacks20/KnightHacksAPI | 28bf2d68881db576ab67419728983440f925b2f3 | a347be4efc995f097a4706a64b85b75822da2f3b | refs/heads/master | 2022-12-28T14:19:21.945222 | 2020-10-11T09:24:30 | 2020-10-11T09:24:30 | 303,008,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,853 | py | import sys
import os
import pandas as pd
import glob
import urllib
import tempfile
import warnings
import json
from PIL import Image
import PIL
warnings.filterwarnings("ignore")
from flask import Flask, request, jsonify, send_file
app = Flask(__name__)
api_root = r'./'
taxonomy_path = 'https://lilablobssc.blob.core... | [
"lieugenebaba01@gmail.com"
] | lieugenebaba01@gmail.com |
98160a2660ecaabfe36c67d96bb116c9fd0061cd | 7cbdb0e8788a50f98affa56240acb5aba841e38b | /Source/crawler/MillerSmilesScamsCrawler/MillerSmilesScamsCrawler/settings.py | 9f66a3aeba3ec8fd3d3f15b060a53a22f806565c | [] | no_license | vuhguc/Phishing-Email-Project-2019 | 249083f02dac23c9139004e09e050dcfd7014b7b | 80aa257f11aff5add4419a967d7a27c29a92ada3 | refs/heads/master | 2022-02-23T15:39:15.722612 | 2019-07-30T13:36:48 | 2019-07-30T13:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | # -*- coding: utf-8 -*-
# Scrapy settings for MillerSmilesScamsCrawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.or... | [
"phuchoang1308@gmail.com"
] | phuchoang1308@gmail.com |
a806bb44af8fd2082c0d1c4c513a3b7af6ce2ee9 | a79cc51d690182385a3c45ec52440967dbf04acb | /graphene_federation/tests/test_schema_annotation.py | 2e5f10a22d801f210f40d65483ec9fcfef440552 | [
"MIT"
] | permissive | noelleleigh/graphene-federation | bd5bc6b896e05f49bca2309484fd72d8204ac71b | 8cfada6db531b804ca76742b07dc27eb7773464a | refs/heads/main | 2023-03-17T21:49:32.178609 | 2022-10-30T16:57:39 | 2022-10-30T16:57:39 | 252,516,840 | 1 | 0 | MIT | 2020-04-02T17:03:38 | 2020-04-02T17:03:37 | null | UTF-8 | Python | false | false | 4,900 | py | from graphql import graphql_sync
from graphene import ObjectType, ID, String, NonNull, Field
from ..entity import key
from ..extend import extend, external
from ..main import build_schema
# ------------------------
# User service
# ------------------------
users = [
{"user_id": "1", "name": "Jane", "email": "jan... | [
"thomas@loftorbital.com"
] | thomas@loftorbital.com |
2b792a76a6d249e279abf8afff4ad007a551e9e7 | d42a9128898d504a9831f1afee3198c4677236c9 | /Level_3/가장먼노드.py | 19833971ef9bcd673871a0c8a749d8662f7847c8 | [] | no_license | ketkat001/Programmers-coding | 6848a9c8cffd97b792cfc8856ec135b72af5d688 | 799baba8d66a9971b43233d231cecbf262b4ea27 | refs/heads/master | 2023-09-02T23:07:25.614820 | 2021-10-17T18:12:02 | 2021-10-17T18:12:02 | 235,016,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from collections import deque
def solution(n, edge):
answer = 0
graph = [[] for _ in range(n+1)]
dp = [0] * (n+1)
dp[1] = 1
queue = deque([1])
for edg in edge:
graph[edg[0]].append(edg[1])
graph[edg[1]].append(edg[0])
while queue:
answer = len(queue)
for i i... | [
"ketkat001@gmail.com"
] | ketkat001@gmail.com |
83cb7dd6c0700138740d91ee4df6cffbe6b0f9f6 | d1ab86d9a87c0f22a8a266455e130ce41c7bce30 | /codekata/Positive.py | 1793cd9c75db21761b74559f4595906fb14cceff | [] | no_license | madhankmr/guvi | 0a4cca09aa449d352feedbfc8f2312b2e164de2b | eea3ff1e3f02fe2cd003432417924a9548f12cb9 | refs/heads/master | 2020-06-03T08:24:22.988728 | 2019-07-09T10:32:25 | 2019-07-09T10:32:25 | 191,355,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | N=float(input())
if N>0:
print("Positive")
elif N==0:
print("Zero")
else:
print("Negative")
| [
"noreply@github.com"
] | noreply@github.com |
2b6fe91500803b1b8a9c476b652dec61beb1a3b2 | 2aa3cb8797100d32d874561f6ec1a550630d7909 | /majorProject/wsgi.py | f6f6ac0d6ee70ff74119318b7856d3cb71ea4f7a | [] | no_license | bksingh2000/MAJOR_PROJECT | a703d79acab2942803b2fff1050f5d83f895a1ff | 869610876192a704c671fd5694d9d70a9650b1bc | refs/heads/main | 2023-06-01T00:29:21.504845 | 2021-07-12T17:39:04 | 2021-07-12T17:39:04 | 385,331,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for majorProject 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"badal.kumar@digidexlabs.com"
] | badal.kumar@digidexlabs.com |
4289da06aad1d6cd12dd9db3fedd8b61d69f984a | a946ed03502d55eefb3cf44607c9773ef73dd3a1 | /books/urls.py | 9c8b997973cb2b3e27c2a648c38ae92a937b55fa | [
"MIT"
] | permissive | ZeroOneo/DRF | 626156ee64193fd9cbde60262ae6ce6d9488fa25 | 2bb6606988ec7d6bc0caba5365b04a5dce3184c7 | refs/heads/master | 2020-06-03T11:55:44.705076 | 2019-10-02T09:41:39 | 2019-10-02T09:41:39 | 191,558,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | # from django.conf.urls import url
#
#
# from . import views
# from rest_framework.routers import SimpleRouter, DefaultRouter
# from books.views import BookModelViewSet
#
# urlpatterns = [
# url(r'^books1/$', views.BookListView.as_view()),
#
# url(r'^books2/$', views.BooksGenericAPIView.as_view()),
#
... | [
"785170494@qq.com"
] | 785170494@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.