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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6bc8c735def6cada2c4cabcea9501368bd6d6430 | 0c997ec448aeb9252b4b165832733de4698fae92 | /flocx_ui/api/flocx_market.py | dc81f9c54ed8c55b6e6ed600b64f6dd6ce7e777f | [
"Apache-2.0"
] | permissive | CCI-MOC/flocx-ui | 29946f17c209018526f4659948510ad02987db66 | 29001f90d5e023c3402cdbb90ac8ca5fbe6733f8 | refs/heads/master | 2021-06-12T07:05:33.141311 | 2019-08-12T23:30:42 | 2019-08-12T23:30:42 | 194,907,802 | 1 | 5 | Apache-2.0 | 2021-06-10T21:39:52 | 2019-07-02T17:32:48 | JavaScript | UTF-8 | Python | false | false | 2,162 | py | from flocx_ui.api import schema
from flocx_ui.api.utils import generic_market_request as generic_request
from flocx_ui.api.utils import validate_data_with
def get(path, **kwargs):
"""An alias for generic_request with the type set to 'GET'
:param path: A url path
:param **kwargs: The keyword arguments to b... | [
"jdtzmn@gmail.com"
] | jdtzmn@gmail.com |
1f0ba2eb90839c85462d5f63334dbc88a90db375 | 1d672c52ada009c6aeeafec6caeae0adf064060d | /docs/source/conf.py | a97a5551e3ae8bef36af79a0972f0eb8404b6190 | [
"BSD-3-Clause"
] | permissive | sakshiseth/fury | 9927487aaf5dd1b2dc0db5cd31facdb4743f86dd | 5799e445a5a306852a674396803bbefa922f0ae6 | refs/heads/master | 2021-01-13T20:18:49.848717 | 2020-02-22T20:54:59 | 2020-02-22T20:54:59 | 242,483,253 | 0 | 1 | NOASSERTION | 2020-02-23T08:39:05 | 2020-02-23T08:39:04 | null | UTF-8 | Python | false | false | 7,705 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# FURY documentation build configuration file, created by
# sphinx-quickstart on Thu Jun 28 12:35:56 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | [
"skab12@gmail.com"
] | skab12@gmail.com |
ed637d9a5c33ed53f381056726ee3d448dd46715 | ac0e7afa7105b0d20baa164cb23e1b563baa837f | /practica08/application/controllers/productos/index.py | bd1d50635a32f69ab44484397682abfbb3a83daf | [] | no_license | IsaiasManuelAranda/Webpy_-_MVC | 54ebd5b8fc6b466869d634ebdc78dde25f46b8ca | d31c238c4b2c0a71d494d2b7cf76b639976f5312 | refs/heads/master | 2020-04-20T10:36:15.200006 | 2019-02-02T04:27:09 | 2019-02-02T04:27:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import web
import config as config
class Index_produ:
def __init__(self):
pass
def GET(self):
productos = config.model_productos.select_productos().list() #Selecciona los registros de productos y los lista
return config.render.index_p(productos) #Envia los datos como param... | [
"noreply@github.com"
] | IsaiasManuelAranda.noreply@github.com |
b57c993b80ea8744fcbdb134420326c2234f45de | 9d72da433f5e0ef9bea202d8773f77ca60470ed3 | /cyanochew/provescyanobyte.py | 32921dff69165baf62e761aff162cb70a9bd7113 | [] | no_license | polfeliu/Cyanochew | 50fbd28f7b1a073b72c2b63625d092e3f480c7f9 | 6526b17aabac7c9fab2f9ad3a9446e9a2a6887d8 | refs/heads/master | 2023-05-11T04:12:22.973183 | 2021-06-01T19:40:27 | 2021-06-01T19:40:27 | 343,541,935 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | from cyanobyte.codegen import gen
from cyanobyte.validator import click_valdiate
from click.testing import CliRunner
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
runner = CliRunner()
# Validate
result = runner.invoke(click_valdiate, [
"test/peripherals/examp... | [
"feliupol@gmail.com"
] | feliupol@gmail.com |
48ecd5395f82be6e21ab9af2756dce7583fb69e7 | f21ec5d99b50bea470adbffc2422f3112117e322 | /projects/2020/x/commerce/auctions/models.py | 5d1379685184489178ce2b6bdbc94387c413f323 | [] | no_license | noahjeffers/web50 | 86694e5809d445f262fc0e645c1985b9ec786a83 | eaf18b51a69019b6d0c35759c71706b620ae7e64 | refs/heads/master | 2022-12-03T21:57:59.881152 | 2020-08-27T20:27:38 | 2020-08-27T20:27:38 | 285,107,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
pass
class Listing(models.Model):
title = models.CharField(max_length=64)
description = models.TextField()
imageLink = models.CharField(max_length=200, blank=True, default=None, null=True)
... | [
"59740042+noahjeffers@users.noreply.github.com"
] | 59740042+noahjeffers@users.noreply.github.com |
4513165496d6f2e83579ac9cf0684f88a705068e | d020606f5e9174aa669e4b6b316bdb0fcb05ce02 | /run_test.py | dc79693a586c6b2f47af9c3cd513684781ca785c | [] | no_license | Hanlen520/AutomationProject | 4c1270fba570b256493cd6681d715e0b5136a4f5 | 95a7cb61d8b339a6409483d738de5a0d9d85b321 | refs/heads/master | 2023-04-02T20:23:07.696753 | 2021-04-07T07:57:04 | 2021-04-07T07:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,342 | py | # coding = utf8
import logging
import multiprocessing
import subprocess
import pytest
from airtest.core.api import *
from poco.drivers.android.uiautomation import AndroidUiautomationPoco
from config import install_app_necessary, SERIAL_NUMBER
from page.fota.fota_page import Fota_Page
from page.main_page import Main_P... | [
"39899119+792607724@users.noreply.github.com"
] | 39899119+792607724@users.noreply.github.com |
1d7bdba4d6116b2ddb547eb124da03e5267a6f0b | 6a2190c6d48db0c0708b267aeef9f0237be6441d | /forestrysafe/manage.py | 98dc7d65acf82e6ef94bbb2584728221402fdcc2 | [] | no_license | ValeriaSerdiuk/forestrysafe1 | 60e5dc47c7b78e388510415ceab92822fda808a6 | fc15dab19f78385d1ed349769e1922688ce94297 | refs/heads/master | 2023-05-21T05:36:50.386781 | 2021-06-09T16:45:09 | 2021-06-09T16:45:09 | 375,371,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'forestrysafe.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"valeriia.serdiuk@nure.ua"
] | valeriia.serdiuk@nure.ua |
04ccf5f203c5f325f1ea501592b7041c757b936e | db75555962fec912e0906ceebe1ffd9a7d3ebe3d | /test.py | 493dde5cd20dc454d0ddf5426029ef2e17f42a97 | [] | no_license | mikan3rd/youtube-rank-api | 620ed91a92c114e9369ad37528f8f8008fe7ed03 | 5a11fa1e12c98663ece9ae857a51304c7bad4f21 | refs/heads/master | 2021-05-09T18:54:13.933699 | 2019-07-14T13:16:47 | 2019-07-14T13:16:47 | 119,176,819 | 2 | 0 | null | 2020-05-20T16:21:44 | 2018-01-27T15:36:59 | Python | UTF-8 | Python | false | false | 308 | py | from app.tasks import tweet_crawl, twitter, twitter_tool
twitter.search_and_retweet('splatoon')
# exit()
# api = twitter.get_twitter_api('splatoon')
# twitter_tool.search_and_retweet(
# username=api.username,
# password=api.password,
# status='人気ツイート',
# query=api.query,
# )
| [
"mikan.no.kikoushi@gmail.com"
] | mikan.no.kikoushi@gmail.com |
eb525e2ac4b98dac4261e2d6857bca7619fda42c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_disgraced.py | e19865eec3d6c3da4393171f3fa501464fae3db9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.verbs._disgrace import _DISGRACE
#calss header
class _DISGRACED(_DISGRACE, ):
def __init__(self,):
_DISGRACE.__init__(self)
self.name = "DISGRACED"
self.specie = 'verbs'
self.basic = "disgrace"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4c80939b4dbe72cfb19b4f2f92fe4e430cc84247 | 1a36525eb6219b4d4f4628ebd3dbf72c3df4dcb7 | /taller6/ED2.py | 9d7777a06042d5c094475cea8bf386fb5d967738 | [] | no_license | lichobaron/TalleresAA | 06484987b8b6f09416277608190e91f5696d2c37 | 09f326e1e58d43c437eeb7a0a58bd6d4f8eacb02 | refs/heads/master | 2020-04-19T14:06:13.277073 | 2019-01-29T23:16:30 | 2019-01-29T23:16:30 | 168,233,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | def ED(X, Y):
return ED_Aux(X, Y, len(X)-1, len(Y)-1)
def ED_Aux(X,Y,i,j):
if i == -1:
return j
elif j == -1:
return i
else:
det = ED_Aux(X, Y, i-1, j) +1
ins = ED_Aux(X, Y, i, j-1) +1
chg = ED_Aux(X, Y, i-1, j-1) + d(X,Y,i,j)
if det < ins and... | [
"noreply@github.com"
] | lichobaron.noreply@github.com |
c191062443c1d272c2416080c10147314a90ee02 | c795a3b9121536935dea57490ef5e70e05494a41 | /python/166/D/00.py | c416afba2b23f03e0cd8665cc4ec1a508f9dd871 | [] | no_license | Koya-Katayama/abc_submits | 8d209252ad2b0f2c34b24f4845dcc98a8945c533 | ae45a4f1dbd07c523d9790e0399a5b39062f201a | refs/heads/master | 2022-05-29T15:46:37.690029 | 2020-05-03T14:04:50 | 2020-05-03T14:04:50 | 257,000,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | x = int(input())
r = range(-500, 501)
flag = False
for i in r:
for j in r:
if i**5 - j**5 == x:
print(i, j)
flag = True
break
if flag:
break
| [
"noreply@github.com"
] | Koya-Katayama.noreply@github.com |
deb2816391776a3b2e5000af63e756eca309611d | 5a2c6dcb1f14eb56bef782ffde6b305e9250bda5 | /chap14/moneys/expression.py | c558e033327dc59f5c0427b660b053c54b036f09 | [] | no_license | RY908/tdd_python_implementation | 8da910bd555e5901b159bd166d6a705608ed7a80 | 8e0cafd6327c481baa17f700233978dc1812dd6c | refs/heads/master | 2023-07-10T10:05:48.738231 | 2021-08-24T06:38:16 | 2021-08-24T06:38:16 | 396,357,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from __future__ import annotations
from abc import ABCMeta, abstractmethod
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .money import Money
from .bank import Bank
class Expression(metaclass=ABCMeta):
@abstractmethod
def reduce(self, bank: Bank, to: str) -> Money:
pass
| [
"ryuuryuu908@gmail.com"
] | ryuuryuu908@gmail.com |
03cf906edb96cb427cd37f0de2a53228c70ea321 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_pytz/zoneinfo/Africa/Asmera.py | 9ccd9c3141892ef8d1d76acc48c773f5c5c4c4cf | [
"MIT",
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | '''tzinfo timezone information for Africa/Asmera.'''
from zpt._pytz.tzinfo import DstTzInfo
from zpt._pytz.tzinfo import memorized_datetime as d
from zpt._pytz.tzinfo import memorized_ttinfo as i
class Asmera(DstTzInfo):
'''Africa/Asmera timezone definition. See datetime.tzinfo for details'''
zone = 'Africa/A... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
45e1ebd5a074a09a1d65ca03853cf503707a1b2c | 7c4ef470f7822810760f397c4b4a398476a65986 | /pytorch_lightning/plugins/training_type/sharded_spawn.py | e73fcd43cf33c184fa60d2b8344ab88544f807c6 | [
"Apache-2.0"
] | permissive | bamblebam/pytorch-lightning | 559dffd9ecffe05a642dacb38813c832618ae611 | c784092013d388e45ae83a043675c627e7ca527f | refs/heads/master | 2023-08-09T21:04:47.327114 | 2021-09-14T10:27:56 | 2021-09-14T10:27:56 | 374,527,452 | 0 | 0 | Apache-2.0 | 2021-06-07T03:51:56 | 2021-06-07T03:51:55 | null | UTF-8 | Python | false | false | 4,266 | py | # Copyright The PyTorch Lightning team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"noreply@github.com"
] | bamblebam.noreply@github.com |
8cacf66cf3e3f8a6bb6617d430bb54bd6e717fb0 | 399a500184e7e3111896e4584d35c300f49328b7 | /store/migrations/0008_alter_reviewrating_user.py | 47e88af6337592c71ee2cfbdd7aa6b15630c0418 | [] | no_license | Fakhrillo/Fun-shop-v2 | f0f51530256fbee38884bd1b6f84c23de21cbca6 | 00f08f44c8b317763985b4f24d5ddd3fba3c54e1 | refs/heads/main | 2023-08-06T17:03:59.278832 | 2021-10-09T07:43:22 | 2021-10-09T07:43:22 | 411,153,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # Generated by Django 3.2.7 on 2021-09-27 21:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_alter_userprofile_user'),
('store', '0007_alter_productgallery_options'),
]
operations = [... | [
"dombit1999@gmail.com"
] | dombit1999@gmail.com |
f112a407a6740348d20de06c4c9e012ea20b1565 | 3b46f7b096efb9d814c3c343ef7c6cd4cd6b6a6e | /JOSAApaper/slopes_vs_whole.py | 83e1b728503786a824a0f15a8b29640ccce1005e | [] | no_license | ComputationalAstrologer/Optics | d265774ab4af009f482e1a4eb4af4e1027b1965f | fc7c277f45866ee0a746b517a184680232eae0f3 | refs/heads/master | 2023-06-23T23:30:47.889328 | 2023-06-12T21:42:58 | 2023-06-12T21:42:58 | 132,665,393 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,536 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 26 16:22:41 2017
"""
import numpy as np
import matplotlib.pyplot as plt
import cPickle as pickle
from os import path
import time
import Pyr as pyr
#%%
strehl = 0.4
pcount = 1.e7
reg = 1.e-7
ntrials = 1
sigma = pyr.StrehlToSigma(strehl)
print("i... | [
"polygraph911@gmail.com"
] | polygraph911@gmail.com |
2736cd03881b87e222ecd21b6b92c7e5445f98f5 | 31d5bebb9667b17a17fe98a5c3064cac5a0fd4dd | /calisanProfil/urls.py | 219a0406652a00ff45e0ff330c77ec07ab045d24 | [] | no_license | refik/audio | d6b8829fafcfa2c54e6f477ceede210a2f5d4f41 | 011b7b0f01d14529b91bf6f4d3c5919823e19e6b | refs/heads/master | 2021-01-17T17:06:06.202561 | 2015-09-17T05:38:22 | 2015-09-17T05:38:22 | 1,948,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('audio.calisanProfil.views',
(r'^musteri-temsilcisi/', 'temsilci'),
)
| [
"refik.rfk@gmail.com"
] | refik.rfk@gmail.com |
0fe9c746bbc3125b3782ee930a2c84333c287b39 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/Summer20UL17/TTJets_DiLept_genMET-150_TuneCP5_13TeV-madgraphMLM-pythia8_cff.py | 554733df78bf4f09d59066ea4d14db9921190388 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 105,012 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer20UL... | [
"hiltbran@umn.edu"
] | hiltbran@umn.edu |
4707f0ba46408fd186e5c23b162be47f50530c0a | 5f7baa2b078e0e983f57b5e7537a1fcb3ea4e081 | /demud/dataset_des.py | 681e1ab377153fecd5dac19cb3bc56679467f1b9 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | jakehlee/DEMUD | 82e2d542f47ed875b2aed80b5aeffe4511eb43a2 | 81ac7d1002ae95a3aaf99cf2070f1e022a2ffa81 | refs/heads/master | 2020-12-02T18:00:16.914460 | 2020-06-13T08:00:18 | 2020-06-13T08:00:18 | 96,459,900 | 2 | 0 | Apache-2.0 | 2020-06-12T19:51:42 | 2017-07-06T18:22:37 | Python | UTF-8 | Python | false | false | 16,037 | py | #!/usr/bin/env python
# File: dataset_des.py
# Author: Kiri Wagstaff, 8/28/17
#
# Class for reading in DES data in FITS format.
# DES: Dark Energy Survey
# Collaboration with Tim Eifler and Eric Huff
#
# Copyright 2017, by the California Institute of Technology. ALL
# RIGHTS RESERVED. United States Government Sponsors... | [
"kiri.l.wagstaff@jpl.nasa.gov"
] | kiri.l.wagstaff@jpl.nasa.gov |
44de94bd2f50751590318f5e1ab00984c2fa3868 | 714b0411a7c14dbebeceee3c16eea32525db2c24 | /src/google_calendar.py | c432d10527475e4449a79a1ec360a308c5586f77 | [
"MIT"
] | permissive | hroncok/Google-Calendar-Simple-API | 76c1ecbceff8e1430e9a222edce3075453c46624 | 0891485005d909283d862dc5a41a96ccb93209ac | refs/heads/master | 2020-04-11T02:57:11.495504 | 2018-12-11T22:39:27 | 2018-12-11T22:39:27 | 161,462,603 | 0 | 0 | MIT | 2018-12-12T09:17:10 | 2018-12-12T09:17:10 | null | UTF-8 | Python | false | false | 2,223 | py | import httplib2
import os
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
def _get_default_credentials_path():
home_dir = os.path.expanduser('~')
credential_dir = os.path.join(home_dir, '.credentials')
if not os.path.exi... | [
"kuzmovich.box@mail.ru"
] | kuzmovich.box@mail.ru |
a4a98a151d78e00cc97f3606cb1aed431e962869 | b672c800c634e195e006d791bc8d9ae500eff944 | /life.py | c4bf9c8b69ac175dca87c0880777981bb567f5c4 | [] | no_license | george-hm/game_of_life | 01f72c8d0543e475ca798e9f7bb3141c48323144 | eec948f269fd3c635b1913cf89d5974c52862570 | refs/heads/master | 2020-04-29T16:34:00.097947 | 2019-03-18T11:09:29 | 2019-03-18T11:09:29 | 176,265,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | import random
import time
import os
class Map(object):
on = "1"
off = " "
def __init__(self, seed=None, size=None): # generate map
if not seed or seed == "": # seeding
seed = random.random()
if not size: # sizing
size = 100
self.size = size
self.seed = seed
random.seed(seed) # set the seed
... | [
"georgehm@pm.me"
] | georgehm@pm.me |
cf1372cfb3c393f87438310aae22c2f748cdc1e6 | d90455a350ae167002a29630037038caae8c5b94 | /agent.py | 24acc696b0f90670a48879d519b352f77d6b9eb0 | [] | no_license | ericchen168/smart-cab | 80e8db14c36990bfde05287a709d8269bf5056bb | 9c4d9b59c26eb51edb179aeff7357832bd5ae5db | refs/heads/master | 2021-01-01T17:28:13.733449 | 2017-01-08T00:10:28 | 2017-01-08T00:10:28 | 78,311,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,603 | py | import random
import math
from environment import Agent, Environment
from planner import RoutePlanner
from simulator import Simulator
class LearningAgent(Agent):
""" An agent that learns to drive in the Smartcab world.
This is the object you will be modifying. """
def __init__(self, env, learning=Fal... | [
"noreply@github.com"
] | ericchen168.noreply@github.com |
4f4e897088183bbff64d0256899d01d4ccc8848a | d53887a279936b023ba2213702ec15b3f85d2fa1 | /iridiumtk/rx_stats_hist.py | bb099f43896fb40d7b0d258c0e7312b1b550fd19 | [
"BSD-2-Clause"
] | permissive | TheBiggerGuy/iridium-toolkit | 658e017e2440e813f1ea310d295e54d77a007b7c | 6dddc27a45992f049d3aab36d9a4a227ee684e2b | refs/heads/master | 2021-01-13T13:43:01.236214 | 2018-05-30T12:41:44 | 2018-05-30T12:41:44 | 76,336,269 | 2 | 0 | null | 2016-12-13T07:58:44 | 2016-12-13T07:58:44 | null | UTF-8 | Python | false | false | 5,662 | py | #!/usr/bin/env python
# vim: set ts=4 sw=4 tw=0 et pm=:
# Parses .bits files and displays the distribution
# of the "HIST_DIMENTION_KEY" of received frames
import argparse
from collections import namedtuple
from datetime import datetime
import fileinput
import logging
import re
import sys
import dateparser
try:
... | [
"thebigguy.co.uk@gmail.com"
] | thebigguy.co.uk@gmail.com |
7489ba6b9b45df79183f421d24084deb03316467 | a9203123133390a00c8518e2c57ba73bdf9edba7 | /fit-yeah-app/app/seeds/users_followers.py | bb6ae1b5eb13612da5f2276675eef4848163727e | [] | no_license | bavithareddy6/fit-yeah | 611958d5c36de52644bfb93533c632c358afd9b2 | 1a51ea3ded16a48c94b657b36b2a28bac9cf115a | refs/heads/main | 2023-03-19T13:21:18.170895 | 2021-02-18T21:33:44 | 2021-02-18T21:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from werkzeug.security import generate_password_hash
from app.models import db, followers_table
print("Hello")
| [
"ryoung7986@gmail.com"
] | ryoung7986@gmail.com |
0d74495bd1cc1679a451768d66fda5ef8194d179 | ce4f7f8e9336b8bbf9cbfe147d922e37034ab6c3 | /code-festival-2016-qualc/b/main.py | 987ac90bc403547651d6d2456180210a150a8701 | [] | no_license | kussy-tessy/atcoder | 5604919747242ee9740b9131bb6e168e96af0151 | ee917fa5a5218d4a9e72f710d0d844e7c203f13b | refs/heads/master | 2023-07-21T09:25:15.464881 | 2021-09-04T14:06:02 | 2021-09-04T14:06:02 | 311,221,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
K, T = map(int,(input().split()))
As = list(map(int,(input().split())))
# if len(As) == 1:
# print(As[0] - 1)
As.sort()
As_max = As[-1]
As_other = sum(As[:-1])
print(max(0, As_max - As_other - 1)) | [
"teppei04285000@gmail.com"
] | teppei04285000@gmail.com |
7c562bd59160cfb964891453b9d4a28be9ae4772 | c6b74df572dc2dcf7034c25860d18cb3c9143d4f | /linearizer/generative.py | ec00a10615d362bf6ab18a3138b457f78f83330b | [] | no_license | kadarakos/LinearAMR | 55f2dfedb5d100988be5511004be690e2808ad17 | d8408924171960e84c92cfe46bb531b3b3ee17e0 | refs/heads/master | 2021-01-19T23:19:41.226183 | 2017-04-21T11:29:02 | 2017-04-21T11:29:02 | 88,961,862 | 0 | 0 | null | 2017-04-21T08:37:38 | 2017-04-21T08:37:38 | null | UTF-8 | Python | false | false | 3,595 | py | __author__ = 'thiagocastroferreira'
from sys import path
path.append('/home/tcastrof/amr/scp_repo')
path.append('/home/tcastrof/amr/Grammar')
path.append('../')
from compression_tree.compressor import Compressor
from ERG import AMR
import kenlm
import os
import utils
import itertools
class Generative(object):
d... | [
"thiago.castro.ferreira@gmail.com"
] | thiago.castro.ferreira@gmail.com |
4a0570c65c81d3d58ef799132c1206c6d01be707 | bcf88b912b9443c3326466c226f68a7e7ad5aa9d | /bdbag/__init__.py | ab5519ea26b97ecb75b741254c95bea69f7adaf3 | [
"Apache-2.0"
] | permissive | mvdbeek/bdbag | 33bc7e0275c720104af77654b0016024cb6ab012 | fe67b5bffc68b7dac823ce03d450ede3affccbef | refs/heads/master | 2020-03-25T05:17:09.646537 | 2018-07-12T03:58:06 | 2018-07-12T03:58:06 | 143,438,809 | 0 | 0 | null | 2018-08-03T14:42:27 | 2018-08-03T14:42:27 | null | UTF-8 | Python | false | false | 6,188 | py | import os
import re
import sys
import json
import logging
import mimetypes
from requests.utils import requote_uri
from pkg_resources import get_distribution, DistributionNotFound
__version__ = "1.4.2"
if sys.version_info > (3,):
from urllib.parse import quote as urlquote, unquote as urlunquote, urlsplit, urlunspl... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
daa15d98df1f67e5bdcef17cc40f0ecc55846745 | 6eed164d42a6a834441f7e895adce1edf04a8dc3 | /ynab_csv_converter/formats/saxotradergo.py | 36c7840583f3bad43ac4d6105eb250fe66561c89 | [] | no_license | gasbarroni8/ynab-csv-converter | 9477cf2f4dd12665684841620b91a48df1c2628e | 64fe94515c113ce9b1b87ac2ace2c78f0c6ebfe6 | refs/heads/master | 2020-12-22T18:41:43.059591 | 2020-01-03T08:25:41 | 2020-01-03T08:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | # -*- coding: utf-8 -*-
import re
from collections import namedtuple
SaxoTraderGoLine = namedtuple('SaxoTraderGoLine', [
'account_id',
'posting_date',
'value_date',
'product',
'net_change',
'cash_balance'
])
date_pattern = r'^[0123]\d-([01]\d|[a-z]{3})-[12]\d{3}$'
amount_pattern = r'^-?\d+\.\d{... | [
"anders@ingemann.de"
] | anders@ingemann.de |
ca893e5aeee0c7456739c4457ae664105c5c96c6 | 46c3fd904e7b1c45541ffe0518afe50dfdafb089 | /movie/migrations/0003_movielink_link.py | 84dc7889b0f52b99ff6733291f6811344b4d8db2 | [] | no_license | Shirhussain/Movies | 6ab10b27748bc1cdd3a904861092e5246ce01190 | 4f6639491a86708a5d04a8de7f928500ecba3fdc | refs/heads/master | 2023-01-01T07:52:25.639564 | 2020-10-26T02:15:23 | 2020-10-26T02:15:23 | 306,643,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 3.1 on 2020-10-24 17:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0002_auto_20201024_1659'),
]
operations = [
migrations.AddField(
model_name='movielink',
name='link',
... | [
"sh.danishyar@gmail.com"
] | sh.danishyar@gmail.com |
8eed1ed6028bc3b6519aa76a3e6c8f3a602d320a | 1641ec2be9bbfbfa3f385ba04942159f74738282 | /scripts/precip_interpolation.py | 03bbfa703dbe4b95e279a7365d04f2cb5716a4b1 | [] | no_license | moghimis/CPR | 458fcee983e9752c2c00a0d3df3e137135ce5f5d | 93724b1b3d3639b48460653570e6494602941828 | refs/heads/master | 2022-11-23T21:38:11.079115 | 2020-08-06T01:03:48 | 2020-08-06T01:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import __init__
import geopandas as gpd
import pandas as pd
import numpy as np
import rasterio
import rasterio.plot
from rasterio import features
import matplotlib.pyplot as plt
import os
import sys
sys.path.append('../')
from CPR.configs import data_path
# =============================================================... | [
"yon.davies@gmail.com"
] | yon.davies@gmail.com |
e77ae6ec767e5e1c57f23fa6e1ee2bc3da3cc0e4 | 422359d9039af33693f7f2893da80e78e2465088 | /wav_read/WavInfo.py | 7453103ab77a703bb15b64a152011261bda2e412 | [] | no_license | qwe111845/EOTRTS | 5ca6ba2f17744939519f03ad7bbf1bceeac15ab9 | 85290d9ba9f4b2b2b7143937f2962e737d940847 | refs/heads/master | 2020-07-28T22:46:45.369135 | 2019-09-19T18:00:19 | 2019-09-19T18:00:19 | 209,566,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
import wave
def get_wav_time(path):
f = wave.open(path, 'rb')
params = f.getparams()
frame_rate, number_of_frames = params[2:4]
time = number_of_frames / (1.0 * frame_rate)
f.close()
return time
def get_wav_frame(path):
f = wave.open(path, 'rb')
params = f.ge... | [
"qwe111845@gmail.com"
] | qwe111845@gmail.com |
47a724810b4e9c7cfd2870858a2472067fe6ff19 | 1cceef957954ec516cd8bcd9e9d51e8d9120200b | /test_retring_async.py | 1c13088f03af4ed39ea5ab6e8ea213792c02dbe7 | [
"MIT"
] | permissive | coneagoe/retrying-async | 3b8c4a51a7adcbaa2149b110199e6d0b6b5a1f7e | 54eec24e4183b4ea31c0e133ed11ec0f0535a194 | refs/heads/master | 2022-12-21T05:12:17.930689 | 2020-09-21T02:38:42 | 2020-09-21T02:38:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # coding: utf-8
import asyncio
import requests
from retrying_async import retry
def request_api_sync():
print('正在获取')
response = requests.get(url="http://www.baidu.com")
print(response.status_code, response.content)
raise Exception("异常")
@retry(attempts=3, delay=3)
async def request_api_async():
... | [
"lixiaolong@sensoro.com"
] | lixiaolong@sensoro.com |
d751ba839e41585536769b62bfa2c50a150fb12d | 6559d2c69ddcd73df844f9e26470c8ea06d92a6c | /xnr_0429/xnr/_facebook/feedback_comment.py | 550d853c6fbd9b7769168390aeafe3c05e801dbe | [] | no_license | yuanhuiru/xnr2 | cc4199fbb136fa5bdf18d879bb77ceb5155627f3 | b37ec9beccf7332efcda9bdff0c34fa3198b816c | refs/heads/master | 2020-03-21T12:22:17.392966 | 2020-01-14T06:40:55 | 2020-01-14T06:40:55 | 138,549,389 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/env python
#encoding: utf-8
from launcher import Launcher
import time
from es import Es_fb
class Comment():
def __init__(self):
self.list = []
def get_comment(self):
for url in comment_list:
driver.get(url)
root_content = driver.find_element_by_xpath('//div[@class="_58jw"]/p').text
root_tim... | [
"bingqulee@gmail.com"
] | bingqulee@gmail.com |
1aaafa9b5403e7331b1d730439c5a8e67fa3debb | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /zerver/migrations/0264_migrate_is_announcement_only.py | 073eb22a23670741fdc4d7155701549b168dfc77 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 972 | py | # Generated by Django 1.11.26 on 2020-01-25 23:47
from django.db import migrations
from django.db.backends.postgresql.schema import DatabaseSchemaEditor
from django.db.migrations.state import StateApps
def upgrade_stream_post_policy(apps: StateApps, schema_editor: DatabaseSchemaEditor) -> None:
Stream = apps.get... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
574d94704c47e4f854d58fe91f99724020f11019 | 848c1537490d53d4d7dc20607bc73a7471d25d54 | /day7/intcode_d7p2.py | ab85637a2b7a65c3cdb8631fc86698e845f81314 | [] | no_license | adam-troyer/advent2019 | 57b83ac883de71740573d0a0a750cc194630865b | 37fe6a1096819718a56ff976f82dc9ce91daf14d | refs/heads/master | 2020-11-26T12:55:53.790957 | 2020-01-10T04:34:00 | 2020-01-10T04:34:00 | 228,924,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,930 | py | from collections import namedtuple, deque
from itertools import permutations, cycle
Opcode = namedtuple('Opcode', ['num_args', 'func'])
def writer(func):
func._writer = True
return func
class Intcode:
def __init__(self, memory, interactive=False, inputs=None, debug=False):
self.mem = memory
... | [
"adam.troyer@gmail.com"
] | adam.troyer@gmail.com |
9f0fe44398ecdc7bda9c8cb213e2256c43819598 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/334/90931/submittedfiles/testes.py | 12f71f0bb7b483e5f7d1e3b92c7403e72b738f64 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
def maximo (a,b):
if a>b:
return a
else:
return b
x=input()
y=input()
print(maximo(a,b) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0ab3204a2f5926f0e823fb6c752fe0816a0d23b0 | 3f63371bf7cdf4e8f875a90fdf4967674bb0766e | /django_start/dj_prj/dj_prj/asgi.py | bc83cc8c830b5249fdf5d11e674c5471f674a6d8 | [] | no_license | Wistick/homeworks_skillfactory | c94a425b765a826d845bf428a17a8ded276790a4 | 652e1553d38e53b2a86a7c000462b624112d72d9 | refs/heads/main | 2023-05-03T15:07:08.104767 | 2021-05-14T14:14:10 | 2021-05-14T14:14:10 | 315,729,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for dj_prj 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"vadim.ska8@yandex.ru"
] | vadim.ska8@yandex.ru |
c192d8071b7f3b0bb0b5ef18f6607561d9d0b1e5 | c72f17d9658d980524d4e3a4677d2eb657f08178 | /Cab_Fare_Calculator.py | a21c80671601739e90f7b52c99efee60eba71e12 | [] | no_license | EstrellaDionis/Python-Basics | 132f5f515eb513877c0aa1c523f6f1bd3a784997 | c15c17d963c38f1355bcf462c65e6c1ef4b99561 | refs/heads/main | 2023-08-28T08:11:05.657835 | 2021-10-18T03:56:35 | 2021-10-18T03:56:35 | 387,291,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | ride_type = "Black"
credits = 4
ride_price = 0
final_price = 0
if ride_type == "Doober X":
ride_price = 20.5
elif ride_type == "Black":
ride_price = 37.9
else:
ride_price = 18.7
print("Ride Price:")
print(ride_price)
if credits > 0:
final_price = ride_price - credits
print("Final price:")
print(fin... | [
"EstrellaDionis@gmail.com"
] | EstrellaDionis@gmail.com |
7a2ab137cc8a28bba8ebf010e73fdd27b812387a | 270262c3bae7a1c2ec4b5f36eb79e7b7d0a9e06a | /prototype/__init__.py | 6f87fada88704cc80496f856fdc10492199f94de | [
"MIT"
] | permissive | jsakas/prototype | 6168d5866687c829e1b8dfc50f69d65aca7edb23 | 88e62f99b37bdc0401ae2bfd101653cfd910aab7 | refs/heads/master | 2020-06-14T17:05:19.874052 | 2018-08-18T06:06:33 | 2018-08-18T06:06:33 | 75,357,846 | 1 | 2 | null | 2017-04-12T16:04:31 | 2016-12-02T03:40:28 | Python | UTF-8 | Python | false | false | 916 | py | import os, sys, shutil
class InitializeProject(object):
def __init__(self, project_name):
package_location = os.path.dirname(os.path.realpath(__file__))
package_template_location = os.path.join(package_location, 'template')
project_location = os.path.join(os.getcwd(), project_name)
if os.path.exists(project... | [
"jon.sakas@beatport.com"
] | jon.sakas@beatport.com |
2ee054750fe8cc331ccdac81371c3d981511f136 | e42a1fd45e1d634d6392a616190414c4ab5c2bbb | /app/__init__.py | 4ff90bd1d145a13f85a8aa601655dfc3361941a9 | [] | no_license | FrancineU/Flask_Project3 | ae9a711bd2e00b238911d87e501b39e6ce3fbf63 | 004ba315f660f3be2bc790f2e6c880eb82af4ff3 | refs/heads/master | 2023-04-04T07:34:34.524377 | 2021-03-31T19:48:14 | 2021-03-31T19:48:14 | 353,472,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from flask import Flask
from config import config_options
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
#Initializing Flask extension
bootstrap = Bootstrap()
db = SQLAlchemy()
login_manager = LoginManager()
login_manager.session_protection = 'strong... | [
"uwizeyimanafrancine62@gmail.com"
] | uwizeyimanafrancine62@gmail.com |
b4a5f698bb10d79488f816794cb1ad2222a9a073 | b0586562458227bcaf1a673c92ddaf4141b661d6 | /example_etl.py | 27286d1c178c626a166e13b834a4a4ba39d72373 | [] | no_license | HyunTruth/luigi-redshift-example | d922ff8916c0f6ce42295b29431a4eb06bcb2816 | 8731ab6a1ac49e1d396047c5ce704ba56e84e490 | refs/heads/master | 2020-03-09T22:54:03.519281 | 2018-04-11T07:04:37 | 2018-04-11T07:04:37 | 129,041,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,236 | py | import logging
from datetime import datetime, date, timedelta, time
import pandas as pd
import requests
import os
# import luigi modules for redshift / s3
import luigi
from luigi.contrib import redshift, s3
# in case the intended folder such as 'tmp' does not exist, create one
def check_and_mkdir(path):
if os.pa... | [
"mysky901117@gmail.com"
] | mysky901117@gmail.com |
a6f0916d518548df3893eff0465b94ea40acb5bd | 39c9ff7d86abb04fbce9ecc0f32e2f93802d09e0 | /risultatoEsameStudente.py | e071280d523a95ae4571f3dabf5cd87c3dce8e02 | [] | no_license | rosariodp20/pythonAcademy | 0004e21df493799ff58d28296b525966aca70ebb | 53ce98e40c2e4e5135f7daa8271d97469aa1ddd1 | refs/heads/main | 2023-03-20T10:00:17.805790 | 2021-03-05T16:49:28 | 2021-03-05T16:49:28 | 343,469,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | votoScritto = int(input('Inserisci il voto per lo scritto: '))
while votoScritto<-8 or votoScritto>8:
votoScritto = int(input('Inserisci il voto per lo scritto corretto: '))
votoPratica = int(input('Inserisci il voto per la prarica: '))
while votoPratica<0 or votoPratica>24:
votoPratica = int(input('Inse... | [
"noreply@github.com"
] | rosariodp20.noreply@github.com |
18a0765043f45d98f842c701ce109b9d7adf6ff2 | 064dd52bc84b357c4398cb942949ecd8926260fc | /Misc/result_generator_test.py | 649e8a58659959ffb0b82be7829ab7e320f01e12 | [
"MIT"
] | permissive | nirantak/programming-exercises | 600ae21c44bfdaf5baddccd5a27fca522b42f46e | bd2ea5afe5fe1b21618266005130d1898df80c33 | refs/heads/main | 2023-06-19T08:39:13.781856 | 2021-07-20T13:12:45 | 2021-07-20T13:12:45 | 142,882,635 | 2 | 0 | MIT | 2021-04-01T14:57:03 | 2018-07-30T13:55:16 | Jupyter Notebook | UTF-8 | Python | false | false | 4,747 | py | import result_generator
class TestResultGenerator:
def test_one(self):
problems = {
"A": {"s": 30, "t": 4},
"B": {"s": 30, "t": 7},
"C": {"s": 100, "t": 6},
"D": {"s": 200, "t": 6},
}
solutions = [
("1", "A", "1", ["WA", "A", "TL"... | [
"me@nirantak.com"
] | me@nirantak.com |
38ec011061f02e3d75ac4e7fc7043f094cd97e87 | 71a757f128912be582f52c9ab7fb8bf6d6ad19fb | /code.py | 2d46afb89e70dfb4dea6a223f8b7c8895ea06089 | [] | no_license | lalitharaopolavarapu/logbookfacerecognisation | 4e7e20b5a2a6d263ceb9d1d454d884b7c298048f | 5e13f0b9e3aa76e01344cf897dba8988fc31a14e | refs/heads/master | 2020-05-02T11:08:25.314768 | 2019-03-27T04:48:44 | 2019-03-27T04:48:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py |
import cv2
import numpy as np
import os
import csv
import time
recognizer = cv2.face.LBPHFaceRecognizer_create()
recognizer.read('trainer/trainer.yml')
cascadePath = "haarcascade_frontalface_default.xml"
faceCascade = cv2.CascadeClassifier(cascadePath);
font = cv2.FONT_HERSHEY_SIMPLEX
t=1
#iniciate id counter
id ... | [
"noreply@github.com"
] | lalitharaopolavarapu.noreply@github.com |
a779cd7e1846b64ba7dce70c13456b60d065cb13 | 95759eb03f2dfb872a48e85f840a9cd0f99b7f39 | /python_projects/arrays1.py | 8994229675fe2ce734c9d84fb1d609fd1c6ca3e8 | [
"MIT"
] | permissive | amogh-dongre/dotfiles | 81d395e789aeaf6f32b70835080e2be2bc8d49e2 | 973edf2f933bf7279ef78b1381d57b00f960fea6 | refs/heads/main | 2023-06-16T08:54:06.923875 | 2021-07-04T13:53:37 | 2021-07-04T13:53:37 | 325,792,123 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | #!/usr/bin/env python3
def bubblesort(arr):
n = len(arr)
for i in range(n):
for j in range(0, n - i - 1):
if arr[j] > arr[j + 1]:
arr[j], arr[j + 1] = arr[j + 1], arr[j]
arr = [5, 3, 8, 4, 9, 12, 2, 1, 98, 16]
n = len(arr)
bubblesort(arr)
print("The Sorted array is:")
for i... | [
"amoghdongre16@gmail.com"
] | amoghdongre16@gmail.com |
1fd6f92f79cd265af470244e0460ad9853def643 | e18a353582609732c795401f1a01bc762bd939f2 | /top/python/MuonTracking.RunII.py | 9f1a8ca4dcada005ae643bc5e39eb41edab8c6d8 | [] | no_license | s-farry/workspaces | 06741807bb464bb0712d52108c2d1b7ae62b1353 | 0dcf3868dcbe110206ea88ff5c9e04a3b44b1ca1 | refs/heads/master | 2020-04-03T00:45:39.152227 | 2017-06-15T16:33:33 | 2017-06-15T16:33:33 | 64,213,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,463 | py | from Jawa import EfficiencyClass
from ROOT import TFile, TCut, TTree, TMath
phicut= TCut("(abs(tag_PHI-probe_PHI)<TMath::Pi() ? abs(tag_PHI-probe_PHI) : 2*TMath::Pi()-abs(tag_PHI-probe_PHI))>0.1")
ptcut = TCut("tag_PT > 20000 && probe_PT > 20000")
triggercut = TCut("tag_Hlt2EWSingleMuonVHighPtDecision_TOS==1 && ... | [
"sfarry@hep.ph.liv.ac.uk"
] | sfarry@hep.ph.liv.ac.uk |
3974cb911735a3882b5c81a63453add4a57ef547 | b003208e8383c85ce0086ee2333268f19de14943 | /src/scripts/sources/reports/ZpkTransactionsReport.py | 453ed3ea977da07aa2c7aa1069a5e8e19ae24fef | [] | no_license | lobo1111/agora-configuration | 6ff2b46df0c8466b36c8ff9c10876e2373f932b6 | a199428deb8c8fdb80b0443583f7f306895b35d8 | refs/heads/master | 2020-12-24T07:45:39.948380 | 2016-11-15T12:15:41 | 2016-11-15T12:15:41 | 73,372,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,730 | py | from reports.Report import Report
from javax.persistence import TemporalType
from structures.BookingPeriod import BookingPeriodManager
from java.text import SimpleDateFormat
from java.util import Date
from reports.ZpksStatusReport import ZpksStatusReport
class ZpkTransactionsReport(Report):
def obtainData(sel... | [
"tomasz@kopacki.eu"
] | tomasz@kopacki.eu |
17a4c3efc94fc1e6caad8a5a7ade5f392c075824 | 5c7db30d59cd28fe1923bb5fdb9280ffe2070b70 | /django-polls/polls/migrations/0001_initial.py | cca72afb3465cec2f3f673e3e259b8a64609593e | [] | no_license | golkedj/django_test | 6816b640e675aabd311de98907ff38fc8034b7d5 | d1ab4b5bf6984aee78163a94638460f187ca12a9 | refs/heads/master | 2021-01-22T16:44:30.569480 | 2017-09-06T16:56:23 | 2017-09-06T16:56:23 | 100,724,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-18 14:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"="
] | = |
2986bd526cbcb9a31eb6f2de6b0f0dd89c6fa7cc | 742cde49ee24d14f939e40dc660b8d358b206066 | /src/video/client.py | 736f9667ae9295cb5df530f1246cbd988b8b3269 | [] | no_license | LdMe/flask_docker_video_stream | d397c0a4cd59326004d7b17ad1b7d5eac02591b2 | 03b1cbcc03712e5d1878bf0113a9796f637f7ef5 | refs/heads/master | 2023-06-15T08:05:06.150285 | 2021-07-09T12:02:52 | 2021-07-09T12:08:38 | 360,114,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # import the necessary packages
from imutils.video import VideoStream
import imagezmq
import argparse
import socket
import time
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-s", "--server-ip", required=True,
help="ip address of the server to which the client w... | [
"dlafuente003@gmail.com"
] | dlafuente003@gmail.com |
778373ee38e2b8e500a508492b5c81d519f80a09 | f8671d120f8f32b0febe94f4dc84570603e34fac | /utils_driver.py | c9b9a0185636c8784dadc34512484fe9360420ca | [] | no_license | ahashisyuu/OpenSpider | f35772a53c4de4217df9dc1ee8f2078e1c2eb281 | 31da122dc2ab658142c34089f3cc0fe71a5016ca | refs/heads/master | 2022-03-19T01:37:58.965682 | 2019-12-10T12:40:02 | 2019-12-10T12:40:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from selenium import webdriver
import platform
#print platform.system()
def get_driver():
system = platform.system()
if system == "Linux":
return webdriver.PhantomJS(executable_path='/home/ubuntu/phantomjs-2.1.1-linux-x86_64/bin/phantomjs')
else:
return webdriver.Chrome()
#return ... | [
"1451607278@qq.com"
] | 1451607278@qq.com |
674d83709f2b3e4f8e2c3423ab4e9aebae3431aa | a538e551561c55eed35b03ae76a95b4556652b0d | /project_functions.py | cac56ca068e87e16f138d73cde4c0ba2129af8da | [] | no_license | Killaars/CBS-themes | 52363a9ef6c7aadd553fea792017b833593799a4 | c428e7f80ba3b03d49991d82d2fe4dd5702635bf | refs/heads/master | 2020-07-01T18:47:03.657494 | 2019-08-08T13:24:52 | 2019-08-08T13:24:52 | 201,261,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | #%%
import pandas as pd
#%%
# Variables
upwindow = 7
lowwindow = 2
'''
Preprocessing fuction for both the children as the parents
'''
def preprocessing_child(children):
# Children
children.loc[:,'title'] = children.loc[:,'title'].str.lower()
children.loc[:,'content'] = children.loc[:,'content'].str.... | [
"27420806+Killaars@users.noreply.github.com"
] | 27420806+Killaars@users.noreply.github.com |
da9860f9b1ff839f2aa581ee98b6af1448a81426 | ce86b45514ce8c097dbec5468f6fda24998be8f1 | /Airport.py | 259378958636c320a35c6299eedef21abc2213d4 | [] | no_license | Emmet62/DataStructuresProject | cec7c7a91be8746666663c259536e6bfac38c54d | 683136a7a2706a9f4a856534f133eb457e411796 | refs/heads/master | 2020-03-14T12:38:52.059512 | 2018-04-30T16:06:04 | 2018-04-30T16:06:04 | 131,616,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | '''
Created on 28 Mar 2018
@author: Emmet
'''
from math import pi, sin, cos, acos
import os.path
import csv
class Airport():
''' Stores Airport objects '''
def __init__(self, airportCode, airportName, country, airportLat, airportLong):
''' Define what attributes we want the Airport instances to ... | [
"emtracey@tcd.ie"
] | emtracey@tcd.ie |
d5706657c7a3d28103d085bb0dbf7d12e11bac82 | 173b7e08d9fdbfeda8349570f7ccd93cbd6c02d4 | /example_model/model_node_label.py | 84ea201452534e2e144905c11f081a4272f8ac42 | [
"LicenseRef-scancode-other-permissive"
] | permissive | embeddedsamurai/kGCN-1 | ef647d539fb79d6b5ebe090a3b27b349933d6ca4 | 7bc4dc32afd7a76e31b3bd37e2cb71611ba1fc5f | refs/heads/master | 2020-08-04T16:51:36.430607 | 2019-10-01T05:02:31 | 2019-10-01T05:02:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | import tensorflow as tf
import tensorflow.contrib.keras as K
import kgcn.layers
from kgcn.default_model import DefaultModel
import tensorflow.contrib.keras as K
class GCN(DefaultModel):
def build_placeholders(self,info,config,batch_size):
# input data types (placeholders) of this neural network
ret... | [
"kojima.ryosuke.8e@kyoto-u.ac.jp"
] | kojima.ryosuke.8e@kyoto-u.ac.jp |
725223f8d060081f839ffe104c2a1a8f0c49e687 | 920f81d8f5fbd45eb15f2970d0bd528b921a3d46 | /pyplot/plot_loss.py | 81bb50f95b08e5d8fafdc78fc8d47652605f5877 | [] | no_license | minhnd3796/RIVF2019_Minh | 740a4015b7741bea9d2503088e99bc1a97a1f18f | c2439421efcbae3bad09f459a3d582b7fcf735c4 | refs/heads/master | 2020-03-25T03:49:20.533009 | 2018-08-03T01:27:14 | 2018-08-03T01:27:14 | 143,361,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | from pandas import read_csv
import pylab
from sys import argv
train_data_8s = read_csv('FCN-8s-ResNet101_Vaihingen/run_train-tag-entropy_1.csv')
train_step_8s = train_data_8s.iloc[:, 1].values
train_acc_8s = train_data_8s.iloc[:, 2].values
validation_data_8s = read_csv('FCN-8s-ResNet101_Vaihingen/run_validation-tag-e... | [
"gordonnguyen3796@gmail.com"
] | gordonnguyen3796@gmail.com |
700b224ee02e77b913b24e1e85f043711a0b9e60 | 2c4dbf80b7493beccdd6e8e3f3dbcfe05c235ae5 | /Lecture.7.Django/airline/flights/urls.py | cfe3d666b42eaf61df2c4525a73683ce10804267 | [] | no_license | mbegumgit/cs50 | 9cbe88dbc5d9d1751cb9c020ba1a6337dcfab8b5 | d7d641ef039794c18be3228596bbfbe6e58662d8 | refs/heads/master | 2021-07-12T11:12:14.864921 | 2021-02-26T05:02:12 | 2021-02-26T05:02:12 | 237,889,463 | 0 | 0 | null | 2020-02-03T05:08:26 | 2020-02-03T05:08:25 | null | UTF-8 | Python | false | false | 215 | py | from django.urls import path
from .import views
urlpatterns = [
path('', views.index, name="index"),
path('<int:flight_id>', views.flight, name="flight"),
path('<int:flight_id</book', views.book, name="book")
] | [
"taqi.official@gmail.com"
] | taqi.official@gmail.com |
1ed26d619a29fe66356aaa17f6c266960328b775 | fdccff2b819c5423df77fca3ee16ca23feb8205e | /weather_report/cli.py | fa12b189acebb323e264621d6d0e52f2726a230b | [
"BSD-3-Clause"
] | permissive | austinorr/weather-report | a48f9a1be9856d55b7b0bc115cc10639aefa3eee | a0beddd62b0a459842fa43ad62edcb17a7c2f27f | refs/heads/master | 2021-03-31T01:54:07.726517 | 2018-04-09T22:28:56 | 2018-04-09T22:28:56 | 124,453,316 | 1 | 0 | BSD-3-Clause | 2018-04-09T22:09:18 | 2018-03-08T22:01:32 | Python | UTF-8 | Python | false | false | 308 | py | import sys
from .weather_report import WeatherReport
from .default_config import defaults
def main():
args = sys.argv[1:]
if any(i in args for i in ["--project-file"]):
print(defaults)
else:
for i in args:
f = WeatherReport.from_input_file(i)
f.run()
| [
"AOrr@geosyntec.com"
] | AOrr@geosyntec.com |
fb468ac210f00990d47274537361078ddce64b34 | ab1009dfd09c08d0898cb490284127552387c27e | /caller_v2/app/api/v1/process.py | 9190ef78cef59bfcbe45676cc1bbc80d97a56ddb | [
"MIT"
] | permissive | tienthegainz/pipeline_executor_docker_call | 2d6d4187b22cfe017596e59090c993c663c414cc | b2b9478056e4b818f5963b0b266375fe6d39627a | refs/heads/main | 2023-08-05T14:51:38.144250 | 2021-09-27T06:40:15 | 2021-09-27T06:40:15 | 405,798,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | from typing import Any, List
from fastapi import APIRouter, Depends, HTTPException, status
from sqlalchemy.orm import Session
from app import schemas
from app.api.deps import get_db
from app.service import process_service, layer_service
import json
from copy import deepcopy
router = APIRouter()
# TODO: Add file ha... | [
"viettienha98@gmail.com"
] | viettienha98@gmail.com |
61fd7a6c35836d296e1a527370004aeece802e25 | a61555adb096171a0f477dd953e3a500df29a425 | /dokdo/cli/prepare_lefse.py | 43615951208bf69ac009a9a942f37885ce2cbbd8 | [
"MIT"
] | permissive | caio-andrey/dokdo | a9cbf5595bf993ad7340ee5411c11357dcc3a523 | 334d80bdc9118daf90e448eaca7124c6ff270cf2 | refs/heads/master | 2023-06-28T09:40:38.015124 | 2021-08-04T11:36:54 | 2021-08-04T11:36:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,527 | py | import dokdo
import pandas as pd
from qiime2 import Artifact
from qiime2 import Metadata
from qiime2.plugins import feature_table
from qiime2.plugins import taxa
def prepare_lefse(table_file,
taxonomy_file,
metadata_file,
output_file,
class_col,
... | [
"sbstevenlee@gmail.com"
] | sbstevenlee@gmail.com |
42bf33970ef08bc11406a2df223e00f8d93bae03 | 88e98a147d0fd2915048d307332e6269593d94f6 | /ext/Outros/EnviaPacoteTCP.py | 62c6a4d8f6eeffa5fbf50ea24ffba11b13b091fb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | brunoalmeidamartins/pox | 452c6d8a959aae9d28279128d7eb04e76b7c756e | 2c9f13ef53f7cf15c369d15ba4b1051036d74e00 | refs/heads/master | 2020-03-12T13:11:41.915516 | 2018-07-17T18:25:23 | 2018-07-17T18:25:23 | 130,635,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from scapy.all import *
ip = IP(dst="192.168.0.1")
tcp= TCP(dport=80)
pkt = ip/udp
t = sr(pkt)
print(t)
| [
"sgtbrunoalmeida@gmail.com"
] | sgtbrunoalmeida@gmail.com |
fe40af596e008133901e8eb437974a14e6f29f8f | 82770c7bc5e2f27a48b8c370b0bab2ee41f24d86 | /microblog/flask/venv/lib/python2.7/site-packages/scipy/fftpack/tests/test_basic.py | 15826d4685a7eefdaf622f6b05ad0ecfe5c8f25c | [
"Apache-2.0"
] | permissive | johankaito/fufuka | 77ddb841f27f6ce8036d7b38cb51dc62e85b2679 | 32a96ecf98ce305c2206c38443e58fdec88c788d | refs/heads/master | 2022-07-20T00:51:55.922063 | 2015-08-21T20:56:48 | 2015-08-21T20:56:48 | 39,845,849 | 2 | 0 | Apache-2.0 | 2022-06-29T23:30:11 | 2015-07-28T16:39:54 | Python | UTF-8 | Python | false | false | 29,654 | py | #!/usr/bin/env python
# Created by Pearu Peterson, September 2002
from __future__ import division, print_function, absolute_import
__usage__ = """
Build fftpack:
python setup_fftpack.py build
Run tests if scipy is installed:
python -c 'import scipy;scipy.fftpack.test()'
Run tests if fftpack is not installed:
py... | [
"john.g.keto@gmail.com"
] | john.g.keto@gmail.com |
f07d0d152386b5a33ee321365ef0d942cf5da5cc | 0e856246b18da3ca8e52d6208163b876a6457040 | /app_pybot/request_tools/google_request.py | cd20efa6234f0985028b081d8b8488551ebe0fe1 | [] | no_license | Elladan81/P7_GrandPyBot | bdf4e07ef70a178c2d6d577a88e2a805f082c232 | 180f10adb8361129c3b250a58f4d8a9b568759c5 | refs/heads/master | 2022-12-10T04:55:40.000745 | 2020-02-27T16:09:39 | 2020-02-27T16:09:39 | 237,025,205 | 0 | 0 | null | 2022-12-08T03:32:50 | 2020-01-29T16:09:20 | Python | UTF-8 | Python | false | false | 1,498 | py | import requests
from app_pybot.request_tools.apikey import GOO_API_KEY
class GMapsRequest:
"""This class handles request to Google Maps API
"""
URL_BASE = "https://maps.googleapis.com/maps/api/geocode/json?address="
def __init__(self, user_request):
"""Takes user request to build the url to ... | [
"heladan@hotmail.fr"
] | heladan@hotmail.fr |
1095d3c8d3ad72cc7514fa3552a8c3680b8ea0ed | a6de6c6984dd85a5951d2f755a5093ff8c7c1e26 | /Students/Turtle/0603/rgb.py | 889b9cd2ee425b7fbed01375523084adcab47d53 | [] | no_license | P79N6A/PythonExercise | ec4de63adcf1360d25c5278d7e06824611ec325f | 59c2ef7438cb5a135be05f72711cfbd39c1fb49b | refs/heads/master | 2020-04-29T04:04:00.008249 | 2019-03-15T14:17:28 | 2019-03-15T14:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | from PIL import ImageColor
from PIL import Image
print ImageColor.getcolor('red', 'RGBA')
catIm = Image.open('zophie.png')
# print catIm.size
# print catIm.filename
# print catIm.format
# print catIm.format_description
# catIm.save('zophie.jpg')
# catIm.rotate(90).save('rotated90.png')
#
# croppedIm = ca... | [
"18201788952@163.com"
] | 18201788952@163.com |
90c8701966ec00284f17877e12b7623633ac7ca6 | 71d355d11c7150c3dcf9b19100441188c0e10db0 | /DataPersistence/MessageProducer.py | 948cda94f262a476b03f3d22cf2980a78d0ab6c1 | [] | no_license | VeeanPrasad/cu-feedback | efe0aee3e26223e14c43984b7a23d083dfd96e75 | d48c33b56a28362575bfe22b9252ad3f976a07b0 | refs/heads/master | 2023-04-25T08:04:29.408380 | 2021-05-04T21:08:29 | 2021-05-04T21:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from kafka import KafkaProducer
from db import Database
class MessageProducer:
producer = KafkaProducer('database')
def send_db_update(self):
started = Database.start_db()
if started:
self.producer.send('database', 'Connection Successful')
else:
self.producer.s... | [
"james.m.luther@gmail.com"
] | james.m.luther@gmail.com |
a371f668a614759d77d103527da26e9d5bf59dfa | ea449a25bf5233e657549aca39e9453de4ecb7d7 | /news/migrations/0010_auto_20180425_1433.py | 9eec07e7fa7eab435ddac75eb3c86d2247237e77 | [] | no_license | nasa1024/personl_blog | d35dfbc532d3e06903e3c7e55508c53f505bdbb5 | 02b437a939827899810b778261a974ce0c858c09 | refs/heads/master | 2023-03-06T02:14:41.158541 | 2018-04-25T06:37:58 | 2018-04-25T06:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-04-25 06:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0009_auto_20171102_1143'),
]
operations = [
migrations.AlterModelOp... | [
"541573560@qq.com"
] | 541573560@qq.com |
c6b54b3af377a2ae56ecaca249b4853dd344dc38 | 1e05839e7c1ffd453515c3788e88d696a224ec9e | /ws_func.py | 81bb3af645664e01fb9e204cfa3ce8db3a4fe5dd | [] | no_license | wplam107/Final_Project | df2cfe61451c44016762c5aded6d4bff3a2e7e26 | 6039c5c180c304f3bef1ab20c613af322e990f7f | refs/heads/master | 2022-07-07T01:30:36.742675 | 2020-05-13T19:56:49 | 2020-05-13T19:56:49 | 251,073,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,145 | py | import numpy as np
import pandas as pd
import re
import os
import time
import datetime
import random
import requests
import pickle
import urllib
from bs4 import BeautifulSoup
from os import system
from datetime import datetime
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webd... | [
"w.p.lam107@gmail.com"
] | w.p.lam107@gmail.com |
2a7e9f11b5bc62591da5f08a99fef13a5861388c | 3ce2cc14c27eb2958210e90ef2d38b4d5eedee55 | /requrl.py | 43e8c150afbf1cb779762dfb7a13b019f33b67fd | [] | no_license | shifeng-xu/monitorurl | 6e537b1a1b28b347d12ea8fbb2cd199ed1d37894 | ae3e43fdfa366dde449a487ec630f6de9820fd0c | refs/heads/master | 2021-05-19T00:02:37.910004 | 2020-03-31T03:06:31 | 2020-03-31T03:06:31 | 251,486,998 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # coding=UTF-8
import requests
def getUrl(url):
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36",
}
#url = "http://beautycareapp.com/" # 等价下面的
response = requests.get(url, headers=headers).text
print(respon... | [
"xushifeng@do-global.com"
] | xushifeng@do-global.com |
6dac45eaa99c6894f3e14022654f22cf18d35a57 | caf71dc9e3d90398e60b69190e0555239bada2a7 | /postal-tracker/grab.py | 8d1d7d20fe062100b476f2341123a33ca9e9d82f | [
"MIT"
] | permissive | denisglotov/exp | 6a17d61b576e951f44bbb4ce96526f182ddcacb6 | 78d05b5643bb050c1392c93d653d6d418b505968 | refs/heads/master | 2023-08-21T09:09:30.266468 | 2023-08-13T20:46:49 | 2023-08-13T20:46:49 | 124,665,911 | 0 | 0 | MIT | 2023-03-06T23:33:40 | 2018-03-10T14:57:31 | Python | UTF-8 | Python | false | false | 1,521 | py | import requests
import json
import sys
from bs4 import BeautifulSoup
import config
if len(sys.argv) < 2:
print("Argument required: tracking number.")
sys.exit(1)
sess = requests.Session()
for cookie in config.cookies:
cookie_entity = requests.cookies.create_cookie(domain=cookie['domain'],
... | [
"denis@glotov.org"
] | denis@glotov.org |
c4e4ecc32e36ad0a794647c986a8c562cecfe87e | c73aa29f8a1140a3ef2e8d0cce275ff1fa173036 | /data_app.py | 51f61f47b43ff3a939aacfc2a0115e8daa7a4b02 | [
"MIT"
] | permissive | shinegz/view-python | 642f401032bb9b761b325f0b0a10ca11c9447f7a | ebbafeb2785200c808284deda8c5dbfda92591f1 | refs/heads/master | 2022-12-01T15:28:08.251202 | 2020-08-02T00:15:36 | 2020-08-02T00:15:36 | 275,271,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,531 | py | # encoding: utf-8
import sys
import serial
import serial.tools.list_ports
from PySide2.QtCore import QTimer, QTime, QRegExp
from PySide2.QtGui import QIcon, QRegExpValidator
from PySide2.QtWidgets import QWidget, QApplication, QMainWindow, QMessageBox
import pyqtgraph as pg
from data_deal import Data_Deal
from MainWind... | [
"noreply@github.com"
] | shinegz.noreply@github.com |
ecf3ce846d8243a2eaec317d1632dd1fdaa220c7 | 4979ca22bd3ecbdcfe8aaaacdc95dbd6586003eb | /flaskblog/models.py | 29a485a2b5ef62151c1f548ace3b99a5ca82754c | [] | no_license | Barnez299/flaskblogcs | 53b7ff5ab303f8116e83ba5d76b3943e2f0b28c9 | 33295e6ba4c7bd35f2de2b2b755e907bcd01064c | refs/heads/main | 2023-02-11T11:52:23.453967 | 2021-01-07T21:27:14 | 2021-01-07T21:27:14 | 326,769,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | from datetime import datetime
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flaskblog import db, login_manager, app
from flask_login import UserMixin
# define method for user to be logged in
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
clas... | [
"barnez29@gmail.com"
] | barnez29@gmail.com |
25c98ab3c953b1a34a82318055d81df2e09ab0bd | 4acbe5055a488ae10077448eee206a6c8dbe509a | /examples/reinforcement_learning/atari_1step_qlearning.py | 4d9c9665cdad80795893a67fc9c6115660d78551 | [
"MIT"
] | permissive | barhomi/tflearn | 740a022fe5392be24d39cdebe72c28154222f3b6 | 5e4c706f5ddb3ac362c72a681fda4ce73d182015 | refs/heads/master | 2020-04-04T18:41:57.515280 | 2017-03-25T21:06:23 | 2017-03-25T21:06:23 | 68,142,123 | 0 | 1 | null | 2017-03-23T18:25:22 | 2016-09-13T19:52:12 | Python | UTF-8 | Python | false | false | 15,817 | py | # -*- coding: utf-8 -*-
"""
Teaching a machine to play an Atari game (Pacman by default) by implementing
a 1-step Q-learning with TFLearn, TensorFlow and OpenAI gym environment. The
algorithm is described in "Asynchronous Methods for Deep Reinforcement Learning"
paper. OpenAI's gym environment is used here for providin... | [
"aymeric.damien@gmail.com"
] | aymeric.damien@gmail.com |
cc3c554f8ce1376a8f456651ba4ab924ec6f785d | 97fd2d461e6361ebb91f940ab76d64a430826e6e | /modules/udemy_class.py | c5243337a1b2c08e7b7c2a1025e55fc3cf6ac0c1 | [] | no_license | raishid/udemy_videos | 35f981a04692dcdaabf56209edbbe1acb08f297f | f1cd5664e05c80654d4c2e34d034b6885fc7e328 | refs/heads/main | 2023-04-10T23:15:10.085926 | 2021-04-30T17:19:40 | 2021-04-30T17:19:40 | 342,021,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,938 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from time import sleep
import requests
from lxml import html
import json
class udemy:
def __init__(self):
self.... | [
"67575679+raishid@users.noreply.github.com"
] | 67575679+raishid@users.noreply.github.com |
f1b816434823e5ff322719c6e792a034ea4f4c35 | 177bb6567b9564b1feb1d6e25ab1e0d61adf8770 | /ResidualLoss/CNN_l2_prob_far_dist.py | dc834cb205256111664a4feebdedd1accd470493 | [] | no_license | fzdy1914/NUS-FYP | 4ae9b299cf1cb72a01b371998781b9cec333d3f0 | cb7195a8b025eb8ab2becd26886551479796f930 | refs/heads/master | 2023-04-16T05:08:12.529777 | 2021-04-05T06:56:15 | 2021-04-05T06:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | import random
import sys
from torch.autograd import Variable
from torch import optim
import numpy as np
from torch.backends import cudnn
import torch.nn.functional as F
import torch
from torch.utils.data import DataLoader, WeightedRandomSampler
from ResidualLoss.dataset import cifar10_data_loader_test, cifar10_data_... | [
"1229983126@qq.com"
] | 1229983126@qq.com |
e53ed5542ff0d625dbd54246d67d0dd7adab382d | 70d86ede49185e228c308442aa4781f1188dbc96 | /colorpicker.py | 0a814edda62082bb878e1e1b3ec52e94aab31799 | [
"MIT"
] | permissive | codacy-badger/MS-Paint-shit-edition | 3a42b29483d6233f6f857ea1250ad1cb2f5f460b | 666b0c3ac7ea98b359173e6d236c614face3981a | refs/heads/master | 2020-06-26T01:40:16.064940 | 2019-07-29T16:03:59 | 2019-07-29T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,273 | py | import pygame
import numpy as np
import json
import Slider
def loadSettings():
with open('settings.json') as settingsfile:
return json.load(settingsfile)
settings = loadSettings()
width = settings['WindowSize']['width']
height = settings['WindowSize']['height']
threadsAllowed = settings['insider']['allo... | [
"edu.silvan.kohler@gmail.com"
] | edu.silvan.kohler@gmail.com |
1d775b49368f6bf5bc1295ea51f84d6fcc27a0c9 | 7265af084e9a69b45ea8367f53fd91582d6c2d50 | /eelbrain/tests/test_data.py | d7da51188808c19dbe96345e478525a11c255c60 | [] | no_license | phoebegaston/Eelbrain | b2c6a51d4fb249b9252af3814683c659b9df2965 | b5b2ee7374a644cd9ea7b60bed86510ae3d5cc15 | refs/heads/master | 2020-12-31T05:41:30.784904 | 2015-04-26T11:38:01 | 2015-04-26T12:00:37 | 34,686,112 | 0 | 0 | null | 2015-04-27T19:17:59 | 2015-04-27T19:17:59 | null | UTF-8 | Python | false | false | 29,331 | py | # Author: Christian Brodbeck <christianbrodbeck@nyu.edu>
from itertools import izip, product
import os
import cPickle as pickle
import shutil
from string import ascii_lowercase
import tempfile
import mne
from nose.tools import (eq_, ok_, assert_almost_equal, assert_is_instance,
assert_raises)
i... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
f6e38588fade84b4b3f75332903ccf0eb3b4a57f | 3abf9c3624af25d301e87b35013ce669356c8237 | /GetEffEvolution.py | 5b4943f30905a472509221784d4180e36229493d | [] | no_license | JeromeBlanchet/EnRoutePerformance | 99662e0e5168b8deda0daa7f8ee3234b315fe08c | ce74448d15ab965d5a0f46f61cd56356b8d5db63 | refs/heads/master | 2021-10-27T21:02:42.188774 | 2019-04-19T18:10:22 | 2019-04-19T18:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 28 2017
@ Author: Liu, Yulin
@ Institute: UC Berkeley
"""
from __future__ import division
import os
import GetCluster
import GetEDA
import numpy as np
class EffEvolution:
def __init__(self, Dep = 'LAX', Arr = 'SEA', Timeframe = [2013, 2014, 2015]):
... | [
"noreply@github.com"
] | JeromeBlanchet.noreply@github.com |
17f147002517ca6e9ce3f90605cfde55fb9f8c21 | 8f736b5cc28cc1d46506abf1b001eb41cc1f9423 | /apps/trade/migrations/0021_auto_20210322_2247.py | 9d43bf7c166f0d2b8fdeb3cf75abab92377b96c8 | [] | no_license | tang1323/MxShop | 6ac68502f59ae07b483b6145e1b557399192e3dd | 831b5bdd8abdf7d6e547b0bd3fff9341261e4afa | refs/heads/master | 2023-04-04T07:09:32.759476 | 2021-04-14T14:36:00 | 2021-04-14T14:36:00 | 357,937,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # Generated by Django 2.2 on 2021-03-22 22:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trade', '0020_auto_20210322_1137'),
]
operations = [
migrations.AlterField(
model_name='orderinfo',
name='pay_status',... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
62a3be192a9c0b150e0545ad058927746d79b05e | 6a53987c72b048ce3dada42a18d5d9be1a539608 | /Day 1/1-1.py | 70c5f6a9025d7aa3da051b7acfd8ae87405f7202 | [] | no_license | swekung/advent-of-code2020 | c78e171387849575349843120591f66d91e3107e | bf44cacd227becca0db852f99f9eaf7c8efe4bdd | refs/heads/main | 2023-02-05T23:45:03.743432 | 2020-12-22T10:34:41 | 2020-12-22T10:34:41 | 317,514,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import numpy as np
import sys
import time
start_time = time.time()
def readFile(file):
text = open(file)
out = []
for line in text:
out.append(int(line.rstrip('\n')))
out = np.array(out)
text.close()
return out
def findPairs(arr):
sums = np.add.outer(arr, arr)
index = np.where(... | [
"simhans@student.chalmers.se"
] | simhans@student.chalmers.se |
e0244c8666835576056b3acce849bdae4bd950dc | a5564fbf541b4fb602f5ad47aa5d06441bcf9f0a | /apps/fyle/migrations/0028_auto_20230112_1050.py | f028ce39578be10371b173b36815be40199c507e | [
"MIT"
] | permissive | fylein/fyle-qbo-api | 1fc222501276ebf0f316f43bb278a6adcc0e08ce | b4c464cc6442ead91ceb3b2840103b27af3e029c | refs/heads/master | 2023-08-31T06:26:07.296341 | 2023-08-24T15:45:55 | 2023-08-24T15:45:55 | 243,419,752 | 1 | 3 | MIT | 2023-09-07T13:31:53 | 2020-02-27T03:15:01 | Python | UTF-8 | Python | false | false | 596 | py | # Generated by Django 3.1.14 on 2023-01-12 10:50
import apps.fyle.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [('fyle', '0027_expensegroupsettings_ccc_expense_state')]
operations = [
migrations.AlterField(
model_name='expensegrou... | [
"noreply@github.com"
] | fylein.noreply@github.com |
88b837be937d1467ce20aca93e1260c500a8cda2 | 8988b6fb22c012f41ee687a66869f2352f1fe67b | /final/project_raspberry.py | 7e8804ef821a1431b2e24b8fa0d5112db9dc40fa | [] | no_license | AT9M/Project | f16e86aa4ed1fbde2c92f3c3312398c22a53ca75 | bd4c3b97ed040bf745bf657c7679eb986b307d5c | refs/heads/master | 2020-04-18T12:35:43.295679 | 2019-03-15T13:54:03 | 2019-03-15T13:54:03 | 167,538,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,229 | py | #!/usr/bin/python3
from pygame import mixer
import os,random
import webbrowser
import datetime
import turtle
import math
import random
from playsound import playsound
min = 1
max = 6
i=1
roll_again = "yes"
from subprocess import call
import vlc
speech="hello Wold !"
call(["espeak",speech])
start=["Hi !","Hello, How a... | [
"noreply@github.com"
] | AT9M.noreply@github.com |
36ff60eb1bc60ceb754c9bb01bb0f5434bc87756 | 4e486f1ee1155b8d27fd56baeedde54350c01873 | /src/carrierEasypost/__init__.py | 46739a11d7b9fa49232a2cb84f159873b7fd9a1b | [
"MIT"
] | permissive | lalithkumart-corp/python-workaround | 6cc860f96fec68d4dc128019676f238946223e62 | a5457e3357b2cef05a75260f601151f74c6d072b | refs/heads/master | 2020-12-09T08:38:51.017872 | 2020-02-22T05:51:52 | 2020-02-22T05:51:52 | 233,252,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | from .easypost import Rate, Shipment | [
"lalithkmr94@gmail.com"
] | lalithkmr94@gmail.com |
16c85797693df2dde13e6b3da506299a3603a8f8 | 724c615eb6968d79706619b6d6a75b658bdb1eb5 | /geant_fullsim_ecal_SPG_batch.py | 57f146fdbbb5f80506f442a313c45229f3098924 | [] | no_license | broach1/scripts | faefae9ac8b188fa47b2a8ebad9afd469244d6e8 | c5e726d42402172ccc55bf7cf676e702e8fe5c81 | refs/heads/master | 2020-12-20T22:36:35.463982 | 2016-08-10T11:15:11 | 2016-08-10T11:15:11 | 59,031,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,245 | py | import os
import numpy as np
#loads array of random seeds from file
seed_array = np.loadtxt('seeds.txt',dtype='int',delimiter=',')
#the space below (lines 8-22) are for job options (ENE, EVTMAX, etc)
ENE=20e3
EVTMAX=1
BFIELD=0
PHIMIN=0
PHIMAX=6.28
VX=0
VY=0
VZ=0
i=4
CLUSTER=1
from Gaudi.Configuration import *
... | [
"broach@cern.ch"
] | broach@cern.ch |
6927b91ad3c9f7f337fb78d4a1c5f8811b1977c6 | 3c9d84600099e4ce2fd4d209d2c2c98d7ba9f2b3 | /models/item.py | 2459267155553a5f129621a0f5ab2f1c9b8944d5 | [] | no_license | abelhOrihuela/komet-scrapper | f570f1cac10dd445d327359f0d718b7dbe2dbc0d | de413279369f9667b1cfaa19e83f6cb23e79c6b7 | refs/heads/master | 2023-08-01T04:23:46.092889 | 2021-09-14T20:13:55 | 2021-09-14T20:13:55 | 406,469,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | from db import db
class ItemModel(db.Model):
__tablename__ = "items"
id = db.Column(db.Integer, primary_key=True)
slug = db.Column(db.String(200), nullable=False)
description = db.Column(db.Text(500), nullable=False)
inventory = db.Column(db.Text(500), nullable=False)
created_at = db.Column... | [
"abelorihuelamendoza@hotmail.com"
] | abelorihuelamendoza@hotmail.com |
8cc46188aaa9c714c01b161566a49af267641640 | b860530cc9f14d23fefada526f36fe3eae34e42c | /tracnghiem/admin.py | 5e86c22bc9bdfb2b7ae7920c83df3a7a07080aee | [] | no_license | anhpt204/hvhc | fa0386f624f9699b56570ec06fa724894d04b60a | 0b8d2f48bc8068413b6e53b989205fef19358a80 | refs/heads/master | 2022-12-06T01:00:45.232069 | 2016-08-16T15:50:52 | 2016-08-16T15:50:52 | 42,731,930 | 0 | 0 | null | 2022-11-22T00:27:27 | 2015-09-18T15:54:38 | Python | UTF-8 | Python | false | false | 9,173 | py | # -*- encoding: utf-8 -*-
from django.contrib.admin.options import TabularInline, ModelAdmin
from tracnghiem.models import Answer, QuestionGroup, MCQuestion, TFQuestion, SinhDeConf, LogSinhDe,\
NganHangDe, KHThi, BaiThi, ImportMCQuestion
from django.http.response import HttpResponseRedirect
from django.contrib imp... | [
"anh.pt204@gmail.com"
] | anh.pt204@gmail.com |
ccec29fd6ea83bdc111cb217e95734492d2579ad | 42348c0ff9785bbab18d87f277df791331bbc121 | /tests/test_pitches.py | 2d1420380d1934aca34db60e8b9154860a4255cc | [
"MIT"
] | permissive | vincentouma/thinkout | 783449834bd856d17e5273d9d3a50ecb6d79f6ef | 85306ccec7924ad4fd6fe7ffb75aa537d9fe97c0 | refs/heads/master | 2020-06-29T11:48:09.283309 | 2019-08-06T05:59:14 | 2019-08-06T05:59:14 | 200,524,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import unittest
from app.models import User
def test_no_access_password(self):
with self.assertRaises(AttributeError):
self.new_user.password
def test_password_verification(self):
self.assertTrue(self.new_user.verify_password ('banana'))
| [
"vinceoumah@gmail.com"
] | vinceoumah@gmail.com |
bc4f15d457c427a761e9a4b578cb3ad99200ad4b | cf794e72e2349e08250a3af9d31d7fe5627b3f12 | /src/mfs.py | acaf429dacf9a6b2922be411e74ad3a18de2869e | [] | no_license | chiiph/MusicFS | 257640947dabae0d903fda6c40faf69f04e76d26 | 34e7643ec1c67cc1678b54fae3538b26febf9124 | refs/heads/master | 2016-09-06T19:18:02.171223 | 2011-11-21T19:48:42 | 2011-11-21T19:48:42 | 2,802,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,713 | py | from query import *
import fuse
import argparse
import sys
from time import time
import stat
import os
import errno
fuse.fuse_python_api = (0, 2)
class Stat(fuse.Stat):
def __init__(self):
self.st_mode = stat.S_IFDIR | 0755
self.st_ino = 0
self.st_dev = 0
self.st_nlink = 0
... | [
"chiiph@torproject.org"
] | chiiph@torproject.org |
25cb0158d1b95bf84553c1dce344cc5a099f7fb7 | d698301715313eac017d89953094c0cfd89631b1 | /shorty/user.py | 4a5cfa9fecb3e34ddae6f5f317db807973d22a27 | [
"BSD-2-Clause"
] | permissive | angelcarballo/shorty | 1885353e55ba9f728eac4fe9ca47601bad2df0b8 | c6ac565e7998f131ed48229ea859adfec87ed8aa | refs/heads/master | 2021-08-31T13:15:09.585024 | 2017-12-21T12:12:12 | 2017-12-21T12:12:12 | 114,754,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import secrets
class User(object):
def __init__(self, email):
self.email = email
self.update_token()
def update_token(self):
self.secure_token = self.__generate_token()
def __generate_token(self):
return secrets.token_urlsafe()
| [
"angel.carballo@simplybusiness.co.uk"
] | angel.carballo@simplybusiness.co.uk |
a968556840fa07770885099bb261d3e2b9d5a6d1 | 8ff1801e8db0483706743675aba09361b4ccc0b3 | /tests/sandbox/.venv_ccf_sandbox/bin/wheel | 14901ac7e748890b4c61e98782c4e713bec86b47 | [
"Apache-2.0"
] | permissive | iLuSIAnn/testing | f8f08e8873ab01b49ad93288baa7742383cbb562 | b8b735c9e4141eb39562d142e61b06f89b23a475 | refs/heads/master | 2023-03-01T10:53:18.526180 | 2021-01-28T10:57:50 | 2021-01-28T10:57:50 | 333,730,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/ubuntu/CCF/tests/sandbox/.venv_ccf_sandbox/bin/python3.8
# -*- 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())
| [
"ubuntu@ccfproject.e1c000lhmreereztz3ihdi2bsg.zx.internal.cloudapp.net"
] | ubuntu@ccfproject.e1c000lhmreereztz3ihdi2bsg.zx.internal.cloudapp.net | |
6aad1e54b8786ecb8e264520db3f9ee24f1bfb49 | 9ac99a99dc8f79f52fbbe3e8a5b311b518fe45d9 | /apps/hrm/models/employee_types.py | 35bc9fbf61826d7c5683608a6038c4e0d7ac01e7 | [] | no_license | nttlong/quicky-01 | eb61620e01f04909d564244c46a03ca2b69dfecc | 0f5610aa7027429bdd9ca9b45899a472c372c6cc | refs/heads/master | 2020-03-25T17:45:31.633347 | 2018-11-27T15:02:30 | 2018-11-27T15:02:30 | 143,994,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from qmongo import extends, extends_dict,define
from . commons import base
model_name = "employee_types"
extends(
model_name,
base.model_name,
[],
formular = ("text")
)
| [
"zugeliang2000@gmail.com"
] | zugeliang2000@gmail.com |
78628bb42876d7fa9c9b9a641465f23d3409700b | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/l3usageperhist1d.py | 6ce6ba4d67fb03c133a1fb3f10af92213f8034cd | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 17,558 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
cda1a433ead7cc28c5869dbdca0b42da084aa990 | ff5a27af28042090966571a23274707b4d27a295 | /download2-8-2.py | 38bb0ccc736634ebaa599bf11239af35f30ccece | [] | no_license | marlonpark1/python_section2 | bec901c4344a1638f7599ed1f9e5b9d96ee00bf2 | 26af66f459fc4babaec4e15eb1f0a48312c28ecf | refs/heads/master | 2020-03-28T05:20:04.446657 | 2018-09-07T18:21:26 | 2018-09-07T18:21:26 | 147,769,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | from bs4 import BeautifulSoup
import urllib.request as req
import urllib.parse as rep
import sys
import io
import os
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding='utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding='utf-8')
# 403 Error 발생 방지 코드
opener = req.build_opener()
opener.addhead... | [
"marlonpark@daum.net"
] | marlonpark@daum.net |
096785213f7851045fcee133258e87384a4a1c78 | 1f2310e874c9b42809e1413005a6aa950eee6b8d | /homework_1/account.py | bfba83b886d15507c7c3256c1ca19d6bf53ad772 | [] | no_license | eakarpov/mail.ru_python | 17dd1703405b4a8ce5d2df15d8e3011c7cbe7c8e | fcf43458d0261ed85b17ad185dc12ce3e55da545 | refs/heads/master | 2021-01-21T01:20:25.522926 | 2017-05-06T23:56:31 | 2017-05-06T23:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | import sys
from decimal import Decimal
def round_decorator(inner_func):
def wrapper(self):
return round(inner_func(self), 2)
return wrapper
class Charge:
def __init__(self, value):
self._value = value
def __str__(self):
return str(self.get_value)
@property
@round_d... | [
"allxf95@gmail.com"
] | allxf95@gmail.com |
abdaeb2d9d684067ec9569099114518269904dcc | 58e8567e8e337cc3be55ffc60d30692b354d1a41 | /pennylane_sf/tf.py | 8bbbfcf839a5706ed99730b9c2df8f2f91df36a5 | [
"Apache-2.0"
] | permissive | albi3ro/pennylane-sf | 049f0710adae59dcb4931f144c5542b2e95908f9 | 5d306514401e7dd5a3d9a50b5e3c210e7c7d2bd4 | refs/heads/master | 2023-01-01T21:01:53.884960 | 2020-10-20T08:56:42 | 2020-10-20T08:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,913 | py | # Copyright 2018-2020 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicabl... | [
"noreply@github.com"
] | albi3ro.noreply@github.com |
9d20f3f16753593924c66dad24694eb7c72e00c0 | 795435350d2e4fe415acd1fb846abb1c0cf94911 | /client/code/do some researches on crawler/douban/douban.py | 8cac1d9078cbb947968dfe3d23aeff118fa4b940 | [] | no_license | gaoxinge/network | c3575c7f0d95f7458a4ec74880ca5b8a0bff773e | 68d307ec0756abff60914225fd38d69fa4b2a37c | refs/heads/master | 2021-06-06T05:49:36.521243 | 2021-06-02T15:42:39 | 2021-06-02T15:42:39 | 84,033,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import requests
from lxml import etree
from Item import Item
import time
def http(url):
response = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'})
return response
def parse(response):
Movie = Item('Movie', ['title', 'rating', 'vote'])
root = etree.HTML(response.text)
results = root.xpath(... | [
"gaoxx5@gmail.com"
] | gaoxx5@gmail.com |
29ae2abcecf2e6ca20f9197d006cfee2c3be9612 | 030c7628b19142f3ec562f19575652b9ae2db5cc | /02_2018_Spring/ISYE6740_Computational Data Analysis _ Machien Learning/HW4_code/main.py | 1f6ad11caff6fdd8bd59c6db6b6d50b0871485da | [] | no_license | soo-pecialist/GeorgiaTech_CSE | 4dcdc2e3193d1ab304bd8ee183b0ef9634d1e30b | 5e3c22582dea92c8d9035ec9cf986942cc87d008 | refs/heads/master | 2021-07-20T05:37:40.641805 | 2018-07-19T18:28:02 | 2018-07-19T18:28:02 | 135,356,891 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,014 | py | #python2
import time
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm
import prpy as pr
from rfdigits import loadData, trainRandomForest
#%% SECTION 1: DATA
#%% load images (if this is the first time, else see below)
Xtrain, Ytrain = loadData(num=1000)
Xtest, Ytest = loadData('test', ... | [
"metm.sean@gmail.com"
] | metm.sean@gmail.com |
401b58d62323b36552c64484f20ac5255b774779 | f7b3ae29e28b2e8917981d973a00d71300d0c42c | /assignments/classes_2/pair.py | f818280bf743e858790121c47601b5bc37296d2c | [] | no_license | aronlg/skoli | cdaed59ff3d67bb0d083a65347f7be63ab410c89 | 9ea7e6bc4829bd7c0edba9762d4e219ad49a5563 | refs/heads/main | 2023-09-05T13:56:28.807824 | 2021-11-09T08:58:41 | 2021-11-09T08:58:41 | 400,294,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | class Pair:
def __init__(self, val1=0, val2=0):
self.val1 = val1
self.val2 = val2
def __str__(self):
return "Value 1: {}, Value 2: {}".format(self.val1, self.val2)
def __repr__(self):
return self.__str__()
def __add__(self, other):
return Pair(self.val1 + other... | [
"aronlgreen@gmail.com"
] | aronlgreen@gmail.com |
04ad4d19924cc49f42a7f6ac77847e9bb33362eb | 9f8fa29bb5a93f896862806157b10b55e9f26825 | /message_media_conversations/models/message_dto.py | f07f49fac18257112666287a40d5f2c106d9e2f8 | [
"Apache-2.0"
] | permissive | messagemedia/conversations-python-sdk | 1b245ca7f63ca0c6fdbcd17a9bd11565d421e2a0 | b53046540bd5c826de784228f838468c22b863cf | refs/heads/master | 2020-03-19T05:52:05.735297 | 2018-10-16T23:29:31 | 2018-10-16T23:29:31 | 135,969,313 | 0 | 0 | null | 2018-06-04T04:12:18 | 2018-06-04T04:09:34 | null | UTF-8 | Python | false | false | 2,057 | py | # -*- coding: utf-8 -*-
"""
message_media_conversations.models.message_dto
This file was automatically generated for MessageMedia by APIMATIC v2.0 ( https://apimatic.io )
"""
class MessageDto(object):
"""Implementation of the 'MessageDto' model.
TODO: type model description here.
... | [
"git@apimatic.io"
] | git@apimatic.io |
1227e2067f8c114470a88b026b4a6e6c16ee45bd | 4ea43f3f79ad483d83238d88572feb822f451372 | /philo/models/fields/__init__.py | efd315f9c3c5e11afe2ba9802508200ca1a0905c | [
"ISC"
] | permissive | kgodey/philo | c8c433d44b2f31121f13bd0ee101605be11fe9da | c19bf577d44606d2b284e6058d633f4a174b61cc | refs/heads/master | 2020-12-29T02:54:11.746966 | 2011-05-24T21:57:47 | 2011-05-24T21:57:47 | 686,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,547 | py | from django import forms
from django.core.exceptions import ValidationError
from django.core.validators import validate_slug
from django.db import models
from django.utils import simplejson as json
from django.utils.text import capfirst
from django.utils.translation import ugettext_lazy as _
from philo.forms.fields im... | [
"stephen.r.burrows@gmail.com"
] | stephen.r.burrows@gmail.com |
191e06347b95e5824b343ec9e0f658e273017523 | a3c3781a870ec37872390466edb5f97a2c7ae445 | /demo.py | 422da52ac3ddc753c225cf8774881d8703e82fb9 | [] | no_license | cryer/poetry_generation | 8438b625dc72954a23c338bb1883739279bba696 | 004ef5e8c80e3cd398120aeee5f11241121aac8c | refs/heads/master | 2021-04-27T18:17:23.807073 | 2018-02-21T14:12:51 | 2018-02-21T14:12:51 | 122,337,277 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,802 | py | # _*_ coding:utf-8 _*_
import sys, os
import torch
from data import get_data
from model import PoetryModel
from torch.autograd import Variable
import numpy as np
import Config as cfg
opt = cfg.Config()
def generate(model, start_words, ix2word, word2ix, prefix_words=None):
results = list(start_words)
... | [
"noreply@github.com"
] | cryer.noreply@github.com |
048997487a3581e46272c44e5cdb698450904fb8 | 7ae7c24093d6961d4cf3359441abf6140755ed77 | /api/exe/twitter-translate/en-seed.py | 27620ceafc978a7471ab62c82a567aceaf7a559b | [] | no_license | yuhonghong7035/YumaInaura | 5e518df2b983dc997fbc082bddf66cc260b8128e | 87ea64c1d2e359bbb9bb19e2622ed5b4e0d94eea | refs/heads/master | 2020-05-09T22:31:50.693862 | 2019-04-15T03:21:01 | 2019-04-15T03:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #!/usr/bin/env python3
import sys, json, re, os
tweets = json.loads(sys.stdin.read())
results = []
for tweet in tweets:
seed = {}
seed['text'] = tweet['en_translated_text'][:280]
seed['attachment_url'] = tweet['url']
#seed['text'] = tweet['translated_text'][:240] + ' ' + tweet['url']
results.append(seed)... | [
"yuma.inaura@gmail.com"
] | yuma.inaura@gmail.com |
a68302e20767602cfb0f056fe02fe1c7984c0f8c | 738f9aac8c688fc97b7d4addfd8056c3102ad3ff | /sql_graphviz_hdon.py | b53418a85e39d0d11fae3f25118b805b25a2ab0e | [
"MIT"
] | permissive | dvisztempacct/sql_graphviz | 9c4ed370866c2887cdd73320c096f466ce2bc603 | fcf797eb51c30ab13f7f51f2aa470abed9a91319 | refs/heads/master | 2020-04-20T03:46:41.742990 | 2019-01-31T22:41:39 | 2019-01-31T22:41:39 | 168,608,058 | 1 | 0 | null | 2019-01-31T22:41:17 | 2019-01-31T22:41:17 | null | UTF-8 | Python | false | false | 6,474 | py | #!/usr/bin/env python
import sys, hashlib
from datetime import datetime
from pyparsing import alphas, alphanums, Literal, Word, Forward, OneOrMore, ZeroOrMore, CharsNotIn, Suppress, QuotedString, Optional, delimitedList, removeQuotes
def dprint(*args):
print(*args, file=sys.stderr)
def extract_name_from_field(fi... | [
"dviszneki@influential.co"
] | dviszneki@influential.co |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.