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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5cdd8a3681c55c23311a26ab718a8d3bfe943741 | 830ccba803bc1215cee5b839081142a27093a399 | /basic_python/11/hello.py | caf9cec80b5b7dfd150e205cbea8bcc953ebfa08 | [] | no_license | nobino/dotinstall | ec50ac766407e0dfd19789d315d192031a53379c | 4dff329f5f019265de774e91b0eaa9ba9e3489b4 | refs/heads/master | 2016-09-05T10:51:44.299302 | 2013-01-01T07:44:38 | 2013-01-01T07:44:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # coding: UTF-8
# 11 list-2
a = [1, 5, 2, 10]
a.sort()
print a
b = [1, 3, 5, 7]
b.reverse()
print b
print 2 in b
c = range(1, 10)
print c
d = range(1, 10, 2)
print d
| [
"nobino_github@outlook.com"
] | nobino_github@outlook.com |
75fa17578791d52e645d0b3b0f1912cabaea44fc | 3b9a54cb419752defb5d91516a12537c07818362 | /dungeon_generator.py | cca48c6e37f58aa6cdf7275458d4dc2e4f0ef6d9 | [] | no_license | darvin/infinitequest | 808d25129bc1ce3e0b882fa3f470078abc336589 | 6d045df2c6804ec7538d2f9ee9916c71bfef04ba | refs/heads/master | 2021-01-19T00:43:58.782603 | 2011-03-18T02:05:42 | 2011-03-18T02:05:42 | 1,494,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,619 | py | # Class to produce random map layouts
from numpy import *
from random import *
from math import *
class dMap:
def __init__(self):
self.roomList=[]
self.cList=[]
def makeMap(self,xsize,ysize,fail,b1,mrooms):
"""Generate random layout of rooms, corridors and other features"""
#make... | [
"dcdarv@gmail.com"
] | dcdarv@gmail.com |
f77ea489f20c231434ca0f1caea9de519cf3ca2f | b7a2a80843fa5141ffb9c7b4439f1d2ac713af30 | /Version2/SystemKommandos.py | 3eb10a56a4624476aab5ba3c18ba953ddb6bde07 | [] | no_license | wunnox/python_grundlagen | df1bc2b9b1b561bd6733ccc25305e799a48e714e | fa84d7aae7332a7acbb3ba7ff0fe2216cc345fc0 | refs/heads/master | 2023-05-01T12:19:23.208445 | 2023-04-16T11:29:01 | 2023-04-16T11:29:01 | 222,099,539 | 2 | 3 | null | 2019-12-19T10:56:43 | 2019-11-16T12:57:54 | Python | UTF-8 | Python | false | false | 323 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
log = os.popen("ping -c 1 google.com").readlines()
for zeile in log:
print(zeile.replace("\n", ""))
# oder
if os.system("ping -c 1 google.com") == 0:
print("IP ist erreichbar")
else:
print("IP ist NICHT erreichbar... | [
"peter.christen@cssgmbh.ch"
] | peter.christen@cssgmbh.ch |
07857498ca31a09b78ba75ff1cc57a0493e4657c | e0a3173304c9f7cc6a2698a3eb392e57408629fb | /screen_record.py | 14ff194166a3a6b4253d7e7d9e17c086103310f7 | [] | no_license | sandeepsanwariya/screen_record_with_opencv | 79379073366d6c32b2fc83d911829b8381b0045f | 79fcabf7f5c6fbdb6db3a734a73251f1b05b73b1 | refs/heads/main | 2023-04-08T18:38:41.891027 | 2021-04-11T05:30:20 | 2021-04-11T05:30:20 | 356,774,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import json
import cv2
import numpy as np
import pyautogui
with open('test.txt', 'r') as filehandle:
basicList = json.load(filehandle)
print(basicList)
file = open('test.txt', "r+")
file.truncate(0)
file.close()
with open('test.txt', 'w') as filehandle:
json.dump(basicList+1, filehandle... | [
"noreply@github.com"
] | noreply@github.com |
5eab059f0b7ef2efd50508a594366849740f8c8c | ddcd09beeeeb850b64be73b9c3d80b4c826d6617 | /test.py | db37fc9cb2a1a6b206befc5584d9fd92cc579d0a | [] | no_license | pbsilberman/class-testing-repo | 1cf8cb9e621641bc92335478182d83751f37906f | 3f8729abe7d0e183c78aba4481c9a7603dd5474c | refs/heads/master | 2020-03-19T04:28:13.431506 | 2018-06-02T16:09:13 | 2018-06-02T16:09:13 | 135,832,257 | 0 | 0 | null | 2018-06-02T16:09:13 | 2018-06-02T16:05:56 | null | UTF-8 | Python | false | false | 35 | py | print("I'm a branching expert now") | [
"philipsilberman@gmail.com"
] | philipsilberman@gmail.com |
eab358e5c2ab40f807ded71b2cda7bc7732724bf | b1226e4e96ea9922ac77c5d5488cf9c6a78f7136 | /scout/migrations/0002_auto__add_criterionscalerow__add_criterionscale__add_field_criterionra.py | 81dab46cd0a6760e31cadfce7c1c3d0d09ae123a | [] | no_license | Byteme8199/pinnacle | cc0393dbe4637b27038dfda376aa1b6684a08cb6 | 8d78ac9bc9dbd616eeadf358327e495713a05007 | refs/heads/master | 2021-01-17T23:30:10.803149 | 2015-01-29T22:07:27 | 2015-01-29T22:07:27 | 24,390,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,562 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CriterionScaleRow'
db.create_table(u'scout_criterionscale... | [
"ryan@hdvideoandwebdesign.com"
] | ryan@hdvideoandwebdesign.com |
7e90a7b7b8e952577d37cb467a80d75328c8d430 | 2b082140d09db9912f07b3c357ed9aa5f5dd5528 | /setup.py | be3cc76a0847b00f3604eb963b17ccd9e5d951cd | [] | no_license | khaled-badenjki/Notifier | ad17fdada880bc63f62bb4f33fb2eefbffac8049 | dafc8e8af03378ec9313a1a2b174722dce7daaba | refs/heads/master | 2023-01-31T10:55:04.349348 | 2020-12-09T19:59:08 | 2020-12-09T19:59:08 | 313,070,253 | 4 | 1 | null | 2020-11-19T10:54:22 | 2020-11-15T16:11:52 | Python | UTF-8 | Python | false | false | 598 | py | from setuptools import setup, find_packages
__version__ = "0.1"
setup(
name="notifier",
version=__version__,
packages=find_packages(exclude=["tests"]),
install_requires=[
"flask",
"flask-sqlalchemy",
"flask-restful",
"flask-migrate",
"flask-jwt-extended",
... | [
"m.k.badenjki2@gmail.com"
] | m.k.badenjki2@gmail.com |
d27cfc48c8824dc7d4e4d5a3f70f451a1c53dda6 | 4afacc62ee60ffcc9f079ec8288768eabc80f5ba | /submit/test_2B.py | 88716f97783c4497bf13f908ed8a4f7acfd28b7c | [] | no_license | trunghieu11/zalo_landmark | 12bd3b5bd606f544bdf81ae8c29ad88706831144 | 3d69c25b3a08515cfb313d7798192b705b206329 | refs/heads/master | 2020-03-27T01:09:35.436329 | 2018-09-03T15:51:42 | 2018-09-03T15:51:42 | 145,687,305 | 0 | 0 | null | 2018-08-22T09:33:00 | 2018-08-22T09:33:00 | null | UTF-8 | Python | false | false | 5,484 | py | __version__ = '0.3.17'
import os
import os.path as osp
import torch
import torch.nn as nn
#import torch.nn.functional as F
import torch.optim as optim
from torch.optim.lr_scheduler import MultiStepLR
from torch.autograd import Variable
import torch.backends.cudnn as cudnn
import torchvision.transforms as transforms
... | [
"hieunt6@vng.com.vn"
] | hieunt6@vng.com.vn |
fc48c2a20fd5d02ad38e98802975b2e4f218953b | 498df6f729f443d08ba2645d05be493822afb117 | /Hacker-Rank-Practice/EqualizeArray.py | 1909210db57406bd855e5d7134be4905c7f1cf7d | [] | no_license | AlexisNathavong/Hacker-Rank-Practices | 3496fd8a551cf7453f0d2dfb28f255506c53ae94 | f2da8c206a46baa42978b8ef84e73e84852b2bf3 | refs/heads/master | 2022-12-18T16:58:00.365202 | 2020-08-27T02:34:17 | 2020-08-27T02:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'equalizeArray' function below.
#
# The function is expected to return an INTEGER.
# The function accepts INTEGER_ARRAY arr as parameter.
#
def equalizeArray(arr):
# Set the count to zero as a starting point to count t... | [
"alexispanyathong@Alexiss-Air.lan"
] | alexispanyathong@Alexiss-Air.lan |
f2ea129609ab68de9af623d8b8c473e6eb333988 | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/sparse/sign.py | 61ba2104d673a953ad976e5b10a35c9c2232d0b9 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 3,804 | py | """
[SIGN: Scalable Inception Graph Neural Networks]
(https://arxiv.org/abs/2004.11198)
This example shows a simplified version of SIGN: a precomputed 2-hops diffusion
operator on top of symmetrically normalized adjacency matrix A_hat.
"""
import dgl.sparse as dglsp
import torch
import torch.nn as nn
import torch.nn.... | [
"noreply@github.com"
] | noreply@github.com |
eede37aa260bcb94012bee96de6d8ac0ae7fd04c | 2bb9cfaafc37b5c421a3716f6cb08b11a68319b9 | /Listas de Revisão/Lista 1/Prova 1.5 - Tipo B.py | ffab1add9cb9d80a26a79f962166b16190dae9b2 | [] | no_license | FelipeGCosta/Introducao-a-Ciencia-da-Computacao-2018-2 | 84490e61e83cdd98cb83cc1f1ca0f04ff273920b | 651990e09725f0b9e0a8104991c1cfb985c84ca8 | refs/heads/master | 2020-05-07T05:39:52.597786 | 2019-04-09T04:10:15 | 2019-04-09T04:10:15 | 180,276,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | def Fibonacci(n):
if(n == 1 or n == 2):
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
k = int(input())
numeros_lidos = 0
media = 0
maior = 0
while(k > 0):
x = Fibonacci(k)
if(x > maior):
maior = x
numeros_lidos += 1
media += k
if(k % 2 == 0):
if(x % 2... | [
"noreply@github.com"
] | noreply@github.com |
70ba1cb24eba39ec93509b4d9735c7d6b1f1caf9 | 5a3a2c87114ff11e22bba2bf66d38048f4db19b4 | /python기초100제/python기초100제-55번.py | bb5e5ac5da77d11009ce8e4a7ccdbc363878198d | [] | no_license | JJong-Min/Code-Up-Algorithm | c86d7fbc5244e9768d1997b1b5d69bf5972a5b64 | bcdf6f98524bba25c1221392815a772e86ecdba4 | refs/heads/master | 2023-03-21T18:46:31.466483 | 2021-03-19T12:56:16 | 2021-03-19T12:56:16 | 342,139,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | a, b = map(int, input().split())
if a == True or b==True:
print('True')
else:
print('False')
| [
"79436533+JJong-Min@users.noreply.github.com"
] | 79436533+JJong-Min@users.noreply.github.com |
2e4ae682ad84355d36cf5d8fed395e502df7fa47 | d0cd768a1e9dc75eba5892bb1236c19d57e6272c | /ciclosfortarea5.py | b4d130529e3bfc3a09d2ff308f7bcbc08cfd5acd | [] | no_license | NazdiraAbigailCerdadelPrado/Tarea-05 | 5a3a961efdce559e960f3bade0e881268ddc3405 | c77d2759ea57cbc0bb4fea8d08112aa00d8875a7 | refs/heads/master | 2021-07-11T17:11:03.596414 | 2017-10-14T22:15:21 | 2017-10-14T22:15:21 | 106,964,781 | 0 | 0 | null | 2017-10-14T21:39:43 | 2017-10-14T21:39:43 | null | UTF-8 | Python | false | false | 6,691 | py | #encoding: UTF-8
#Nazdira Abigail Cerda del Prado
#A01375428
#Programa con un menu para que el usuario decida qué quiere que el programa haga
#Importa librerias y establec constantes (globales)
import pygame
from random import randint
import math
import sys
ANCHOV = 800
ALTOV = 800
NEGRO = (0,0,0)
BLANCO = (255,255,25... | [
"A01375428@itesm.mx"
] | A01375428@itesm.mx |
9058ceb09b756f4774674561cb94907b121961c2 | 75c77d95f83ebf68a83b7a1d709234a9e776f153 | /impute.py | 304a9421c9e94bc5f74dc7ce254789db849373b5 | [] | no_license | lebol2018/capstone | ef3fd7965b1f5494da47257de2318f212d6db67d | cd0ffe6c010677d1b74eed4417b42ad29050ae29 | refs/heads/master | 2020-04-06T22:21:46.182435 | 2018-12-04T22:43:55 | 2018-12-04T22:43:55 | 157,833,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | import pandas as pd
import numpy as np
import time
import pickle
import math
import random
print("Reading in csv files...")
books = pd.read_csv('books.csv')
ratings = pd.read_csv('ratings.csv')
print("Done.")
print("Number of books:" + str(books.shape[0]))
print("Number of ratings: " + str(ratings.shape[... | [
"noreply@github.com"
] | noreply@github.com |
38785b8e0322a5f7c0d1a4601a789a4165dd168e | e692286849d183dc0ff65fd794b07940f187c420 | /data_processing_offline.py | fc9ff7b8a57cfce8da1f42b5ed7b5ff4c60508a4 | [] | no_license | fouf96/akb_data_analysis | ebccf028a1c2d44b28be3d1c85edc0a707c534c4 | c73fa0639883fac339c0b9112f7680eee0f2dcb3 | refs/heads/master | 2023-03-01T07:52:24.098022 | 2021-01-28T16:06:30 | 2021-01-28T16:06:30 | 292,390,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93,219 | py | """
The data_processing script contains all methods which, as the name
suggests, involve data processing. This is important to decouple the
hardware classes, GUI elements and other layer of the software
architecture from each other. The data_processing module does not only
contain independent methods but also separate ... | [
"georg.wille@gmx.net"
] | georg.wille@gmx.net |
d52a5485f4b3b4c843834e9291fa884adedcb2b6 | 762e2779813b7a487331b8220971597c8b6e0473 | /examples/color1.py | a4874949b76acf231ffadf046d003798f73742e2 | [] | no_license | yyr/pyngl | fb1a35bd2972e10f27bce19b59263e4fde631f9d | 7783b6827622ff2a7ac508551a167dc0bcc12fc7 | refs/heads/master | 2020-04-02T00:14:38.628381 | 2013-04-28T08:15:13 | 2013-04-28T08:15:13 | 9,727,371 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | #
# File:
# color1.py
#
# Synopsis:
# Draws all colors in user specified color maps.
#
# Category:
# Colors
#
# Author:
# Mary Haley
#
# Date of initial publication:
# December, 2004
#
# Description:
# Loop through a list of color map names and
# draw the maps as a table of colors and index... | [
"hi@yagnesh.org"
] | hi@yagnesh.org |
45fa9b2f4275d14de540643665aed8778bd71b91 | aeaea6120ccb31a7c22f3c2b5d7d75236750dd9d | /src/books/migrations/0001_initial.py | 2bbf05c0112a49d6b329cae5f2f16954c2919008 | [] | no_license | Egoart/python-test-project | e8d685198b53e52ed6a2ece028eb38a0e2f37da4 | d783a2faf53f80d3f40ee456b65174dc52a2ee30 | refs/heads/main | 2023-07-08T22:01:04.918544 | 2021-07-27T09:22:38 | 2021-07-27T09:22:38 | 355,085,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,028 | py | # Generated by Django 3.2.3 on 2021-06-10 14:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('refshelf', '0006_authors_picture'),
]
operations = [
migrations.CreateModel(
... | [
"egor.4r@gmail.com"
] | egor.4r@gmail.com |
317bc866701d77b5518a69065d829edce211b027 | 7b40ef1d0002b0ad385f5d227c57843bd9c66ff3 | /problem_two/anonymise_csv.py | 904b07b4a037a2c5aa1f0a9bf4c234dc8fe7c284 | [
"MIT"
] | permissive | arturogonzalezm/latitude_challenge | 221b0a01f17b7268a82062a83737a9c21139e18c | 1eee2eaa451442135cb46c45c3170b8d2f39d528 | refs/heads/master | 2022-12-17T10:35:15.207560 | 2020-09-04T01:12:21 | 2020-09-04T01:12:21 | 291,429,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | import csv
from collections import defaultdict
from faker import Factory
class Anonymise(object):
@staticmethod
def anonymise_rows(rows):
"""
:param rows:
:return:
"""
fake = Factory.create('en_AU')
first_name = defaultdict(fake.first_name)
last_name ... | [
"arturo@arturosolutions.com.au"
] | arturo@arturosolutions.com.au |
ee4a8e611414a8ce456f179d91afd58728d49a5d | 9bf87ec4f02aed0bfcce4e694b0b35771e6441a1 | /linkedin-api/credentials.py | b4bf8bf6aeb6741ae1158f4b3bb65bd243ce781e | [] | no_license | ajeet214/Web-Scrapping | 2325eb5300bf96ece2f099c823f7311e21588266 | e2270734e4862ef3e7d2b20e51dd78db4dc0dc1c | refs/heads/main | 2023-08-03T09:39:23.318676 | 2023-07-31T09:25:49 | 2023-07-31T09:25:49 | 381,681,533 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,710 | py |
creds = {'email': 'jaqsoms43@gmail.com',
'password': 'dwedu229!@!$7238hd',
'google_key': 'AIzaSyASmizHZrRrEU6tJH0XgP3QXNae7CMEEW4',
'cookies': '[{"domain":".linkedin.com","expirationDate":1605951483,"hostOnly":false,"httpOnly":false,"name":"_ga","path":"/","sameSite":"no_restriction","secure... | [
"noreply@github.com"
] | noreply@github.com |
e449cc39a44889ae2d693ee3369169151f7133bd | bd905ffbb0f0e7b75438af656bb7f413d2d3a9c3 | /base/migrations/0001_initial.py | 5e7371e0733261ceecc8351fca1fa8a2e814f5b9 | [] | no_license | paulcornelmoldovan/ToDoApp | 8a25f5e7e0eabfc5971b3843a72e8f9aab09aa59 | 6372686df7f0dbd9f97496a0f10e3bc67f54beef | refs/heads/main | 2023-04-10T02:09:44.599100 | 2021-04-15T13:13:54 | 2021-04-15T13:13:54 | 357,964,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # Generated by Django 3.1.7 on 2021-03-19 15:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"paul.cornel.moldovan90@gmail.com"
] | paul.cornel.moldovan90@gmail.com |
15eb72ad636edbf32a27501814ebe6ead6ccc591 | 3c750d4d60660fdf6ef84d7b7ab9663fb76d0fa1 | /sopht/numeric/eulerian_grid_ops/poisson_solver_2d/scipy_fft_2d.py | c27c75ab0c351c35f8a07f4cc81135a2084dd26a | [
"MIT"
] | permissive | SophT-Team/SophT | 25d157a17734600e9aa4f522b4574bfefe202bc7 | 99a094e0d6e635e5b2385a69bdee239a4d1fb530 | refs/heads/main | 2023-08-31T21:14:10.304592 | 2023-08-31T17:00:38 | 2023-08-31T17:00:38 | 498,451,510 | 2 | 2 | MIT | 2023-09-12T15:37:31 | 2022-05-31T18:25:12 | Python | UTF-8 | Python | false | false | 457 | py | """Create reference FFT operations via scipy in 2D."""
import numpy as np
from scipy.fft import irfftn, rfftn
def fft_ifft_via_scipy_kernel_2d(
fourier_field: np.ndarray,
inv_fourier_field: np.ndarray,
field: np.ndarray,
num_threads: int = 1,
) -> None:
"""Perform reference FFT operations via scip... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
7f2cffad15097d2569d02638773032d76f757de4 | 8cbbec003a96286a70549c75233568c9fc668c12 | /src/bioservices/services.py | f853f9840f0a2e9b2b4de0abca30ed64bd0e3206 | [] | no_license | pjshort/bioservices | bce6e623b5d88bf9dbf6ca4a4cfb89a4106b6b5d | 7f2f948a03089cb47f9dda3954f4c0697a0fddee | refs/heads/master | 2020-12-11T03:47:26.414665 | 2014-11-22T14:41:44 | 2014-11-22T14:41:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,520 | py | # -*- python -*-
#
# This file is part of bioservices software
#
# Copyright (c) 2013-2014 - EBI-EMBL
#
# File author(s):
# https://github.com/cokelaer/bioservices
#
# Distributed under the GPLv3 License.
# See accompanying file LICENSE.txt or copy at
# http://www.gnu.org/licenses/gpl-3.0.html
#
# docum... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
ce7e34d1d68f70cbe45a0bf10d69ffd79ee528a3 | 51fc691d823b424370c54a7c59d9eff714dcbed2 | /main.py | 7700d2faa57a05babace97a18a73d0b7173a4855 | [] | no_license | dxzmpk/dependency_parsing | dbcf770c2ec8097bb4280c406b23d9a547b46e4f | e0bec5be048c60de27cc048fb65d4d2f05b99f66 | refs/heads/master | 2020-09-10T20:38:07.493080 | 2019-11-15T08:13:38 | 2019-11-15T08:13:38 | 221,828,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,327 | py | from preprocessing import ReadData
from data_struct import ParseStack
import dic_building as db
import os
import pickle
import numpy as np
def parse_sentence(index, sentence):
"""
关键函数,根据句法分析树构建分析过程
:param sentence: 待分析的分析树
:return: fail:分析错误数
"""
global fail
buffer = []
for word in ... | [
"1635338905@qq.com"
] | 1635338905@qq.com |
dd2177d8a1694de5cc93a01b2c2fed38f9b6591e | 7aa4ece5c5301ec07cbfd79ea93ecc9a0418d5d4 | /3_badchars.py | a637dd6c850fdb399b63f7939ed9481f24fd47ee | [] | no_license | hyperreality/OSCP-Buffer-Overflow-in-30-minutes | 91f037bc6623b0d1ac56ddf284ce2be679bd00a5 | f354be3ad917265f2d2b45ddc3b84076cb0a6283 | refs/heads/master | 2020-06-03T16:11:10.852440 | 2019-06-12T20:59:46 | 2019-06-12T21:05:19 | 191,644,042 | 31 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | #!/usr/bin/env python2
import socket
from constants import *
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
badchar_test = ""
badchars = [0x00, 0x0A]
for i in range(0x00, 0xFF+1):
if i not in badchars:
badchar_test += chr(i)
with open('bc.bin', 'wb') as f:
f.write(bad... | [
"lmt@fastmail.com"
] | lmt@fastmail.com |
0856f6a1b38760b3161698bc0ef30a8a3bca0ed4 | 360c777a2b77be466b1cf7c8fd74d6fd04f56b55 | /migrations/versions/7844211fb55_.py | 7d304f72a21244221e00963d026d4463433f0936 | [
"MIT"
] | permissive | hreeder/nexus-auth | 790a3b2623ddf443138a4b0f0af1380dbc4db8ae | 8d51aef01647e32ba4a284f02de73a2caad7cf49 | refs/heads/master | 2021-01-10T10:08:37.190558 | 2016-02-29T12:27:21 | 2016-02-29T12:27:21 | 52,789,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | """empty message
Revision ID: 7844211fb55
Revises: c5242907c1e
Create Date: 2014-07-30 10:23:03.502189
"""
# revision identifiers, used by Alembic.
revision = '7844211fb55'
down_revision = 'c5242907c1e'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - plea... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
b1048b73d34045d75ba0577a1d43eeafb2f062a7 | a67d25a28df71edbc537de56a32156534b23f12d | /src/spider.py | 45215f25dbf4ad31759cdced09886ad63f207558 | [
"MIT"
] | permissive | deviantdear/Python_Webscraper | 0f90c5bb963c7af1e778f11a7447664d5c9e1c32 | 0dec8c673dbeac7f243d39834dd1fdd50cffd61c | refs/heads/master | 2020-04-08T10:43:49.212171 | 2018-12-03T18:40:19 | 2018-12-03T18:40:19 | 159,280,018 | 0 | 0 | MIT | 2018-12-03T18:40:20 | 2018-11-27T05:18:40 | null | UTF-8 | Python | false | false | 2,451 | py | from urllib.request import urlopen
from link_finder import LinkFinder
from webscraper import *
from domain import *
class Spider:
project_name = ''
base_url = ''
domain_name = ''
queue_file = ''
crawled_file = ''
queue = set()
crawled = set()
def __init__(self, project_name, base_url... | [
"deviantdear@gmail.com"
] | deviantdear@gmail.com |
159528c5ce60378ffee74b9e620ba6092d45c60f | 0fb0a5aea7236eca9aed2c8e13192e8ee3a80831 | /DataCrawler/spiders/post8684.py | df67ebb7d965d188a9b6cbd06c4788773e16389a | [] | no_license | robin-go/data-crawler | 26c8969b83915499fde350d25edf6b545a3895bf | be87bbdf22f0bdb0a70b174f5ef93a348e739d10 | refs/heads/master | 2020-03-14T02:42:22.303459 | 2018-05-15T07:55:22 | 2018-05-15T07:55:22 | 131,404,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | # -*- coding: utf-8 -*-
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from DataCrawler.items import PostcodeItem
class Post8684Spider(CrawlSpider):
name = 'post8684'
allowed_domains = ['post.8684.cn']
start_urls = ['http://post.8684.cn/']
rules = (
... | [
"doubin@yuntongxun.com"
] | doubin@yuntongxun.com |
21f76cf9ae09756c444f6d1e9a0ac8aa695f69a7 | d5ad3112c09e4b4ed611c8d275e43d789075b3d9 | /api_test_framework/run_all_html2.py | 223355dc4228218c0626e616ec444afbea55b017 | [] | no_license | yanghui-007/UI_test | ab0d980d3ef006312003a17d320a00842202df2b | dd3c73c6fec8c6f67cddf8aa7dbce02ae2c0cb24 | refs/heads/master | 2022-08-09T16:20:45.639896 | 2020-05-21T04:24:07 | 2020-05-21T07:13:44 | 265,520,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import unittest
#from lib.HTMLTestReportCN import HTMLTestRunner
from lib.send_email2 import send_email
from lib.HTMLTestRunner import HTMLTestRunner
import time
now = time.strftime("%Y-%m-%d %H_%M_%S")
#遍历当前目录及子包中所有test*.py中所有unittest用例
#suite=unittest.defaultTestLoader.discover('testcase_umps/productmanagement',pat... | [
"yanghui1234561@163.com"
] | yanghui1234561@163.com |
d5676ddbf18bb2674632f0e6c04b6eb5b48d1ab1 | f0ce71c147d1730b85cde6f317e4bc6dbadc5b5b | /api/views/request_views.py | 49f8a77ee8be69988284b6231950a1ef9d424ab8 | [] | no_license | wahyuprihantoro/strade_api | 9a739c7c349849553b0cdc5cc7b32d22466498c7 | 858f9719723c78f8fa932c7a463247b5dcf8beb8 | refs/heads/master | 2021-08-30T22:08:35.235406 | 2017-12-19T16:03:54 | 2017-12-19T16:03:54 | 104,347,262 | 0 | 0 | null | 2017-12-19T16:03:55 | 2017-09-21T12:48:25 | Python | UTF-8 | Python | false | false | 5,921 | py | from rest_framework import status
from rest_framework.decorators import permission_classes
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from api.controllers import helpers
from api.models import Product, U... | [
"wahyuprihantoro21@gmail.com"
] | wahyuprihantoro21@gmail.com |
b77d07e6bc600622f052f6a6b2f966917d5021ac | 76ec646ca1451d6985759c7ad9e0ffd296d4c211 | /pipelines/dag_and_pipeline.py | cdc4ee8d08e2871a4031bc202ee93ae8d4ed6407 | [] | no_license | nanchano/Algorithms | 6f1dbbb83644f6850a2f47a2ca951e0c8a55fbaf | ffae91de105a1dbd4c0b9d87e03308bc6e1959e4 | refs/heads/main | 2023-01-19T12:02:26.229261 | 2020-11-29T21:34:06 | 2020-11-29T21:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | class Node:
# This type of node allow us to have key: value pairs to save data other than integers (as values, with ints as keys)
## Kinda works like a hash table when combined with the BST.
def __init__(self, key=None, value=None):
self.left = None
self.right = None
self.key =... | [
"nicolas.anchanio@gmail.com"
] | nicolas.anchanio@gmail.com |
4aa5e9a6e382493709eebfd10f17f80b0541de20 | 04f79440a2e3c3fb103621247a18a1a4c8d4a96e | /src/app.py | 6fb283118abfeec8c0b21af177b6f833e251ac0e | [
"BSD-2-Clause"
] | permissive | actiago/task-scheduler-py | 63b92be2a94be282c6afa79c5b41e59e96bb9ad5 | 804f7a3177afa53e3aa7fe89551ca92a75f882ee | refs/heads/main | 2023-01-02T21:12:05.780461 | 2020-10-24T13:01:38 | 2020-10-24T13:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from os import getenv
from gevent import monkey; monkey.patch_all()
from flask import Flask
from huey import RedisHuey
DEBUG = getenv('DEBUG', True)
app = Flask(__name__)
app.config.from_object(__name__)
huey = RedisHuey('task-scheduler', host=getenv('REDIS_HOST'), always_eager=DEBUG)
huey.immediate = False
| [
"felipe@localhost.localdomain"
] | felipe@localhost.localdomain |
522b70800b73abcbdf02320d40ed967c5aab538f | a66c2115b47cf89accf61c16cb15d4b791afdeec | /metodos numericos computacionais/python/Falsa_Posição.py | e0ee201bc036551fae50e54050a25baf4782690d | [] | no_license | juliano-soares/2018-segundo-semestre | 3430e1860f76b135d53b30cc2db838ceb3e7a4b4 | 20d15d6dcb0a85cd207cb74d60a791a180c01c2c | refs/heads/master | 2020-07-02T18:50:38.591888 | 2019-09-08T04:56:14 | 2019-09-08T04:56:14 | 201,628,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | """
Metodo da Falsa Posicao
por Juliano Leonardo Soares
"""
from sympy import *
""" Limpeza """
clear;
clc;
""" Entrada """
f = str2sym(input('Digite a funcao: ', 's'));
a = input('Digite o valor inicial do intervalo: ');
b = input('Digite o valor final do intervalo: ');
while (subs(f, a) * subs... | [
"noreply@github.com"
] | noreply@github.com |
d0c46a15c26d8c4ece78ef71c9d2c8395ebe5981 | 3c3654f93715fc984cd287d2a39e367ba71a6782 | /python/time/timing.py | 3b17204207d326ba9bc35fb516ba1a8cd41b990d | [
"MIT"
] | permissive | exu/poligon | d272bdd456ac60561d3343737bac60e41beb0f19 | be6a61e458b810fa919daa4c196a54c7af2c4c5a | refs/heads/master | 2020-04-23T23:13:07.735349 | 2014-11-28T07:51:09 | 2014-11-28T07:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from timeit import Timer
t = Timer('print("a")')
r = t.repeat()
print(r)
| [
"jacek.wysocki@gmail.com"
] | jacek.wysocki@gmail.com |
cf7ab34a660f56433f5b54ab6324670467ea001f | 214dbac428fc8ad18d8775cd3ffd744068a77d24 | /my_django_app/settings.py | 9cc596a67ddf070aaa58ab4421bb25e912c69226 | [] | no_license | nsalahdeen/DjangoProject | 879c609fd5b53cf4be3a0ff5358d70adfbebbcf7 | 65a1bdcddb719e27ca67cd12aa47171f50370036 | refs/heads/main | 2023-04-20T04:25:20.608614 | 2021-05-04T15:51:50 | 2021-05-04T15:51:50 | 364,306,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | """
Django settings for my_django_app project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import o... | [
"you@example.com"
] | you@example.com |
493233e234ef1d8b53ad8ab83b72d118a447d2ad | d285ed261e8f39567d54c264672dcd97f368ba75 | /Udemy/Input.py | cb3fecbd15497db120474eaab44dbbcf8087f0f7 | [] | no_license | Cortella/Python | 84ab33de298be3af211181cd8903a167ea13c630 | d6457a0f29a8ab362d3664853ca361251f36577d | refs/heads/master | 2020-12-28T03:08:41.961592 | 2020-02-09T09:35:56 | 2020-02-09T09:35:56 | 238,161,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | numero = input("Digite um numero: ")
print(numero)
nome = input("Digite seu nome: ")
print("Bem vindo " + nome)
| [
"nicolau.cortella@gmail.com"
] | nicolau.cortella@gmail.com |
87455efe380b834d655875bd8d56526c845a3243 | b75b17237a3000e8ca1c47460cf4168751ad1144 | /chat/models.py | f0b619d51ca232b7731b2c5fab683e3251678904 | [] | no_license | shafa909/RealWorldOne | 1cd6b357fbaf231a484ddbffce87cb4dba5aa4d7 | e430905189df654428467abf7d1cc4f406f5ac7c | refs/heads/master | 2022-05-05T18:32:28.290530 | 2019-10-28T09:13:21 | 2019-10-28T09:13:21 | 212,115,893 | 0 | 2 | null | 2022-04-22T22:35:11 | 2019-10-01T14:21:51 | JavaScript | UTF-8 | Python | false | false | 1,692 | py | from uuid import uuid4
from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
def deserialize_user(user):
"""Deserialize user instance to JSON."""
return {
'id': user.id, 'username': user.username, 'email': user.email,
'first_name': user.first_na... | [
"shafa909@gmail.com"
] | shafa909@gmail.com |
55049e7115dea55aad75cdcec11eadadd5636dc4 | bcc4305da9140a2b68240124fe3106353c671c18 | /frischen/broker.py | 0603655617df53da61c75de84abbed1cc49a2e57 | [
"MIT"
] | permissive | vvmev/frischen | da34f35fa071fb1883c5940f2ed963c238bec2fc | 83972a906e3f2211ebc213477173f3ed467e50e5 | refs/heads/master | 2022-12-12T02:21:26.717452 | 2021-03-20T09:14:16 | 2021-03-20T09:14:16 | 151,151,555 | 0 | 0 | MIT | 2022-12-08T07:43:34 | 2018-10-01T20:04:49 | Python | UTF-8 | Python | false | false | 721 | py | import logging
import asyncio
import os
from hbmqtt.broker import Broker
config = {
'listeners': {
'default': {
'type': 'tcp',
},
'ws': {
'bind': '0.0.0.0:9001',
'type': 'ws',
}
},
'auth': {
'plugins': ['auth.anonymous'],
'... | [
"stefan.bethke@t-systems.com"
] | stefan.bethke@t-systems.com |
f0df97e6156db991d8533b8553de7c8cbacb66f6 | 6fb0922886677013926e08e8ab9876635d3b5aef | /assignment 2/q1.py | e73be22bbe8e978a5949799f0ed7eb296c2425ee | [] | no_license | varshithayeslur/internship | 595cb77d01ba3d34a509250366ed6e12b929b2e1 | fc8636617ae981ae4d6369e65cc28bcd617fdf20 | refs/heads/master | 2022-02-12T22:38:30.977516 | 2019-07-31T05:04:59 | 2019-07-31T05:04:59 | 198,182,904 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | mport random
while True:
first=random.randint(0,10)
second=random.randint(0,10)
third=random.randint(0,10)
fourth=random.randint(0,10)
if first + second + third + fourth == 12:
if first>second:
diff=first-second
else:
diff=second-first
if ... | [
"noreply@github.com"
] | noreply@github.com |
7c2963b7cb0ab297e8cc66cdfcc200aafd7fa3c4 | c672abf5aa42fe8e2739d64ab91cb2e17912beab | /skl_2.py | 165942f5ee61dae4f6fa7e3a4dc65c57f05602b0 | [] | no_license | Xiaoxi-X-G/deep_learning_python | d094270f60acaca0cb0bf37578bbbde7c9cf62af | 5502ae6caaf984cacad5c17be11f6bae11c0b439 | refs/heads/master | 2020-06-26T00:49:46.730837 | 2017-07-12T11:37:24 | 2017-07-12T11:37:24 | 97,000,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 30 15:29:40 2017
@author: Xiaoxi
"""
%reset
%matplotlib inline
import warnings
warnings.filterwarnings('ignore')
import seaborn; seaborn.set() # set seaborn plot defaults
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import SGDClassifie... | [
"pluto.xiaoxi@gmail.com"
] | pluto.xiaoxi@gmail.com |
8a503355d853797aead039a5632e0c6c41b377f8 | 521504174d832b66a70692e51c80ed1c65004c2d | /nvpr_examples/skia/third_party/externals/gyp/pylib/gyp/MSVSNew.py | 0ad440c55b101e396eb64eecb1f58d0545154353 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | csevenr/NVprSDK | 5d3909b74d890fd0c43ddcdb82e1472fade44598 | 509b75299ccc5a974ce3a98e60b47ea520b0126b | refs/heads/master | 2020-09-08T14:20:35.134543 | 2016-07-07T17:57:33 | 2016-07-07T17:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,467 | py | # Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""New implementation of Visual Studio project generation for SCons."""
import common
import os
import random
import gyp.common
# hashlib is supplie... | [
"markkilgard@gmail.com"
] | markkilgard@gmail.com |
0d61c09292055eb319848cc5bad76f3b2b90382e | a58dfb63ad7f594b1fc5cded7c465dc85624547c | /mysite/settings.py | 65b9679b1ee9b49109eb8bdbb9fbe27ba48a33fd | [] | no_license | AsaiDaiki/my-first-blog | 61066b7aa16552e11122cc40676227e4c7e935f6 | aa24dae276df45f8fa0a5b39177e892f13275adb | refs/heads/master | 2023-06-05T15:04:13.792020 | 2021-06-30T06:39:41 | 2021-06-30T06:39:41 | 379,758,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"Asai.Daiki@mei.msw.co.jp"
] | Asai.Daiki@mei.msw.co.jp |
9f3038ad11a73f7f2fcffe72e04b0f75101d564e | 75a9e0098f539012f41d6c9f4a5e6dd59c1a00e2 | /lib/python2.7/site-packages/tests/task_router/test_task_router_workspace_capability.py | 048611166ea1e1c716841f63e45c20386bb5b08b | [
"MIT"
] | permissive | khjs534/safebox | 05f103ce491f5732dd615bf8c2c7b039782d45c2 | b865b2e1ca6816a661f41c95772165055cb48276 | refs/heads/master | 2021-01-13T14:45:09.662402 | 2019-02-18T19:07:35 | 2019-02-18T19:07:35 | 76,594,232 | 1 | 1 | MIT | 2019-02-18T19:07:36 | 2016-12-15T20:37:08 | Python | UTF-8 | Python | false | false | 4,229 | py | import time
import unittest
from twilio import jwt
from twilio.task_router import TaskRouterWorkspaceCapability
class TaskRouterWorkspaceCapabilityTest(unittest.TestCase):
def check_policy(self, method, url, policy):
self.assertEqual(url, policy['url'])
self.assertEqual(method, policy['method'])
... | [
"email\": null"
] | email": null |
a1298230d4c47a0b6a1526cca6577ce087f03902 | 7558fcb794b0364b5e9043060ba513bd5155f425 | /Alexa Lambda/lambda.py | 75d2d144e6bda6a509cf13241fbd543366446166 | [] | no_license | Veganizer/Spezielle-Gebiete-zum-Softwareengineering | b855a98294e1b5e9aadf4122fea99e32e3819774 | 4fd61f09a964b88704747d14cb8a44b554791792 | refs/heads/master | 2021-06-18T21:41:45.081450 | 2017-07-10T08:36:29 | 2017-07-10T08:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,446 | py | ### source: https://github.com/alexa/alexa-smarthome-validation/edit/master/python/lambda.py ###
import urllib
import json
import math
import logging
logger = logging.getLogger()
logger.setLevel(logging.INFO)
ngrok = "https://beaaa1b0.ngrok.io"
actors ={}
def lambda_handler(event, context):
if str(event['header']... | [
"jowieweb@gmail.com"
] | jowieweb@gmail.com |
9320a5cc1e9ce709a7ab3e9eee60e6d6ff6b35e3 | 80ce7f850ce398963e0300f625a67e441839064f | /code/preprocessor_trigger_high.py | 405353251c58104f18cca7c43a78e5838a9db963 | [] | no_license | jpearkes/HiggsChallenge | 4755e9da4f853ddccafaad96c258f168867ead61 | 9eb6aae40ea24676ea0c918fe49fec41617b1328 | refs/heads/master | 2021-05-29T05:10:57.168467 | 2015-07-28T22:49:44 | 2015-07-28T22:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,494 | py | # Author: Jannicke Pearkes
# Purpose: Normalizes and shuffles training data for the Trigger Project
import os
import sys
import time
import random
import string
import math
import csv
import scipy.linalg.blas
import numpy as np
import cPickle
import pprint
import glob
def pre_process_data():
#Percentage for Trai... | [
"jannicke.p@hotmail.com"
] | jannicke.p@hotmail.com |
e572940f400c4443799befdb71ed04fca2b087fd | 0305c23d48ee6e17722124aed5f90f55f1a2f5ef | /examples/lightgbm_examples/classification.py | 9924b8bca54a03c1e353420d2547fd5d7404cf68 | [
"MIT"
] | permissive | mdjabc/hyperparameter_hunter | d20a01fa6a3493fdbb595f8b5615a9d9ff398770 | bfbd1faf63272a62e6f971d7e9a0487d71aea8f6 | refs/heads/master | 2020-05-16T01:39:39.275129 | 2019-04-02T01:16:30 | 2019-04-02T01:16:30 | 182,608,190 | 1 | 0 | MIT | 2019-04-22T02:21:50 | 2019-04-22T02:21:49 | null | UTF-8 | Python | false | false | 2,453 | py | from hyperparameter_hunter import Environment, CVExperiment
from hyperparameter_hunter import RandomForestOptimization, Real, Integer, Categorical
import pandas as pd
from sklearn.datasets import fetch_covtype
from sklearn.metrics import f1_score
from lightgbm import LGBMClassifier
#################### Format DataFram... | [
"hunter@mcgushion.com"
] | hunter@mcgushion.com |
46d26eab3d237dcc2d1cf775b00e9b8c779b7798 | a2f57103423b35658008bb7eb82b7af0169046f3 | /example1.py | a6ef9bb0d2b0c2444fe46e21576c84dd88d153a6 | [
"Apache-2.0"
] | permissive | Quantmatic/iq2mongo | 8a9549b8ed07972886ecdde31be0aa02bb12c153 | ad51928683e6a2e14b8c57ae507d9905a459be0e | refs/heads/master | 2021-01-19T08:46:54.042822 | 2017-06-12T01:16:15 | 2017-06-12T01:16:15 | 87,676,797 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # -*- coding: utf-8 -*-
"""
Load ETF data to MongoDB
"""
import datetime
import time
import logging
from iq2mongo import Iqfeedhistoricdata
LOG = logging.getLogger()
symbols = ['SPY', 'QQQ', 'GLD', 'EFA', 'EWJ', 'EEM', 'IYR', 'RWX', 'IEF', 'TLT', \
'DBC', 'UUP', 'IWM', 'USO', 'VTI', 'IEV', 'AG... | [
"noreply@github.com"
] | noreply@github.com |
fe088ff553635009494d7872f22ab8f016b4e5ed | ad280b0e303ea2b4e260ca0e3cc2b80704dafab8 | /tf_squeezenet/Low_level/jy_tf_function.py | 71a2a65a628e2684055e473838af8233210be284 | [] | no_license | AKABBOKSIL/CLAIR | 2ce48b08f1f2278e9b5d35705d2f94942ab704ee | 1738cf3098152f4380d15523039380497d449c0c | refs/heads/master | 2021-05-11T11:41:51.377937 | 2018-01-26T07:03:54 | 2018-01-26T07:03:54 | 117,643,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,892 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import copy
import os
from Low_level import jy_tf_init as init
import tensorflow as tf
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
"""to load image f... | [
"noreply@github.com"
] | noreply@github.com |
db844460a18a007dc706f61e2c810f461e578b70 | 38b8cab479bddceb9221f8ebd438b22f0fa2a640 | /test/POMDemo/page/loginPages.py | 96889e99afec01de55784aeff3684c956be78223 | [] | no_license | Rita-Kuden/Selenium-Python-Framework | 9ece47a7a214b174a9e85760a911586d1d2843b4 | 7b0b1ffda0285ca243bc0f6c065783fc23f59585 | refs/heads/master | 2020-07-22T01:49:19.257196 | 2019-09-08T17:56:06 | 2019-09-08T17:56:06 | 207,036,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py |
from test.POMDemo.locators.locators import Locators
class LoginPage():
"""This class will check specifically 4C Insights Login page """
def __init__(self, driver):
self.driver = driver
# assigning variables
self.login_page_xpath = Locators.login_page_xpath
self.username_insi... | [
"ritakyzy@gmail.com"
] | ritakyzy@gmail.com |
44da011c4be22650dc7b9254321f0ef8151f8d5b | 2fea584366feae6c8baad27dd622249dffa58130 | /scripts/src/app.py | 781d075d24a2ff71997ca3249999cf2413991f97 | [] | no_license | kinecosystem/migration-server | 2b1d6fd846a85772d9540019f02aced8cfce4c81 | 591c947a21a3eb39ee9094222c2b0b566ef40730 | refs/heads/master | 2020-04-12T09:49:21.063139 | 2019-02-25T11:53:20 | 2019-02-25T11:53:20 | 162,409,333 | 0 | 2 | null | 2019-10-18T15:56:57 | 2018-12-19T08:50:43 | Python | UTF-8 | Python | false | false | 6,252 | py | """Routes and main logic for the migration service"""
import time
import logging
import flask
from werkzeug.exceptions import HTTPException
import kin.errors as KinErrors
from kin.transactions import build_memo
from kin.blockchain.utils import is_valid_address
import errors as MigrationErrors
from init import app, ... | [
"ron.serruya@kik.com"
] | ron.serruya@kik.com |
4d7ea990b10ce02d425900c7bcfcf465e2438148 | 865d53ae35c3405c0c108c31dfb93d7715671ecb | /codewars23oct.py | 4f2723a283d8b71e3be20469052601528bb4c355 | [] | no_license | zhane98/studying | 40e9c433ae2d8b1a476422f7266e54bc266c0963 | db7c16b59269172071f3dea2bda180245ccba68e | refs/heads/master | 2023-02-11T09:06:16.098038 | 2021-01-12T19:57:34 | 2021-01-12T19:57:34 | 297,721,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # if half or more of a string in username is found in password, return false
# if half or more of a string in password is found in username, return false
# if half or less of a string in username is found in password, return true
# if half or less of a string in password is found in username, return true
# if usernam... | [
"71723981+zhane98@users.noreply.github.com"
] | 71723981+zhane98@users.noreply.github.com |
4723519bed4cf39c6a6afab415f84061bb0f4c9c | 0e5571a04a4580b7239ee277e39ee6882624f013 | /textcounts/core.py | 7fff10da81019b833e61297867884b1df1fdcd9b | [
"MIT"
] | permissive | staeiou/textcounts | 51b791f7fc6edfb9593f8a43188adaf1a4b3021d | 933fa504d5e55574ff7e51817458d3d71d3c2795 | refs/heads/master | 2020-07-23T06:18:14.149492 | 2017-06-21T21:42:01 | 2017-06-21T21:42:01 | 94,351,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,271 | py | import pandas as pd
def conditional_lower(input_string, tolower_bool):
"""
Converts string to lowercase based on a conditional value. Helper function
used to make search_series more readable.
"""
if tolower_bool:
return input_string.lower()
else:
return input_string
def sea... | [
"sgeiger@gmail.com"
] | sgeiger@gmail.com |
7ecc57b62094f1a3c72566eb6369c0bd9e642349 | 0276cea3104df59c2b7fa227f68244ba34141ec7 | /Floreria/apps/flores/forms.py | 9e8824a456576d6cb45bffd0b8c5b084c2416b70 | [] | no_license | Yareni96/FrameworkDjango | eaa17b66344208935578a11be419b83640cfd495 | 77cb553828bc625570e740f09224c2f504a9704d | refs/heads/master | 2022-12-22T16:02:04.010122 | 2020-09-25T04:30:56 | 2020-09-25T04:30:56 | 298,440,118 | 0 | 2 | null | 2020-09-25T04:30:57 | 2020-09-25T01:50:44 | Python | UTF-8 | Python | false | false | 173 | py | from django import forms
from .models import Flor
class FlorForm(forms.ModelForm):
class Meta:
model = Flor
fields = ['nombre','descripcion','precio']
| [
"yareni_gem@hotmail.com"
] | yareni_gem@hotmail.com |
744ca4facb91cb199b3111df54537553c356ce03 | c92e23de99d3a65dd7275750c55f711e9047904b | /dbtasks.py | 29c4e554886c19395329f214b1760ab8f6c1c87d | [] | no_license | AlexSGeorge/Python-Flask-Student-Enrollment | 0b8b129030883335471aed98110d027155de5973 | c1bd26bf5f3c2bcd3fb88b2133dfbd603e0a33aa | refs/heads/master | 2021-02-11T03:13:10.418807 | 2020-03-02T18:38:12 | 2020-03-02T18:38:12 | 244,446,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | import sqlite3
import random
from datetime import datetime
dbname = 'customers.db'
def totRecords():
# Assume no errors, can add try except blocks
con = sqlite3.connect(dbname)
curs = con.cursor()
curs.execute('SELECT COUNT(*) FROM customer')
record = curs.fetchall()
con.close()... | [
"noreply@github.com"
] | noreply@github.com |
b97d27d3b89655fcf3710de514ce8727afe6d107 | b646738e7307f1f52e7a39d375e8ff988149062c | /419.py | e47c7c2f228788749393e04dafedf4d17c99ac8a | [] | no_license | IM-MC/LCsol | b615e199fc74130bb165032ac64772646391416a | ac2a4cf18703fef20c1374470c4ba02f89937113 | refs/heads/master | 2021-07-14T08:18:49.055170 | 2020-06-03T02:19:53 | 2020-06-03T02:19:53 | 131,068,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | def countBattleships(self, board):
"""
:type board: List[List[str]]
:rtype: int
"""
if len(board) == 0:
return 0
count = 0
for i in range(len(board)):
for j in range(len(board[i])):
if board[i][j] == 'X' and (i == 0 or board[i-1][j] == '.') and (j == 0 or board... | [
"matthewchung022@hotmail.com"
] | matthewchung022@hotmail.com |
3e56ca96fe5a7f1d12b775ceadf54b937b267bf6 | 7ca4ef565bd74a5ad4b21f15bda7ad6c6e6d36bf | /orator/orm/model.py | 6966257ed7bbc5d4839782c08c85d178a4ac0e39 | [
"MIT"
] | permissive | MakarenaLabs/Orator-Google-App-Engine | 7dc1519a4ef3dcc72235892e6cfa3821ec72f329 | fa4c428c063f1828b8035a76115752ea0c7c2bb0 | refs/heads/master | 2021-01-10T17:03:42.353081 | 2017-08-09T15:27:13 | 2017-08-09T15:27:13 | 49,000,080 | 2 | 1 | null | 2016-04-21T16:32:42 | 2016-01-04T13:55:37 | Python | UTF-8 | Python | false | false | 66,501 | py | # -*- coding: utf-8 -*-
import simplejson as json
import arrow
import inflection
import inspect
from six import add_metaclass
from ..utils import basestring
from ..exceptions.orm import MassAssignmentError, RelatedClassNotFound
from ..query import QueryBuilder
from .builder import Builder
from .collection import Colle... | [
"enricogiordano1992@gmail.com"
] | enricogiordano1992@gmail.com |
a87d7d874d8b700a79d7eca5e13de7d45d4fa1e2 | d9f9f9850abd7541a8db461ac9f5bef73ec296c3 | /main_tcc.py | f177841a0a4e8fbd311b75eea28997e6c42a440d | [] | no_license | danielmakita/TCC2 | 5f1c516faa8f4f57698cb3b288f9f4d1d9c593b5 | e69b3ae4bd396f40940e778333b28ff89718a6d0 | refs/heads/master | 2023-02-05T16:04:27.704896 | 2020-12-27T18:48:56 | 2020-12-27T18:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,811 | py | import sys
import threading
import time
from struct import *
from RF24 import *
from RF24Network import *
from datetime import datetime
from telegram.ext import Updater, InlineQueryHandler, CommandHandler
from PyQt5 import QtCore, QtGui, QtWidgets, uic
from PyQt5.QtCore import QTimer
import sys
from ... | [
"noreply@github.com"
] | noreply@github.com |
f718543820790c04fb60b145efde724499d6562a | cc8727429c22b96965728b5b0bcee937aaed3110 | /ThirtyDaysOfCodeInPython/dictionary_8.py | bcd55ceb411c6decc485a52e79683efc92b075a2 | [] | no_license | jgarcia162/hackerrank | 1e1b3992c4ca4708351c8d60a2db5065888390e1 | d0d3ac89a1aed75ffab8726b7e16cb0bef0ba237 | refs/heads/master | 2021-01-12T14:10:21.911450 | 2016-11-23T00:55:01 | 2016-11-23T00:55:01 | 69,924,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Day 8 - Dictionary and Maps
# Given names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers. You will then be given an unknown number of names to query your phone book for. For each queried, print the associated entry from your phone book on a new line in the form ... | [
"jogarcia809@yahoo.com"
] | jogarcia809@yahoo.com |
7f8d4393203d77170ee56f9dc35fd118af389dbf | 69d8f3cf7c10640a692fa9175f5a63a5a7b54fcd | /naver_webtoon.py | 2a03516c541bf495641c72d69deb1ef931d4df67 | [] | no_license | baidoosik/crawling | bd89fd9f59ecb8921e765b03faadf1c55bd59c74 | 62669badf6ce84e0ac9e575b736e41051642ea9c | refs/heads/master | 2021-06-21T19:25:30.175798 | 2017-07-30T15:02:55 | 2017-07-30T15:02:55 | 84,198,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | from crawling import *
def naver_webtoon(url):
ep_headers = {
'referer': 'http://comic.naver.com/webtoon/'
}
html = req.get(url, headers=ep_headers).text
soup = bfs(html, 'html.parser')
webtoon_name = ''.join(soup.select('div.detail h2')[0].text.split())
ep_name = soup.select('.tit_ar... | [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
d4dac81ef24ad57cf14b84d6d7318472e57b8fb4 | 77351a5a9c4d035cf49650934bbd0e01c88b3132 | /myenv/Scripts/django-admin.py | 235bdd9a45bc4e269324f17dde2c41fd6a4ad24f | [] | no_license | ykruk/museum | 226e3b97976d55c349bb8b915b42df16e1dc76e7 | 97965650fcdd2bd997402db92648e3d69653cd05 | refs/heads/master | 2020-04-20T17:33:15.600551 | 2019-04-01T18:42:51 | 2019-04-01T18:42:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!d:\web-pages\diplom\myenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"yulka.kr@gmail.com"
] | yulka.kr@gmail.com |
c63011b271a1d1a905c1b4a064dc8fb4dfb1f928 | c957b4663cc4cb21e5172f23c6989031be8c3e5b | /python/830. Positions of Large Groups.py | a1f9bf5b13cad44b7186ef6646eebc9f05be1547 | [] | no_license | gajanlee/leetcode | e061dc37af0f83bf2bce00c391c0b8a9f3177b22 | 0d3c8477f05604a059e58a8764ce0d8bd418edde | refs/heads/master | 2018-12-26T06:12:24.995542 | 2018-10-30T05:03:27 | 2018-10-30T05:03:27 | 102,965,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | """
In a string S of lowercase letters, these letters form consecutive groups of the same character.
For example, a string like S = "abbxxxxzyy" has the groups "a", "bb", "xxxx", "z" and "yy".
Call a group large if it has 3 or more characters. We would like the starting and ending positions of every large group.
Th... | [
"lee_jiazh@163.com"
] | lee_jiazh@163.com |
5301cb264232bc63be5821284713e5d3e1591a0b | 9e63b10dac35376eda273954643fd73a7e196b98 | /Tasks/WeeklyHarvest.py | 555228ab42198acda8cdaf0d4dd74a1e2933ba43 | [] | no_license | 18cyoung/SoftwareDev2 | 9aaf932c93bb6294ae47757541668c4443b0d30f | 00cf71bba537204a591f4f4b5a597db985c34c30 | refs/heads/master | 2021-09-09T10:17:21.583647 | 2018-03-15T04:10:30 | 2018-03-15T04:10:30 | 119,781,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | fname = input("Which file do you wish to open?: ")
wname = input("Which file do you wish to write to?: ")
f = open(fname, 'r')
t = open(wname, 'a')
def getProfit(SellAmount,C,average):
P = average*(SellAmount-C)
print(P)
return getProfit
def Vintage(SumTotal):
if SumTotal > 100:
print("The vin... | [
"18cyoung@mlmc.vic.edu.au"
] | 18cyoung@mlmc.vic.edu.au |
edd5325ec26d596a5dba7d9f0a22b4af97369a7b | 7c2b02c1aec3188a45864ad9a814b9bacfaef386 | /library/lib/python3.6/site-packages/phonenumbers/geodata/data4.py | b220585a54e1270dea571375aa29c932b1046509 | [] | no_license | muhammadahmadazhar/flectra | 1272c134b127ccec04d9a236db533e71524fd406 | fae69ba154c069a3263b40b458335480116ce815 | refs/heads/master | 2020-08-13T13:37:46.558157 | 2019-10-17T12:46:22 | 2019-10-17T12:46:22 | 214,976,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805,462 | py | """Per-prefix data, mapping each prefix to a dict of locale:name.
Auto-generated file, do not edit by hand.
"""
from ..util import u
# Copyright (C) 2011-2018 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"muhammadahmadazhar16@gmail.com"
] | muhammadahmadazhar16@gmail.com |
4d73db2082edab7ef317d872e4484e9e741e3a0f | 6bc4681dcd8d9c66c1d02a3e7546b03e7e3c0e8b | /taskdemo/urls.py | 19fcbaf6d65885797055c4b474c6ed515c23ee1e | [] | no_license | 8264044685/taskdemo | 85910673e5090c783d4d2f62bfdeacfc1be091ad | a9c52b5256764a05e3fc3d79e7978454ba5eb072 | refs/heads/master | 2022-11-09T03:01:54.937017 | 2020-07-06T16:32:30 | 2020-07-06T16:32:30 | 277,593,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """taskdemo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-base... | [
"parasdabhi1996@gmail.com"
] | parasdabhi1996@gmail.com |
bb763270b99f5a8f86d73848c8de6a51b652af3c | ef72eb4e4350fa24dda95a0a7cbb62f8f6e26f21 | /article.py | e002e541fc634557a6cd77a4ca00319b0f0f82ef | [] | no_license | qijintech/awesome-search | 6d549db9518d617c8ab6a5858ae7b75ab075a809 | cf52f05409f40aebf6f6ce34e0dd1b6ba7037f5b | refs/heads/master | 2023-06-03T18:35:32.477971 | 2021-06-21T10:42:17 | 2021-06-21T10:42:17 | 288,997,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,336 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# coding=utf-8
import datetime
from es import ES
from db import DB
from config import Config
from spider import WeChatSpider
from spider import MeiTuanSpider
from spider import DbKernalSpider
def fetchWeChatBlogs(biz, source, sourceName, config, es, record, recursive):
u... | [
"yangshangqiang@inke.cn"
] | yangshangqiang@inke.cn |
19045d455ba7c19ba362750f55d939a9afddabdd | ea9fe2ff9e4278e5f76ac08452354a87379684dc | /scraping-quotes/parsers/quote.py | 05a3ec550d1f44528171ff53e732cbd0a53656ec | [] | no_license | gpeden/udemy-the-complete-python | 02fca035da452185722fa05a2390c5a45361fbca | 3244b7f6c259aa30ec0f9839fab904bf078c77f2 | refs/heads/master | 2022-12-17T09:19:06.012037 | 2019-01-18T15:36:25 | 2019-01-18T15:36:25 | 165,051,980 | 0 | 0 | null | 2022-12-08T01:32:33 | 2019-01-10T11:58:21 | Python | UTF-8 | Python | false | false | 729 | py | from locators.quotes_locators import QuoteLocators
class QuoteParser:
"""
Given one of the specific quote devs, find the data in the quote (quote, content, tags)
"""
def __init__(self, parent):
self.parent = parent
def __repr__(self):
return f'<Quote {self.content}, by {self.auth... | [
"georgep@slalom.com"
] | georgep@slalom.com |
26fb69f33707a68a52b9cf096ecea4d441b19610 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9QbhjtbkXp3QZNuDu_4.py | 0fdb756be15b9bb5f9a2c994e4cc0739f8aa07b5 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | """
In this challenge, you have to find the last 15 palindromes of all numbers
starting from ten and up to a given limit, including the limit in the search.
Given an integer `limit` being the upper limit of the range of interest,
implement a function that returns the last 15 palindromes numbers lower **or
equal** t... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fc15a921bc3e11f893d8f58b7cc5175f117284d8 | 08560ba264821e36294e7af0d13bba8ba18d1373 | /build/lib/tensor_analysis/__init__.py | 274801b4e8734639733f70563dff8ace5d3202c3 | [
"MIT"
] | permissive | yuscale/Tensor-analysis | e7e74dc84d115c0fa9d366bc974edd75997323f3 | 0dfcf02774940c2f199ee65fcbc5fd3d2cde462c | refs/heads/master | 2020-12-25T18:42:29.246612 | 2015-06-08T07:33:13 | 2015-06-08T07:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | #!/usr/bin/env python27
"""A module to manipulate symbolic objects with indices including tensors
"""
from .arraypy import Arraypy, TensorArray, matrix2arraypy, matrix2tensor,\
list2arraypy, list2tensor
from .tensor_fields import Wedge_array, df, grad, curl, diverg, lie_xy, dw, \
lie_w, tensor2wedgearray, wedg... | [
"aunshilord@yahoo.com"
] | aunshilord@yahoo.com |
c31944ce00f8ed361c5c64f44e3057cf58115701 | 603ff2859f61a425bda27573dd76cd33e7a1d0d1 | /my_selection_sort.py | 914aea5b5a65cab2422322eefb95e6999459182d | [] | no_license | ypolat99/Data-Structures-in-Python | ce534045ab53c2ce2f8c59e3ded71eb1ddc810a7 | 48a80638db588091084bd995a2aa1f04e13c4e61 | refs/heads/main | 2023-08-05T13:03:13.591973 | 2021-09-23T06:33:09 | 2021-09-23T06:33:09 | 401,465,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | l = [6,5,3,1,8,7,2,4]
def selection_sort(l):
for i in range(len(l)):
min_index = i
j = i +1
while j < len(l):
if l[j] < l[min_index]:
min_index = j
j+=1
temp = l[i]
l[i] = l[min_index]
l[min_index] = temp
return l
print(selection_sort(l)) # prints [1,2,3,4,5,6,7,8]
| [
"noreply@github.com"
] | noreply@github.com |
8568cfa717b0cd01a4571fc16d33b53427bb00f8 | f4f4f370a07f8ad6ecaca8e55743ce80a16a756b | /tools/test_http_request_review.py | c832fe125a68294ade47eb44b6dc56ddf7587706 | [] | no_license | SimonCheng2013/POBO_API_AUTO | 36aa9ce912e58ab9f74ffa398da43fba03eba846 | d213bd3cf327781ff6cbbbd777438139436cd4ca | refs/heads/master | 2020-12-14T20:39:57.851848 | 2020-01-19T07:55:38 | 2020-01-19T07:55:38 | 234,861,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | # -*- conding: utf-8 -*-
# @Time :2019/7/30 15:09
# Author :chengjin
# @Email :amazing2013@163.com
# @File :test_http_request.py
import unittest,sys
from tools.project_path import *
from tools.http_request import HttpRequest
from tools.get_data import GetData
from ddt import ddt,data #列表嵌套列表 或者列表嵌套字典
... | [
"amazing2013@163.com"
] | amazing2013@163.com |
c217c3838f9d8303ec6f8308aba22c4fe9f2dea3 | eed1ed1a1c995358f7debb1a7b6b701c20c32b0a | /python_skills/034_compare_string.py | e3b3b17d728041daad7504c77c0ae1a98ade6a52 | [] | no_license | filaone/codewars | 6b10ec7748f680e0b16fb3a0e9458ff5c0f12638 | 0dacb30035a7a2afbd347ccac52a7ee02bd51086 | refs/heads/master | 2021-07-14T23:13:32.557522 | 2017-03-21T12:34:43 | 2017-03-21T12:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
from collections import Counter
string_1 = u'abc def ghi'
string_2 = u'abc def ghi'
string_3 = u'ghi def abc'
print string_1 == string_2
print string_2 == string_3
print Counter(string_1) == Counter(string_2)
set_2 = set(string_1.split(' '))
set_3 = set(string_3.split(' '))
p... | [
"shuguang.wang1990@gmail.com"
] | shuguang.wang1990@gmail.com |
4793e7b11e6a429d5bc57dea91fd4f94aa7f966e | 213453972ddc153ea023d8f1e904bb600e76ffd4 | /homess/urls.py | aa61b2371dc5387104f5f2220cbbbe226fcd2a77 | [] | no_license | xueyandi/Text | 00a2725472b0e81c8f66585c4496fcb9efacbf0f | 365fc1141a8f01092611fb4c16817b9f066912cc | refs/heads/master | 2022-12-11T05:49:59.532112 | 2020-03-03T04:25:13 | 2020-03-03T04:25:13 | 242,049,388 | 2 | 0 | null | 2022-12-08T03:42:30 | 2020-02-21T03:54:48 | CSS | UTF-8 | Python | false | false | 857 | py | """homess URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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 ... | [
"962563424@qq.com"
] | 962563424@qq.com |
5934caed37584b40784edc515d34fe757c6d4c9c | 143b60cc55d47d59b5b8b2e76187852136162fa6 | /isaw/theme/browser/viewlets/footer.py | 598d1b09aa815822260956b576c4cc4f2a811b75 | [] | no_license | isawnyu/isaw.theme | b83f7b897841588a76b472a33dc09af735e2449f | 184ef5c7adf65584c6f96cbe0d2b69ccf6e31a51 | refs/heads/master | 2020-12-30T19:45:23.814781 | 2015-09-17T14:53:56 | 2015-09-17T14:53:56 | 17,028,146 | 0 | 0 | null | 2015-09-04T20:43:36 | 2014-02-20T17:01:44 | CSS | UTF-8 | Python | false | false | 534 | py | from plone.registry.interfaces import IRegistry
from zope.component import getUtility
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone.app.layout.viewlets.common import ViewletBase
from ..interfaces import IISAWSettings
class SiteFooter(ViewletBase):
render = ViewPageTemplateFi... | [
"cguardia@yahoo.com"
] | cguardia@yahoo.com |
71f91cd11e614bfee39eed6151e0859066b92219 | ea2dc8c4de35f6db98b3cea867097405ec63202e | /roadscene2vec/data/gen/scenario_runner/srunner/scenarios/trafficlight_scenario.py | 242a67b4bd4c264df25e5993025abd0d486f718a | [
"MIT"
] | permissive | waterbearbee/roadscene2vec | 2f651ac308d4fb6afc6ce80f67bd812cc5360a01 | aea84d3aa0e339a58fd92bbee3140df9fa4abde8 | refs/heads/main | 2023-07-29T13:49:02.582696 | 2021-09-19T05:44:14 | 2021-09-19T05:44:14 | 452,215,705 | 1 | 0 | MIT | 2022-01-26T09:33:15 | 2022-01-26T09:33:15 | null | UTF-8 | Python | false | false | 2,181 | py | #!/usr/bin/env python
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
"""
Scenario spawning elements to make the town dynamic and interesting
"""
import py_trees
from srunner.scenariomanager.scenarioatomics.atomic_behaviors import TrafficLightMa... | [
"34730799+malawada@users.noreply.github.com"
] | 34730799+malawada@users.noreply.github.com |
da2d190173775b245a835fcfe91a019afc315552 | ecad7b0294f53f91dfe8cd7ac7aefa2764cb1982 | /src/Web_Traffic.py | 77fd630b80f051a6b2c7be271bbc79581ef0bc22 | [] | no_license | luuthanhvan/Machine-Learning | 3a4035258110f90796ba9631d75823e4d833941a | 26fd44add901d7aef4c861bf67fed8bef87cbb3f | refs/heads/master | 2023-02-18T16:18:47.112549 | 2021-01-20T05:02:58 | 2021-01-20T05:02:58 | 298,460,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | import pandas as pd
tsv_file = open("../data_set/web_traffic.tsv")
data = pd.read_csv(tsv_file, delimiter = "\t", header=None)
#print(data)
#print(data.shape)
x = data.dropna(axis='rows').iloc[:, 0] # data in the first column \ nan elements
y = data.dropna(axis='rows').iloc[:, 1] # data in the second column \ nan el... | [
"thanhvanluu.3199@gmail.com"
] | thanhvanluu.3199@gmail.com |
411a7abaedf46513fe4d47ef0a87dc0aaec807a7 | c4b0a0c7d338b839ebdea0c83a861c16f5e5714e | /useraccounts/models.py | a4dfbf8985ac1433f264476a935bf3bfaa408345 | [] | no_license | pratiksinghchauhan/lobify | 483a4649225cd0bdb9d406d3e911e2dbb544e768 | 547e06de57883ebac387a8573b2b5157fd72a093 | refs/heads/master | 2021-04-30T13:08:14.272209 | 2020-06-18T17:05:09 | 2020-06-18T17:05:09 | 121,288,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class contact(models.Model):
username = models.ForeignKey(User)
mobileno = models.CharField(max_length=50)
class messcanteen(models.Model):
... | [
"pratiksingh773@gmail.com"
] | pratiksingh773@gmail.com |
8513a8e7ee09df250f1ac7d1b06dc0a64cd08208 | 2a6f4b01b5ef2729eef6b24cba926f90edace478 | /vectorbt/utils/config.py | 3ae73a71793ae3c6a482ea095078ea8b9839342b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nehcuh/vectorbt | c8c413f11a8e1503f75477e41fc30127c1300236 | c0f307169b19a0f26c1992a9e29f4be380c1b220 | refs/heads/master | 2023-04-11T14:17:08.590766 | 2021-04-07T13:12:11 | 2021-04-07T13:12:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,664 | py | """Utilities for configuration."""
from copy import copy
from collections import namedtuple
import dill
import inspect
from vectorbt.utils import checks
from vectorbt.utils.attr import deep_getattr
def get_func_kwargs(func):
"""Get keyword arguments of the function."""
signature = inspect.signature(func)
... | [
"olegpolakow@gmail.com"
] | olegpolakow@gmail.com |
83ffb508c04c0a8d5c6bd89beb8e65a071ecc567 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/sc.photogallery-1.0b1-py2.7.egg/sc/photogallery/browser/view.py | 105b30e6969b968feec9c890f33eeb3a1d0d8455 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,418 | py | # -*- coding: utf-8 -*-
from plone import api
from plone.dexterity.browser.view import DefaultView
from plone.memoize import forever
from plone.memoize.instance import memoizedproperty
from sc.photogallery.config import HAS_ZIPEXPORT
from sc.photogallery.interfaces import IPhotoGallerySettings
from sc.photogallery.util... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
78d0879ae1e764d248c9b27b6e30b7486693cf43 | 51ed8f39ac5bbdb0f4b0c4d98b8d2ade04e7afcb | /config.py | 805b4bc6cdf8e3e2f3281b255ce0b042dc84fc96 | [] | no_license | demogloire/gestion_app | ba1b53d11eeb49be4642df83d4842a9d36cd5a4b | 34931b03b29a874e088320518934521d1ad93337 | refs/heads/master | 2022-11-12T21:47:14.575735 | 2020-06-30T08:30:32 | 2020-06-30T08:30:32 | 240,889,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | class Config(object):
"""
Common configurations
"""
# Put any configurations here that are common across all environments
class DevelopmentConfig(Config):
"""
Development configurations
"""
SECRET_KEY = 'abcdefghijklm'
DEBUG = True
SQLALCHEMY_ECHO = True
class ProductionConf... | [
"chirimwami2014@gmail.com"
] | chirimwami2014@gmail.com |
01e300e4ad3f48c320b5035e476c2a1eefe88cf8 | 75bb245280a749fcb1a74e94a62b78e4ceed16f0 | /message_manager.py | 6157da0ba6e39a61f90304e3c8d370c579e628bd | [] | no_license | cjlavan/rpi_set_wifi | 72cee2a8e4531b52398ff28f2abec47a269202d6 | 7600d05d8c9fa0d6c96663e3e86ca33095f56e0b | refs/heads/master | 2016-09-10T20:45:02.874265 | 2015-05-11T00:30:19 | 2015-05-11T00:30:19 | 35,393,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,989 | py | import requests
import os
import os.path
import json
from unipath import Path
import datetime
import time
import wget
import _SETTINGS
import convert
from message_queue import message_queue
class message_manager:
def __init__(self):
self.new_messages = False
self.BASE_DIR = os.path.dirname(... | [
"you@example.com"
] | you@example.com |
03b7e0d8ed06d260ddebba06fd55badfc4da9b55 | 6cbe90b344370e4392ed86651608658127dbe364 | /venv/Scripts/pip-script.py | 15d9dc5a8f8a4da4142a2eb7e4f2c1006054f7e6 | [] | no_license | lrh1999/mysite | ba04e453d986f241bbb89b9b0097ad76ce230b2a | 614c1f7b59ef003349eb505c3a3b3a200c147b04 | refs/heads/master | 2020-12-28T06:07:55.653867 | 2020-02-05T07:29:40 | 2020-02-05T07:29:40 | 238,193,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!C:\Users\LRH22\PycharmProjects\mysite\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"2201299058@qq.com"
] | 2201299058@qq.com |
69304c7a1fd70783d38bbdcadac57b3ae5d0e995 | 22f83d2dd088b31ce32a394cfcf5013ad72e2cbc | /网络爬虫/Python3WebCombat/Ajax/分析Ajax爬取今日头条街拍美图.py | a257681a0418ab4eb384ce2463f0eaaa3206d694 | [] | no_license | Lawlighty/Python | 375908669373be2ffb38c148f6ba523058dd74b8 | 757261ab74e5aac14a5e29a7781b7581cfd223b9 | refs/heads/master | 2020-05-04T16:39:39.640378 | 2019-11-16T04:37:11 | 2019-11-16T04:37:11 | 179,284,076 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | # url= 'https://www.toutiao.com/api/search/content/?aid=24&app_name=web_search&offset=20&format=json&keyword=%E8%A1%97%E6%8B%8D&autoload=true&count=20&en_qc=1&cur_tab=1&from=search_tab&pd=synthesis×tamp=1558857906240'
# url= 'https://www.toutiao.com/api/search/content/?aid=24&app_name=web_search&offset=40&format=... | [
"noreply@github.com"
] | noreply@github.com |
21d18f9b6743d3d99f4f277bc8910404eda9f451 | 851548d14442058998c9c6136d581000ec4c81b5 | /Assignments/5/Rastogi_Assignment_05.py | 2c65ea0b602bbd44dc38e35f8a181a844ad5852b | [] | no_license | Akash-Rastogi/NeuralNetworks | 3517d3ea0914a9091ea39ebd6eb9791acbe7aea8 | 7e99ac31a1426cc6cb279d34775bf3fa2fe66d73 | refs/heads/master | 2020-06-13T05:02:15.763967 | 2017-06-02T17:28:49 | 2017-06-02T17:28:49 | 75,444,860 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 21,900 | py | # Rastogi, Akash
# 1001-408-667
# 2016-11-15
# Assignment_05
import os
import sys
import gc
import theano
import numpy as np
import matplotlib
import scipy.misc
import theano.tensor as T
import random
from time import gmtime, strftime
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
# Class for creating DataS... | [
"akashrastogi12@gmail.com"
] | akashrastogi12@gmail.com |
01939d6ee30cde81133aeeb3356ac0d69b76bc81 | 9f7f6722871931d86bc04cbec0535516678b0c3f | /tests/test_imgur.py | 2ad8d93eb6c1e20207b03f7fc13db82e8d461c92 | [
"Unlicense"
] | permissive | PersonalKilljoy/bravester | 413ae8898db87962a783e156cf5f1e27ceffb4f3 | 774275cba8c1c82f7ba796f05f986db32c516d57 | refs/heads/master | 2020-02-26T13:10:46.233242 | 2016-01-08T20:19:11 | 2016-01-08T20:19:11 | 29,026,356 | 0 | 0 | null | 2015-01-09T17:05:51 | 2015-01-09T17:05:51 | null | UTF-8 | Python | false | false | 606 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
import unittest
import bot
from harvester import imgur
class ImgurTest(unittest.TestCase):
def setUp(self):
self.nick = "test"
self.imgur_single = (
"'https://imgur.com/tNHwwYvf")
def test_match_single(self):
my_bot = bot.br... | [
"maddinw@wechall.net"
] | maddinw@wechall.net |
41e0708c5c9670fc3b4543699f5621de1aac04ce | fc6cd69a005464602db328548edce20d1e018e74 | /Comunicación instrumentos/barrido.py | cc2c2df36995932fa07135273c6b4cabf5d7c4e6 | [] | no_license | MTracchia/Laboratorio-5 | 6ad40258430dd0c34df8337d9ee68c8a279e22e0 | 52a479b8cb15bec44d34f0ffd9eee89fa79f4ce0 | refs/heads/main | 2023-04-19T03:05:25.932105 | 2021-05-06T14:58:22 | 2021-05-06T14:58:22 | 352,794,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 24 13:12:20 2020
@author: Publico
"""
import numpy as np
import matplotlib.pyplot as plt
import time
from lockin import SR830
def barrido(lock, frecini, frecfin, pasos, config):
freqvec = np.linspace(frecini, frecfin, pasos)
rvector = []
t... | [
"noreply@github.com"
] | noreply@github.com |
5f0a0978082b66342c4050416968b8c5546041c7 | 5231d627541c64dae87570b8dea9d5f6d38d7d45 | /HW_Lesson3.py | 09be4b9333198bd4000581f4092e702918800655 | [
"MIT"
] | permissive | Alexander-57/Py_Lesson_1 | af14f89749040f0b8b88304cebb2d876704dca01 | a6f60527ed62ad63f00ca68aad416ca00a7f2eb7 | refs/heads/master | 2021-05-18T21:04:01.667585 | 2020-05-07T11:30:41 | 2020-05-07T11:30:41 | 251,420,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,479 | py | # Домашее задание к уроку №3
# В файле содержится текст. Считать/скопировать текст из файла и выполнить
# 1) методами строк очистить текст от знаков препинания;
file = open('C:/Users/alex_/OneDrive/Documents/Python/My_project/Py_Lesson_1.1/ThirdLessonText.txt','r', encoding='utf-8')
file = file.read()
file = file.re... | [
"alex_fa57@rambler.ru"
] | alex_fa57@rambler.ru |
a9b019df744ed24625e539df96051fba2eb01204 | fa4f8d15e26103acf3f5a0b4b410713ba7ac3481 | /lesson notes/workingplace.py | ea7dd026d9c077c90305243df79726576e0abb6c | [] | no_license | fgokdata/python | c05e7a70ded5771b8a04f3931b828a6f18fa4dcf | eb6aa264ea13d56a60186bb9eca1418c6dee3198 | refs/heads/master | 2023-03-10T06:11:03.972671 | 2021-02-20T13:51:53 | 2021-02-20T13:51:53 | 326,048,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | def my_function(a, b):
area = a * b
print(my_function(5, 6)) | [
"johnymikeyy@gmail.com"
] | johnymikeyy@gmail.com |
d5b59cc1b6b6f1033e249a6d739e26815bd45818 | f38a9e7179b3ff099c620b6c180a4014cd0fbd42 | /my_home_server/models/brand.py | 0e662584ce9351ed7477ef78b7b558f00b4e2b54 | [] | no_license | vitorsm/my-home-server | 887b46d575cb5b22664e86356a13ae4cf38b4057 | 8ee672fc0c1b7639b6eb252566e6574e9dea287e | refs/heads/master | 2023-05-25T18:37:01.961387 | 2023-05-23T00:23:11 | 2023-05-23T00:23:11 | 297,095,209 | 0 | 1 | null | 2020-11-26T21:06:39 | 2020-09-20T14:34:51 | Python | UTF-8 | Python | false | false | 751 | py | from datetime import datetime
from sqlalchemy import Column, Integer, String, Boolean, DateTime, ForeignKey
from sqlalchemy.orm import relationship
from my_home_server.models.base_models import Base
class Brand(Base):
__tablename__ = "brand"
id = Column(Integer, nullable=False, autoincrement=True, primary_k... | [
"vitor-sm"
] | vitor-sm |
2b15c46bf80b0751a8abbd1dfb903c2ecf219186 | cd223ad3bb0c9250911a86c49ffd432d2aebeb9b | /bestaid_django_server/settings.py | 1539f0cf1fd70092d78321c67944a9bdd94f106e | [] | no_license | sayemPasha/bestaid_django_server | 11478302ae3540b53ef558b76f99bded35e14c8a | 2982cc1f414d37dd9f5ed0d7319ebfd3c30e1251 | refs/heads/main | 2022-12-28T14:10:59.111812 | 2020-10-17T16:57:57 | 2020-10-17T16:57:57 | 304,925,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for bestaid_django_server project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""... | [
"sayem.pasha@bs-23.net"
] | sayem.pasha@bs-23.net |
ad3089b759c7433132581d3b82d5da937cce2930 | 02b0a79a33b974fb87f2602421292c49a686a8dd | /learn/python/test/tt.py | 5b3f0df5497dae600717ba4873f7d0d00358c397 | [] | no_license | dufufeisdu/AI_Trading_Learn_Packages | a757947d65d45b6e0a754cfcc1b077f0f1b23777 | 1ab8348f7003dbf0393a7788d8d9e9d253676701 | refs/heads/master | 2020-03-29T11:19:49.643194 | 2019-01-18T19:56:06 | 2019-01-18T19:56:06 | 149,846,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py |
X = 100
def fft(num):
print('print from tt.py')
ff()
| [
"fufei.du@gmail.com"
] | fufei.du@gmail.com |
9168e1fa3c02fe32ad42f37f0d9592a78bc4e745 | 95315ecd3068cf98dd10267f98055ace5f6cafc9 | /url_test/url_test.py | c22a816ed992ef65b5238d35bc0884204d073415 | [] | no_license | austin72905/python-lesson | 22d7dc3b70e524041711055f26ef0e39b99936cd | e51954e0516a60259d6794fb4ec52ae2f6722b4b | refs/heads/master | 2023-04-18T10:16:11.415602 | 2021-04-24T04:07:10 | 2021-04-24T04:07:10 | 332,389,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py |
#pip install requests 下載包
import requests
import time
import datetime
url ="http://localhost:56825/login"
headers ={"Content-type": "application/json"}
data = '{"username":"austin","password":"123"}'
#測試
count = 0
#timeNow = time.strftime('%Y-%m-%d',time.localtime())
today =datetime.date.today().strftime('%Y-%m-%d... | [
"Linponggood@gmail.com"
] | Linponggood@gmail.com |
ca1535c9186ea6b4058c35374d2cd992af6df474 | a6106cedc42dcab94ccc4ee6d681372d2246ce5e | /python/활용자료/예제/07/ex7-7.py | 12dd6228f533058e5632e76aac1e1c9cac3cc731 | [] | no_license | leemyoungwoo/pybasic | a5a4b68d6b3ddd6f07ff84dc8df76da02650196f | 481075f15613c5d8add9b8c4d523282510d146d2 | refs/heads/master | 2022-10-08T19:57:26.073431 | 2020-06-15T06:50:02 | 2020-06-15T06:50:02 | 267,502,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | def circle_area(r) :
area = r * r * 3.14
return area
radius = int(input('원의 반지름을 입력하세요 : '))
result = circle_area(radius)
print('반지름 : %d, 원의 면적 : %.2f' % (radius, result))
radius = int(input('원의 반지름을 입력하세요 : '))
result = circle_area(radius)
print('반지름 : %d, 원의 면적 : %.2f' % (radius, result))
| [
"mwlee2587@gmail.com"
] | mwlee2587@gmail.com |
9c5505a4994f963a54422323debd59369b93a202 | a9756b8e10719cb2db89e5c967f97a6bf4a9137f | /Square_Lattice_DSF/main.py | 31f74d9f815123ea7286cb8b273896ad8738a409 | [
"MIT"
] | permissive | medgbb/Dynamic-Structure-Factor | 8a44164c3e0bf467a58020b97f73a388760ff612 | 74a03e3f016cca0ab160a388c24ef531445c0c34 | refs/heads/main | 2023-08-24T12:18:43.980254 | 2021-09-30T14:09:32 | 2021-09-30T14:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | from header import *
from lattice_func import *
from parameters import *
from mc import *
from dsf import *
from plot import *
#initialising and annealing
lat = get_lattice(size)
q_arr = np.array([[0,0],[0.2*np.pi,0.2*np.pi],[0.4*np.pi,0.4*np.pi]])
ini_cond = 1
delt = 50/j1
sqt_mat = sqt(size,ini_cond,q_arr,delt)
s... | [
"noreply@github.com"
] | noreply@github.com |
43dd195d840129918f7bbc698bc91a234a3b4146 | 602f58eeaccaa7a66a5b2514078f80cdb7a4a44c | /migrations/versions/dd254f74c8b7_.py | 592ca8478720f1ce37c2826e8a577e9e58714555 | [
"MIT"
] | permissive | moahmed-arafa/Borsa | b16132798e96a74c58a72fd656f012a2c54b5e2f | 03c6b0acb6092e097519ee2dbfccc0148c71b5e6 | refs/heads/master | 2021-01-19T08:29:56.261285 | 2017-04-08T19:20:02 | 2017-04-08T19:20:02 | 87,634,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | """empty message
Revision ID: dd254f74c8b7
Revises: d85fd30c1b3a
Create Date: 2017-01-07 15:56:13.873694
"""
# revision identifiers, used by Alembic.
revision = 'dd254f74c8b7'
down_revision = 'd85fd30c1b3a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"ghostarafa@gmail.com"
] | ghostarafa@gmail.com |
e2452eba8f5e003ec03b302d0ff1eb2cdcda48ef | 74c5ccfd357369668a46ec57c878ee4ce896053a | /app/main/controller/product_controller.py | 07e58f5408f643ecc4a4229bd9625d2f513bb963 | [] | no_license | miteshnath/inventory-management-module | 44c1ac43e102f1918294ff6ce67e4e35278647db | ba372eaa4ee480f1cdfce94170c9e464b4463f74 | refs/heads/master | 2022-12-13T08:00:13.284336 | 2020-09-11T13:02:51 | 2020-09-11T13:02:51 | 294,532,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | from flask import request
from flask_restx import Resource
from app.main.util.decorator import admin_token_required
from ..service.product_service import get_all_products, save_new_product, get_a_product, update_product, delete_product_method
from ..util.dto import ProductDto
api = ProductDto.api
product = ProductDto... | [
"mitesh.nath@motocho.io"
] | mitesh.nath@motocho.io |
5572d63f5fe59e84c23f3e8ca23a9ff4a84aadec | f9406244d0a707cbd4b8cf11a8600d47ee3392fd | /calculator.py | 5100797e03ada3794cb7da29818276976d3c3448 | [] | no_license | wdzxy7/tkinter-project | ad3780c06a8595cbdfabffc9e460a006ef84e86f | 82fe22e1eb66a197e5521a67f52837ed187fa024 | refs/heads/main | 2023-02-19T16:21:39.371208 | 2021-01-22T11:22:25 | 2021-01-22T11:22:25 | 331,923,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,486 | py | import tkinter
import math
import tkinter.messagebox
class calculator:
# 界面布局方法
def __init__(self):
# 创建主界面,并且保存到成员属性中
self.root = tkinter.Tk()
self.root.minsize(280, 450)
self.root.maxsize(280, 470)
self.root.title('计算器')
# 设置显式面板的变量
self.... | [
"noreply@github.com"
] | noreply@github.com |
6209025c70c42986fbe96043f51e675f4dd57242 | 31f222389a031d80c7098f7d6b9857e289235d31 | /bikeshare_3.py | 67f6002c25a23476f8000f3be9b479d0e67be3a9 | [] | no_license | josh-breunig/Review-of-US-Bike-Share-Data | 1a5ed47ebaf60ec453f6b83ad71db795dbdd2065 | 4e5884df31a740b2466946e64d50fefafd075b92 | refs/heads/master | 2023-05-10T08:54:56.606215 | 2021-06-24T13:18:51 | 2021-06-24T13:18:51 | 379,732,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,768 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': '/Users/jbreu/Downloads/bikeshare-2/chicago.csv',
'new york city': '/Users/jbreu/Downloads/bikeshare-2/new_york_city.csv',
'washington': '/Users/jbreu/Downloads/bikeshare-2/washington.csv' }
def intro():
print... | [
"jbreunig11@gmail.com"
] | jbreunig11@gmail.com |
07dc5a116ae2f6e6c06e42e58a23ab18cb689e92 | 8182c133950487b141439a5a66d5a452d8f6e9fb | /demoproject1/urls.py | 5d7cb032c210f8f89c50bf14b80a823582237232 | [] | no_license | amit928/TextUtils_django_project | dbbe81c2ba11af7552eacece261fd9b0374f4c2c | 2fe2a29d8afc94754276701aada02f33a8f1e310 | refs/heads/master | 2023-06-03T22:18:23.722589 | 2021-06-20T03:03:42 | 2021-06-20T03:03:42 | 378,460,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | """demoproject1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"amitzqx@gmail.com"
] | amitzqx@gmail.com |
577fa29ef7b2c780603dee647956548dffca87d6 | b3b353f20f94364bd31e46fec0bc839eb7ac0738 | /pi3/raspirobot3/ball_trackinginrrb3ver2.py | d728cf8347b74fc22fe7a91c75f6debf6e10d864 | [
"MIT"
] | permissive | Rose-Hulman-Rover-Team/Rover-2019-2020 | 4fbfd0b1250fe926d31806b6e287e1b92760a886 | d75a9086fa733f8a8b5240005bee058737ad82c7 | refs/heads/master | 2021-06-17T09:32:21.412169 | 2021-05-28T21:22:58 | 2021-05-28T21:22:58 | 208,160,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,810 | py | # import the necessary packages
from collections import deque
import imutils
from imutils.video import VideoStream
import numpy as np
import argparse
import cv2
from picamera.array import PiRGBArray
from picamera import PiCamera
from rrb3 import *
import time
camera = PiCamera()
camera.resolution = (640, 480)
camera.... | [
"burlea@rose-hulman.edu"
] | burlea@rose-hulman.edu |
798ce3892522c3e141ad9bf5be85f7be329b2427 | fd7520d8218b8d24dd38f606ee13e3b650628cf6 | /corehq/apps/sso/views/enterprise_admin.py | 28d8cba81329afb81ff9ea85c79745a74f48b3d3 | [
"BSD-3-Clause"
] | permissive | ProjectBalance/commcare-hq | 451f75dc08f39913fdc23b2fe57e76cd3e345591 | d0764403e90327c7d5d05e9cc3edd71aea0585b9 | refs/heads/master | 2023-06-11T13:34:08.049161 | 2021-07-06T12:56:49 | 2021-07-06T12:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | from memoized import memoized
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
from django.http import Http404, HttpResponseRedirect
from django.urls import reverse
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext as _, ugettext... | [
"bbuczyk@dimagi.com"
] | bbuczyk@dimagi.com |
7447cbf7b197000deeb7dcb345e87b0c1b6e502f | 2f40cec624e66046fcea4d40e884fe750f9bcfe5 | /ShopperMiles/authentication/serializers.py | 927faae14fd6d85f83f27589dca6274823745fea | [
"MIT"
] | permissive | juansahe/shoppy | 47d55b3063fcdc089bc8a5731b6344789d5cd323 | 265e6e5d3cfc0bc05df3c793e9b4f5921ce78ae5 | refs/heads/master | 2021-01-01T18:09:38.156205 | 2017-07-25T04:07:10 | 2017-07-25T04:07:10 | 98,262,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.contrib.auth import authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import exceptions, serializers
class AuthTokenSerializer(serializers.Serializer):
username = serializers.CharF... | [
"andres.vasquez@grimorum.com"
] | andres.vasquez@grimorum.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.