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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7c0653eb61fae0c91e47ce16d21e2ac393c24afa | 67dd0d9d548c52b2a387d011b1c7f8055d84e7c7 | /functions/preprocessing.py | efbdc9261b1c0a17fc8fce302f3b1cf2ca27c6a2 | [] | no_license | jasperhajonides/NLP_data_extraction | bbf68cde63e88833f7aac9d0f9d06b4318b01740 | 32a33ccfa51948e5a1dfc16954085e58f18ffa74 | refs/heads/master | 2023-08-21T23:23:39.879475 | 2021-10-14T14:14:50 | 2021-10-14T14:14:50 | 412,777,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,721 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# preprocessing.py
"""
Contains functions to obtain company information and pre-processing
for metric extraction pipelines.
"""
import re
import spacy
import pandas as pd
from spacy.matcher import Matcher
from spacy.matcher import PhraseMatcher
from cleaning import parse_f... | [
"38157436+jasperhajonides@users.noreply.github.com"
] | 38157436+jasperhajonides@users.noreply.github.com |
e84f19b9c8b1db3788021d59bdc4e9e6c8cb1ff2 | 5ecb37b8af50db1dc56a67c66cf0a9760ac941b4 | /shuffle-list.py | b6038784978b19c107d1fca9587dde12d3cfdbdb | [] | no_license | vipul-royal/a9 | 9f3796d46693e1531edac95c54827f841787aedf | 5b72a084394f4ebbc26696dac019517777b322c0 | refs/heads/master | 2022-11-11T12:15:37.597523 | 2020-07-01T08:35:37 | 2020-07-01T08:35:37 | 276,320,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import random
List=[1,2,3,4,5]
random.shuffle(List)
print(List) | [
"noreply@github.com"
] | vipul-royal.noreply@github.com |
1a88864659f29226f17cd86959864729da92d13f | 597c4f48332251552a602122bb3d325bc43a9d7f | /chapter02_hard_to_think/02_make_n_array/05_access_with_index.py | 425284847bd1098e7e4bbcc95facbdfb91070525 | [] | no_license | Kyeongrok/python_algorithm | 46de1909befc7b17766a57090a7036886361fd06 | f0cdc221d7908f26572ae67b5c95b12ade007ccd | refs/heads/master | 2023-07-11T03:23:05.782478 | 2023-06-22T06:32:31 | 2023-06-22T06:32:31 | 147,303,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | string = "ABCDEDE"
array = []
for i in range(len(string)):
array.append(0)
print(array, len(array))
print("index 0:",array[0])
print("index 1:",array[1])
| [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
cf72eebe1eb66416c14fca98d83ac5a50194f49d | 1c76418fee90f80368f2f843007ebd6a37bfc01f | /RunSelections.py | c40316494b127efd3c152302c19fdb7029587208 | [] | no_license | SyntaxVoid/HighRedshiftGalaxyFinder | e5dfb244bbba53c310de9b7fe414990b04bcb3a0 | 83fad048e37d65a1a7c98727c0d4164c8e84922a | refs/heads/master | 2021-01-20T21:59:06.211431 | 2015-11-19T04:24:58 | 2015-11-19T04:24:58 | 42,703,816 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | import time
from SelectionCriteria import *
from GLOBALS import *
from libs.jtools import write_table
def stats(drop,name,num_obj,lst):
print(" #{:5d} objects out of {:5d} met the {:4s} dropout criteria from {}".format(len(lst),num_obj,drop,name))
def run(catalog,destination,header,col_dict,rms):
print("\... | [
"j.gresl12@gmail.com"
] | j.gresl12@gmail.com |
99e84d87c32a484c39ba9f6e7de023e400f63234 | bceda83f0c4932d95c27f4c04909e6f921debb5d | /createModelUi_.py | 2825cc13bdf23abc54587f8e99c7ad2891814f99 | [] | no_license | JayDesai007/temp | 104e5a307ab2e2b0992d9b59c6132dea0cc8ce5e | c579e3e3ec6f4440496a86465d98ad94b000e579 | refs/heads/master | 2023-01-03T22:49:54.288173 | 2020-10-26T05:37:48 | 2020-10-26T05:37:48 | 283,546,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,655 | py | from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_crateModel(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(604, 498)
self.verticalLayout_3 = QtWidgets.QVBoxLayout(Form)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.horizont... | [
"noreply@github.com"
] | JayDesai007.noreply@github.com |
7ed130e1399db9ad05d646f9c77379b76bb3a328 | 8ccccc791635a2765394e2c15657249b7bcd33c0 | /__init__.py | 2250fa2650613daae0811236fa7bdcc1ba8a6a86 | [] | no_license | dominic-dimico/notebook | a0942cfea021f6531a6af4179388c6566ca208ae | b57633b4ea9c6a6112eb806fc5a4d95e4615a1f1 | refs/heads/master | 2021-11-09T16:41:24.363825 | 2021-10-11T00:54:57 | 2021-10-11T00:54:57 | 166,492,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from notebook import notes
| [
"dominic.dimico@gmail.com"
] | dominic.dimico@gmail.com |
48e4e5a6a3a110cf5e6d4e4a3fc9b4ee816b1c7d | 4b5564821a413483e4c2bb007be4c5afb62e5822 | /Others/codes/Unclassified_003 13. Roman to Integer.py | bd7c632c7f1b34fb2c59da93fb458289d32da45b | [] | no_license | vabbybansal/Java | 7225538066a4888fe9d688f81b895772e8422445 | 0b3afabc6c309cd230a7edfa220998983f5a9e45 | refs/heads/master | 2020-05-17T15:50:34.220343 | 2020-04-10T04:18:08 | 2020-04-10T04:18:08 | 183,803,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
#
# Symbol Value
# I 1
# V 5
# X 10
# L 50
# C 100
# D 500
# M 1000
# For example, two is written as II in Roman numeral, just two one's added to... | [
"vaibhavb@uber.com"
] | vaibhavb@uber.com |
83f0d591575f60700000456b9573bf6b3ac98c1a | 3a1ea6d22733096f2a0745d9d79a40ef68f27a3a | /StonksStreamlit/show_tickers.py | a868aed87889543b1910a71285218d3569ce3060 | [] | no_license | foorenxiang/stonks | 9a055989dcad92cb9d457b1ed7901eb6386c4caa | 6560f198db4d35c7ff3f8ebe488a46c0ce69cb1b | refs/heads/main | 2023-05-31T15:31:19.108410 | 2021-05-02T06:08:14 | 2021-05-02T06:08:14 | 342,834,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import yfinance as yf
import streamlit as st
class ShowTickers:
tickerSymbols = set()
@classmethod
def show_tickers(cls, tickerSymbols={}):
if not tickerSymbols:
st.write("### Please add ticker symbols to tickerSymbols.py to continue...")
cls.tickerSymbols = tickerSymbols
... | [
"foorenxiang@gmail.com"
] | foorenxiang@gmail.com |
858e1b1a75af0e6a90e46ff1a6acd5c9f11aa181 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4446/codes/1670_2966.py | 496840b47310b8dfdbcdc1f6ddf7374ba6acfa67 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | m=input("para mulheres: ")
p=float(input("valor do ingresso: "))
quant=int(input("quantidade de ingressos: "))
if m.upper()=="S":
print(round( p * quant , 2))
else:
print(tot) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
521e068611c8bfa84d4b1f26b049b105d725a73c | 0b1621d8590a89b1cd285ee0e73b65b1ba7a24a9 | /aiohttp_pydantic/oas/view.py | 4aab93f84ed4a49051a982b08ed272264b6f364f | [
"MIT"
] | permissive | spinenkoia/aiohttp-pydantic | a572f3c4accb8ca855592f3b56114f4736b86ab0 | 7492af5acf20c4d325ec863b9987f6107a05abd7 | refs/heads/main | 2023-03-31T13:23:35.160988 | 2021-03-27T11:34:39 | 2021-03-27T11:45:19 | 354,247,925 | 0 | 0 | MIT | 2021-04-03T09:15:16 | 2021-04-03T09:15:15 | null | UTF-8 | Python | false | false | 6,902 | py | import typing
from inspect import getdoc
from itertools import count
from typing import List, Type
from aiohttp.web import Response, json_response
from aiohttp.web_app import Application
from pydantic import BaseModel
from aiohttp_pydantic.oas.struct import OpenApiSpec3, OperationObject, PathItem
from . import docstr... | [
"vincent.maillol@gmail.com"
] | vincent.maillol@gmail.com |
fb78a211e54f0c7e3ca6b79b30d6779ae6515303 | dcb417f91e23ffca0498d0c6fd03e4a3ddc9a41a | /manage.py | b67daa79fbd5d3573c20f88dd3dd7f464ecb247d | [] | no_license | cdkd321/month_refresh | d75cde845b1c8b707980be2bf9d89b65d3ac230a | c92f2efd3f2a6d93b06f4ed9e70a10493826380a | refs/heads/master | 2021-05-24T18:28:15.997555 | 2020-05-03T18:23:56 | 2020-05-03T18:23:56 | 253,698,847 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "month_refresh.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"zhangwenjie123"
] | zhangwenjie123 |
9e2a90e7c5eaf59d6e68232aa46ab1b466154805 | be5401cad765484d2971b160606ba89596364bb8 | /util.py | ef8a29a742a0ee83587f470f90e8f9e700aa01d2 | [] | no_license | Jashpatel1/Collaborative-Pathfinder | 60117b1aa7baa802c2bda94f8c15aa5563492a90 | 24a6f7772997b509b6fc8a2101d9b50cbfba6d25 | refs/heads/main | 2023-01-08T13:02:16.370373 | 2020-11-16T03:39:10 | 2020-11-16T03:39:10 | 305,340,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | import pdb
INVALID = -999
HARD_PLACE = -999
ANY_TIME = -999
SOMETIME = 25
tLIMIT = 25
TWAIT = 0
WAIT_FACTOR = 0.51
MAX_STEPS = 45
UNOCCUPIED = 0
IS_ROCK = -99
MOVE_SPEED = 1
MSG_BUFFER_SIZE = 3
FRAME_HEIGHT = 350
FRAME_WIDTH = 600
FRAME_MARGIN = 10
CELL_MARGIN = 5
MAX_AGENTS_IN_CELL =... | [
"patel.5@iitj.ac.in"
] | patel.5@iitj.ac.in |
90854df211652602912ca3d8916673a350afd52e | 72765c1736a10b86be8583dbd694906aff467068 | /Decorators/Decorators.py | 30430da271cea99a7e115dee138898fc154452ec | [] | no_license | taison2000/Python | 05e3f3834501a4f5ef7a6260d8bf3d4ce41930f3 | 44079700c3db289f92792ea3ec5add6a523f8eae | refs/heads/master | 2021-10-16T07:43:55.202012 | 2019-02-09T02:22:44 | 2019-02-09T02:22:44 | 103,322,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | #!C:\Python34\python.exe
#!/Python34/python
#!/usr/bin/python
# -*- coding: utf-8 -*-
## ----------------------------------------------------------------------------
"""
Decorator
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A decorator is a function that takes one function as... | [
"noreply@github.com"
] | taison2000.noreply@github.com |
c57ad88b86dbdb3334726bdb816321673fbc3b4c | 696a7250b8937e816bac365a909e669db2988017 | /backend/UKS_Projekat/urls.py | 7b1ff90c1ea4726a54035242b89befa5cfee0a0f | [] | no_license | DejanS24/UKS_Project | 543a640f5440210e16d370e38a9538bb0d264426 | 79292219b41daf97a07d1ccc3a60a106f7dd107f | refs/heads/master | 2023-03-06T05:23:19.841104 | 2021-02-20T12:08:50 | 2021-02-20T12:08:50 | 286,275,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """UKS_Projekat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"dejans1224@gmail.com"
] | dejans1224@gmail.com |
0a31f92deebd0a0dd62788559138ee467f4f0339 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/stripe/stripe/api_resources/payment_method.pyi | da90f0e959feaaa22a20224cc8bd87f30de6df07 | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 510 | pyi | from typing import Any
from stripe.api_resources.abstract import (
CreateableAPIResource as CreateableAPIResource,
ListableAPIResource as ListableAPIResource,
UpdateableAPIResource as UpdateableAPIResource,
custom_method as custom_method,
)
class PaymentMethod(CreateableAPIResource, ListableAPIResourc... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
465e9b543a4ca594180a5b5aacd3f04e972ddc16 | 7362f2722ffe1144bf69c416080437f93a82c035 | /projects/donkeycar/donkeycar/templates/complete.py | 93ec380ade145053cbd4c90d4243274c8ec83847 | [
"MIT"
] | permissive | Indianaat/Kart-MANI-IA | 696b670bea355288be4e5f250bb8acdd625c3fa2 | 687a5f36cb2fc661efa00007fd80c48bb3c773ae | refs/heads/main | 2023-06-02T15:39:31.128015 | 2021-06-12T11:34:30 | 2021-06-12T11:34:30 | 377,418,911 | 0 | 0 | null | 2021-06-16T08:05:23 | 2021-06-16T08:05:22 | null | UTF-8 | Python | false | false | 30,870 | py | #!/usr/bin/env python3
"""
Scripts to drive a donkey 2 car
Usage:
manage.py (drive) [--model=<model>] [--js] [--type=(linear|categorical)] [--camera=(single|stereo)] [--meta=<key:value> ...] [--myconfig=<filename>]
manage.py (train) [--tubs=tubs] (--model=<model>) [--type=(linear|inferred|tensorrt_linear|tflit... | [
"manonloupio@gmail.com"
] | manonloupio@gmail.com |
c24159df004390b4a0ede19e88cad4a701faab16 | c573a8da4a17cb3ed909f5a30b9334eb18cca6b2 | /signalgen/examples/spec_test.py | fd5f2ea51deac143c3538e30fe334117742cf82e | [] | no_license | AJSterner/apex | 52a077ff6b486f8817928bd6760a2a31851ca8e0 | b621c2b8e979e3da7cabd2db69c9f7ee17469422 | refs/heads/master | 2020-04-05T13:37:16.712357 | 2017-08-02T18:44:03 | 2017-08-02T18:44:03 | 94,922,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from specanalyzer import EnetRandSFSP
DEFAULT_ADDR = "131.243.171.57"
spec = EnetRandSFSP(DEFAULT_ADDR, 18)
spec.reset()
spec.set_window(185.7, .03, -30)
spec.auto_ref_lvl()
spec.continuous_sweep(False)
spec.take_sweep()
| [
"andrewjohnsterner@gmail.com"
] | andrewjohnsterner@gmail.com |
80510b9310d4487e0c029eb1688c6adc013496b9 | 1c4100c3d1814c2ee8761968c2e9b65666de9445 | /Ip/Get_Proxies.py | cf345cbf8a503e3bab7fdb172a265d33ef1e79f3 | [] | no_license | Lucas-Wong/GeneralTools | defb8cd83f80eca7c03a6d2e25fc22292c8c8d80 | 9ef5e646da94f63bf232ff45d2493b1bfbef914f | refs/heads/master | 2021-05-05T02:45:19.195496 | 2019-01-03T02:42:44 | 2019-01-03T02:42:44 | 119,784,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | # ! /usr/bin/env python
# _*_ coding:utf-8 _*_
"""
@author = lucas.wang
@create_time = 2018-02-07
"""
# IP地址取自国内髙匿代理IP网站:http://www.xicidaili.com/nn/
# 仅仅爬取首页IP地址就足够一般使用
from bs4 import BeautifulSoup
import requests
import random
class Get_proxies(object):
def get_ip_list(self, url, headers):
web_data =... | [
"lucas.wang@ariix.com"
] | lucas.wang@ariix.com |
c04a358d0715f2589ea0857a5e733acd3eb79b92 | 80694fba85a4096e9069d836ab71917d5f8b3540 | /zerorpc_less2/test_middleware_before_after_exec.py | ca6162665c646e881043893844eb9f848972187f | [] | no_license | gitletian/zerorpc_test | dad732fd3d9086bbf4200e2d6b790afb377bb685 | 7f11a62dee1ea71cf1ed743c7bc17a3397a806c8 | refs/heads/master | 2021-06-23T18:25:37.210949 | 2019-07-09T07:59:39 | 2019-07-09T07:59:39 | 147,283,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,186 | py | # -*- coding: utf-8 -*-
# Open Source Initiative OSI - The MIT License (MIT):Licensing
#
# The MIT License (MIT)
# Copyright (c) 2015 François-Xavier Bourlet (bombela+zerorpc@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files... | [
"guoyuanpei12@sina.com"
] | guoyuanpei12@sina.com |
8075781d0d13baf55d9f6368cef05b1fb6478322 | e8bee70da2f4dcbb74aaecf481d4677bcc18235c | /pull_data/pull_utils.py | 78f6a2a5071b6637dd7eb77c5f23b9ac257c83b8 | [] | no_license | Udneowi/FacebookDataForGoodPreprocessing | 1ba3e90b0f5a3191faa5a7b56106b12a2e66727c | 9d4c3ab64e48ef595e229209ab3bf885b546f0a7 | refs/heads/master | 2022-09-11T14:41:14.572372 | 2020-05-31T09:23:21 | 2020-05-31T09:23:21 | 268,245,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,412 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium.webdriver.common.keys import Keys
import time
import pandas as pd
import os
from selenium.webdriver import Chrome
from selenium.webdriver.chrome import webdriver as chrome_webdriver
import sys
import numpy as np
import glob
import shutil
import ... | [
"petem@heisenberg.imm.dtu.dk"
] | petem@heisenberg.imm.dtu.dk |
7bbb82742c7c11ef190a75dccd02818e8bd19e56 | a51193ee48b0c358afb8af77ad37055ac358dd3b | /enderecos/api/serializers.py | 85d25631450d1f9e0aa1874790b2559115be2d9f | [] | no_license | nico-est/Pontos_Turisticos_Udemy | 5343fc77318bfa716058e200a2538729fecaaea2 | eaeae34d1688eea90e3029eaba04e6b5628b0928 | refs/heads/main | 2023-03-13T04:27:28.292146 | 2021-02-23T19:05:45 | 2021-02-23T19:05:45 | 338,313,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from rest_framework.serializers import ModelSerializer
from enderecos.models import Endereco
class EnderecoSerializer(ModelSerializer):
class Meta:
model = Endereco
fields = '__all__'
| [
"nicolas.estanislau@gmail.com"
] | nicolas.estanislau@gmail.com |
7cc2bcb3f739df76df023a3fac442bde1b4247b5 | 363d82529eef4a389639ebdbea734dca00ac7abd | /946.验证栈序列.py | a20efe7027935c09062b009b33ea30370cfcf12e | [] | no_license | adsl305480885/leetcode-zhou | d9ac9ff391a68fb491bf3d3a5204778585fc9a40 | 79c96fc7f66ed0508351ed9300482a1619f39fb5 | refs/heads/main | 2023-05-03T12:26:05.218505 | 2021-05-21T10:39:30 | 2021-05-21T10:39:30 | 314,748,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | '''
Author: Zhou Hao
Date: 2021-03-11 09:46:23
LastEditors: Zhou Hao
LastEditTime: 2021-03-11 12:12:27
Description: file content
E-mail: 2294776770@qq.com
'''
#
# @lc app=leetcode.cn id=946 lang=python3
#
# [946] 验证栈序列
#
# @lc code=start
class Solution:
# def validateStackSequences(self, pushed: List[int], popped:... | [
"2294776770@qq.com"
] | 2294776770@qq.com |
49d73ec735a98863a62138cc3f0c0a2fe49629c6 | 1de51338fbd214fe509a77f0ab71e6a9029896bd | /deep_disfluency/corpus/util.py | d29bf3630240c49f6071c0e3e9d0f73dd6557dd3 | [
"MIT"
] | permissive | askender/deep_disfluency | b46d71f829f819748caddec45daa865f74119ae2 | bea8403ed954df8eadd3e2b9d98bb7c2b416a665 | refs/heads/master | 2020-03-31T13:09:09.287145 | 2018-10-09T12:00:40 | 2018-10-09T12:00:40 | 152,243,576 | 0 | 0 | MIT | 2018-10-09T12:01:22 | 2018-10-09T12:01:21 | null | UTF-8 | Python | false | false | 46,134 | py | # -*- coding: utf-8 -*-
import re
from collections import defaultdict
def add_word_continuation_tags(tags):
"""Returns list with continuation tags for each word:
<cc/> continues current dialogue act and the next word will also continue
<ct/> continues current dialogue act and is the last word of it
<t... | [
"shiji.lb@alibaba-inc.com"
] | shiji.lb@alibaba-inc.com |
2359bf352f0f10aa6997150fb0c8514b009fec62 | 39bc55c2a4457bbe7ff4136ea660a29ff88ee66d | /skued/voigt.py | 7bb288f94ac6749d65ed5de252a9b59756c00c00 | [
"MIT"
] | permissive | KOLANICH-physics/scikit-ued | c72b3219e547e33ae067c5d36a93439d2f9045e2 | c13472129df33105312b57427ce588e66d20391f | refs/heads/master | 2022-01-22T05:47:04.286449 | 2018-09-24T15:06:00 | 2018-09-24T15:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,861 | py | # -*- coding: utf-8 -*-
"""
Voigt and pseudo-voigt curves, as well as related Gaussian and Lorentzian functions
"""
from functools import lru_cache
import numpy as np
from numpy import pi
def gaussian(coordinates, center, fwhm = None, std = None):
"""
Unit integral Gaussian function.
Parameters
----------
... | [
"laurent.decotret@outlook.com"
] | laurent.decotret@outlook.com |
82de8706ca2eedd2fcd2cdff8f72d38d2fc55280 | f65ab9e202f5449de4a99352a94caecedbc5b478 | /tobby/4.sort/01.py | 6179f78f51f8b33b50c9be3ae8daec9265b8b47b | [] | no_license | HongDaeYong/codingStudy | 143e627f079c0f17e7704945e587af8ad9bb967a | 849928e3336eee9caef7cdeb01b0196d90451fc1 | refs/heads/master | 2020-05-01T03:34:57.766061 | 2019-09-04T16:51:08 | 2019-09-04T16:51:08 | 177,248,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def solution(array, commands):
answer = []
for i,j,k in commands:
ta = array[i-1:j]
ta.sort()
answer.append(ta[k-1])
return answer
| [
"wlsah7505@korea.ac.kr"
] | wlsah7505@korea.ac.kr |
18722d2c3550ab2ae5d2d5d77a98acf4a0e84fc8 | 4075dc586bcce231c586d805427293dcc9d2c763 | /star/myTypes.py | d0185149732210ee713c1722aa282518b8b47f6b | [
"MIT"
] | permissive | DanielAndreasen/pyStar | ace2a64ce47199e6fc9c7789af30c7d8d0bc066c | 7ba5f780a7765e592cabdf1273eba42f454fa9d3 | refs/heads/master | 2023-07-22T16:35:30.645275 | 2023-07-08T07:02:26 | 2023-07-08T07:02:26 | 143,328,968 | 4 | 1 | MIT | 2023-07-08T07:02:28 | 2018-08-02T18:04:09 | Python | UTF-8 | Python | false | false | 108 | py | from typing import Union, List, Tuple
import numpy as np
listLikeType = Union[List, Tuple, np.ndarray]
| [
"daniel.andreasen@hotmail.com"
] | daniel.andreasen@hotmail.com |
7e14d3aa5e66f24c793c773eb8dcd9019b9eade3 | 352d5acef4e8fca2d1306d9e749444869ed4ef2f | /medium/uniquePaths.py | bac0d40a3215cfa82cc0293bbad2711e999481e7 | [] | no_license | rupafn/leetcode | d73672a5fce8fd2027d3a7d0118d9ff7b9e89c5e | 2c75625db500d806e2a55954c85f389cfde2c3aa | refs/heads/master | 2021-06-07T20:01:07.992640 | 2021-05-07T15:29:15 | 2021-05-07T15:29:15 | 128,645,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | class Solution:
def uniquePaths(self, m, n):
grid = []
if(m==1):
return 1
for i in range(m):
g = []
for j in range(n):
g.append(0)
grid.append(g)
grid[0][1] = 1
grid[1][0] = 1
for i in range(0,m):
... | [
"rupafn@gmail.com"
] | rupafn@gmail.com |
82f48a890e42245c471e46183a567db3265b30f6 | c9b13b24de95b3743f94bf599836522860f5ccbf | /cyclegan_vanilla/main.py | ba3b09dc12eb484dc74220db4f4919ded5de102a | [] | no_license | czhang0808/Music-Genre-Transfer-with-Deep-Learning | 2554ad51338bfb94fb263efa4f945b8ed048cd0c | 3d30fc226367819c62d0a765d6f746cd1e82e182 | refs/heads/master | 2020-07-25T08:41:34.403082 | 2019-10-01T08:47:09 | 2019-10-01T08:47:09 | 208,233,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,226 | py | import argparse
import os
import tensorflow as tf
from model import cyclegan
from style_classifier import Classifer
from style_classifier_new import Classifer_new
tf.set_random_seed(19)
# os.environ["CUDA_VISIBLE_DEVICES"] = os.environ['SGE_GPU']
# os.environ["CUDA_VISIBLE_DEVICES"] = '0'
parser = argparse.ArgumentPar... | [
"noreply@github.com"
] | czhang0808.noreply@github.com |
8675f000dbd22904b785a6da065d8274dacf7bca | 49e6dbae4dcce37ce62e6219f4ce8b2d14eb1aae | /Graphs/Graph.py | 06113c531d8b1e72ad1cbf03c3f9d5b09dc9ab3f | [] | no_license | sidhumeher/-ZTM-DS-and-Algo-Python- | c770ae35ce8a928537eb49f7bd302e027586ce9c | d4b47995c4eb3afad0f135b50fa1d7c2c0adb4f2 | refs/heads/master | 2023-01-19T01:51:24.068776 | 2020-11-27T00:54:12 | 2020-11-27T00:54:12 | 283,087,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | '''
Created on Oct 8, 2020
@author: sidteegela
'''
# Graph implementation with Dictionary
class Graph():
def __init__(self, graph=None):
if graph == None:
self.graph_dict = {}
self.graph_dict = graph
def generateEdges(self, graph):
edges = []
... | [
"sidhumeher@yahoo.co.in"
] | sidhumeher@yahoo.co.in |
eb5d7f330eaa28257e9e46e9645fe4d2942d0c17 | 1498c7f4c44df77f32c41e3c84b55d5fba073731 | /numpy学习/012_sample_数组操作_连接数组.py | fef891a24da331b5ad6a8b89e9dbf34f10778dce | [] | no_license | whh881114/common_scripts | 1afbffcb32f3190b3f3ed3b5e1364d8ccd108e88 | 23ce2e25b407c27373b53829a844e51269a8b296 | refs/heads/master | 2020-05-07T22:53:29.801739 | 2019-08-26T15:07:06 | 2019-08-26T15:07:06 | 180,965,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # -*- coding: UTF-8 -*-
from __future__ import print_function
import numpy as np
"""
numpy.concatenate
numpy.concatenate 函数用于沿指定轴连接相同形状的两个或多个数组,格式如下:
numpy.concatenate((a1, a2, ...), axis)
参数说明:
a1, a2, ...:相同类型的数组
axis:沿着它连接数组的轴,默认为 0
"""
print('第一个数组:')
a = np.array([[1, 2], [3, 4]])
print(a)
print('')... | [
"whh881114@gmail.com"
] | whh881114@gmail.com |
2a9304da0975ee2db5cbcea60b4eb46bcfae1072 | 4e6c49811322b3923cd6fad536e5bda8e087a7c6 | /app1/urls.py | 0f036f869ad8150197013b6c3bcf20d4ab9c9820 | [] | no_license | 3toe/DjangoSkeleton | b13c9cb0bfa85acc66d24e5e9eae3b068ed73d3c | 0ec01729745045cf18398946f5edbc1d884fd501 | refs/heads/main | 2023-07-29T03:12:51.393134 | 2021-09-11T22:21:02 | 2021-09-11T22:21:02 | 405,494,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('new', views.newz),
path('create', views.create),
path('<int:num>', views.show),
path('<int:num>/edit', views.edit),
path('<int:num>/delete', views.destroy)
] | [
"AnthonyJS@gmail.com"
] | AnthonyJS@gmail.com |
5cac0e208270765e832606beee105a1e7e45059f | 28d32bb6639de8bf2f57a8f2236e644c76d479c7 | /bnn_optimization/train.py | 93e780ae0df9baf85803a97509dd808ef8abe43c | [
"Apache-2.0"
] | permissive | CuauSuarez/Bop2ndOrder | e8b84efe465a9baff3cdadb9bdf75d479740d4dd | ff680fbb142b32f8d8061be6c3f2fe0e757b4a03 | refs/heads/master | 2023-04-11T17:04:05.310662 | 2021-04-16T03:43:42 | 2021-04-16T03:43:42 | 296,754,657 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | from zookeeper import cli, build_train
from os import path
import click
from bnn_optimization import utils
@cli.command()
@click.option("--tensorboard", default=True)
@build_train(utils.prepare_registry)
def train(build_model, dataset, hparams, output_dir, tensorboard):
import larq as lq
from bnn_optimization... | [
"noreply@github.com"
] | CuauSuarez.noreply@github.com |
cf01dbb776560da64e396a951678d131e5c96073 | 4385cdd4678033f2be7d47dae25970f3e25a4aa5 | /catalogo/logic/catalogo_logic.py | c7fc0c64739d0149b17f3258dfe53c5859088c24 | [] | no_license | mpedroza96/AntusuSoftwareArchitecture | 702fed5a359a1876f924a95f765249b25a4f53ef | eaa32eecc6cedd97b281ae988d2c7984fe07df06 | refs/heads/master | 2022-06-05T01:01:11.172662 | 2020-01-11T21:55:57 | 2020-01-11T21:55:57 | 233,146,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from ..models import Catalogo
def get_catalogos():
queryset = Catalogo.objects.all()
return (queryset)
def create_catalogo(form):
measurement = form.save()
measurement.save()
return ()
| [
"m.pedroza@uniandes.edu.co"
] | m.pedroza@uniandes.edu.co |
4c05062ba6d323b169dd4868d21c51becba2c5fe | 5fce342c9e598ac7ef2ab06047081db4d6661b9d | /python-3.4/ABC/140/a.py | ff93e1acf0e9b15e81809e43d1f80bb72cb289db | [] | no_license | kp047i/AtCoder | 679493203023a14a10fca22479dbeae4986d2046 | 276ad0fab8d39d5d9a1251bb2a533834124f3e77 | refs/heads/master | 2022-07-26T21:49:29.490556 | 2020-06-28T14:28:12 | 2020-06-28T14:28:12 | 208,727,698 | 0 | 0 | null | 2022-06-22T02:11:01 | 2019-09-16T06:37:50 | Python | UTF-8 | Python | false | false | 28 | py | print(pow(int(input()), 3))
| [
"takayuki.miura28@gmail.com"
] | takayuki.miura28@gmail.com |
e76de6fe18cf9b8d8426119f9d6f9107b22d5c3e | 93c94488b3258ba316821ee70b55812e6d391cbd | /examples/tortuga_backtest.py | 9d433d384d725089ee261f17a774f3c207b1fcff | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cgajagon/qstrader | 7cf81d7e75ddaaac4801e77ceb54b2052e474794 | 69efe3ee594a732b704ff25a2a8afb7d717864d5 | refs/heads/master | 2020-12-24T00:20:12.365801 | 2020-03-20T22:11:28 | 2020-03-20T22:11:28 | 237,321,584 | 1 | 0 | null | 2020-01-30T22:53:51 | 2020-01-30T22:53:50 | null | UTF-8 | Python | false | false | 3,611 | py | import datetime
import numpy as np
import pandas as pd
from qstrader import settings
from qstrader.strategy.base import AbstractStrategy
from qstrader.event import SignalEvent, EventType
from qstrader.compat import queue
from qstrader.trading_session import TradingSession
class TortugaStrategy(AbstractStrategy):
... | [
"cgajagon@gmail.com"
] | cgajagon@gmail.com |
16e0a7908e446ffbaa6949ae8426a36dfd2f0cd6 | 529bb0fc524e2138c91bc91f500272786bf8cdbe | /wiki_history_ip_country_city.py | 3fbb60271cd895668b99d84a4288d2aa90851148 | [] | no_license | ZedYeung/pythonalg | 829f3e077138df5a8fc4f8a259ef8c05cd0eb58f | 1f8097fbd304fbd44821ee839365eba308a465b3 | refs/heads/master | 2021-06-06T07:39:41.380362 | 2016-10-24T14:21:43 | 2016-10-24T14:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | from urllib.request import urlopen
from urllib.request import HTTPError
from bs4 import BeautifulSoup
import datetime
import json
import random
import re
random.seed(datetime.datetime.now())
def getLinks(articleUrl):
html = urlopen("http://en.wikipedia.org" + articleUrl)
bs = BeautifulSoup(html, "html.parser... | [
"shoominga@gmail.com"
] | shoominga@gmail.com |
02b8e4125a0a8cbca922ae4f1de476e4c0d44d09 | f5de163623c0e1f2207104a69fea499b2d4b3948 | /tests/integration/test_repeated_posts_setting.py | 2a03338570cc6011e38030a95ea273b8d1f616b8 | [
"MIT"
] | permissive | getnikola/nikola | cbc233706ebd52fe76bc14b2ff3c5a7c27678275 | 2b10e9952bac5a1119e6845c7a2c28273aca9775 | refs/heads/master | 2023-09-03T12:52:22.617757 | 2023-08-05T19:24:18 | 2023-08-05T19:24:18 | 4,025,121 | 2,142 | 467 | MIT | 2023-09-13T12:38:11 | 2012-04-14T13:53:22 | Python | UTF-8 | Python | false | false | 764 | py | """
Duplicate POSTS in settings.
Should not read each post twice, which causes conflicts.
"""
import pytest
from nikola import __main__
from .helper import append_config, cd
from .test_demo_build import prepare_demo_site
from .test_empty_build import ( # NOQA
test_archive_exists,
test_avoid_double_slash_in... | [
"der@nik0.de"
] | der@nik0.de |
06db384c8b1b1ccd48f196017025fb4994bc18a5 | 3d9dfd8627b4535464770c0881294e5d73a7cc63 | /collaborative_filtering/models.py | 8fd48b19197df0584d31623a62ff8d5f4d9b9142 | [] | no_license | AnastasiaVedernikova/NeighborsInCollegium | bb499328b713bae03fdf4f92d5df8a521448773e | 5978f801536cc053007606b2c34e382dbffde463 | refs/heads/master | 2021-07-23T22:35:42.059709 | 2018-10-21T19:08:07 | 2018-10-21T19:08:07 | 125,835,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | from collaborative_filtering.cos_dist import cos_dist
import pandas as pd
import numpy as np
from sklearn.cross_validation import train_test_split
from sklearn.decomposition import PCA
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model impo... | [
"vedernikova@ucu.edu.ua"
] | vedernikova@ucu.edu.ua |
9b36c59d63b5a3c2da8c3f5793ae3a417d6a9cf0 | 54965961acdfee49e2d245a624cf8fd3db35ae05 | /pujcovna/katalog/migrations/0003_vypujcka.py | 7da5770dc88ff38892d26af3eed2ec7424f27f75 | [] | no_license | starkroman/python-012021 | 6bc5a058046a2662badc9d8ce0a435d01a9925ca | 3c8a7cd06760c12b96a238375cc9fc55afe8979e | refs/heads/master | 2023-04-15T16:00:10.473369 | 2021-05-03T15:41:53 | 2021-05-03T15:41:53 | 338,174,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # Generated by Django 3.1.7 on 2021-04-18 19:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('katalog', '0002_zakaznik'),
]
operations = [
migrations.CreateModel(
name='Vypujcka',
fields=[
('id'... | [
"stark@spsostrov.cz"
] | stark@spsostrov.cz |
6b1d56b0726b2a28808a9a8f2b0a5ce857ed5e1e | ef93f29034820b9fadfc1ff8a0da2056fe9621e6 | /算法和数据结构/02_数组和列表_test.py | 013109d088f2bbb460569a0be625ba2177bd1132 | [] | no_license | ZhMingZh/StudyPython | 9bb0ae6c9134eb48a69c888e2623ab3b8818ea01 | 4205cc57e51371de9c862eba28707ecfea968ccd | refs/heads/master | 2020-08-10T00:13:46.753157 | 2020-04-16T20:07:25 | 2020-04-16T20:07:25 | 214,207,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | """
线性结构:1.内存空间连续 2.下标访问
python常用的array(很少用,不同于Numpy中的array)、
list方法 时间复杂度
下标访问 O(1)
append O(1)
insert O(n)
pop default the last element' O(1)
remove O(n)
"""
class Array(object):
"""用list实现 Array ADT"""
def __init__(self, size=32):
self.size = size
self._items = [None] * size
def __g... | [
"skydream@MacBook-Pro.local"
] | skydream@MacBook-Pro.local |
1b4868de04f5ca8073fd6da39aded5d208b16ded | 0b18e102ebd6ab6365968a13c510e81fe764a98c | /security_flaws/user.py | 7664bbf49b33b9c8689ad94af115353d65ec6217 | [] | no_license | jumblesale/security-flaws | cfd976dd155081ab510cfcbe6eccf689074b536b | 1e6d1a075af9ebe67b3929b6ca20733d94ef7389 | refs/heads/master | 2021-08-23T01:56:30.661800 | 2017-12-02T09:55:48 | 2017-12-02T09:55:48 | 104,563,338 | 2 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | import hashlib
import re
class User:
required_fields = ['username', 'secret']
def __init__(self, username, secret):
self.id = None
self.username = username
self.secret = secret
def __str__(self):
return "{}|{}".format(self.username, self.secret)
def encrypt_secret(plain... | [
"rob@robsollars.co.uk"
] | rob@robsollars.co.uk |
2b74879fe93e5c92749085597cf1c6c5cd234493 | 7cdfbe80ac56a042b9b99c1cb17766683da439b4 | /paper2/setup_files/old_mocks/mock_8.py | 674592696e13fdfa96eac69492f351278b0a54ef | [] | no_license | bacook17/pixcmd | 1e918cc6b147abe1885f9533836005b9f2b30012 | fac20ced14492fd32448d2722c377d88145f90a1 | refs/heads/master | 2021-01-18T11:54:13.625834 | 2019-07-30T15:13:12 | 2019-07-30T15:13:12 | 67,228,636 | 0 | 0 | null | 2016-09-02T14:18:59 | 2016-09-02T14:18:58 | null | UTF-8 | Python | false | false | 8,379 | py | # Mock configuration file for Paper 2
# Ben Cook (bcook@cfa.harvard.edu)
###############################################
# CONFIG FILE for mock run #3
# MOCK Galaxy:
# Metallicity Model: Single FeH
# [Fe/H] = -0.25
# Dust Model: Single Dust
# log E(B-V) = -1.0
# SFH Model: Tau
# ... | [
"bcook@cfa.harvard.edu"
] | bcook@cfa.harvard.edu |
5d5b5ad17d5f573733978c26be47cab77c5833fe | 12fd8ef25563d3b32f74c3b4c92d20bb3326225c | /lists/migrations/0002_item_text.py | 191f76c3f6916672c5b5c2b08b2a54220bc752a6 | [] | no_license | robglass/superlists | b1b94cbf23f913505eadd6aebc4ab36f31b1f9a0 | c26b746d494de64f6f6b81e5e70de88bcb570a7e | refs/heads/master | 2021-01-02T23:35:57.787895 | 2017-08-07T03:31:04 | 2017-08-07T03:31:04 | 99,502,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-06 21:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lists', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"rglass@getwellnetwork.com"
] | rglass@getwellnetwork.com |
075cba7341bec0541cda7af78f6285dd481f1745 | 17fef77120e7466b002e5722852987dd3f36d510 | /KodlamaEgzersizleri/Döngüler/fibonacci_serisi.py | 8ddceaf331da9d68af5a0330c5c6659528ae15a3 | [
"MIT"
] | permissive | sametcelikbicak/Python | 20c25d62069d4cf49e6844b7063ab4b63c8d67cf | f5652a0b9710c00149b7388721ee9f3cdc916ca5 | refs/heads/master | 2021-05-16T15:25:40.211731 | 2021-02-10T07:06:59 | 2021-02-10T07:06:59 | 119,162,689 | 3 | 0 | null | 2021-02-10T07:06:59 | 2018-01-27T12:31:58 | Jupyter Notebook | UTF-8 | Python | false | false | 188 | py | print("""********************
Fibonacci Serisi
********************""")
a = 1
b = 1
fibonacci = [a, b]
for i in range(20):
a, b = b, a + b
fibonacci.append(b)
print(fibonacci)
| [
"sametcelikbicak@outlook.com"
] | sametcelikbicak@outlook.com |
b7da6c4d3d9b772d466e54a9ff2483eede54b1f7 | 22bc2fb28fe7e384544bd949efea936bc670acf2 | /4. Detect Communities on Network/chengzhe_xue_task1.py | 3a97f82e414490d7edddbd8837177171e31ce02a | [] | no_license | waoxc/Data-Mining-on-Yelp-Data | 505894ee7ebcae159453b00bab312858da46e5f9 | 92d71c7c5ed7c97979fe0691d4d6b18c36921fe0 | refs/heads/master | 2020-04-21T11:45:50.568208 | 2019-08-09T03:29:55 | 2019-08-09T03:49:27 | 169,537,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | import os
import sys
import time
from pyspark import SparkContext
from itertools import combinations
from pyspark.sql import SQLContext
from graphframes import GraphFrame
os.environ["PYSPARK_SUBMIT_ARGS"] = ("--packages graphframes:graphframes:0.6.0-spark2.3-s_2.11 pyspark-shell")
curr = time.time()
threshold = int(s... | [
"chengzhe0607@gmail.com"
] | chengzhe0607@gmail.com |
351984131f23d00cf44a4d6d2340458923189143 | d089487e0b108f71fdfa001ef905d04a38c272a3 | /shuishiwodi.py | 7e27d1a3ae6658564ea81660642d71a7dfc9cb01 | [] | no_license | nn243823163/shuishiwodi | 2ed0bb09b2d4d4388826f5725eba73b5ad31abde | 6ef0fbb6c4af5a41aa166ccf4992034ea5e30ec3 | refs/heads/master | 2021-01-24T02:15:57.729614 | 2018-02-25T14:02:27 | 2018-02-25T14:02:27 | 122,840,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | #coding:utf-8
from Tkinter import *
import ttk
from PIL import Image, ImageTk
from packs_need.spyword import spywords
import random
import tkMessageBox
from tkSimpleDialog import askinteger
str_note = '''游戏规则:
1、游戏有卧底和平民两种身份;
2、平民得到同一词语,卧底得到与之相关的另一词语;
3、每人每轮用一句话描述自己的词语,既不能被卧底察觉,也要给同伴暗示;
4、每轮描述完毕,在场的所有人投票,选出怀疑谁是卧底的人,得票... | [
"apple@appledeMacBook-Air.local"
] | apple@appledeMacBook-Air.local |
444cff32b708c4600f2a6004bb61df602fc3384e | 1c955f9b3811b3246e781fbdfe9dddbfd5913d34 | /django_react_starter/settings.py | 20d85216bbc4190fbcda65a287dd618ba17c2bda | [] | no_license | caisbalderas/django_react_starter | 4f8a66d7c3c14d8911bfca2c46830155781dbdc5 | 5f36cbe5d5de1b5760b296c05bd73a621d4b7e5a | refs/heads/master | 2021-01-20T17:51:10.048296 | 2017-05-11T21:52:35 | 2017-05-11T21:52:35 | 90,894,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | """
Django settings for django_react_starter project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"... | [
"caisbalderas@gmail.com"
] | caisbalderas@gmail.com |
1262314fa860eabc4ef6f1cbb7e7caed363fbdd6 | ad00cfc0106a6d11b07907aee8f23300943bd97b | /Codeforces Scraper/main.py | fe2b20ed4676c9a8d7d20858b9190ce6a87e5a37 | [] | no_license | shreyansh424singh/Scrapping_Assingment | 8d2e73b8dacdb90d2a715be02c9813d017dfb7fa | 955b446bc8d6d98d1ead20f62403bc1f9476db99 | refs/heads/main | 2023-03-11T20:46:11.115761 | 2021-02-26T12:25:08 | 2021-02-26T12:25:08 | 342,484,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import selenium
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver import ChromeOptions
import shutil, os
import time
import os
from selenium.webdriver.chrome.options import Options
PA... | [
"noreply@github.com"
] | shreyansh424singh.noreply@github.com |
c93d5675dde2480fa7850132821f46d033fb4289 | 1baf7ca06f4e4adda9f273ce9a52d858b4bd9577 | /PyMLServer-Local/MLTrainer.py | 14fc12203d76af906b2eadc62dc2c460d0c9825b | [] | no_license | fabijas/F2MD | 3909c7de6c6af999b5b51ab43bc226e56716eb75 | d27dc26cca2169853c897abba96be4252d5d143f | refs/heads/master | 2020-05-23T14:29:58.812048 | 2018-12-11T02:41:47 | 2018-12-11T02:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | """
/*******************************************************************************
* @author Joseph Kamel
* @email josephekamel@gmail.com
* @date 28/11/2018
* @version 2.0
*
* SCA (Secure Cooperative Autonomous systems)
* Copyright (c) 2013, 2018 Institut de Recherche Technologique SystemX
* All rights ... | [
"josephekamel@gmail.com"
] | josephekamel@gmail.com |
0e3ef96d0f833186b2c509af4b518f523aa78c8e | 68e7e580432b91a88723ffd90b01fbc2586bed1b | /app/admin/forms.py | 8b3838eefdc0a2dadf997e5884ace395ce41ca56 | [] | no_license | Pretty-19/Employee-management-flask | 89d5339993e5d0b0be746a73ee4f9d583c498b43 | 4dd7d7f74ba47d7515c5831ce271ab677ffecada | refs/heads/master | 2023-03-28T06:07:21.141007 | 2020-09-20T12:43:44 | 2020-09-20T12:43:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
from wtforms.ext.sqlalchemy.fields import QuerySelectField
from ..models import Department, Role
class DepartmentForm(FlaskForm):
"""
Form for admin to add or edit a department
"""
... | [
"hello@parekhjigar.com"
] | hello@parekhjigar.com |
c89ede755803e22359be129204f534a099105041 | 185e7257cc5a16a584ffd6dc38d0c13cb5f82fe6 | /downloads/smr3128-material/labs/src/lora-coverage/lora_rx_node/main.py | e6a178666aac7ea2fa7fb4e4129d1ef56cfb0039 | [] | no_license | diegoleonbarido/iot-smr3128-ictp | 267812ac6b699b34a3de1ee811de225ba8c7c51c | 03bb39a540f7dc9a067bc078f4be51efdd5782b6 | refs/heads/master | 2020-12-02T23:58:40.537077 | 2017-07-01T16:41:53 | 2017-07-01T16:41:53 | 95,968,900 | 0 | 0 | null | 2017-07-01T14:25:48 | 2017-07-01T14:25:48 | null | UTF-8 | Python | false | false | 7,669 | py | # --------------------------------------------------------
# read gps position using android smartphone
# data are saved in csv file
# see:
# https://docs.pycom.io/pycom_esp32/pycom_esp32/tutorial/includes/lora-mac.html
#
# android app ShareGPS:
# https://play.google.com/store/apps/details?id=com.jillybunch.shareGPS
# ... | [
"franckalbinet@gmail.com"
] | franckalbinet@gmail.com |
20f3df647778fcc404aa09fbeb1717b0f3cc3b00 | 1824a526a49139506fe604e85d656b29b3c8342f | /home/models.py | 5269838b542bfa6141af824ba39587fca828111c | [] | no_license | nikoladang/nikolad | 5f4802f98adde5febd1b17250920f88ea26a9015 | c5e8228f242058e930232f6773ba306c0a930f0f | refs/heads/master | 2016-08-09T16:20:56.147690 | 2016-01-08T15:45:07 | 2016-01-08T15:45:07 | 49,169,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from __future__ import unicode_literals
from django.db import models
from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.fields import RichTextField
from wagtail.wagtailadmin.edit_handlers import FieldPanel
class HomePage(Page):
body = RichTextField(blank=True)
content_panels = Page.content... | [
"ducthinhdt@gmail.com"
] | ducthinhdt@gmail.com |
03f7b27025f5c22560aac438c4792f9b6ff465e8 | 1a48ac7b2dddd18d31e4c39cc89f3386f3a8eb96 | /markI.py | fcc0d1c85e2be192475ed036e2b0bc4cfcf64e37 | [] | no_license | N-eeraj/finding-the-number | 24774823e2e87931896876de929b51bc884358c5 | 0477147fbfa1bae0f56472067996d17c2f6ec36e | refs/heads/master | 2022-12-05T13:57:03.188520 | 2020-08-30T18:06:20 | 2020-08-30T18:06:20 | 291,524,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | max,min=100,1
lst=list(range(min,max+1))
print('Think a number between 1 & 100\n')
try:
for i in range(7):
print('Chances :',7-i)
try:
guess=lst[len(lst)//2]
except:
print('\tCheater!!')
exit()
while(True):
x=input('Is the number : '+str(guess)+' (Y/N)').lower()
if(x=='y'):
print('\nI Wo... | [
"neeraj7rajeena@gmail.com"
] | neeraj7rajeena@gmail.com |
17b73a2c27857fe2b59f164ed758914b1f143472 | 0cb2219714575fc9717ecfde4eea3f5e05662038 | /venv/Scripts/easy_install-3.6-script.py | 925d72315632bad91e98d96d85c2236e56a99cbb | [] | no_license | tamakihime/yomiage | ca1ae83b8dda3ead668b841e3164e7757a57f1aa | 7396afd79ea2b9854f9f8a7391760d800d589bca | refs/heads/master | 2020-03-13T20:47:45.481903 | 2018-04-27T10:26:51 | 2018-04-27T10:26:55 | 131,281,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | #!C:\programing\yomiage\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"37037753+tamakihime@users.noreply.github.com"
] | 37037753+tamakihime@users.noreply.github.com |
ea6c41d81fd688511f7757ac3446d2cbb2bac4ef | 6671306be3bbcdad75ad5ef3f7cd573c948acd77 | /book_code/Chapter04/vrp.py | 25dff81fe9fe25b101bc3d606337545571b8541d | [] | no_license | mohantyk/genetic_algos | 7fa0e4589f53970492a52430358a39a9c2906c9f | 5aa202dc0367a322c814b8c920736770757cb151 | refs/heads/main | 2023-01-13T07:47:43.514934 | 2020-11-11T20:02:34 | 2020-11-11T20:02:34 | 310,965,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,811 | py | import random
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
import sys
curr_dir = Path(__file__).resolve().parent
if str(curr_dir) not in sys.path:
sys.path.append(str(curr_dir))
import tsp
class VehicleRoutingProblem:
def __init__(self, tspName, numOfVehicles, depotIndex):
... | [
"mohantyk@users.noreply.github.com"
] | mohantyk@users.noreply.github.com |
594eec0d44450f2013b93bb0c9343590cb61eb62 | b5698c259c80c9dc9b1cbca9dd82eb7f4d799f61 | /tests/standalone/PyQt4Plugins.py | ed60fa18319e2478ffe600c74930c92f36265623 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | 4O4/Nuitka | 431998d4d424f520d2887e9195ad7d7c61691b40 | e37d483b05c6b2ff081f3cedaee7aaff5c2ea397 | refs/heads/master | 2020-04-02T04:06:10.826960 | 2018-10-18T21:13:16 | 2018-10-18T21:13:16 | 154,000,090 | 0 | 0 | Apache-2.0 | 2018-10-21T11:17:44 | 2018-10-21T11:17:44 | null | UTF-8 | Python | false | false | 970 | py | # Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
979d949c58a5f2a64126f55fb265850838341e56 | d458a728de293822171faa22d5a75ae844283455 | /Controller/UpdateAudioAccessToken.py | 62e916996bad858df1b2c8c5b304afbf6bc13a03 | [] | no_license | wangqingbaidu/bangu | fda4b4c57c96f70078ea2a0c85ecf199a3065e10 | 2a7e19e9f3d55590e952dd3442080ed86209ecc9 | refs/heads/master | 2020-08-03T20:49:45.129683 | 2019-01-25T13:35:12 | 2019-01-25T13:35:12 | 73,537,485 | 20 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | # -*- coding: UTF-8 -*-
'''
Controller.UpdateAudioAccessToken is a part of the project bangu.
bangu is an open-source project which follows MVC design pattern mainly based on python.
Copyright (C) 2014 - 2016, Vlon Jang(WeChat:wangqingbaidu)
Institute of Computing Technology, Chinese Academy of Sciences, Beijin... | [
"wangqingbaidu@gmail.com"
] | wangqingbaidu@gmail.com |
b59286c5280c6a4871896a79b181b126dd4ae483 | deab657823976574365f86a05b72a3392601c6f9 | /venv/bin/pasteurize | 07a8472422171e6f351bc46252c3653fedf318c9 | [] | no_license | alexanderbcook/twitter_stream | 3df644b99bbdb2d5a9a1107585f0cd1a139c6bd5 | d43dbc9dce406ab14844052f8cdfd8ea3df65a12 | refs/heads/master | 2021-01-12T13:15:10.348539 | 2020-08-22T05:09:53 | 2020-08-22T05:09:53 | 72,162,184 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 437 | #!/Users/alexandercook/Repositories/twitter_stream/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$'... | [
"alex.chef.cook@gmail.com"
] | alex.chef.cook@gmail.com | |
19ea2e3bf178cee466e63316a2aadd08a30e10dd | 4d49d7d6e48fb9044753d50c713e32ebafca0f3b | /posts/migrations/0002_post_raters.py | 1b28cb17e43388946e086ddd0f9b5ea611747b3b | [] | no_license | dogbeide/inner-space | c1658a85a6d8324bf66b2cfaeb93b241a2c29032 | f5da16af2b912f61ccbc7de308d6cc49443bbac9 | refs/heads/master | 2022-12-11T11:28:48.667257 | 2017-12-26T07:39:00 | 2017-12-26T07:39:00 | 108,508,363 | 0 | 0 | null | 2022-12-08T00:45:14 | 2017-10-27T06:32:35 | JavaScript | UTF-8 | Python | false | false | 554 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-04 00:31
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"boyowao@gmail.com"
] | boyowao@gmail.com |
215941da3f8b9d43ae25e8e9152da92fdb8c47c2 | 0d2efa3fa3c92a84a973f3f1bc4a3cf02d0b9315 | /aliens/alien_invasion.py | e058fd0e5057bbbe84ed64dcdf382931bd2ce567 | [] | no_license | gyc598652015/alien_invasion_exercice | 2aa76231f26b1a01f0b75d32e2fca51698efea46 | 8e6cb6b459780339865dac9f2b626dfb1b3eba44 | refs/heads/master | 2021-07-01T16:29:07.429887 | 2017-09-21T13:15:58 | 2017-09-21T13:15:58 | 103,915,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import sys
import pygame
from pygame.sprite import Group
from settings import Settings
from ship import Ship
from alien import Alien
from backgrounds import Moon
import game_fuctions as gf
def run_g():
pygame.init()
ai_settings = Settings()
screen = pygame.display.set_mode(
(ai_setti... | [
"noreply@github.com"
] | gyc598652015.noreply@github.com |
ae50af8552902dd297df6471f5b05c6635d73371 | ad1574230541ae8eda7b432c083bb5d4e55e9c3c | /todo/settings.py | 054a6cae02fbcb22381001c8581fda8cacc41a04 | [] | no_license | shuvam07/Django_ToDo | 423294c3810eddf5750dabfc4026c40a9868fbbc | 0e1803806cbe6271211274845d98fb7bb2827a7a | refs/heads/master | 2020-05-20T16:41:16.650509 | 2019-05-08T21:26:39 | 2019-05-08T21:26:39 | 185,670,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"shuvambosana0705@gmail.com"
] | shuvambosana0705@gmail.com |
7bcb9b4c0a7061894433e442cc2d3bad50907e0a | 976e5acf2274202adeb8a1ae537de121fa4af8db | /w5/main/serializers.py | ab694cf8026445e936dc302ca2106cd68917080f | [] | no_license | Aibek21/BFDjangoSpring2021 | 54db7be0cc4b386919a17eef8945e8c38fe24450 | b0be9e94a7c5d08a9df9ffec3ce8baab890189e4 | refs/heads/master | 2023-04-14T04:24:26.092688 | 2021-05-01T08:12:44 | 2021-05-01T08:12:44 | 340,596,245 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | from rest_framework import serializers
from main.models import Book, Author, Publisher
class BookSerializer(serializers.ModelSerializer):
# author = AuthorSerializer(required=True)
# publisher = PublisherSerializer()
publication_date = serializers.DateField(read_only=True)
class Meta:
model =... | [
"aibekkuralbaev@gmail.com"
] | aibekkuralbaev@gmail.com |
dc76b7587d4741e776e260013edd5010476f1ec4 | d8ddbbeeeb4a742df96580d7c9fcd1b1a04c9c1d | /build/robotiq/robotiq_s_model_articulated_msgs/catkin_generated/installspace/robotiq_s_model_articulated_msgs-msg-paths-context.py | f4d74a50f29cc96cffedb12872e2d311dc768b40 | [] | no_license | michaellin/ur5_calibration | 5019f34d1d3577cfe0f24dc6daf54bf6eb11735f | d78f3693d3858c9a2d1a5bf123237fccee754cb6 | refs/heads/master | 2018-11-09T12:35:09.246358 | 2017-03-08T08:25:48 | 2017-03-08T08:25:48 | 84,296,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # generated from genmsg/cmake/pkg-msg-paths.context.in
DEVELSPACE = 'FALSE' == 'TRUE'
INSTALLSPACE = 'TRUE' == 'TRUE'
PROJECT_NAME = 'robotiq_s_model_articulated_msgs'
PKG_MSG_INCLUDE_DIRS = 'msg'
ARG_DEPENDENCIES = 'std_msgs'
| [
"bdml@bdml-computer.(none)"
] | bdml@bdml-computer.(none) |
7cfe6762938f416cde711157596130c86a787de3 | a09f3b682dd8a66cb64458173918b402875ad123 | /vini pro1.py | d0a84044e4227825c388bb1956ab22c2df1eee34 | [] | no_license | VINISHAV/python1 | ab987c5d71e3a16759eaff671c20a8dbd2d856e4 | 4e66083f001a73f0d03684d5a669c9c60029cf63 | refs/heads/master | 2020-03-28T13:48:09.740126 | 2019-01-11T08:39:44 | 2019-01-11T08:39:44 | 148,430,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | x=3
if(x==0):
print("the value is zero")
if(x>0):
print("the value is positive")
else:
print("the value is negative")
| [
"noreply@github.com"
] | VINISHAV.noreply@github.com |
9271910db1f488ed0caefbe91bec08eba3441507 | 426113e472ae35aa930df52fef2ca6e28aebc815 | /backend/mjengoapp_15173/settings.py | df091973c45d3a5bdd21f65353045bf1751e39c1 | [] | no_license | crowdbotics-apps/mjengoapp-15173 | 6e7011d1ced5ee1b559e36f47a134534cd01a305 | 8140d8461a89a5adcfe296240687ca0342b24cb2 | refs/heads/master | 2023-02-15T05:50:39.505485 | 2020-03-29T04:29:08 | 2020-03-29T04:29:08 | 250,953,209 | 0 | 0 | null | 2023-01-24T01:48:05 | 2020-03-29T04:28:24 | JavaScript | UTF-8 | Python | false | false | 5,797 | py | """
Django settings for mjengoapp_15173 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/
"""
impo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
edda1c6e6876e2f0e8d6bb668e65251a301cc281 | 69e23067da986c688f9ea8729c1dd1706725206d | /starscream/starscream/pipelines.py | 75e40db2673627e55d6a6b3726f0bed56fbf36c6 | [
"Apache-2.0"
] | permissive | ryanorz/code-camp | 33487e9db326b4dd94ca469de3fc02c99e470e06 | 041eb6443a3f0963a7778d3ddfb03a7557257094 | refs/heads/master | 2020-06-27T22:36:22.698435 | 2017-10-11T09:34:58 | 2017-10-11T09:34:58 | 97,076,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | 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 StarscreamPipeline(object):
def process_item(self, item, spider):
return item
| [
"ryanorz@126.com"
] | ryanorz@126.com |
d2a52fad4987e5055cf9401113094dbeb7f17f0d | 18d12637d9a590a6c5c52705aaece08633567040 | /python-2.7-tutorial/input_and_output/saving-structrued_data_with_json.py | 3b5baed19c2b7f9d4561b1ec9488afe73dacbe5e | [] | no_license | seehunter/python-tutor | 3f6c0bef4226b70a65e3b86ce604e7c171497aa2 | 2886bd2bedf7ee97ab99a16503bb13d3d2214dd6 | refs/heads/master | 2020-04-18T02:09:06.146960 | 2019-01-23T08:55:20 | 2019-01-23T08:55:20 | 167,149,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import json
json.dumps([1,'simple','list'])
#f is a file object ,simply serializes the object(x) to a file
#json.dump(x,f)
#to decode the object agian
#x=json.load(f)
| [
"seehunter@163.com"
] | seehunter@163.com |
cae976c4d74640db6db63e6ada9bbc5320df9890 | 79319118fccdb8dcc7139002165c68967ec12d34 | /mysite/test/views.py | f00bb34dc3278a7630aaad1b03c56481685c311e | [] | no_license | Coderphobia/DjangoNotes | f0fd3630d1e3512602083f17b6e0724d6d72ed20 | 8ed08c7ecd2edaccc92530622ccce3dc6a4187ae | refs/heads/master | 2020-05-28T11:00:54.386325 | 2019-06-04T12:55:56 | 2019-06-04T12:55:56 | 188,977,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.http import HttpResponse, Http404
from django.template import Template, Context
from django.template.loader import get_template
import datetime
# Create your views here.
def helloworld(request):
retu... | [
"qgqforu@gmail.com"
] | qgqforu@gmail.com |
0cb985a4c0465fa01e54452655c6db1c321f9651 | 0934c195728dbc51a6af6f8031d979817beb7df4 | /weekly_exercises_y1s1/ex9.py | 3172b43d83ac78d4d959daba59ccedb6051f4e5e | [] | no_license | IMDCGP105-1819/portfolio-NormalUnicorn | 5c25e7bad8ddc08a1310000151a0e3ce9ea564d1 | c1d65a6c127076f2e343a2c46e2db4b346a17add | refs/heads/master | 2020-03-30T01:17:34.095420 | 2018-12-11T16:54:18 | 2018-12-11T16:54:18 | 150,568,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | from decimal import Decimal
# Use this to force the savings rate to be to 2 dp max
def maths(deposit, monthly_saved, semi_raise):
savings = 0.0
months = 0
while savings < deposit and months !=250:
if months % 6 == 0:
monthly_saved += monthly_saved*semi_raise
#works out the montl... | [
"JordanChell@vivaldi.net"
] | JordanChell@vivaldi.net |
c9579e73278ca522955a4c96062b360e2fc2c5d5 | 4a67ca308faab57797d2684e87aba8dffa9f09f8 | /GetIps/GetIps/spiders/Ips.py | c1ccc52eb17d5ce79b1f1232b6204355fd15f5ac | [] | no_license | KeepCodeing/ScrapyProject | 827cf82b550d6ebdd6f088b1e20f74c8e8354e59 | 91b2be73bc44dc65cb588a39ade7dcf957ee4224 | refs/heads/master | 2020-05-27T06:05:20.174495 | 2019-07-29T12:38:24 | 2019-07-29T12:38:24 | 188,514,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
class IpsSpider(scrapy.Spider):
name = 'Ips'
allowed_domains = ['xicidaili.com']
start_urls = ['https://www.xicidaili.com/nn/']
# rules = (
# Rule(LinkExtractor(a... | [
"3350680655@qq.com"
] | 3350680655@qq.com |
259962e45cfc2346567f2f271b40f955a66a1a19 | 6a7fdcbba12e549e586338a97897be7923e6a72c | /lambda_iterator.py | da93415c044d89ac2169f2f01f7c5cdbe698e60b | [] | no_license | willw625731/free-energy-automator | 03e625c0031242258aa952861aaa20b5ef94cd66 | 93095803918740653df0c91bc93760afe3f8c176 | refs/heads/master | 2021-01-16T08:03:34.709995 | 2020-02-25T15:25:33 | 2020-02-25T15:25:33 | 243,031,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | import sys
import os
import free_ener_utils as fe_utils
import numpy as np
class free_energy_calc:
def __init__(self, top_file1, top_file2, gro_file1, gro_file2, lv_step, lq_step, name, mol,
cpl0='vdw-q', cpl1='none',
mdfile_path='/ddn/data/mzkl37/mdfiles/',
si... | [
"mzkl37@hamilton2.hpc.dur.ac.uk"
] | mzkl37@hamilton2.hpc.dur.ac.uk |
f41f7ea641940aa6f78f1db5d8879f1794d994d1 | 1511ff0083ee477bfb0a0e6620a122a003a20b6d | /djangoshop/djangoshop/wsgi.py | def624a82e1b5fdbfd0ccd41b5f09d4317832b62 | [] | no_license | sgb128/djangoshop | 534eb195004000213d04f9d11b177336c85ac1ca | 365d0dd1a8f9db5a2e4a7e120f437c89030a65c1 | refs/heads/main | 2023-07-05T18:27:47.617547 | 2021-08-06T14:45:37 | 2021-08-06T14:45:37 | 378,599,786 | 0 | 0 | null | 2021-08-18T11:45:29 | 2021-06-20T08:52:15 | Python | UTF-8 | Python | false | false | 413 | py | """
WSGI config for djangoshop project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"sgb128@mail.ru"
] | sgb128@mail.ru |
ed2caa5f7cae3b274303c7c204cc98bdaf12e492 | 68a380323165e6770b1530664dde145165d610e5 | /Engine/Indicator/GoodIndicator.py | bf5fb7752e7012e35edf90ff9d9a70e24980c3a3 | [
"Apache-2.0"
] | permissive | iznake/AI-Trading-Bot | d1e8ae95871442f224c3534ebbf363b9cd73c534 | b04dc97690def91ee1b486dec9576d06d36b0240 | refs/heads/main | 2023-09-04T18:04:10.245486 | 2021-10-26T13:40:18 | 2021-10-26T13:40:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | import copy
from .Indicator import *
from ..config import *
class GoodIndicator(Indicator):
def __init__(self, structuralParams, timingParams):
super().__init__(structuralParams, timingParams)
def SingleStep(self, stepId):
super().SingleStep(stepId)
if Binance.granualar_gstreams_read... | [
"fleetpro@gmail.com"
] | fleetpro@gmail.com |
4211b5916fd39f3365a414838cbb1416b4c3572f | 2a22a5e133053aca82452b3e52f082ea53ff663c | /contact/migrations/0008_auto_20200617_1307.py | 042c91b29ab1f27dcfc5d5ece07366320979426e | [] | no_license | Bhupesh7662/Django-Real-Estate | f59305a7bece4fa5949d82f4122f8629aae2495f | 9b880a1a4ca3484ff2e2d9f6bfab2be9a1bfca73 | refs/heads/master | 2023-01-20T16:52:24.996425 | 2020-12-02T13:30:23 | 2020-12-02T13:30:23 | 317,861,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 3.0.6 on 2020-06-17 07:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('property', '0013_delete_venue'),
('contact', '0007_auto_20200617_1301'),
]
operations = [
migration... | [
"bpathak277@gmail.com"
] | bpathak277@gmail.com |
4d8023380d287d9e9d17783cf714bc19b6987561 | 8daa41989c8fb9e08ec263d67cfe8e6554259f23 | /tests/test_led_strip.py | 755d5cb1c25a5f5039edea1d74d8f2e8c293a447 | [
"BSD-3-Clause"
] | permissive | splintered-reality/py_trees_ros_tutorials | 4ac85ad57ccce446f2a8c06f9831cdc41d337782 | 15c906025e60018576445400a1f0b376546d2bde | refs/heads/devel | 2023-02-09T00:05:58.959175 | 2023-02-07T05:28:10 | 2023-02-07T05:29:32 | 170,604,537 | 8 | 5 | NOASSERTION | 2023-02-07T05:29:34 | 2019-02-14T01:11:20 | Python | UTF-8 | Python | false | false | 2,759 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: BSD
# https://raw.githubusercontent.com/splintered-reality/py_trees/devel/LICENSE
#
##############################################################################
# Imports
##############################################################################
impo... | [
"noreply@github.com"
] | splintered-reality.noreply@github.com |
ffa0e2dd5e4b986f7c57492a40dd104d76510f7f | 099ed0bf0d914a901f49d4eea4fed4c6b6d7e539 | /keyboard.py | f6a4005b53e655f6492cf3c118442768ad681cff | [
"MIT"
] | permissive | evrardco/neural-snake | 701030cf7db2f0475b5674ca373ec27d9f631c9a | a9b2bc0b736de83b59538ce72df9e0f33f6bba1e | refs/heads/main | 2023-07-12T20:27:04.814028 | 2021-08-22T15:58:58 | 2021-08-22T15:58:58 | 331,132,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import pygame
from keymap import *
def get_dir():
pressed = pygame.key.get_pressed()
if pressed[KEYMAP[RIGHT]]:
return 0.0
elif pressed[KEYMAP[UP]]:
return 270.0
elif pressed[KEYMAP[LEFT]]:
return 180.0
elif pressed[KEYMAP[DOWN]]:
return 90.0
return None
def upda... | [
"colin.evrard@student.uclouvain.be"
] | colin.evrard@student.uclouvain.be |
96d590d3561ee3e50c3c75fbe926be73c668d712 | b6345c4aea6a98a3aed9a2e99fb425ea535f4e80 | /47.permutations-ii.py | 69f921f580deb7ac7bd175269f7110dd64d212bd | [] | no_license | ranbix666/leetcode-1 | b94d256af9ddb9f1403891ed3229474fca92bea1 | 351b4d97db5afdaaa77d90deb24f5b16010d9fb5 | refs/heads/master | 2022-12-31T05:07:53.529302 | 2020-10-21T00:49:31 | 2020-10-21T00:49:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | #
# @lc app=leetcode id=47 lang=python
#
# [47] Permutations II
#
# https://leetcode.com/problems/permutations-ii/description/
#
# algorithms
# Medium (42.35%)
# Likes: 1267
# Dislikes: 46
# Total Accepted: 276K
# Total Submissions: 651.5K
# Testcase Example: '[1,1,2]'
#
# Given a collection of numbers that migh... | [
"you@example.com"
] | you@example.com |
bf5df2cbfc7ea126dca19cd6923c3374c190031d | ae326c4e6a2b2d5b67fa8d175249ef90f6a3021a | /leo/core/leoHistory.py | 9bb867308a3b875170b2b7aa0474918ec9414d45 | [
"MIT"
] | permissive | frakel/leo-editor | f95e6c77d60485d80fddfbeaf35db961cf691177 | b574118ee3b7ffe8344fa0d00dac603096117ac7 | refs/heads/master | 2020-03-28T10:40:24.621077 | 2018-10-23T14:39:31 | 2018-10-23T14:39:31 | 148,132,817 | 0 | 0 | MIT | 2018-09-10T09:40:18 | 2018-09-10T09:40:18 | null | UTF-8 | Python | false | false | 3,785 | py | # -*- coding: utf-8 -*-
#@+leo-ver=5-thin
#@+node:ekr.20150514154159.1: * @file leoHistory.py
#@@first
import leo.core.leoGlobals as g
assert g
#@+others
#@+node:ekr.20160514120255.1: ** class NodeHistory
class NodeHistory(object):
'''A class encapsulating knowledge of visited nodes.'''
#@+others
#@+node:ek... | [
"edreamleo@gmail.com"
] | edreamleo@gmail.com |
5697c11ac5660a77427b27eae49aa855418c464c | 5246897010a2424b575eb84dee77715464959b4e | /{{cookiecutter.repo_name}}/src/{{cookiecutter.repo_name}}/middlewares.py | 4d45662903bb93ae9b53cca7b74fd140bcad5bed | [] | no_license | reubinoff/fastapi-template-cookiecutter | 3cc015d1e37544231516f0e1e470e25097fffee3 | e708393068b0d795278b1d0e5107c29a4cfac435 | refs/heads/develop | 2023-07-02T18:03:57.366872 | 2021-08-11T08:47:24 | 2021-08-11T08:47:24 | 390,280,466 | 0 | 0 | null | 2021-08-06T14:13:09 | 2021-07-28T08:49:24 | Python | UTF-8 | Python | false | false | 1,278 | py | import functools
from typing import Optional, Sequence
from sentry_asgi import SentryMiddleware
from starlette.middleware import Middleware
from starlette.middleware.base import BaseHTTPMiddleware
from fastapi import Request, Response
from {{cookiecutter.repo_name}}.api import api_router
from {{cookiecutter.repo_na... | [
"moshe@ownbackup.com"
] | moshe@ownbackup.com |
33692068f84d8ee187ad0ee48512f4f2d57de50c | 19cedb222593a6883da1e8c9f5259d2354bd0c39 | /fundamentals/encapsulation.py | 791ac0dd7034e20a2517992cb15249f936adde48 | [] | no_license | rkbeatss/object-oriented-python | 5dc428a93c664b2c7d5a5abfc163742c4c6a5200 | e88c69f5386f8cf54a60aef1fb90e57afa8aa0c3 | refs/heads/master | 2023-01-24T13:46:51.510459 | 2020-11-18T21:14:44 | 2020-11-18T21:14:44 | 314,058,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | class Employee:
def __init__(self):
self.__name = "Hubert"
self.__age = 20
def get_employee_info(self) -> str:
return f"{self.__name} is currently {self.__age} years old!"
def get_name(self) -> str:
return self.__name
def get_age(self) -> int:
return self.__ag... | [
"rkaus053@uottawa.ca"
] | rkaus053@uottawa.ca |
e3b48da8ce2e3caf7bdbcdad48e198d8fe09d303 | e446861bb81f50108ca353bbb35fee1b65837b2d | /testModules.py | 96e5291d6f59fc17878fd0500c978afcaf4c084f | [] | no_license | wjwABCDEFG/wjw-DecisionTree | ef429cdc7dd0ec5e36d25e054b7005d055555699 | 476fd87c485daebb54f50c5977ced7ba3ba23067 | refs/heads/master | 2020-07-30T15:14:40.314983 | 2019-09-23T06:27:34 | 2019-09-23T06:27:34 | 210,273,791 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | """
author:wjw
email:975504808@qq.com
create time:2019/09/19 21:55
测试模块,开发过程中测试每个函数,可删勿理
"""
import re
import utils
import numpy as np
# 第一组数据
# 数据集处理
str_raw = '帅。不好。矮。不上进。不嫁。不帅。好。矮。上进。不嫁。帅。好。矮。上进。嫁。不帅。爆好·高。上进。嫁。帅。不好。矮。上进。不嫁。帅。不好。矮。上进。不嫁。帅。好。高。不上进。嫁。不帅。好。中。上进。嫁。帅。爆好·中。上进。嫁。不帅。不好。高。上进。嫁。帅。好。矮。不上进。不嫁。帅。好。矮。不上进。不嫁。'
lis... | [
"32508332+wjwABCDEFG@users.noreply.github.com"
] | 32508332+wjwABCDEFG@users.noreply.github.com |
3a80b5901147ca35efec941d97cfb88a4778c4f9 | d7c8d8a57ea4f60463d0c82ead54f9772c307738 | /CMSSW_10_6_5/src/workspace/Dilepton-grid/draw_band.py | 4ad4d32e6b10bfff8a2a4d61bc130267fc6740dc | [] | no_license | miguelgallo/DileptonAnalysis | e4381a344c74ed4c71ea60deedb5f8f8b5522cef | 943378660e39b6783fed3c34d64ac48425906000 | refs/heads/master | 2021-08-07T20:35:26.998111 | 2020-06-27T02:59:00 | 2020-06-27T02:59:00 | 191,446,046 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,884 | py |
import numpy as np
import ROOT
def draw_band( functionprotonName, functionmumuName, graph_matchName, graph_non_matchName, titleName, fileName ):
xi_min = 0.
xi_max = 0.25
file_func = ROOT.TFile("histos_MC/pol_function.root","READ")
res_vs_xi_proton = file_func.Get( functionprotonName )
res_vs_x... | [
"miguelalvesgallo@gmail.com"
] | miguelalvesgallo@gmail.com |
923ce9012e3347a4b7a85410149a6f8a6311010d | eeef25e331fe3bc06d788dc0dd08a028d361edbc | /Python/Catalan.py | 854c3e7bc9896438b789ee4cd0c6a33afaaeba79 | [] | no_license | prokarius/hello-world | d483083172e600832a729ee44bf4a39880e79245 | c8a4a500e9fbf2f746ecb25c4710359fbae23bc5 | refs/heads/master | 2022-04-29T20:31:26.937487 | 2022-03-19T08:07:32 | 2022-03-19T08:07:32 | 93,074,171 | 47 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | catalan = [1]
new = 1
for i in range (5000):
new *= (4*i +2)
new /= (i+2)
catalan.append(new)
numcase = int(raw_input())
while numcase > 0:
Q = int(raw_input())
print catalan[Q]
numcase -= 1
| [
"rollingwithoutslipping@yahoo.com"
] | rollingwithoutslipping@yahoo.com |
9355bef8b79c6821c8c46453c1e4318117f9c28a | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/papyon/service/description/Sharing/common.py | 03cb051d878d3a76ba9f7a4ae90d9149544ca69c | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | /usr/share/pyshared/papyon/service/description/Sharing/common.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
ba49362f56a7b9a8d89443d0589c5603ff8466d7 | 82adfe2b2b6bc3989f8b860513d5ee4b753987e3 | /pytmcapi/swagger_client/models/task.py | b7d540f09e4de4a2341047177ed75f93dbff6431 | [
"Apache-2.0"
] | permissive | mverrilli/tmc-api-clients | 9ffc520a21b791d5047dfd74050af9bd6268b7a5 | 0d2752a4c2f43b19da9714072d03c15dccf2619a | refs/heads/master | 2021-05-17T22:45:38.453946 | 2020-04-06T16:32:40 | 2020-04-06T16:32:40 | 250,986,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,855 | py | # coding: utf-8
"""
Talend Management Console Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re #... | [
"mverrilli@talend.com"
] | mverrilli@talend.com |
b8829428b5df4a97033baf34a78d530b43e477c5 | 27ce5035140a5023de0892f4c3837bb03d47a700 | /run_model.py | 280b6384df6557d48a20764342706fa8c9ae277b | [
"MIT"
] | permissive | matteorr/rel_3d_pose | 42cb155bdce394a578095a32a9b5793e3564cd68 | dcb9838bfc575d267a99998982ba756f073bc5d8 | refs/heads/master | 2022-05-12T13:08:32.951614 | 2022-05-02T04:53:16 | 2022-05-02T04:53:16 | 143,567,259 | 76 | 8 | MIT | 2018-09-21T21:45:44 | 2018-08-04T22:32:07 | Python | UTF-8 | Python | false | false | 5,999 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
import os, json
from pprint import pprint
import numpy as np
import torch
from torch.utils.data import TensorDataset, DataLoader
from torch.autograd import Variable
from src.data_formats.misc import Datase... | [
"mronchi@caltech.edu"
] | mronchi@caltech.edu |
3fb3765a1e602eb8cf08fe45b9b2285878edc0ad | 277c29b460cef26db7d43fb80d10667f5fa321f6 | /SEIR_extended/calculate_healthcare_costs.py | 8db1abc881046b500f7c826c17601f8db2b33774 | [] | no_license | zuzancek/corona | 75e0bd3678f1a01ec0109338067649abf1292bbe | da15613e231d4d61a0a6bb739b59454a65c0c36f | refs/heads/master | 2021-07-16T14:56:27.052410 | 2021-05-24T21:34:08 | 2021-05-24T21:34:08 | 248,943,879 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,465 | py | import sys
import numpy as np
import pickle
import pandas as pd
import time
import init as x
from random import sample
import init_healthcare as xx
def get_htc(inflow):
HTC = np.zeros(shape=(x.N_per+1, 16))
HTC[0,0] = x.first_infections_unobserved_asymptomatic
HTC[0,1] = x.first_infections_unobserv... | [
"zuzana.mucka@RRZ.SK"
] | zuzana.mucka@RRZ.SK |
1b03c884bc103c0ed31e7a6ba4a78c2c7807ea70 | 06845fc008705076bc3f1e0263e843cb5a453aa0 | /miSitio/settings.py | 5f528718536baa44ab6871c41add86effd2a9f4b | [] | no_license | burdasparUPNA/my-first-blog | 61077ddbd3aff08a9acd0086f8099cc6cdb75a6d | ff8707384c8d252d39ba1a83ccf1497c83d3b26c | refs/heads/master | 2020-08-26T17:58:28.810675 | 2019-10-23T16:13:46 | 2019-10-23T16:13:46 | 217,095,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | """
Django settings for miSitio project.
Generated by 'django-admin startproject' using Django 2.0.13.
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/
"""
import os
... | [
"burdaspar.110936@e.unavarra.es"
] | burdaspar.110936@e.unavarra.es |
099d1b937e15ed45b66b4db94e9a8e584da27c42 | a43799f16005f8adc1a462a66df74210ec251266 | /main.py | e23b2ca7d03bead6b7e6335505e1b9bd52d1cdf7 | [] | no_license | limisie/nn-simple-nn | f1a0230e23e29073a2907241458f54f688a0b111 | ead0833ba78f930bca12d871e42792226fd7aa6f | refs/heads/main | 2023-08-15T04:11:53.303777 | 2021-10-13T10:31:37 | 2021-10-13T10:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | from data import x_train, y_train, x_test, y_test, classes, input_data
from models import Adaline, PerceptronUnipolar, PerceptronBipolar
def convert_for_bipolar(arr):
arr[arr == 0] = -1
def n_iteration_stats(n=1000, learning_rate=0.005, weight_range=0.01, allowed_error=0.5):
epochs = 0
times = 0
bi... | [
"k.limisiewicz@gmail.com"
] | k.limisiewicz@gmail.com |
df94396508a7f40be4eeb86bc5443e9ec1b828e5 | 4e075be7d0e1a6a2fce6ef7b334e12339f98bbf9 | /djangoapp/bin/wheel | 8a3d7b23d99f43e63d9172ed88bcf536ae48ec53 | [] | no_license | prashantssingh/djangoapp | 0155ba9fc75f4f11fcbfe5c14c3e3157b522c00e | 641d64c307c32bbec4c883f74eb46433028e7b17 | refs/heads/master | 2020-12-11T01:36:01.433623 | 2020-01-19T05:59:47 | 2020-01-19T05:59:47 | 233,765,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/prashant/codebase/src/github/prashantssingh/djangoapp/djangoapp/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prashant_singh@live.in"
] | prashant_singh@live.in | |
7887e161c034ca72ce90fc63d3f80203c96bc7f8 | cd0c24cdc07d1842d0ffbcd481b8fcb8aede1344 | /examples/custom_infer.py | f53e4f1e3a9cd78c1099af3308b7efa0df270656 | [
"Apache-2.0"
] | permissive | songwang41/fastT5 | ae32ed57c29b312ecf62d55ea32e0bd3df8b6650 | 21c24c198050ba12e63a2eda5a31d5eb182d8938 | refs/heads/master | 2023-09-01T12:01:25.962641 | 2021-10-15T06:05:44 | 2021-10-15T06:05:44 | 417,377,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | from fastT5 import (
OnnxT5,
export_and_get_onnx_model,
get_onnx_model,
get_onnx_runtime_sessions,
generate_onnx_representation,
quantize,
)
from transformers import AutoTokenizer
model_or_model_path = "t5-small"
# Step 1. convert huggingfaces t5 model to onnx
onnx_model_paths = generate_onnx... | [
"kiranr8k@gmail.com"
] | kiranr8k@gmail.com |
f4a69f2772c573ca821813b9ddf51a2201c316df | 07641678207eb52fc62acdb3dc409712c5d73933 | /gwas_wrapper/__init__.py | a86dc892deccac98d22d159c5253c9ad1a028372 | [
"MIT"
] | permissive | arvkevi/gwas-wrapper | 6c44b536528054dd4261a31e6690c139e7302092 | f4b42535c84f6a354f36e4c5e0754345ff766c03 | refs/heads/master | 2021-01-15T08:15:17.654123 | 2016-04-23T15:40:40 | 2016-04-23T15:40:40 | 56,402,953 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | from gwas_wrapper import GWAS
| [
"arvkevi@gmail.com"
] | arvkevi@gmail.com |
e55724a165065062ec4d801ea86c00fc1f33ec11 | 1062df20cd4e90486f3e301e86b1a19ce9a382cf | /DL_inference/network7_256/deepvoxel.py | 44b42207b74c4dbe1e7004a8a655f9c21721aef2 | [
"MIT"
] | permissive | Hagtaril/NLOSFeatureEmbeddings | cd6dfabee501f6199a33925d5997bc9df86466b3 | f882ca5684e9b6ffb16052a714714f570e606295 | refs/heads/main | 2023-01-28T19:59:43.748460 | 2020-12-11T05:20:02 | 2020-12-11T05:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py |
import torch
import torch.nn as nn
import numpy as np
from customer_layers_3 import \
Transient2volumn, \
VisibleNet, \
Rendering
import sys
sys.path.append('../utils_pytorch')
from tfmodule import diffmodule as lct
###########################################################################
def normalize(data_bxcx... | [
"weifangyin@dynamic-oit-vapornet100-10-9-151-26.princeton.edu"
] | weifangyin@dynamic-oit-vapornet100-10-9-151-26.princeton.edu |
9d0608b995e4660701d371a2c42be94925b66cd4 | 60e2b0f728bf7b497e241afdacffaa8ee9203213 | /rede_neural_convolucional/digitos/mnist.py | 0b6c0882af2d83dc5b7f25954c5f5421138d2d41 | [] | no_license | yamadayoshi/deep_learning | 43897d59dc3f89ecd4820050b96acacbf653408e | 78bbf5b12011a5d17375b50b75203251003cb3d0 | refs/heads/master | 2021-02-19T01:02:57.934801 | 2020-03-10T20:02:45 | 2020-03-10T20:02:45 | 245,260,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | import matplotlib.pyplot as plt
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Flatten, Dropout
from keras.utils import np_utils
from keras.layers import Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
#load mnist data
(X_training, y_... | [
"andre.yamada@digiage.com"
] | andre.yamada@digiage.com |
fd3b2d8b5fd46efa9b03f3296f898075dcfbd82d | 999ed80db247794159be1d752bc6f0fc272bd117 | /tests/common/devices/cisco.py | 393dab910451d374e9cbc154255e0955b1fbee70 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ramakristipati/sonic-mgmt | 7fee876412f0121da96d751f7d199690c73496f3 | a86f0e5b1742d01b8d8a28a537f79bf608955695 | refs/heads/master | 2023-08-31T07:55:38.446663 | 2023-08-31T06:34:53 | 2023-08-31T06:34:53 | 315,448,103 | 2 | 0 | NOASSERTION | 2020-11-23T21:44:07 | 2020-11-23T21:44:07 | null | UTF-8 | Python | false | false | 59,352 | py | import re
import os
import sys
import logging
import functools
import time
from paramiko import SSHClient, AutoAddPolicy
from tests.common.devices.base import AnsibleHostBase
from ansible.utils.unsafe_proxy import AnsibleUnsafeText
# If the version of the Python interpreter is greater or equal to 3, set the unicode va... | [
"noreply@github.com"
] | ramakristipati.noreply@github.com |
a1fe40ff78a33f1e7c1a7088b726b91d8af85485 | fd26eda30e2b9f878102292c21cae7d437e4714b | /utils/logger.py | 7778de4819ce8717051ab14b2b61846136656ea0 | [] | no_license | aj1143208/fer | cacbe29e9a1d6005f80837f17081757d4327d4f7 | 31ec248d9f11c7f3a4fddb253b8a433258e77003 | refs/heads/master | 2023-05-08T13:51:08.360227 | 2021-06-03T18:59:42 | 2021-06-03T18:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from matplotlib import pyplot as plt
import os
class Logger:
def __init__(self):
self.loss_train = []
self.loss_val = []
self.acc_train = []
self.acc_val = []
def get_logs(self):
return self.loss_train, self.loss_val, self.acc_train, self.acc_val
def... | [
"yousif.khaireddin@gmail.com"
] | yousif.khaireddin@gmail.com |
5d99e8da65f1ef81b8c30662ccbe271785a7fb46 | a596602db5a4636492f33468f0269222cfac9894 | /Blog/index/urls.py | 8e638d2261b565d6af50e802a6e14c9672ec49f0 | [] | no_license | chen40/blog | 76a78dca11d264d1d2a3921c2969a740e8f6a9a7 | 34d357c4ec48237a1a5fb3e8e929e63cbabc416d | refs/heads/master | 2020-04-04T13:10:28.148949 | 2018-11-13T06:47:10 | 2018-11-13T06:47:10 | 155,951,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from django.conf.urls import url
from .views import *
urlpatterns = [
url(r'^$', v_index),
] | [
"chen40@163.com"
] | chen40@163.com |
9de214237dad71adf0c2d29d72473bff01336613 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-bms/huaweicloudsdkbms/v1/model/sub_jobs.py | f3a3cfa52d06c87e9133020d92bdf36ea254d459 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,306 | py | # coding: utf-8
import re
import six
class SubJobs:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6edefe7fcee4cbc139a27cd711a075b6fc4476dd | 62fb4dc94d1481904ad7539afe40ed211453f0d7 | /medical_prescription/dashboardPatient/views/home_patient.py | b68730e6fd1190f930418b2dedd6e891bb715145 | [
"MIT"
] | permissive | ristovao/2017.2-Receituario-Medico | 3a3b2baaf11d6e374ecbc5b7243fb8175317e639 | 5387eb80dfb354e948abe64f7d8bbe087fc4f136 | refs/heads/master | 2020-03-31T23:56:08.809569 | 2018-10-12T01:11:04 | 2018-10-12T01:11:04 | 152,674,938 | 0 | 0 | MIT | 2018-10-12T01:08:07 | 2018-10-12T01:08:07 | null | UTF-8 | Python | false | false | 1,762 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime, timedelta
# Django imports
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.views.generic import View
from django.utils.decorators import method_decorator
# local dja... | [
"lucas.hh@hotmail.com"
] | lucas.hh@hotmail.com |
e504d94610a1fa152f33781ddd97b1d5df047ba4 | a45331991f550192df9df9075fa718ea72bee1e9 | /lustro.py | a776c162c6ce73936960bc145ee5cb74d9bc8047 | [] | no_license | constans73/ejercicios_basicos | 756173160022212133ca1fe5bfbc7cc2d5747002 | eb564eb1a8973786a0dd3a80c55cd419c16020fc | refs/heads/master | 2022-08-03T11:12:48.964190 | 2020-05-23T15:22:15 | 2020-05-23T15:22:15 | 266,362,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py |
lustro = (((365*5)+1)*24*3600)
print ("Un lustro se compone de",lustro, "segundos") | [
"constans73@gmail.com"
] | constans73@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.