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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cd3cc071876da1756cf23e55593a8321a820dca2 | 7f7d31cc7728ebff806e5ab49321572d08198764 | /Chess-Engine/6. EnPassant and Pawn Promotion in Advanced Algo/ChessMain.py | ed4ec4b840b195624701ab281baf414f69cb2d9d | [] | no_license | Aneiongit/Bootcamp | 02dff9cda47f109e97faa6732e2b610f3a275452 | cf562ec12afd63a47ad5e48e4d1496e98afe4624 | refs/heads/main | 2023-07-17T14:55:41.699169 | 2021-09-03T09:40:16 | 2021-09-03T09:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | """
This is our main driver file. It will be responsible for
- handling user input
- displaying current GameState object
"""
import pygame as p
import ChessEngineAd as ChessEngine
# import ChessEngine
p.init()
WIDTH = HEIGHT = 480
DIMENTION = 8 # 8*8 CHESS BOARD
SQ_SIZE = HEIGHT // DIMENTION
MAX_FPS = 15
IMAGES =... | [
"Goh15@wp.pl"
] | Goh15@wp.pl |
d6571dd4ac18fe2c876e33b21c8d6e8e9ba84414 | 4773a4adc5a50e948d34b8b2efe8e67baf4a887b | /FileEmulator/FileEmulator.py | 526a727545f90cf9cf74d0040e749c0485f7360a | [
"MIT"
] | permissive | abaker2010/FileSimulator | bb33c943b95db869dfdaff12bf64ba1bbe50ecee | 2c3c5fb95be6e54c97c2a82d856d52157bda9f64 | refs/heads/master | 2020-06-10T05:40:31.919123 | 2019-06-25T03:12:02 | 2019-06-25T03:12:02 | 193,599,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/python
# Wrote by: Aaron Baker
from classes.RepeatedTimer import RepeatedTimer
from classes.HttpRequestHandler import HttpRequestHandler
from http.server import BaseHTTPRequestHandler, HTTPServer
import time
import threading
import urllib.request
import colorama # pip install
from colorama import Fore, Bac... | [
"crosby.baker2010@gmail.com"
] | crosby.baker2010@gmail.com |
032e56abd8b0c04a05f86672375efe48bbc0e751 | ca37c80b43e342dd8013deffbb35b481fab21f5f | /convert.py | c601988bafd133488f7998dda9696b106b146bf6 | [
"MIT"
] | permissive | GraphSAINT/GraphSAINT | c95aeeab91acdd4210767e398839b2344ed8a42c | c9b1e340d7b951465ac4a9251eef93832e68b003 | refs/heads/master | 2022-09-01T02:16:30.441922 | 2022-08-12T06:08:09 | 2022-08-12T06:08:09 | 169,026,799 | 444 | 92 | MIT | 2022-08-12T06:08:10 | 2019-02-04T04:25:44 | Python | UTF-8 | Python | false | false | 1,409 | py | import scipy.sparse as sp
import numpy as np
import networkx as nx
import sys
import json
import os
from networkx.readwrite import json_graph
dataset_str=sys.argv[1]
baseline_str='data.ignore/'+dataset_str+'/'
dataset_str='data/'+dataset_str+'/'
if not os.path.exists(baseline_str[:-1]):
os.mkdir(baseli... | [
"GraphSAINTKDD19@gmail.com"
] | GraphSAINTKDD19@gmail.com |
2e1ed6f855389c38f9ab0d89770b3963a29c5ff3 | fef3a61df017422bc2f867538ece7f496fa91416 | /icecreamratings/config/urls.py | 842634c0b8bca94faa2a14dcb441499d306fe714 | [] | no_license | qianzhaicun/my-first-blog | 1f7f2cc27c3c75d3c456ecdacb3286a4f4d1a484 | a3e03b389423ffb9e85c9fa9464bfb38efdbbde9 | refs/heads/master | 2020-12-03T09:22:04.555591 | 2017-06-28T01:23:26 | 2017-06-28T01:23:26 | 95,615,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='page... | [
"admin@DESKTOP-JCH074F"
] | admin@DESKTOP-JCH074F |
f3e4a522d9167b441f81517f2bfe17f834b0dd6b | 553ac874ff9eeffffb9ee0567791a101cc68444c | /Mission_to_Mars/scrape_mars.py | 480b94d27830f63b65c4830870ef8b269d70488a | [] | no_license | carlmack01/web-scraping-challenge | e770950b094937984a7b1f99aa616296088ae401 | 3aab6f47e785e8dff4dd8c24bb4dcaf4f792f041 | refs/heads/master | 2022-11-28T23:33:33.245288 | 2020-08-13T18:56:21 | 2020-08-13T18:56:21 | 287,357,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from bs4 import BeautifulSoup as bs
from splinter import Browser
import pandas as pd
import datetime as dt
import time
import re
def scrape():
scrapedict = {}
executable_path = {'executable_path': '/usr/local/bin/chromedriver'}
browser = Browser('chrome', **executable_path, headless=False)
url = "https://mars.n... | [
"carlhmackensen@CARLs-MacBook-Pro.local"
] | carlhmackensen@CARLs-MacBook-Pro.local |
898fca67981db8c25af682928af05f412c567dc6 | c9f8532ea47337269e3f87cb3d75cccd8146536e | /data_pre.py | 9bf2fa09ac73513eac52b6c6267907b9b20e868d | [] | no_license | lianrenbao/huawei_remote-sensing | 6d174becb13981339c289f04775d872fe004eaa9 | 84f54eb5dd50c3eb5c9d2aaed6bdb475b4d5b924 | refs/heads/master | 2020-06-12T20:10:59.319499 | 2019-06-28T11:57:46 | 2019-06-28T11:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | import numpy as np
from functools import partial
import pandas as pd
import os
from tqdm import tqdm_notebook, tnrange, tqdm
import sys
from torch.autograd import Variable
from torch.utils.data import Dataset, DataLoader
from collections import OrderedDict
from torchvision import transforms as T
from imgaug import augm... | [
"noreply@github.com"
] | lianrenbao.noreply@github.com |
7b297c2b84f94916505935159fe4c8239cfa6d6c | 170a991bc2cd5e5c2810c5466341f849c1fbfe24 | /googlesheets.py | 3edb11b85165c4c008a5dcf634ec859079fd44e2 | [] | no_license | derekYankie/my_googlesheets | d04ac08e3257177ff4fb57e02752aaf1f121a170 | ac3c0a82250e756a93d67f3401796474b85ab1ed | refs/heads/master | 2020-03-16T09:06:48.557562 | 2018-05-09T01:05:39 | 2018-05-09T01:05:39 | 132,608,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import gspread
from oauth2client.service_account import ServiceAccountCredentials
#my
#permit cleint credentails to intercact with Google Drive Api and Google sheets api
scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
#store credentails
my_creds = ServiceAccountCredentials.fr... | [
"derek.afriyie@gmail.com"
] | derek.afriyie@gmail.com |
310f0bae44d7f3f1fadeff6ea38b7dca8369a771 | 635e06886d27732cb35d73fddb14907c9e2f1bda | /bin/NER/Model.py | 4ea56f9f4fc4d47ce44befa218f893afc59e04c6 | [] | no_license | hoangbao123/chainer-rnn-ner | 034c0238fac268155d1273d4e09e1517040ef3c5 | 829fb640cd627e5d28fb0d162eb2068615d92156 | refs/heads/master | 2020-04-28T03:02:54.899189 | 2017-01-27T15:36:26 | 2017-01-27T15:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | py | # -*- coding: utf-8 -*-
import numpy as np
import chainer
import chainer.links as L
import chainer.functions as F
from chainer.links import NStepLSTM
"""
Model with cross entropy as the loss function.
"""
class TaggerBase(chainer.Chain):
def __init__(self):
pass
# I want to use this for NERTagger, B... | [
"kiyono@ecei.tohoku.ac.jp"
] | kiyono@ecei.tohoku.ac.jp |
a839419dd4c4c0aff907413b92ba0217fb42f65a | 640b2096a3ff25ac6dbd65fa38a246218cfeac1e | /add_two_numbers_ii.py | 3b601220ae2ce72f69d9b805fefd11d213da43d3 | [] | no_license | benjiaming/leetcode | 53d00082289dd847bb81df674ef68832a89220c7 | 6e09d1bfe9eb7476125eb31d95616a115f2e6f7f | refs/heads/master | 2021-06-12T22:46:06.279667 | 2019-05-25T18:37:23 | 2019-05-25T18:37:23 | 183,532,697 | 0 | 0 | null | 2021-04-20T18:07:59 | 2019-04-26T01:10:02 | Python | UTF-8 | Python | false | false | 1,690 | py | """
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2.
Note:
Your returned answers (both ... | [
"ben@blazke.cz"
] | ben@blazke.cz |
35c9b3e3c688b13470f1b516a72df95ffd4b9d46 | 020d00c279b04daa7dd0a8ec95347884ce8f7f74 | /unittest/test_case/test_pczh/test_loginapi.py | 8760e3c5c680906bf52f8a58103b462a5f33a2a8 | [] | no_license | JasonTang7/inspiration | ce6efb328b2b4a17e4ffed335a266e4477707faf | 567836fc9aebcc67acb2816364ba89ffa8d356db | refs/heads/master | 2022-06-05T02:25:01.610248 | 2022-05-18T03:25:38 | 2022-05-18T03:25:38 | 221,389,569 | 0 | 0 | null | 2020-11-19T09:35:22 | 2019-11-13T06:35:20 | Groovy | UTF-8 | Python | false | false | 1,610 | py | import time
import unittest
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By
from functions import pczhpage,common,pczhpageElements
import config
import requests
import json
@unittest.skip("调试用,正式测试不执行此测试类")
class TestLogIn(unittest.TestCase):
"""测试登录接口"""
# @cl... | [
"jason.tang@yamibuy.com"
] | jason.tang@yamibuy.com |
53786cfd3a118db63e76437c20de607fc13212ac | d6ed572ee7efc0dc821f92df0f6b7c2fb0931f7c | /USB/hook_button.py | 90c88ad6ba2bea87542d00c408d41bf27ea79cfd | [] | no_license | nfredrik/pyjunk | 92df3693230d0537d23f03ddee7796c4f9dbedd9 | 94eb532611743d1fed0da972c34ff1e509b61acb | refs/heads/master | 2022-05-28T10:24:53.700587 | 2017-10-10T20:56:38 | 2017-10-10T20:56:38 | 260,439,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | #
"""
Simple example on how to handle usage control events
"""
from time import sleep
from msvcrt import kbhit
import pywinusb.hid as hid
def test_telephony_hook():
"""Browse for non system HID class devices, if a telephony page
hook usage control is available monitor value change events"""
# ... | [
"nfredrik@localhost"
] | nfredrik@localhost |
35479810c6d35ab75199ee140a8a576f6ebf45b2 | e7ccb3896e7750cc66921d5a79c1a211e2d55be9 | /main.py | aeb26b2db91441d32bb272f44103d22f6e66539d | [
"MIT"
] | permissive | salimsuprayogi/program_library_siswa | 2becff48e05e0f7f0d1f55b0d94bc843da7876b9 | 3b75e149876e08fe7b7e08a72478200947abcaa6 | refs/heads/master | 2021-01-14T23:22:15.666338 | 2020-02-26T16:40:27 | 2020-02-26T16:40:27 | 242,793,179 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,685 | py | # Mentor = Muhammad Nasrullah
# Author = Salim Suprayogi
# - [ ] Implementasi kode
# - [ Setup Library ] Kebutuhan libarary & instalasi
# - [ Implementasi ] Menghubungkan database dg kode
# - [ Implementasi ] Membuat fungsi crud pada kode
# pip3 install pymysql
# pip install MySQL-python
# ref : https://dev.mysql.com... | [
"khan.razes@gmail.com"
] | khan.razes@gmail.com |
ce367ad483dab43120cf161648780ed59c2f69a6 | 4b54b2b1037d5dea88117840b4f58a82fac2d3ea | /1006.py | b9a2fa2b47ce7f2966860b6c8b611aaae86bedec | [] | no_license | cinereous1/UriJudge | 20879ca2067b2eb374e5dc7471a77366dee1a68a | 96eab7846e349347d0300d9fc2ac6aa470a2651c | refs/heads/master | 2021-08-24T15:32:02.594187 | 2017-12-10T07:43:01 | 2017-12-10T07:43:01 | 113,373,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/python3
nota0 = float(input().strip())
nota1 = float(input().strip())
nota2 = float(input().strip())
media = ((nota0 * 2) + (nota1 * 3) + (nota2 * 5)) / 10
print("MEDIA = {:.1f}".format(media))
| [
"linktovoid@gmail.com"
] | linktovoid@gmail.com |
55847be3e5c35a5f6af9a51b4cfebaad77105fa8 | 8ae383214b802cca919f9b646455a03ded014fac | /Cara_gui.py | f801a7a0f6fd9c611be6f10fe848a9b09bebd9c6 | [] | no_license | abhidya/PreTTy | 3c1a1ebc0ca8d670ebe79cdf440f9d177ac1041f | 70e032fb1caa8c57b28270994612b4ccac783b5f | refs/heads/master | 2020-04-09T15:11:53.592270 | 2018-11-28T17:58:14 | 2018-11-28T17:58:14 | 160,419,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import tkinter as tk
import PIL
from PIL import Image, ImageTk
# --- functions ---
#<<<<<<< HEAD
def on_click(event=None):
# `command=` calls function without argument
# `bind` calls function with one argument
print("image clicked")
# --- main ---
root = tk.Tk()
# load image and resize it
basewidth = ... | [
"cscott57@vols.utk.edu"
] | cscott57@vols.utk.edu |
5ba84151402c306929ff08ad121723a5b154fdab | a2d13dcf9bd687c6b288f0cd00520ad3e7e360f2 | /rl/algos/mirror_ppo.py | f21d52d38ca46bbd9e1e0534039d04e6e3a0d5f0 | [
"MIT"
] | permissive | RohanPankaj/apex | f3f7286b5c420cf0040dd7243351f7618d634b6c | 74e96386bf9446d1179106d6d65ea0368c1b5b27 | refs/heads/master | 2020-07-11T13:10:46.329222 | 2019-08-26T22:30:09 | 2019-08-26T22:30:09 | 204,548,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,541 | py | import time
from copy import deepcopy
import torch
import torch.optim as optim
from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler
from torch.distributions import kl_divergence
import numpy as np
from rl.algos import PPO
# TODO:
# env.mirror() vs env.matrix?
# TODO: use magic to make this reuse mo... | [
"yesh.godse@gmail.com"
] | yesh.godse@gmail.com |
5a77ff53b47783a74d0756216f1c09c0dcf2c10e | 8796273a71427c8d9869431926341fbcac54095f | /imdemo/utils/singleton.py | efdc68aae590b919e315b4fbb42972ee95d1400c | [] | no_license | fatelei/im-demo | e2c377a4fc9c7ce5ab31210ed76f1532d537a790 | 032bac4e0cfe7365e389c64a1ce3a5aec7dd9208 | refs/heads/master | 2021-01-09T21:46:21.401059 | 2016-01-17T08:14:55 | 2016-01-17T08:14:55 | 45,176,036 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf8 -*-
"""
imdemo.utils.singleton
~~~~~~~~~~~~~~~~~~~~~~
Singleton mode.
"""
def singleton_class(obj):
instances = {}
def wrapper(*args, **kwargs):
name = obj.__name__
if name not in instances:
instance = obj(*args, **kwargs)
instances[name... | [
"fatelei@gmail.com"
] | fatelei@gmail.com |
94cd40578f30825025b17f2297e50eb9b0f8a635 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /adafruit-circuitpython-bundle-py-20210402/lib/adafruit_epd/ssd1680.py | 66392a74f69fe9a3ecffe574e03a380758bc1e95 | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,592 | py | # SPDX-FileCopyrightText: 2018 Dean Miller for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_epd.ssd1680` - Adafruit SSD1680 - ePaper display driver
====================================================================================
CircuitPython driver for Adafruit SSD1680 display breakouts
* Au... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
649284409ed743419ddc62681ca42392e631d7aa | 837827fe283704a9de1f9a244a295b4f2e72cbdd | /tunnelTest/main.py | 6c9b0895722a852e79a66f180625bc7c867e8cfd | [] | no_license | josephclaymiller/audiotron | c228c98981b60422906e97f0e14dde0a314bb425 | 668362fb7868ef3a11d0636ce9559cbf18fd3812 | refs/heads/master | 2016-09-06T14:54:40.847965 | 2008-12-03T11:21:01 | 2008-12-03T11:21:01 | 32,127,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | import direct.directbase.DirectStart
from pandac.PandaModules import Fog
from direct.showbase.DirectObject import DirectObject
from direct.interval.MetaInterval import Sequence #needed to continuously move the tunnel
from pandac.PandaModules import VBase3, VBase4
from direct.interval.LerpInterval import LerpPosHp... | [
"BrianStewartMcDonald@df45ab90-1348-0410-a7a9-55bda8f8a9ff"
] | BrianStewartMcDonald@df45ab90-1348-0410-a7a9-55bda8f8a9ff |
b6ccec191dbc184ce1f567885c0785911098364f | deb8655fd05c80e3b81d3bf6100ad0970c959aec | /contact/tests/test_signup.py | f339d88b76a054eff3d880d9d6e0232cc81421c6 | [] | no_license | mayank-agarwal-96/phonebook | 5c20e151194f1c54dabc8c92aae4c5e16efe78dd | 015917a6a861e8a13e42c896f7e9d10045016e2d | refs/heads/master | 2021-01-23T01:59:52.550498 | 2017-03-23T13:53:47 | 2017-03-23T13:53:47 | 85,954,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | import datetime
import time
from django.test import TestCase, LiveServerTestCase
from django.contrib.auth.models import User
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
class SignUpTest(LiveServerTestCase):
def setUp(self):
self.selenium = webdriver.Chrome(... | [
"agarwalm214@gmail.com"
] | agarwalm214@gmail.com |
2c577726ddb93acc298d9aa48b796d856a11327a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02818/s867983819.py | 672fccfd638abcdbc2e8bfd4c826f7fa452e2450 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | A, B, K = map(int, input().split())
count = 0
if K == 0:
print('%d %d' % (A, B))
elif K <= A:
print('%d %d' % (A-K, B))
elif A < K <= B+A:
print('%d %d' % (0, B-(K-A)))
else:
print('0 0')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0844a6b122f516ecc3798d4bad710627ee5512a | 52c990629932dcc5f13b4753af23c7d395bb4b1b | /STOCK/wallet/migrations/0013_auto_20210220_2205.py | a60b9f13b0368c83b6b6b1db975d02e261c119c6 | [] | no_license | Strzelba2/STOCK | 4a0158534cf3a231df59ead0873d1ac50d6b1ee8 | b1904057a40f74f54abd7629fd8726807229c44c | refs/heads/main | 2023-03-14T17:19:04.662137 | 2021-03-21T19:45:08 | 2021-03-21T19:45:08 | 313,441,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.1.3 on 2021-02-20 21:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wallet', '0012_auto_20210220_2205'),
]
operations = [
migrations.AlterField(
model_name='stocks... | [
"artur_strzelczyk@wp.pl"
] | artur_strzelczyk@wp.pl |
df5dc53a7f4dbc860b2fdc75152abf5d48d28b8c | 8cda0cebf7fdc7352236c8c114491742fd3bf68a | /gtfsrt/reader.py | 16fc8f9f1ef4a2e01fc324104b5b777badf35b36 | [] | no_license | pravahio/py-gtfsr-analysis | 0cd23b296a6f02adf0e7fb8643c5e9f3ad5dac9d | 46233e1fd7f726652b4b5223d97aaea7d4125e77 | refs/heads/master | 2020-07-08T10:57:42.647372 | 2019-08-21T19:33:52 | 2019-08-21T19:33:52 | 203,652,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | import os
import hashlib
import json
from datetime import datetime
from google.transit import gtfs_realtime_pb2
from google.protobuf.json_format import MessageToDict
GL_unique = {}
class GTFSRtReader:
READ_TRIP_UPDATES = 0
READ_VEHICLE_POSITION = 1
READ_SERVICE_ALERTS = 3
SAmode = False
VPmode =... | [
"a.upperwal@gmail.com"
] | a.upperwal@gmail.com |
da601365143788ddbeeff357a89115a32b9b44a6 | de770a1a7238cdcec2c321f673a517ed21772731 | /backend/cache_model.py | f1e1a3cc1cb810abd7370a93063c76bc7a84c52b | [
"MIT"
] | permissive | tlkh/serverless-transformers | b4a873e351016d6ac39c05ecafab505664a566be | 98cc9968a3ac1c7d9e779c6193f1e083c19ee7b3 | refs/heads/main | 2023-01-20T09:33:57.566895 | 2020-11-18T09:37:52 | 2020-11-18T09:37:52 | 313,572,143 | 2 | 3 | MIT | 2020-11-28T18:40:38 | 2020-11-17T09:40:43 | Python | UTF-8 | Python | false | false | 293 | py | import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = ""
import torch
from transformers import *
MODEL_NAME = "allenai/unifiedqa-t5-base"
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_NAME)
| [
"tlkh.xms@gmail.com"
] | tlkh.xms@gmail.com |
7efbf58e4724def6d2a3904a3b96739ea7bf1929 | 422abf35d7b168bdc9050922e6a8e7c6ddb753b1 | /settings/settings_manager.py | 05ace33352f94617f9c41866ac9b53ea78a2c43a | [] | no_license | MycatQieZi/RemoteManager | a4b8c4b499c3065642fa74ad51aec37dea613681 | ef998b6a4046f81004a618f06762dcbf1715787c | refs/heads/main | 2023-06-24T19:04:10.658823 | 2021-07-06T09:45:48 | 2021-07-06T09:45:48 | 373,416,855 | 2 | 2 | null | 2021-07-23T02:29:09 | 2021-06-03T07:19:55 | Python | UTF-8 | Python | false | false | 5,031 | py | import configparser, os, logging, yaml, sys
from conf.reg import reg_get_QTHZ_path
from misc.enumerators import FilePath, SettingsCategories, SettingsItems
from settings.consts import DEFAULT_FILE_TEMPLATE
from misc.decorators import singleton
@singleton
class SettingsManager():
def __init__(self):
self.lo... | [
"zhangxy@ect888.com"
] | zhangxy@ect888.com |
7fdb8d3b069cc269c6095853e94a07255525f040 | 4424f20569fbc450ea4900af542577fc0e73763d | /Lesson10/Peaks.py | 5f0be85c963cd389d4db33466891b5b5e9054f6a | [] | no_license | AustinKuo/Codility_Python | 040f5ed9eba6886aca5ef307e6921ced3e97ae58 | 3754a643a96434a23936d81deb0add7fa0af1689 | refs/heads/master | 2021-04-05T23:48:35.135036 | 2019-03-19T08:23:00 | 2019-03-19T08:23:00 | 124,468,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A):
# write your code in Python 3.6
N = len(A)
dis = []
count = 1
# Get next peak distance
for i in range(1, N-1):
if A[i] > A[i-1] and A[i] > A[i+1]:
dis.append(count)
... | [
"noreply@github.com"
] | AustinKuo.noreply@github.com |
604a402d920686f394a64772d385a750c89d7118 | 971b586e21abbb74d631ac49bef3836806261252 | /LDA using Parameter Server/code/lda_run.py | 8798301161ec03e132807470eb7fa8491ec78650 | [] | no_license | samridhishree/Machine-Learning-for-Large-Datasets | 92b84c665a115d069e45a0ce7c8d54e97a004e19 | d02ded246d115b43bff680a85b896f88d30a83ea | refs/heads/master | 2021-09-04T15:33:41.797957 | 2018-01-19T23:02:30 | 2018-01-19T23:02:30 | 114,903,782 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | #!/usr/bin/env python
if __name__ == '__main__':
import argparse
import os
import time
script_dir = os.path.dirname(os.path.realpath(__file__))
default_host_file = os.path.join(script_dir, 'hosts.txt')
default_data_file = os.path.join(script_dir, '20news.csv')
parser = argparse.ArgumentParser(desc... | [
"sami@samridhishree.com"
] | sami@samridhishree.com |
a1c0fe09c2da797f27037c5a052110c6c7af18cd | c256a2afd147589b86cd342c3b4d8d6bf091b544 | /zonefile_parser/main.py | e5fa2d902d5fee1ffc3bda70e9b9e06ed62e51fc | [
"MIT"
] | permissive | mlytics-william/zonefile-parser | bef8c0560063d36892474877328431506eec1f8b | d0af3258f415993e2974aafe3479126064577365 | refs/heads/master | 2023-02-02T11:05:13.607069 | 2020-12-09T00:42:08 | 2020-12-09T00:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import os
from zonefile_parser.helper import remove_comments
from zonefile_parser.helper import remove_trailing_spaces
from zonefile_parser.helper import default_ttl
from zonefile_parser.helper import default_origin
from zonefile_parser.helper import find_soa_lines
from zonefile_parser.helper import parted_soa
from zon... | [
"aredwood@users.noreply.github.com"
] | aredwood@users.noreply.github.com |
649162ec2eee906ff40ed4a11742014eddbea62c | 490c4f252522ba00fcbb6544cf77afc883db63a8 | /supremes/helpers.py | 5fcb3d1364fba7c616dfc628be5628496b04be5e | [] | no_license | stillmatic/supremes | a6c7b9f25d7d8ef92511469e837c1ee78e6bf2ff | a34f3b6ac038c0a66030df1dba92aa249f53ae17 | refs/heads/master | 2020-06-25T13:02:00.093656 | 2019-07-28T20:24:36 | 2019-07-28T20:24:36 | 199,315,962 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | """
Utils, e.g. for I/O.
"""
import hashlib
import requests
import rapidjson
import glob
from models import Case
from typing import List, Any, Dict, Optional
PATH = "D:/code/supremes/oyez/downloaded"
def load_from_remote(url: str, overwrite: bool = False, verbose: bool = True) -> Any:
"""
Load from cache i... | [
"hua.christopher@gmail.com"
] | hua.christopher@gmail.com |
34e948024f0bec94ff0ac644ed0ec34b906fbcf6 | c058f51b99f91faebf27183b2b579e9f96e0d8f5 | /botorch/sampling/index_sampler.py | ac64388a6725fbe6d9d097bcda515413de547a4f | [
"MIT"
] | permissive | pytorch/botorch | 255d62f698cc615c750e9343c278a63c7e96a586 | 4cc5ed59b2e8a9c780f786830c548e05cc74d53c | refs/heads/main | 2023-08-22T15:23:51.071048 | 2023-08-22T05:30:38 | 2023-08-22T05:30:38 | 142,940,093 | 2,891 | 373 | MIT | 2023-09-13T00:16:13 | 2018-07-30T23:59:57 | Jupyter Notebook | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
r"""
Sampler to be used with `EnsemblePosteriors` to enable
deterministic optimization of acquisition functions with ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c1e93bd7232a7db99271954b0b80e062ac990c1e | 7e8363cea094afdc23532265776d135167e4af84 | /new_cb.py | 558bee1c17e81f8c89e5e2650be1bc38a68ce958 | [] | no_license | flaresky/stock | 2c8f92c0144ae48b328265398716bd154c91d887 | 720ede20b04908e873920456fa1ead54a1114d7c | refs/heads/master | 2020-04-11T20:53:31.365704 | 2019-08-16T01:44:26 | 2019-08-16T01:44:26 | 162,087,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # -*- coding: utf-8 -*-
import re
import datetime
import utils
import traceback
from EmailSender import send_mail
notify_rate = 55
def main():
global notify_rate
today = datetime.datetime.today()
ts = today.strftime("%Y-%m-%d")
# ts = "2019-04-19"
stocks = []
url = "https://www.... | [
"flaresky@gmail.com"
] | flaresky@gmail.com |
8d633cacf961f2aaf372bd6e6e2760fa67fc75f3 | e66635486a8abc7710432b52aa15c2d6e4488c94 | /vmware_nsx_tempest/tests/nsxv3/api/test_l2_gateway_connection.py | a08d7212ce08967fe35b5b32d802971f61f21334 | [
"Apache-2.0"
] | permissive | yfauser/vmware-nsx | ba2bff4c3cc982b7af03ac7d9891a067018a7233 | 1fb08a7555efd820c2d5625665ab77d7e69d3b0c | refs/heads/master | 2021-01-18T17:41:40.411620 | 2016-06-02T21:13:43 | 2016-06-02T21:13:43 | 60,336,943 | 2 | 0 | null | 2016-06-03T09:42:43 | 2016-06-03T09:42:43 | null | UTF-8 | Python | false | false | 19,234 | py | # Copyright 2015 OpenStack Foundation
# Copyright 2016 VMware Inc
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LI... | [
"ksamoray@vmware.com"
] | ksamoray@vmware.com |
5a9945e71b3b8a15401b395d1287eb71026ce281 | d610a70b24d071c00b7b665324305bae84057cec | /frontend.py | d73f7faea1afc88567cf8f21d7e0b6c04da21659 | [] | no_license | akshat1198/bookSearch | 60d39d27c2ce23a3656f521e6a3987cbb607eaad | f3a4c59a974cb3cf83f450c75e2c43adae3a749c | refs/heads/master | 2020-09-27T04:32:38.764044 | 2019-12-30T04:34:33 | 2019-12-30T04:34:33 | 226,430,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | from tkinter import *
from backend import Database
database=Database("books.db")
class Window(object):
def __init__(self,window):
self.window = window
self.window.wm_title("BookStore")
l1=Label(window,text="Title")
l1.grid(row=0,column=0)
l2=Label(window,text="Author"... | [
"akshat1198@gmail.com"
] | akshat1198@gmail.com |
fe55479c2bc11a0237fb2eecee964409893ab01c | de77db1947bc0c1e99c493ffb90aabce8de197e7 | /products/utils.py | 93ee3df7ae1ac8d9a6e524e1f6794447d9b19b56 | [] | no_license | thesaadmirza/djangoecommerce | a6e17d0125ae5f85b8065341564ffd548a4a3520 | a4dbb14cc04b956497a8524c46141c6aa9ff50c0 | refs/heads/master | 2020-03-30T20:08:36.934892 | 2018-10-09T13:53:50 | 2018-10-09T13:53:50 | 151,574,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import random
import string
from django.utils.text import slugify
def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
def unique_slug_generator(instance, new_slug=None):
"""
This is for a Django project and it as... | [
"saadmirza009@gmail.com"
] | saadmirza009@gmail.com |
e481d147740b8ba9df9a7d2102804aca929b1f8a | 62172ba64eba74eddf96ea6d92db9967301edc2d | /src/method/sidnet/train.py | 69885788dee97bd7abed3361d7d944ad390c0137 | [] | no_license | icdm21-sidnet/codes | e00af1fb0de9472496b0604715f79359ef63b5b0 | 79b3c2fb6f6088200e753a0cf77e9de5ccb171c7 | refs/heads/master | 2023-05-26T18:26:17.546881 | 2021-06-10T12:28:56 | 2021-06-10T12:28:56 | 375,684,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import torch
from dotmap import DotMap
from tqdm import tqdm
import numpy as np
from method.sidnet.model import SidNet
import scipy.sparse as sp
from loguru import logger
class SidNetTrainer(torch.nn.Module):
def __init__(self, param):
"""
Constructor... | [
"icdm21sidnet@gmail.com"
] | icdm21sidnet@gmail.com |
e077b381b5bd58b93198eb2f2a96e908241882cd | b4eeca0ca9dea1956251b1fdba0ab5cc5c6ad938 | /img_saver.py | 3f16cc31e795bbc6fffdca4a409c1ea3430c00fa | [] | no_license | Rowing0914/simple_CNN_mnist | 70ecb5c4e5874b13a43c870aa9ac5bdce7aeba72 | 4ff3414bad9e8304ecc839314ff6f716a1bfa445 | refs/heads/master | 2020-03-18T14:14:28.582076 | 2018-05-26T11:25:12 | 2018-05-26T11:25:12 | 134,837,434 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import keras
from keras.datasets import mnist
from keras.models import model_from_json
from keras import backend as K
import numpy as np
import matplotlib.pyplot as plt
batch_size = 128
num_classes = 10
epochs = 5
index_range = 30
# input image dimensions
img_rows, img_cols = 28, 28
checker = True
while (checker):
... | [
"norio.kosaka@rakuten.com"
] | norio.kosaka@rakuten.com |
7f9fb37e893d8d72f1e7cdaec460c08f350a2b7b | 9bc71630f9a0f0d3f0b490210e8ca36d05f29bc5 | /python/Views/QuestionAnswer.py | bc3e66895953e0836ca104937c4dbe4d559776b1 | [] | no_license | SproutProject/SproutProject-regweb | b88b720a805bbd9027dd0fe1e631da65fadc18fa | 46a7e17ca6e2ddf76dbb65c5768e68e6f2865ce2 | refs/heads/master | 2021-04-30T23:15:22.218639 | 2017-02-11T18:01:34 | 2017-02-11T18:01:34 | 71,987,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | from sqlalchemy import and_
from Config import DEBUG
from Model import *
from Views.Base import RequestHandler
from Views.Utils import get_user, db_insert
class GetAllHandler(RequestHandler):
def post(self):
session = self.get_session()
data = []
for row in session.query(Qa).filter(Qa.st... | [
"luniacslime@gmail.com"
] | luniacslime@gmail.com |
8725d2a1385df69f69e2f38965280d22d8072110 | 958dfda84dd93ba500c18b22a53017704c84a9dd | /sql_queries.py | 0797b6cd5eb51a731fd1610babd45f34efc62f56 | [] | no_license | walkandride/Data-Modeling-With-Postgres | 152e77486bfa749e48435072696db7e8fa0e7421 | c0db3614d9984625f8fcf2d92331f70637dd0411 | refs/heads/master | 2021-03-24T14:42:25.226600 | 2020-05-28T17:17:08 | 2020-05-28T17:17:08 | 247,539,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""
CREATE ... | [
"walkandride@hotmail.com"
] | walkandride@hotmail.com |
2091019304441ed2b85284ecae92403d78b00911 | d6309b1c29872a78473b9469b103c03faa289343 | /teams/forms.py | 013799f1c4f250545260809050ed2f2ee9186cea | [] | no_license | HackyRoot/TeamFinder | 86044ddc58e7d8626f04f1c11218c9abd20c015d | 3f76c2b9f1862c703a872e41cff90ac31462ede6 | refs/heads/master | 2020-04-29T05:28:16.608339 | 2019-03-21T13:02:46 | 2019-03-21T13:02:46 | 175,884,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
# from .models import Member, Team
# https://stackoverflow.com/questions/49198400/django-add-user-to-team
# class InviteMemberForm(forms.ModelForm):
#
# class Meta:
# model = Team
# ... | [
"steveparmar6nov2011@gmail.com"
] | steveparmar6nov2011@gmail.com |
022ad5c859c0bd9242aba0bf2f6eb4c519cc7624 | 9c2eb3b057cfab3c1fe62259855772cdcce3e247 | /python/sam_and_substrings.py | 6e4659aec87f35d9c56521e53d06817ced548eac | [] | no_license | saienthan/HackerRank | a508ab0fe7783d4033f59f4688db12f202b05595 | 3f45cd5bca610090f36d07861caa752402aae07a | refs/heads/master | 2021-01-19T08:34:31.278662 | 2015-08-29T01:52:46 | 2015-08-29T01:52:46 | 31,596,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | num = input()
size = len(num)
dp = [0]*size
dp[0] = int(num[0])
ans = dp[0]
for i in range(1,size):
dp[i] = (dp[i-1]*10 + (int(num[i])*(i+1)))%1000000007
ans = (ans + dp[i])%1000000007
print(ans)
| [
"saienthan@gmail.com"
] | saienthan@gmail.com |
68cb78d9786b17dbf9ebfd1f7d9bc1c3a09d832a | 49e5321f91ec6a7090fad075dff70380e8782436 | /test_example/008_temperature.py | fedf554c65d22940c0e2d72e90a337181b6586fd | [] | no_license | hedgehoght/py3_cainiao | 068bd3b50f6fdcd21265ef426178ac94e27a437c | e671bb8b0d402e47d0ddd1eb250c4f8f78a58357 | refs/heads/main | 2023-04-02T22:39:00.713433 | 2021-04-09T08:25:06 | 2021-04-09T08:25:06 | 348,980,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/3/18 16:22
# @Author : huangting
# @File : 008_temperature.py
# 摄氏温度转华氏温度
# 以下实例演示了如何将摄氏温度转华氏温度:
# author by : www.runoob.com
# 用户输入摄氏温度
# 接收用户输入
celsius = float(input('输入摄氏温度: '))
# 计算华氏温度
fahrenheit = (celsius * 1.8) + 32
print('%0.1f 摄氏温度转为华氏温度为 %0... | [
"1720886432@qq.com"
] | 1720886432@qq.com |
56891733bd69b657990cf4c7f42b4cadd4945ee3 | cd33ce52f3cec01b6b4e6855b20548b66e7b48e3 | /comision/migrations/0007_auto_20170228_1611.py | 1dfadc6696ad5092ae8ba358c2e3054b81e3f565 | [] | no_license | ingcacm/viceacad_si | 3f24156405a4862fd2ef1458182608cf3e091afb | eb7680fadc510ac0b5768c9eb63885f6741f97cc | refs/heads/master | 2020-04-02T15:24:41.745195 | 2018-11-02T15:13:09 | 2018-11-02T15:13:09 | 154,566,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 16:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comision', '0006_auto_20170228_1601'),
]
operations = [
migrations.AlterFie... | [
"ingenierocamilocryuz@gmail.com"
] | ingenierocamilocryuz@gmail.com |
c8e6ec9859340312be86d4aa0d4624585f7ff9d9 | 4d0bf402a07e152cdd9b457e7eb6b48fb185d451 | /source/lib/python3.6/_bootlocale.py | 640ba8eb3d36da8fe9357c6d653d70a53eb3957c | [] | no_license | sajivfrancis/opteylearningtool | d61fab9367d264bea0e9ec051a43a4a02a2b413e | 6b91b0f1653deeee674e1512b0ce4431521b1f69 | refs/heads/master | 2020-04-28T07:03:20.842795 | 2019-05-08T15:24:31 | 2019-05-08T15:24:31 | 152,605,200 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /Users/sajivfrancis/anaconda/lib/python3.6/_bootlocale.py | [
"sajivfrancis@Sajivs-MacBook-Pro.local"
] | sajivfrancis@Sajivs-MacBook-Pro.local |
751495d0c007ac9f2437d3f8ac658de6de62b17d | 6511518ea4d81218d30b34ac6b783a50bac913fa | /base/webdriverfactory.py | 64d30aa199154737731391ffa29280d938797be3 | [] | no_license | sony093/amazon-repository | f979e1a7be6da9d3db415c8ad86acbc522b94629 | 205516503be6a5e34364e53f14dac53c76f2838c | refs/heads/master | 2022-11-21T20:58:33.688593 | 2020-07-24T06:56:14 | 2020-07-24T06:56:14 | 282,141,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from selenium import webdriver
class WebDriverFactory():
def __init__(self, browser):
self.browser = browser
def getWebDriverInstance(self):
baseURL = "https://www.amazon.in/"
if self.browser == "iexplore":
driver = webdriver.Ie()
elif self.browser == "firefox":
... | [
"sonybiswal093@gmail.com"
] | sonybiswal093@gmail.com |
d48f8bec41176e377a39ba8177cac60f159340b7 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/python/esprima/esprima/__init__.py | aa2398f4102b2e9d4553bb39f890861fda8ee0ea | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
version = '4.0.1'
__version__ = (4, 0, 1)
from .esprima import *
| [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
ae6316a772722d458445a524f69b025e1ec1ac9e | 246fc123d539e150ae9e82720f843b1ab5890532 | /shau.py | 3d7e55e187f5baafca30bcaa50ea87fcf4ba249e | [] | no_license | Raeshmithaa/guvi | 3a5edd0b33d7971eae1a73aa4d543eb8f0a0aec2 | cd20cda104b409aba23dcb15210ab9285fc946fc | refs/heads/master | 2020-05-31T06:39:44.349687 | 2019-07-26T10:30:46 | 2019-07-26T10:30:46 | 190,146,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | r=int(input("enter the value"))
for i in xrange(r):
print ("Hello")
| [
"noreply@github.com"
] | Raeshmithaa.noreply@github.com |
1776f070e04378fb62f8d7fa0efb71da985ee265 | 66d35c4c299cfebe70acb45cbfe69eee74e63c45 | /quantum/vazirani/L03a-bellstate/main.py | dfc5f84107e9016c2ff12d43b59fed96cabc4a35 | [] | no_license | numpde/misc | 8b7b245e7cb4ab403a6ecce3ebd7aaf63fe1c1c5 | d57a0715800adda4acc1920b52d811e193ac29dc | refs/heads/master | 2022-12-07T19:38:15.829569 | 2021-03-19T11:41:11 | 2021-03-19T11:41:11 | 196,041,509 | 0 | 0 | null | 2022-09-30T18:39:24 | 2019-07-09T16:02:18 | Python | UTF-8 | Python | false | false | 459 | py | # RA, 2019-12-10
import qsharp
import numpy as np
from Quantum.Bell import Corr, Corr_SignBasis, Corr_SignBasis_Simul
r = 100 * np.mean([Corr.simulate() for __ in range(1000)])
print(F"Agreement (0/1 basis): {r}%")
r = 100 * np.mean([Corr_SignBasis.simulate() for __ in range(1000)])
print(F"Agreement (+/- basis): {... | [
"21158052+numpde@users.noreply.github.com"
] | 21158052+numpde@users.noreply.github.com |
27851538355cbd4e982fa4268a95c563c111d7c4 | 07eddbfdf1fcc20e0b3c2027514e5cc9ace6360c | /src/agent.py | 2b79da3118d1482dd97c49447982213aa887f5cf | [] | no_license | Benjamin-Etheredge/DeepQExploration | a087739e792dde8c1aa1c0c639963bbbfcdd3615 | 78f8998d6d1dbff740e5f32f239b9db2b9064afd | refs/heads/master | 2023-05-11T02:14:50.018053 | 2021-04-28T04:13:28 | 2021-04-28T04:13:28 | 168,606,706 | 0 | 0 | null | 2023-05-01T13:44:30 | 2019-01-31T22:28:23 | Python | UTF-8 | Python | false | false | 19,820 | py | # TODO test with starting with large window and reducing size
# TODO test with randomly removing items from deque instead of using a sliding window
# TODO add new q value network for randomly sampling q values to test convergence of predicted q values.
import time
from datetime import datetime
from timeit import defaul... | [
"benjamin.etheredge@gmail.com"
] | benjamin.etheredge@gmail.com |
9b3897a204d2e19414bfafbc3476fb262e256b8a | 32214725e788d3e5b8f360b47959cdf9fd4b79b5 | /learn_theano/pylearn2/test_pylearn_tutorials.py | 02741e3acee9840acf9946f89be017bf75e5bf65 | [
"Apache-2.0"
] | permissive | consciousnesss/learn_theano | 4906ae656d2780e42b973186b078298055cfa5f9 | 43bc661032963274520ecfdd620ac547ee421f9d | refs/heads/master | 2021-01-10T13:13:25.552127 | 2015-12-05T05:07:17 | 2015-12-05T05:07:17 | 45,771,031 | 0 | 0 | null | 2015-12-05T05:10:33 | 2015-11-08T07:20:47 | Python | UTF-8 | Python | false | false | 509 | py | from learn_theano.pylearn2.custom_autoencoder_2 import custom_autoencoder_run
from learn_theano.pylearn2.custom_logreg_1 import custom_log_reg_run
from learn_theano.pylearn2.standard_mlp_0 import standard_mlp_run
import theano
def test_standard_mlp():
standard_mlp_run(1)
def test_custom_log_reg():
old_float... | [
"olegsinyavskiy@gmail.com"
] | olegsinyavskiy@gmail.com |
85fe8257ba6b215d2f1be3c0e44cab33018ef58f | 305cfe3a1f16555509d6b63b1955cbfd2c667344 | /posts/api_urls.py | affc09831cae7fe6e0ca34d4d4bd15c9ae8b1d7c | [
"MIT"
] | permissive | krainet/Wordplease | 08843fb83fed8823878a291e4dd9e5c9e95f847b | c546913cdfa21be71d9c852fabf0a853e1617ab4 | refs/heads/master | 2020-05-18T11:59:17.809358 | 2015-08-30T15:13:23 | 2015-08-30T15:13:23 | 39,742,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
from posts.api import PostViewSet
from django.conf.urls import include, url
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('post', PostViewSet)
urlpatterns = [
url(r'1.0/', include(router.urls)),
]
| [
"ralberti@mequedouno.com"
] | ralberti@mequedouno.com |
2bb7d800683997697c30b40167e239a1b671acbd | 9f5fcff2513f2d78f27e5313698dcc47fce1e754 | /Experiment/RL_EA_search/graphnas/rs_trainer.py | 60d453b4a9dc3b195ba7af0fdb0ad1d16b376820 | [
"Apache-2.0"
] | permissive | ncucjm/notebook | c2495f790e9fc2ca55c1c29a8eaa2dc1bfe7463f | 7271a0d1b10cdd6298e223c7ff150d4df031aa76 | refs/heads/master | 2023-07-20T05:55:48.946687 | 2021-01-27T09:12:19 | 2021-01-27T09:12:19 | 202,633,012 | 0 | 0 | null | 2023-07-06T21:28:29 | 2019-08-16T00:58:45 | Jupyter Notebook | UTF-8 | Python | false | false | 1,510 | py | import time
import torch
import numpy as np
from collections import deque
from graphnas.trainer import Trainer
class RandomSearch_Trainer(Trainer):
"""
This class implements a Random Search method, on the Search Space
provided to it.
"""
def __init__(self, args):
super(RandomSearch_Trainer... | [
"1300887184@qq.com"
] | 1300887184@qq.com |
795e1fb93d180391f6871a8b83279551c75bfce7 | 50cd47781972b0906bdeb86ec19d66afca146479 | /experiment/financial_statement.py | 20eb0ed53f64ade87d12a72352c17057f3b05697 | [] | no_license | Niyokee/coodori-batch | 500f8499cab70dc779c4a30af42c5072bc37d694 | 5860af70f27999b838e99f553154add1d5a324f6 | refs/heads/master | 2023-02-12T02:13:58.646853 | 2021-01-06T00:20:07 | 2021-01-06T00:20:07 | 289,264,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,995 | py | import re
import sys
import traceback
from datetime import datetime
import requests
import pandas as pd
import pandas.io.sql as psql
import numpy as np
from db_util import *
from bs4 import BeautifulSoup
from sqlalchemy import create_engine
import pandas.io.sql as psql
import psycopg2 as pg
from logging import getLogge... | [
"knk43nok@gmail.com"
] | knk43nok@gmail.com |
84111d9587a8ae65f17009f4940debffcdcba987 | 297d426d5519c669b210e82d4aff479a51949e52 | /routines/flat_dark_corr.py | 849357cb9f9c2abf7af01abd15c2581df6e98cda | [] | no_license | PulkitMalhotra15/Lunar-Eclipse-Analysis | 4722d6779bad00f107a553dccd4335051dde570b | d07f6b36eec79fea1f10e3129d8c6b72bc669521 | refs/heads/master | 2020-08-21T22:27:14.922373 | 2019-10-19T21:09:11 | 2019-10-19T21:09:11 | 216,261,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 29 21:10:03 2018
@author: sid
"""
import numpy as np
import matplotlib.pyplot as plt
import astropy.io.fits as fit
import prepare_lists as pl
llists = pl.llists()
dpath='/home/atom/2018_07_27 TLE Jaisalmer/Analysis/images/dark_and_flat/'
savepat... | [
"noreply@github.com"
] | PulkitMalhotra15.noreply@github.com |
5e504538adc68c06ea2082edf5674a0e82a28dc0 | 4f75cc33b4d65d5e4b054fc35b831a388a46c896 | /.history/app_20210903181729.py | d0919a5fe032e1f8eaa9d4770a1d04d5bbe154c3 | [] | no_license | Lr-2002/newpage | c3fe2acc451e24f6408996ea1271c61c321de702 | c589ad974e7100aa9b1c2ccc095a959ff68069b6 | refs/heads/main | 2023-09-03T06:13:53.428236 | 2021-11-23T10:41:21 | 2021-11-23T10:41:21 | 402,606,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from flask import Flask ,render_template,url_for
from flask_sqlalchemy import SQLAlchemy
import os
import sys
import click
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(app.root_path,'data.db')
# / / / / 是文件的绝对路径
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] =... | [
"2629651228@qq.com"
] | 2629651228@qq.com |
d9acf31c600bcd66b25ae0ae1a318d9535f57025 | 73a96d5e28352fd9d25a89c1c3ac509b9367ee49 | /ExerciciosListas/Exe19.py | d2850a6541184650878b5213a38733c598ca54a4 | [] | no_license | Elton86/ExerciciosPython | 5023d32022338c05b759714ce691a822a1a90f5d | c8166c4f53462a0da744193892cdacc7a3b6b8b5 | refs/heads/main | 2023-05-26T19:14:39.836238 | 2021-06-17T01:25:22 | 2021-06-17T01:25:22 | 340,248,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | """ma empresa de pesquisas precisa tabular os resultados da seguinte enquete feita a um grande quantidade de
organizações:
"Qual o melhor Sistema Operacional para uso em servidores?"
As possíveis respostas são:
1- Windows Server
2- Unix
3- Linux
4- Netware
5- Mac OS
6- Outro
Você foi contratado para desenvolver um p... | [
"elton86@gmail.com"
] | elton86@gmail.com |
4709c002cbe78386e7a2d8b1f0af23cb71cc52a3 | 1286114add63959946e4253efa7ac4d3f7dbab04 | /product.py | 53800c3871c514b426093efd14fa0f750a14ec44 | [] | no_license | kugimasa/VendingMachine | e87a11fcc9976f989572b134aa94ebe5b131ca48 | d8d81e8c879ea5bb62274dc78e66068e3d735b97 | refs/heads/master | 2020-07-19T21:48:47.977278 | 2019-09-05T09:40:33 | 2019-09-05T09:40:33 | 206,519,926 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | class Product:
def __init__(self, name, price):
self.__name = name
self.__price = price
@property
def name(self):
return self.__name
@property
def price(self):
return self.__price | [
"kugimania@gmail.com"
] | kugimania@gmail.com |
59a610eb83b8706f74f0002b97f722652d711751 | 83c57f25a1c8b29bb84078340efabaf527a9452e | /pytest/xiaoniu88/pipelines.py | bcf58746076d6fa5a9859ffc60911edbe065bfe3 | [] | no_license | ifzz/py | df06cf5da5920dae979c2c8454bfa02c36dfeeb1 | 2305e651613725ca51d6a87306f3ef83d6c51939 | refs/heads/master | 2021-01-18T08:32:21.256271 | 2016-03-11T10:30:28 | 2016-03-11T10:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class Xiaoniu88Pipeline(object):
def process_item(self, item, spider):
return item
| [
"junxuanwoo@163.com"
] | junxuanwoo@163.com |
8c2a09329555943408f9a1d045564df59699fbf7 | 0b7272149f953c1a1fdbea4e17095e25f1e5c620 | /hours/admin.py | 0705be8278b9e1c111d3b5bf621a12928758f9fe | [] | no_license | Jayshah6699/Medico | c116bc6b09efc2c47d11758734122fc1c0e247e7 | ecc2b2f28866758cbe8eeb48b554d40bae65c502 | refs/heads/main | 2023-01-30T18:54:37.331793 | 2020-12-19T12:13:56 | 2020-12-19T12:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.contrib import admin
from .models import Department, Shift
admin.site.register(Department)
admin.site.register(Shift)
| [
"andrewroblesdev@gmail.com"
] | andrewroblesdev@gmail.com |
4ec3a3ad39f84c17851919fc61bb7c8ea7077454 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1255.py | 433c18dd8d62c95a5ce1435e5cbc4fa0ed500276 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,849 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=49
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
6e5c4d9328171eeb50e8290adcc1ce764248f029 | 8d472f9facb895dda9e1df81f3bb6c2f81b9c357 | /master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Project_hasItem.py | d66daa1f26bb81642f295654c3ff99a0f40cc6d8 | [] | no_license | SlapOS/slapos.core | 852485eed9382685f3df6ba8532f8192bb1389c4 | 369e8d56636e1c59a745e68dc68154abfc5b7840 | refs/heads/master | 2023-08-31T04:42:34.722241 | 2023-08-30T15:13:08 | 2023-08-30T15:13:08 | 1,825,920 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | import json
return json.dumps(len(context.Project_getComputeNodeTrackingList()))
| [
"rafael@nexedi.com"
] | rafael@nexedi.com |
63616405b27720b76566b120e130bee0ac7bae8e | cfa464f5e4ec36b740d6e884f0ca1e170ebd2efb | /0x15-api/1-export_to_CSV.py | 402fb19b0b58ff81079e112f6fdb96aead0b7b14 | [] | no_license | Immaannn2222/holberton-system_engineering-devops | 6ea0c4f3af2943c242e1928a2b4e66932f193a34 | bcf001f3693fc55d54842ad92848ee783edee37a | refs/heads/master | 2020-12-22T21:12:22.507064 | 2020-10-12T19:46:37 | 2020-10-12T19:46:37 | 236,933,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/python3
"""HTTP WITH PYTHON"""
import csv
import requests
from sys import argv
if __name__ == "__main__":
"""main"""
to_do = requests.get('https://jsonplaceholder.typicode.com/todos/',
params={"userId": argv[1]})
user = requests.get('https://jsonplaceholder.typicode.com... | [
"imennaayari@gmail.com"
] | imennaayari@gmail.com |
cca8684959f85d2e036f5c9887666fd2e912318b | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /supervised_learning/0x02-tensorflow/0-create_placeholders.py | 030bfd54225f665c91036d412c47e2ec3b3197fd | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python3
""" This function creates two placeholders """
import tensorflow as tf
def create_placeholders(nx, classes):
""" Method to create placeholders """
x = tf.placeholder(tf.float32, shape=(None, nx), name='x')
y = tf.placeholder(tf.float32, shape=(None, classes), name='y')
return (... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
88fae0f7f05b8375208a3a5144f972d9792eac4c | 4ed038a638725ac77731b0b97ddd61aa37dd8d89 | /cairis/misc/KaosModel.py | 39259e225455f6f69fa7f7bc60346a9b9a88fa53 | [
"Apache-2.0"
] | permissive | RachelLar/cairis_update | 0b784101c4aff81ff0390328eb615e335301daa2 | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | refs/heads/master | 2021-01-19T06:25:47.644993 | 2016-07-11T20:48:11 | 2016-07-11T20:48:11 | 63,103,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,998 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
01945bf47b3a7cee41fd7758b27020b16dfe8c9f | c018a7de1de41c0b82c3be5430e5d18bb546b944 | /adapter/gql/mutation/mutation.py | 00a050f8d8bbd4e5d106fac370f050257a0136b0 | [] | no_license | rafaelbm9126/py-crud | 3b8f2741563f59cc6e3c490fc8c7addfd2b88923 | 88442915691340345d098941c60d23d06da4d74f | refs/heads/master | 2022-01-09T13:25:21.472348 | 2019-06-15T22:54:06 | 2019-06-15T22:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from graphene import (
ObjectType
)
from adapter.gql.mutation.post.create import PostCreate
from adapter.gql.mutation.comment.create import CommentCreate
class MutationC(ObjectType):
post_create = PostCreate.Field()
comment_create = CommentCreate.Field()
| [
"rafaelbm9126@gmail.com"
] | rafaelbm9126@gmail.com |
d21c3d5ac2ec534e248cf7b149b64ca6d5a7c7aa | 95062add19335123f4d3569644f37056310a54d5 | /admin_manage/urls.py | 6900cd054529d4cdb58b4cad6d856d61cfc08543 | [] | no_license | jamisonz87/merch-app | 653518474bdae6576ca25779fc7e4658e5eec114 | cc6967d92e51a3ce73904b6ea58366b7fd44b3b0 | refs/heads/master | 2022-11-05T21:20:01.041349 | 2020-06-26T20:32:09 | 2020-06-26T20:32:09 | 275,229,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.urls import path
from . import views
urlpatterns = [
path('add_product/', views.add_product, name='add_product'),
path('', views.index, name='admin_index'),
path('view_order/<int:order_id>', views.view_order, name='view_order'),
] | [
"jamisonz87@gmail.com"
] | jamisonz87@gmail.com |
6aa00e15918047934e9a5d1a3b2ca63b884a34e0 | 31a2a512544734047f960f3ad386137c53004945 | /pierre/gamelogic.py | def2add812f287db056a40e3807415fa01b8de13 | [] | no_license | ValentinCPE/simonsGame | f077bd267eda3badb09756c5e92a53778b09e4e3 | 8bd468228f21d9c80370bbc158ec13fb6014f1e3 | refs/heads/master | 2021-06-07T01:53:38.258995 | 2016-11-16T21:44:41 | 2016-11-16T21:44:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!/usr/bin/env python2
import random, os
def compareSequences(list1, list2):
for i in range(0, len(list1)-1):
if list1[i] != list2[i]:
return False
return True
limit = 3
points = 0
while True:
usersequence = []
sequence = []
while len(sequence) < limit:
sequence.append(random.randint(0,3))
print("\nRe... | [
"hyacinthe@openmailbox.org"
] | hyacinthe@openmailbox.org |
384496359f968c0c15c69e0e31cf20fe03eecb7d | 5fd297a27951074f3434d45ab7367687a15ad3b1 | /cep/__init__.py | 0499b31d041f05719ad12c78b1179c582ae8bb89 | [] | no_license | Cazuky/cepy | 808e155cdcf70bc25ef87f658e11c53bdb715530 | eca789cf632156a2e61b9d6fb4422056105a1c8d | refs/heads/master | 2021-01-11T14:12:31.974783 | 2012-11-27T17:45:25 | 2012-11-27T17:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from flaskapp import create_application
__version__ = '0.0.0'
| [
"luanfonceca@gmail.com"
] | luanfonceca@gmail.com |
06d0c2730cb97528517b6138758f05097f3d260f | 3d5f5403d9ac344abdd3fa71632514d2c4343179 | /unsplash_python_script.py | 7d03ed23440094aa278b42a7aa6a75a03f3b8c30 | [] | no_license | psonH/Python-Selenium-Web-Automation | 2d29d5e840d7c8456b63060614af4d572eddb803 | 625e62696f76e6a43a6cedf5b71c6fc6a9a30eb7 | refs/heads/master | 2022-11-16T03:41:28.444079 | 2020-07-11T09:20:02 | 2020-07-11T09:20:02 | 278,822,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
# from selenium.webdriver.common.by import By
# from selenium.webdriver.support.ui import WebDriverWait
# from selenium.webdriver.support import expected_conditions as EC
import time
import urllib.request
# path to the chrome web driver
PATH... | [
"p47.hajela@gmail.com"
] | p47.hajela@gmail.com |
7f955293e5e91bed3c822740e591c956bf441510 | 6f36b511e8e74b82e113ce137f7bec42797e003c | /catalog_editor_main.py | 43d3d1497ee5b82c6232625679fefe1fb5c26b7a | [
"MIT"
] | permissive | FIREdog5/Catalog-Editor | b15d28aae6ded8dc72f331da525ea4928d0894ab | 49dab360e7284ac318db5d25dc2b2c1c97fa9a58 | refs/heads/main | 2023-02-10T06:52:59.972641 | 2021-01-09T09:05:16 | 2021-01-09T09:05:16 | 328,013,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | import tkinter as tk
import first_pass as fp
import html_compiler as hc
import data_manager as dm
import pre_edit_pass as pep
def main(old_window=None, return_function=lambda *_: None):
if old_window:
old_window.destroy()
window = tk.Tk()
screen_width = window.winfo_screenwidth()
screen_height ... | [
"betterthanbossfiredog5@gmail.com"
] | betterthanbossfiredog5@gmail.com |
1dbeb3124b5820205735e94d1f113b90adcfa8f4 | 680d7da38e4af5df02c92e1509462ba135a3aa38 | /index/views.py | 2ede79e33a57bc23f202ee27a47a3cc08fe9bf27 | [] | no_license | yanjl/mydjango | 047fff986fde53dfe46bc858f95a1e92043e7910 | d5c199d8c7deec37081ecc7faa8bf17cfe446c56 | refs/heads/master | 2020-04-13T07:54:07.052125 | 2018-12-25T08:56:51 | 2018-12-25T08:56:51 | 163,065,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Avg, Count, Max, Min, Sum
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.views.generic import DeleteView, ListView, TemplateView
from... | [
"sinberyh@aliyun.com"
] | sinberyh@aliyun.com |
502b02d1c61d4e86509630f79c837a98d579e3d2 | 39d3a01f30dd24be11f284a6fd25aae3c3ac56e5 | /pixeldefend/models/pixelcnn_cifar.py | 2bd1d74b9beec39dd65d303e28781ab2cafd0007 | [] | no_license | anishathalye/obfuscated-gradients | a94470ad4ca7a9f16f2856f7fbab558e2e4c891e | 9ef8b37ae985183f1cd37a40d126af7ab6c8d057 | refs/heads/master | 2023-06-21T19:37:43.648545 | 2023-06-10T14:11:29 | 2023-06-10T14:11:29 | 119,627,984 | 917 | 187 | null | 2018-11-04T23:15:52 | 2018-01-31T03:13:46 | Jupyter Notebook | UTF-8 | Python | false | false | 2,166 | py | import models.pixel_cnn_pp.nn as nn
from models.pixel_cnn_pp.model import model_spec
from utils import optimistic_restore
import tensorflow as tf
import numpy as np
import os
_PIXELCNN_CHECKPOINT_NAME = 'params_cifar.ckpt'
DATA_DIR = os.path.join(
os.path.dirname(__file__),
os.pardir,
'data'
)
_obs_shape ... | [
"nicholas@carlini.com"
] | nicholas@carlini.com |
727b6531f40238a90a6b79a006be2a0a540553cb | 432dde1eea596e915673f57aca3c02687c503089 | /home/home_location.py | d4439ea9800fda01e4efbbc74b1169d20b62a67e | [] | no_license | DavidLouisLevine/adventure | 2762b825652d2c17eececdbd3951137ae455dada | dd91f7a155777bea5199e33e4f7238300080beed | refs/heads/master | 2020-07-11T18:51:04.405008 | 2019-09-29T04:41:22 | 2019-09-29T04:41:22 | 204,619,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from adventure.location import Location
locations = (
Location('Living', (
'This room has a couch, chairs and TV.',
'You have entered the living room. You can watch TV here.',
'This room has two sofas, chairs and a chandelier.',
'A huge television that is great for watching games.')... | [
"dll@davidlouislevine.com"
] | dll@davidlouislevine.com |
b72811cf470f14d3204cf120201855ee3e250c6f | 99ec105d854a24488d8efec8b425c36daae0db64 | /src/Fostr_Django/Fostr_Django/settings.py | da4c07c513e0678d110f912db439084763c90098 | [] | no_license | allenwang52/Fostr | 6630f053cc5f9e398e1f74c7e9a844ab7af941ca | 6f07570d34059637edeb29b375b48a642f880efa | refs/heads/master | 2022-07-25T21:19:48.245225 | 2020-05-23T01:44:48 | 2020-05-23T01:44:48 | 258,685,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | """
Django settings for Fostr_Django 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/
"""
import ... | [
"allenwang52@yahoo.com"
] | allenwang52@yahoo.com |
e3eb7c216955ffc40e650b1d631b5fe332b79e2f | ef875150adbd1b22864542f6038e8d30ca15380b | /venv/Lib/site-packages/wikidataintegrator/tests/tests.py | 95ae61b59be6ab1295c95fa178a12eb40ceaadeb | [] | no_license | JimmyYourHonor/extract_syn_idf | 52d452d0e04ab906d3a2b08d400658f083fdc16a | df05e83cca9312c8b08cfc6436011eeec864f078 | refs/heads/master | 2020-04-16T21:35:01.096776 | 2019-03-29T04:03:53 | 2019-03-29T04:03:53 | 165,930,787 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,278 | py | import unittest
import pprint
import copy
import requests
from wikidataintegrator import wdi_core, wdi_fastrun, wdi_login
from wikidataintegrator.wdi_core import WDBaseDataType, WDApiError
__author__ = 'Sebastian Burgstaller-Muehlbacher'
__license__ = 'AGPLv3'
class TestMediawikiApiCall(unittest.TestCase):
de... | [
"jfu.jf60@gmail.com"
] | jfu.jf60@gmail.com |
d2028f57e889580dbad8b3af308f120a3fc7b02a | f9d919611a8db24de3e9729cb7efe513016708c2 | /Tiralabra/src_lagrange/energiat.py~ | 6a184d5f07ae0609ea2c2da14bb14d6aa76814b6 | [] | no_license | paapu88/TiraLabra | 6e4926b604fe860da4b0d11c1c59fea561c14c60 | 9be12c74d4261d43a2f9116d4d8e090e1bae18de | refs/heads/master | 2021-05-30T13:21:04.436866 | 2014-06-21T19:25:42 | 2014-06-21T19:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Tässä moduulissa lasketaan gridiin liittyviä energiatermejä:
Elektronien kineettinen energia T(n(r))
Vaihtokorrelaatioenergia E_xc
Elektronien Coulombin energia.
Atomiytimien aiheuttama potentiaali V_ext*n(r)
"""
from sys import exit
from laskentaa import tee_gauss_sei... | [
"markus.kaukonen@iki.fi"
] | markus.kaukonen@iki.fi | |
179469489a69ca59e2930a07ad28fb243302e0f3 | 12c1b33e27d841bb25899d6601f1de75b522d88d | /python/udacity/draw_turtles.py | 6d504799dbe85482a068035ecfff4a600108ee55 | [] | no_license | conflabermits/Scripts | ec27456b5b26ad7b1edaf30686addff2cacc6619 | c91ef0594dda1228a523fcaccb4af3313d370718 | refs/heads/main | 2023-07-06T21:41:12.033118 | 2023-06-25T19:24:54 | 2023-06-25T19:24:54 | 66,151,253 | 4 | 0 | null | 2023-09-10T19:56:17 | 2016-08-20T14:35:34 | HTML | UTF-8 | Python | false | false | 893 | py | import turtle
def draw_square(a_turtle):
for i in range(0, 4):
a_turtle.forward(100)
a_turtle.right(90)
def draw_circle(a_turtle):
a_turtle.circle(100)
def draw_triangle(a_turtle):
for i in range(0, 3):
a_turtle.forward(100)
a_turtle.left(120)
def draw_turtles():
... | [
"christopher.dunaj@gmail.com"
] | christopher.dunaj@gmail.com |
82b163e0655d3a3d299eb6ece605cf2fcc3c9873 | 58873a31cf82764c326d9ad61a93212387c5cd52 | /odoo_academy/wizard/.ipynb_checkpoints/sale_wizard-checkpoint.py | 5341ed4e814de6a69b947c0399ca97294d65e167 | [] | no_license | sebastian2161/ejercicio1 | 60cec40eb33421d9168458ccf93e24c0d74eec9f | 8bd0f2c46bbc3bd939274416cb1a65de28cc29c3 | refs/heads/main | 2023-08-31T18:37:55.990171 | 2021-10-11T03:36:46 | 2021-10-11T03:36:46 | 406,099,568 | 0 | 0 | null | 2021-09-25T01:07:29 | 2021-09-13T19:17:00 | Python | UTF-8 | Python | false | false | 1,638 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class SaleWizard(models.TransientModel):
_name = 'academy.sale.wizard'
_description = 'Wizard: Rapida orden de venta para estudiantes de session'
def _default_session(self):
return self.env['academy.session'].browse(self._... | [
"sebastiancoll25@gmail.com"
] | sebastiancoll25@gmail.com |
222738c4f873a2f9f0c0cadf200ebad4fb8da0ce | 816ef0bc4abc1ebeba9fde7f857fa59f31c4b933 | /lab04/jsonparser_test.py | 98475d3a92bc43b662dc9523b6ff6e2623a343cb | [] | no_license | Gogomoe/SUSTech_CS323_works | cc7dbb97df8a85055dc23f1c0dc72c72bba47901 | 5a142c665be8c5cf5342f2e89d16aea6e6d756d1 | refs/heads/master | 2023-02-14T04:39:13.835332 | 2021-01-07T13:11:04 | 2021-01-07T13:11:04 | 293,798,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | #!/usr/bin/env python3
import pathlib
import re
import subprocess
DATA = pathlib.Path('data')
def jsonparser_output(json_file):
out = subprocess.check_output(['./jp.out', json_file])
return out.decode().strip()
def check_jsonchecker_fail_withlexical():
data = DATA/'jsonchecker'
for failjson in dat... | [
"gogo81745.moe@gmail.com"
] | gogo81745.moe@gmail.com |
42835590fa2d772e8fd35ff631574e8c3dda8650 | 2f30cf20d58e2cde4037441e67213223c69a6998 | /lesson19_接口2/d02request.py | 34aa5e3f987860394f8ccb9da1afab99314bd07e | [] | no_license | zengcong1314/python1205 | b11db7de7d0ad1f8401b8b0c9b20024b4405ae6c | da800ed3374d1d43eb75485588ddb8c3a159bb41 | refs/heads/master | 2023-05-25T07:17:25.065004 | 2021-06-08T08:27:54 | 2021-06-08T08:27:54 | 318,685,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """
第三方库
pip install requests
python 用来发送HTTP 请求
"""
import requests
#发送get 请求
url = "http://www.keyou.site:8000/projects/"
p = {"a":"b"}
resp = requests.get(url,params=p)
print(resp)
print(resp.status_code)
# 字符串
print(resp.text)
# 字典
print(resp.json())
# post请求
url = "http://www.keyou.site:8000/user/login/"
# 请求参数:... | [
"237886015@qq.com"
] | 237886015@qq.com |
2366d7935f4314c749785ebdab31ec3c1f338625 | 2d80296b4f13e3a5fb9380b89c626d418eb53a60 | /python/8_kyu/Simple_multiplication.py | 6108b15497b97099450c429569df0c4e551eb5e9 | [] | no_license | ivan3123708/codewars | 680484b32ac6347ebbcf311b5b98fc697a063927 | 73e99695a6e27c30baf17b8d4841462d702810a3 | refs/heads/master | 2020-03-19T08:32:05.863217 | 2018-10-28T00:17:34 | 2018-10-28T00:17:34 | 136,212,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | def simple_multiplication(number):
if number % 2 == 0:
return number * 8
else:
return number * 9 | [
"ivan3123708@gmail.com"
] | ivan3123708@gmail.com |
7ff1948228505514fa2fc18802fadd69dee1abbb | 81cac5d646fc14e52b3941279d59fdd957b10f7e | /tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py | 293ecd07dd2394ceabecc9061354e93c5bf4a172 | [
"Apache-2.0"
] | permissive | arsaboo/home-assistant | 6b6617f296408a42874a67a71ad9bc6074acd000 | 554e51017e7b1b6949783d9684c4a0e8ca21e466 | refs/heads/dev | 2023-07-27T20:56:52.656891 | 2022-01-19T19:30:57 | 2022-01-19T19:30:57 | 207,046,472 | 2 | 0 | Apache-2.0 | 2019-09-08T01:35:16 | 2019-09-08T01:35:16 | null | UTF-8 | Python | false | false | 1,226 | py | """
Regression tests for Ecobee occupancy.
https://github.com/home-assistant/core/issues/31827
"""
from tests.components.homekit_controller.common import (
DeviceTestInfo,
EntityTestInfo,
assert_devices_and_entities_created,
setup_accessories_from_file,
setup_test_accessories,
)
async def test_e... | [
"noreply@github.com"
] | arsaboo.noreply@github.com |
0daffa52db933f8ae220251c9fef1d3d8ab76afb | 403ddbd5e1b59392991bf8ef3d8c20ead27e7e5f | /trader/language/chinese/constant.py | e79010c64ad91cfd0e3abd14cef2c66b5d034b15 | [] | no_license | guanzidashu/vnpylib | f2b44e08d82d6a24ed154535fc98b936eeb4d8d9 | 6ee29f993070360b4ceef02e04b277ff3c9a8f14 | refs/heads/master | 2020-03-18T19:34:09.935449 | 2018-06-09T16:47:49 | 2018-06-09T16:47:49 | 135,162,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py | # encoding: UTF-8
# 默认空值
EMPTY_STRING = ''
EMPTY_UNICODE = u''
EMPTY_INT = 0
EMPTY_FLOAT = 0.0
# 方向常量
DIRECTION_NONE = u'无方向'
DIRECTION_LONG = u'duo'
DIRECTION_SHORT = u'kong'
DIRECTION_UNKNOWN = u'未知'
DIRECTION_NET = u'净'
DIRECTION_SELL = u'卖出' # IB接口
DIRECTION_COVEREDSHORT = u'备兑空' # 证券期权
# 开平常量
OF... | [
"635518957@qq.com"
] | 635518957@qq.com |
6b680b7c1510ab90715898f56a24b0345c4068df | 0953e96ffe4e29e863fc876a8058c1940a44fdd4 | /range.py | 7027c250497402ec52e235da21eb7a2c4b3f1c06 | [] | no_license | Harpal008/Python_Programs | 651c0adb98302056acf6d605ac424a941bdd24c8 | 6e13f89a78be266c180b86c67b5fb2c543e42615 | refs/heads/master | 2020-04-17T00:02:00.864875 | 2019-01-16T12:15:43 | 2019-01-16T12:15:43 | 166,034,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 21 18:04:54 2018
@author: harpal
"""
l=[1,2,3,4,5]
for num in l:
print (num)
for num in range(1,6,2):
print( )
x=range(1,6,2)
x2=list(x)
print(x2) | [
"noreply@github.com"
] | Harpal008.noreply@github.com |
f4b310eeda479456a3e4f29b67d0d49ef4b40cdc | c951f19c5a1ffe1772772eab3e909d85164e671f | /{{cookiecutter.project_slug}}/code/custom_verification/verify_and_redirect/redirect.py | b2e0ef2ce9df63162f35426006044681310a97e3 | [] | no_license | barabanpan/aws-cognito-serverless | dd2d463368aeacbecda32d7f490d0962fe21f060 | 4b069684e016517528e5ccb1bb8048337291e28f | refs/heads/main | 2023-07-19T10:17:20.403070 | 2021-09-12T07:05:38 | 2021-09-12T07:05:38 | 312,616,616 | 1 | 0 | null | 2020-12-29T15:48:30 | 2020-11-13T15:43:03 | Python | UTF-8 | Python | false | false | 1,633 | py | import boto3
import logging
import os
from utils import redirect_to
cognito = boto3.client("cognito-idp")
CLIENT_ID = os.environ.get("COGNITO_CLIENT_ID")
USER_POOL_ID = os.environ.get("COGNITO_USER_POOL_ID")
REDIRECT_AFTER_VERIFICATION = os.environ.get("URL_FOR_REDIRECT_AFTER_COGNITO_VERIFICATION")
REDIRECT_WHEN_COD... | [
"nataliia.dyshko@jetsoftpro.com"
] | nataliia.dyshko@jetsoftpro.com |
af4765dd6396d538544701205a413d2b3b2edca6 | 16adaa2980c6d72945721cf5b58cc44fd7e3cb9c | /conditions.py | 7c12d3ae0e533c6e51b6d425626b6260e0a16bd2 | [] | no_license | sathishtammalla/PythonLearning | d23a7c267ff605dc0762b2d45d9769e7a2f61645 | 4a1394b5e831bea378b13be34be3cc87505538f4 | refs/heads/master | 2020-05-02T23:36:15.230662 | 2019-04-05T08:24:45 | 2019-04-05T08:24:45 | 178,284,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | def conditions():
"""IF Condition Check Program"""
print('IF Conditions Check Program')
print('Enter a Number for X')
x = input()
print("Entered X Value :{0}".format(x))
print('Enter a Number for Y')
y = input()
print("Entered Y Value :{0}".format(y))
if x < y:
print('X is le... | [
"stammall@starbucks.com"
] | stammall@starbucks.com |
ef12a61a3f9668366b02a4f68d57fc5cb87247f6 | f9d4eee81dda90e41ee755f333e0d787dab749db | /eth2/beacon/scripts/quickstart_state/generate_beacon_genesis.py | 2ce8f76b744662551c3a38e4b0081d708144e70a | [
"MIT"
] | permissive | Palem1988/trinity | f10f21119a7ea98a7fc9458e5ff05b1e4cf6a021 | 79c21f8ae90bc765a78cb8052af0e4271e4c25e1 | refs/heads/master | 2022-02-20T05:21:18.576796 | 2019-09-24T22:09:21 | 2019-09-24T22:40:24 | 210,869,348 | 0 | 1 | MIT | 2019-09-25T14:45:12 | 2019-09-25T14:45:04 | null | UTF-8 | Python | false | false | 1,982 | py | from pathlib import Path
import time
from eth2._utils.hash import hash_eth2
from eth2.beacon.genesis import initialize_beacon_state_from_eth1
from eth2.beacon.tools.builder.initializer import create_mock_deposits_and_root
from eth2.beacon.tools.fixtures.config_types import Minimal
from eth2.beacon.tools.fixtures.loadi... | [
"r.alex.stokes@gmail.com"
] | r.alex.stokes@gmail.com |
3ea5bee3bd4871ba78ed230af082be4efae65c9f | d76224386c2b359d6d3228567cbb274fea8fcaab | /final_back/asgi.py | 3b0602bc765f04f8b1a90f1b18b5d63842de6062 | [] | no_license | SSAFY-5th-seungwoon/Moya_backend | 2a270525dc3d0d53ee4b42274696d19f84edce9d | ac8d7004dafef9a4f9030dbe3a5762661f3f06ac | refs/heads/master | 2023-05-22T20:45:07.230178 | 2021-06-16T07:44:05 | 2021-06-16T07:44:05 | 369,787,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for final_back project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"swhan9404@naver.com"
] | swhan9404@naver.com |
0f3aaea69808c239b235c44f472f9e05b0f6e1ab | 63cf686bf970d28c045719de2f0e7e9dae5bed15 | /Contains Duplicate .py | f7d07154cc28b4a5d52c30ce29ed8bc9695a4146 | [] | no_license | menard-noe/LeetCode | 6461bda4a076849cf69f2cd87999275f141cc483 | 4e9c50d256c84d1b830a7642b265619a0b69d542 | refs/heads/master | 2022-12-13T09:41:41.682555 | 2020-09-14T12:46:53 | 2020-09-14T12:46:53 | 282,481,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import math
from typing import List
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
dico = dict()
for num in nums:
if num in dico:
return True
else:
dico[num] = 0
return False
if __name__ == "__main__":
# e... | [
"noe.menard4@gmail.com"
] | noe.menard4@gmail.com |
74b87ca9cb07bcf0b829fb9f8d1acca0b0fd7381 | 182dd5305aedeaa197f302c0d830ab85413cdd53 | /plugins/Filters/Convert2Gray/Convert2Gray.py | 68772b2605be2aa6796c95576bfe72f1a8208b5f | [
"MIT"
] | permissive | UmSenhorQualquer/workflow-editor | 016dbf47759b2572a811b80fc8bc79c88404c4ab | 6f836f99e155c2f503cf59adf4e8b8b574184e6d | refs/heads/master | 2021-01-24T18:58:13.224476 | 2017-07-20T10:00:10 | 2017-07-20T10:00:10 | 86,163,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import core.utils.tools as tools, cv2
from core.modules.OTModulePlugin import OTModulePlugin
from core.modules.ModuleConnection import ModuleConnection
from datatypes.TypeComponentsVideoPipe import TypeComponentsVideoPipe
from datatypes.TypeColorVideoPipe import TypeColorVideoPipe
from datatypes.TypeColorVide... | [
"ricardo.ribeiro@neuro.fchampalimaud.org"
] | ricardo.ribeiro@neuro.fchampalimaud.org |
155c373da8447288c1aafebb642fba1578142292 | 221e648122feca6be8490ea1e149ea8d16b46e1b | /panorama_stitch.py | 9d994e5bb260c572781b7a82404c846278ad53de | [] | no_license | Hanuu/panorama | 2cc8cf92ad4037acbc14fe07d43144de3de4063a | a7af3343218ac824870509ab742e62a9da5923b7 | refs/heads/master | 2020-04-01T19:56:48.743362 | 2018-12-03T05:52:15 | 2018-12-03T05:52:15 | 153,579,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | """
Panorama Stitching Class
Given two images, return a stitched image.
Two images could be rotated.
Design Doc: https://docs.google.com/document/d/1785FwZ11CizzumJ3CRqsoBdRwDlqTid2EWIUzbM2B2I/edit?usp=sharing
"""
import numpy as np
import imutils
import cv2
class PanoramaStitcher:
def __int__(self):
p... | [
"minjunkwakwak@gmail.com"
] | minjunkwakwak@gmail.com |
b41947cab9b6e2b7a277cf5fc0c50563580e1d5b | ca2054e1cce228c0ff310797f4f4e884dcfd65f0 | /thunder/ndarray/__init__.py | 01a26e2e659e8548af33ed8857b96085e859f328 | [] | no_license | gzhcv/deeplearning_framework | 32a6e0c5d240e97fede129cb9795000b0169465d | 3b535e4d7ad06f0855fc29b8d236eb9f77e23f74 | refs/heads/master | 2023-06-16T23:19:07.457070 | 2021-07-15T11:40:57 | 2021-07-15T11:40:57 | 384,694,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from . import ndarry
from . import gpu_op
__all__ = ['ndarry', 'gpu_op']
| [
"guozhaohong@huawei.com"
] | guozhaohong@huawei.com |
cc8600545b3e22e4cd60c9f8edcd14f0dad2ed45 | b8cb2d3dffdba0bec43352ae77fb81b7e4caf91d | /src/face_rec_flask.py | 16868f2d812c1b2b19d01d0f162eb09d733753ae | [] | no_license | thangnch/MiAI_FaceRecog_2 | f873b79a1353af3992ce3389f74d155918257f3a | cc0524adb708b4b2ed4b23f486f19431670efc59 | refs/heads/master | 2023-04-02T11:13:33.182950 | 2022-08-06T14:49:53 | 2022-08-06T14:49:53 | 207,716,157 | 10 | 20 | null | 2023-03-24T23:39:48 | 2019-09-11T03:35:56 | Python | UTF-8 | Python | false | false | 3,796 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from flask import Flask
from flask import render_template , request
from flask_cors import CORS, cross_origin
import tensorflow as tf
import argparse
import facenet
import os
import sys
import math
import pickl... | [
"noreply@github.com"
] | thangnch.noreply@github.com |
1463b421ec5ef0507e7c270799171f92034fc335 | e090d298340aa0cb12fc0d2ca3874cf4c9d9c547 | /text-analysis-scripts/preprocess_split_data.py | aa465036a8cdf54938b7b47a8a4832cddbdd43ee | [] | no_license | mslovett21/crisis-computing | 1d00b7f665ff63b48359b4ced6e06e133b5996b3 | 33b296426df78cd9051934f0aa36c5537a969ba3 | refs/heads/master | 2023-07-29T13:23:33.536024 | 2021-09-16T04:22:58 | 2021-09-16T04:22:58 | 309,000,861 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import os
import pandas as pd
import numpy as np
from shutil import copy
import glob
import nltk
from nltk.corpus import stopwords
from itertools import chain
nltk.download('stopwords')
import re
#access data folders for csv
out_path = r'../data/tweets_csv'
INFORMATIVE_TWEETS = out_path + "/INFORMATIVE_TWEETS/"
NONIN... | [
"patrycja.krawczuk@gmail.com"
] | patrycja.krawczuk@gmail.com |
4011086557663f0dd2f3045fdc0b4dd03086183d | 56490255e417e65848b7774be49e9602363f238b | /pywinfuse/tools.py | fa88567eb928f7fb4de206fc6587f0932a8a771e | [
"MIT"
] | permissive | weijia/pywinfuse | a5668e567f46548d0e871c2cacd725b818bfce74 | 249196a70cbcc09b74288d4dc1fa04b25b7c6105 | refs/heads/master | 2022-02-04T23:19:27.320602 | 2022-01-30T15:21:17 | 2022-01-30T15:21:17 | 36,103,070 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | from ctypes import *
def setDwordByPoint(valueAddress, value):
'''
valueAddress[0] = value && 0xff
valueAddress[1] = (value >> 8) && 0xff
'''
i = 0
while i < 4:
memset(valueAddress+i, value&0xff, 1)
i += 1
value >>= 8
def setLongLongByPoint(valueAddress, value):
setDwordByPoint(valueAddres... | [
"wang.weijia@a5b76d48-45a9-11de-a65c-33beeba39556"
] | wang.weijia@a5b76d48-45a9-11de-a65c-33beeba39556 |
fb523bd643df5c81f1bc335ef9c4213751f44767 | 2d0fb78dde6029a971ab0310513e1d89811ce476 | /bilibili/bili/bili/spiders/getFansFromSpaceFans.py | 1b032d33ff6dfb86c63006426f967c3ee9b0d672 | [] | no_license | biubiudragon/WebCmdMining | a7fd03a54363c1e74aea0e0bf81ffbee85eacdee | bd7efc80070ff7d63c89df0e6579c7df1502c3a1 | refs/heads/master | 2021-05-30T23:53:20.900803 | 2016-03-10T00:39:59 | 2016-03-10T00:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | # -*- coding: utf-8 -*-
__author__ = 'AllenCHM'
from scrapy.spider import BaseSpider
import json
import pymongo
from scrapy import Request
from datetime import datetime
import re
from bili.settings import MONGOHOST
class GetFansFromSpaceFansScrapy(BaseSpider):
name = u'getFansFromSpaceFans'
allowed_domains =... | [
"chengchuanming@hotmail.com"
] | chengchuanming@hotmail.com |
e42f783b5a1c733909130de9eb7ff7a225dfbaf1 | f1131c4079f437186cf92a75b06a472993bd67dd | /Superscalar-Processor/simulator.py | d25fd0ea90c5efadaae5f0a0086e7c764b865bda | [] | no_license | pradeep90/Processor-Simulator | c4fc5c92f3e29d66dc70e4897d210d32221d8295 | ecac52f69633136b72c85ddf41215b556e21cf9f | refs/heads/master | 2021-01-19T14:59:17.100469 | 2012-12-07T07:15:12 | 2012-12-07T07:15:12 | 6,086,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from processor import Processor
import sys
def main():
try:
source_code_file_name = sys.argv[1]
except:
source_code_file_name = 'human-code.txt'
# source_code_file_name = 'human-code-2.txt'
code_file = file(source_code_file_name, 'r')
initial_values_file = file('./initial_value... | [
"gohanpra@gmail.com"
] | gohanpra@gmail.com |
4dab74f654c68c3116d92d88b95a8cbe01d07417 | 6bc2f280299458357a590f18f40d61a784abb312 | /ColumnReinforcement/SingleTieMultipleRebars.py | 44ed628473a9568231f60431940589e8f5c9898f | [] | no_license | cadsimula-xin/FreeCAD-Reinforcement | a3a35f2817c0a2c5ec25608d44e29364bc4f7c1c | f9e5658b5a5a6943c3c2c10ba2b2bb2c745937a3 | refs/heads/master | 2021-03-14T12:16:14.481501 | 2020-03-12T07:55:36 | 2020-03-12T07:55:36 | 246,758,943 | 0 | 0 | null | 2020-03-12T06:21:15 | 2020-03-12T06:21:15 | null | UTF-8 | Python | false | false | 50,771 | py | # -*- coding: utf-8 -*-
# ***************************************************************************
# * *
# * Copyright (c) 2019 - Suraj <dadralj18@gmail.com> *
# * ... | [
"dadralj18@gmail.com"
] | dadralj18@gmail.com |
123dd34179bbc5e5a5f6710a9269b70888902b80 | 485549f6ceedd40fb8d22b23403df011eb13d988 | /utils/import_csv.py | 8fe3facec6b4ad1564e34ee2a588621250f0049b | [
"MIT"
] | permissive | aasmune/RevNet | f1f6dbc4c20bd2baa02601f2609125061d30bcdd | f96edce499b2ba7d80c578577b06ede6572b9367 | refs/heads/master | 2020-04-21T06:57:57.883310 | 2019-03-20T11:29:42 | 2019-03-20T11:29:42 | 169,380,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from numpy import genfromtxt, isnan, interp, zeros
import pandas
def read_csv_files(filenames):
data = [None for i in range(len(filenames))]
for i in range(len(filenames)):
t = pandas.read_csv(filenames[i], delimiter=',').values
data[i] = t[~isnan(t).any(axis=1)]
return data
def create_s... | [
"aasm.eek@gmail.com"
] | aasm.eek@gmail.com |
6fba70adc9002e1c1d465e9e22bc0f20dd4e571d | 0100687bae959dff1b14199d3f901f82e4dae019 | /website/urls.py | d287c37bd62256e38e6c71c5cab4fbc2c7495fbb | [] | no_license | Kabzel55/Django_Blog | eb39f1ed8b28273b32ecdca084638f4590a98639 | d4d6599d0dbacf4002ec5655a6704d9f35da8513 | refs/heads/master | 2022-08-26T22:27:51.506612 | 2020-05-27T13:23:37 | 2020-05-27T13:23:37 | 267,325,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from django.contrib import admin
from django.urls import path, include
from users import views as user_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('register/', user_vi... | [
"patryk.koryga@pollub.edu.pl"
] | patryk.koryga@pollub.edu.pl |
03c09f5406d6286376fef2f47a651851ed002f74 | 7d780e632edbd73b9df391394fc1b365851108af | /app/worker/base_worker/trainer.py | e1144e6c49f789c469161dfbb68c5808fca8fe71 | [] | no_license | rompear/attention_rl | 1bcaf998a69e81e0947bc3b3e7f00e808d5647d0 | d45c04380a25587870c550742a9694de351c7a8f | refs/heads/master | 2020-07-31T11:47:11.451104 | 2019-11-19T13:07:07 | 2019-11-19T13:07:07 | 210,594,294 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,119 | py | import torch
import gym
import app.util.wrapers_atari.atari_wrappers as Atari_Wrappers
import numpy as np
from app.config.config_factory import ConfigFactory
from app.util.logger.logger import Logger
from typing import Dict, Any, Tuple, List, Union
from app.util.wrapers_atari.atari_wrappers import LazyFrames
class Tr... | [
"romeogoosens94@gmail.com"
] | romeogoosens94@gmail.com |
f084f2434510565b6756fe2e22ff2eee7bd9ae65 | 52272ef3de9036a1b23b35047ceb90a2027df1f3 | /selenium_doc/TEST/test1.py | 23254c71b70f3e7247cd31f2a4df400aa90ba122 | [] | no_license | luokeke/selenium_python | 9f2883cc158e473902e0c4bbf9fca20ecb61bfda | 3cc05034afd0bc0930921812393bd572db868fb3 | refs/heads/master | 2020-08-25T02:51:16.064938 | 2020-04-20T10:03:52 | 2020-04-20T10:03:52 | 216,950,778 | 3 | 1 | null | 2019-10-23T03:39:52 | 2019-10-23T02:29:06 | null | UTF-8 | Python | false | false | 849 | py | #!/usr/bin/env python
#-*- coding:utf8 -*-
#@author: 刘慧玲 2018/5/22 19:15
from selenium import webdriver
from time import sleep
from login01 import *
'''
脚本作用 :服务器ssp功能
'''
#批量删除存储空间
driver = webdriver.Firefox()
driver.delete_all_cookies()
driver.maximize_window()
# 直接访问景安站存储空间链接,并登录。用户名密码可修改
Login().Ky_login(driver,"l... | [
"1326677806@qq.com"
] | 1326677806@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.