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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cea88e4c2f65851b2c2b12741d4b1a692a58f3f4 | 1cf44d5482a6b3b343f38429fcaeb3b6260b8968 | /day 16.py | 26d801ae0b0a91742ea2438285c3e83a4701cf0b | [] | no_license | Mundhey/-HackerRank--30-Days-of-Code | ac3a05da35e0b35b258082384aab53ed5caed843 | a3a427ee48d38ebb3d1bf714a54c2839eb1a1825 | refs/heads/master | 2021-07-25T20:25:54.242171 | 2017-10-31T08:29:16 | 2017-10-31T08:29:16 | 104,542,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | try:
print(int(input()))
except ValueError:
print "Bad String" | [
"mundheyrohan@gmail.com"
] | mundheyrohan@gmail.com |
78114eb9b8af0d0f91311f5efe983687ab814067 | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/surface/ai_platform/operations/describe.py | 06aa812cb986b22a941e19bab4929cc2330eda88 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 1,528 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
792451ae4deffa9b1fcfbae36e7e0397b0f3d802 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/tst/acupoints/test_zusanli213.py | f53e9b7310099603a6d346caed38546241f59172 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
import unittest
from meridian.acupoints import zusanli213
class TestZusanli213Functions(unittest.TestCase):
def setUp(self):
pass
def test_xxx(self):
pass
if __name__ == '__main__':
unittest.main()
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
7264806facacbd28ac4651c3e266a350d7fbe10f | bf6c6c9e990ca75f580efab969162cfaacf413fb | /polls/views.py | 54a6c37d763d5bed8cc70357add98c955a2f32dd | [] | no_license | malpiatko/django-tutorial | 502a4f676e193e76c12f443a96a1904fa8b68a33 | 8845eb2991b38f4c63340b025154814290eb925f | refs/heads/master | 2020-05-20T11:50:46.359625 | 2014-07-10T22:32:13 | 2014-07-10T22:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render, get_object_or_404
from django.core.urlresolvers import reverse
from polls.models import Poll, Choice
def index(request):
latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
context = {'latest_poll_list... | [
"ela@lshift.net"
] | ela@lshift.net |
84ff600633ba27219e53f693d55b68704fdba45f | 957e5e5fc3397f247834fe3d1830197a2ac7a6c1 | /modulo2/problemas diversos.py | e09966606a0ef22333c69fa16688dc7f3a9ea11c | [] | no_license | jose7303/python | bfbb2bf4ac2af86b78766b61cddec2d227b7f99d | f42a0648036e128a23a3ea068f38c30d9d333c34 | refs/heads/main | 2023-08-21T23:54:40.582249 | 2021-10-14T05:46:17 | 2021-10-14T05:46:17 | 342,997,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | def vint_num(c):
'''
validar un entero
Parameters
----------
c=str
Returns
-------
n=int
'''
while True:
try:
n=int(input(f"{c} "))
return n
except:
print("error , ingrese de nuevo")
def vfloat_num(c):
'''
... | [
"noreply@github.com"
] | jose7303.noreply@github.com |
e090d06079153e043345e89dae50d561e3b966fc | 731d3098416048ce6c365070ac779273cb99bb74 | /04.Codes/Functions/preprocess.py | 14e3848c63c1a931b89c36c4b470679c4b93a6da | [] | no_license | DeloitteAM/AmericanM | a5a407be57725db46a3473be3d272524573c1c71 | f036c58a1db39ff0a4c21b78ca410fd41468cc48 | refs/heads/master | 2020-03-29T19:55:35.478412 | 2018-10-23T13:11:23 | 2018-10-23T13:11:23 | 150,287,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 10 13:02:44 2018
@author: dmiglani
"""
def column_preprocess(dat,cols):
for i in cols:
dat[i] = dat[i].astype(str)
dat[i] = dat[i].str.upper()
dat[i] = dat[i].str.replace('[^A-Za-z]+\s', '')
dat[i] = dat[i].str.replace('.', '')
... | [
"deepak.miglani1995@gmail.com"
] | deepak.miglani1995@gmail.com |
852f1f8902b3df6d80977afdeea44483240b0615 | f567582cb5cddc3f172c00ff0f722380af95b35a | /foodpanda/foodpanda/items.py | 0164032f6dc12235a4a701d2357343ca94b065ac | [] | no_license | dorahero/foodpanda_scrapy | e23d2f67f71062ee5818ed428ff1e102e7ecb932 | 9168d824737b0828a4bee4b0443c0930c8964b92 | refs/heads/main | 2023-02-21T23:05:51.080722 | 2021-01-23T05:37:29 | 2021-01-23T05:37:29 | 329,513,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class FoodpandaItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
data = scrapy.Field()
| [
"66933004+dorahero@users.noreply.github.com"
] | 66933004+dorahero@users.noreply.github.com |
037039a1295224580e90c789e304781e86577c41 | 989a9b3eb09e396972f753e903ab49ecf2ba4eae | /venv/Scripts/easy_install-script.py | 8d35fad6b9a9035eb000990ffb0073917ca07869 | [] | no_license | anjalibansal28/PlatformScience | 9376103b3049354d44b84a0032ae61f1800ea5aa | 4b7dbdefed76646a48b8cfdc7db342cf2e189ae7 | refs/heads/main | 2023-07-15T08:34:39.368532 | 2021-08-08T16:09:35 | 2021-08-08T16:09:35 | 393,990,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\bansaan\PycharmProjects\PlatformScience\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__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'(-scrip... | [
"bansaan@win.eng.vzwnet.com"
] | bansaan@win.eng.vzwnet.com |
db7ef489df94f69d5ba210b204d884cf3a44ad09 | cb52895cced71b7ae75771241970eabae22cf311 | /addons/tt_print_form_schet/__init__.py | 5336a2481a6d6ca17e16c5a3a0c129f59e6269a5 | [] | no_license | odoo-russia/odoo-russia | 636033b3ed0686fb1fe22a816f1c6883d397f045 | 8dd14dee3066d7ef38a75a374be03b0cca33e8eb | refs/heads/9.0 | 2020-04-14T10:53:28.557127 | 2015-10-10T10:04:16 | 2015-10-10T10:04:16 | 11,379,892 | 31 | 13 | null | 2015-10-10T10:04:17 | 2013-07-12T23:12:27 | Python | UTF-8 | Python | false | false | 1,382 | py | ##############################################################################
#
# Copyright (c) 2008-2012 NaN Projectes de Programari Lliure, S.L.
# http://www.NaN-tic.com
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of... | [
"ivkond@gmail.com"
] | ivkond@gmail.com |
8873f04291c13871eb62daa5b3fdc49968d46355 | f8fb86dc5731afa8a366a3e33b02a50e93336a86 | /fundoshi/tests/test_mangapanda.py | 000ebffd9166ad48bc4615352402a4d7ba0807c4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nhanb-srht/fundoshi | af6eb98d0cf0984c014ef92426a39a4ca2c1541e | 22e87eed949bd42a342fce1984abc0ffaec323af | refs/heads/master | 2020-07-10T04:23:41.495952 | 2019-08-24T14:15:01 | 2019-08-24T14:15:01 | 204,166,561 | 0 | 0 | MIT | 2019-08-24T14:14:12 | 2019-08-24T14:14:11 | null | UTF-8 | Python | false | false | 4,873 | py | from vcr_unittest import VCRTestCase
from fundoshi.sites.mangapanda import Mangapanda
from . import (
_test_series,
_test_chapter,
_test_search_series
)
site = Mangapanda()
class TestMangapandaSearchSeries(VCRTestCase):
def test_beelzebub_search(self):
expected = [
{
... | [
"nhan@nerdyweekly.com"
] | nhan@nerdyweekly.com |
1b661917f1bbf1889691f540f74bfadc8996f42a | 244189d49a3967b4b002af73f40ca8e8064c4771 | /modules/auxiliary/scanner/http/octopusdeploy_login.rb | e95f4eb8c6b5e148702da83e0b31045c7dcf1249 | [
"MIT"
] | permissive | darkcode357/thg-framework | 7540609fb79619bdc12bd98664976d51c79816aa | c1c3bd748aac85a8c75e52486ae608981a69d93a | refs/heads/master | 2023-03-01T05:06:51.399919 | 2021-06-01T14:00:32 | 2021-06-01T14:00:32 | 262,925,227 | 11 | 6 | NOASSERTION | 2023-02-10T23:11:02 | 2020-05-11T03:04:05 | Python | UTF-8 | Python | false | false | 2,528 | rb | ##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'metasploit/framework/credential_collection'
require 'metasploit/framework/login_scanner/octopusdeploy'
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remo... | [
"darkocde357@gmail.com"
] | darkocde357@gmail.com |
a06be0d74b4b15af6044eb7f071cb38b58b8560f | 92776eafa7c4fbc2a3836fcdd3a9aece46152f0a | /6.py | 5e0c42e1f9626088ea0cd68ac7ef8742f9f3ddb4 | [] | no_license | debil-from-Russia/21.1.2018h-w | e127d3722886f789a0af5b4e8070d14f6319292f | 7861d08bd936006f7428be390205dbadec584f8e | refs/heads/master | 2021-05-11T01:51:58.907964 | 2018-01-21T14:24:34 | 2018-01-21T14:24:34 | 118,341,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | x = int(input())
ch = 2
zn = 3
step = 1
minus = True
total = 0
while not step>10:
pre = (ch/zn)*(x**step)
if minus:
total-=pre
minus = False
else:
total+=pre
minus = True
step+=1
ch+=1
zn+=1
print(total) | [
"noreply@github.com"
] | debil-from-Russia.noreply@github.com |
e62fda6ebc68743af0af01a2bc34bc14ba0e666a | 3117852233ea6c2644e723587a7b28d6d6518d95 | /ttslang.py | 28c918e4b4594278eeae4e3af6f10d766e7db1e7 | [] | no_license | harishravi121/Pythoncodes | d70059a3b7785d668a4b03f3ec85b0777b33706f | 1d6d6ca0ed6348b6c5d07d27d24668fb567527ca | refs/heads/master | 2023-07-07T11:58:03.741814 | 2023-07-01T08:01:56 | 2023-07-01T08:01:56 | 211,642,477 | 3 | 0 | null | 2020-01-13T06:45:25 | 2019-09-29T10:00:32 | Python | UTF-8 | Python | false | false | 83 | py | import pyttsx3
engine = pyttsx3.init()
engine.say("HEllo")
engine.runAndWait()
| [
"noreply@github.com"
] | harishravi121.noreply@github.com |
88741e965ad62792c88ae2768cba1b7c24756d2c | a0295c3b87094de5717995c960c276be79853afe | /exec_cmd/migrations/0001_initial.py | f2b60ec7740ab35f8283a567bfdb5222b8c709d0 | [] | no_license | HanChengITer/ops-tools | ae79b782214c0bc7073ad49d70e8ecad6da742ec | 1f8ed382b7bcaf3aba2599cc68447c76591630ee | refs/heads/master | 2022-12-14T20:40:26.287753 | 2018-06-07T15:54:46 | 2018-06-07T15:54:46 | 136,015,498 | 2 | 0 | null | 2021-06-10T20:19:02 | 2018-06-04T11:31:57 | Python | UTF-8 | Python | false | false | 1,229 | py | # Generated by Django 2.0.6 on 2018-06-05 14:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ExecCmd',
... | [
"13186087857@163.com"
] | 13186087857@163.com |
b74fdc2b3e74f8b6ba0a7541d245f5fbbfcc9816 | 64d70b4e2ec97bed70b1c843b878d90b55115392 | /manage.py | 2ff77ec610b53f7489e534855e76eb7fa54fb3f2 | [] | no_license | jasondza2010/flood-control | 6fb96600ad02a4b79f4e97f08ca6ef5865c84fe1 | ea2305c2dd79d2c0464f84471474298b698f72d0 | refs/heads/master | 2020-06-13T23:32:49.356961 | 2019-06-22T10:20:07 | 2019-06-22T10:20:07 | 193,249,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flood_control.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"jasondza2010@gmail.com"
] | jasondza2010@gmail.com |
dbcc7339a76df3ed83b2369ed7c38dd867386a0b | adcaed06e1139ed9ec2d8c974178931f51c19674 | /euler6.py | 814974e2ea59663585beb788c9acc183de240a3c | [] | no_license | r-tron18/ProjectEuler | bae979945ca8c93363288016f6a02db7107e9f1a | addd5f23176e2f0adf89670a7a38deac97301e3e | refs/heads/main | 2023-06-08T12:02:55.462679 | 2021-07-02T12:15:06 | 2021-07-02T12:15:06 | 382,332,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py |
def solve(n):
return (n * (n+1) * (3*n**2 - n - 2)) // 12
N = 100
ans = solve(N)
print(ans)
| [
"procoder9973@gmail.com"
] | procoder9973@gmail.com |
11ef6ca2d147d233356a6acba44ea40205158c00 | d83ba1f2af64f35ffdc1f3fb822dbb4b7d32a71c | /registration/forms.py | c90d13574cdf2581f269cbc85ff4b1a38a3239db | [] | no_license | PSV37/Project | 4996a011221c0c2a19f31aec1adbdd5765694260 | 9262d8ee94e0757ccd79181f979fdf45bf841e52 | refs/heads/master | 2021-01-01T04:47:31.878256 | 2017-07-15T15:10:26 | 2017-07-15T15:10:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.contrib.auth.models import User
from django import forms
class UserFoms(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput)
class Meta:
model = User
fields = ['username','email','password']
| [
"sapnapastapure@gmail.com"
] | sapnapastapure@gmail.com |
080221d14c30651408bf134ca5e3e94e318e6702 | 59a93993804c1a72dac55f25b5efe826982acebe | /1)circle area.py | fc9d038be25d0a10f3197b0f8094d79e05e9308c | [] | no_license | AmalDamodar/Python---Programming-Lab | b99dd5cea3301d6ea70ebd669e4052d41584964d | e211f457edd70173807e71d3696ace479e19d03e | refs/heads/master | 2023-03-13T23:01:37.434124 | 2021-03-09T02:23:09 | 2021-03-09T02:23:09 | 329,832,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from math import pi
r = float(input ("Enter the radius of the circle : "))
print ("The area of the circle is " + str(pi * r**2))
| [
"amhzamal@gmail.com"
] | amhzamal@gmail.com |
adb6427317dfc161210edab8159cb6ef4ec06f21 | 23b44edcd663eb60d4deee64ced5a5b27ee3b7d2 | /thermosteam/chemicals/phase_change.py | ef5a32237d3cf1e9db68f454ccd5c957c0c7a959 | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"MIT"
] | permissive | sarangbhagwat/thermosteam | 7b13c6c3146fe2fc378b453fe3c732dc7397ea0c | 710ec22b17c257a742300bf172fd3121852abf98 | refs/heads/master | 2022-12-13T03:37:49.251727 | 2020-09-14T17:24:30 | 2020-09-14T17:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,344 | py | # -*- coding: utf-8 -*-
# BioSTEAM: The Biorefinery Simulation and Techno-Economic Analysis Modules
# Copyright (C) 2020, Yoel Cortes-Pena <yoelcortes@gmail.com>
#
# This module extends the phase_change module from the chemicals's library:
# https://github.com/CalebBell/chemicals
# Copyright (C) 2020 Caleb Bell <Caleb... | [
"yoelcortes@gmail.com"
] | yoelcortes@gmail.com |
556b97f1bccd033b0884646ddcd289c5d1b778ff | 273b5891b0edbfebd271f3bdac407c919affe008 | /models/mmt_lstm_model.py | c15989008d7469723ceee14db80342f861e707c7 | [] | no_license | TeigenZhang/RucEmo-muse | 05e4e6049b161168255bbeeefebe22c9e68378ee | 73e92ba17e9ba25b048a78117a0bf9cdb991b71c | refs/heads/master | 2023-06-05T09:52:35.695821 | 2020-07-28T18:47:08 | 2020-07-28T18:47:08 | 373,161,185 | 0 | 0 | null | 2021-06-02T12:33:12 | 2021-06-02T12:33:12 | null | UTF-8 | Python | false | false | 7,855 | py | import torch
import os
import torch.nn.functional as F
from .base_model import BaseModel
from .networks.classifier import FcClassifier
from .networks.mmt_lstm import MMTLstm
class MMTLstmModel(BaseModel):
@staticmethod
def modify_commandline_options(parser, is_train=True):
parser.add_argument('--max_se... | [
"ruichen.fatd@gmail.com"
] | ruichen.fatd@gmail.com |
f697e1e55d0fe487685d1fb9e046442a4c570ed6 | 5590517fbdcd6d670fd3a68bb367495597fd9f3c | /insect/models/family.py | 4431332d47d678aba11242f8ae0c2e064dc89e8d | [
"MIT"
] | permissive | Kradukman/beesUlb | 3efac0e2e3b0a93e599abb21358aa3ed07ae2eef | 1234658af3aff7d2f580212c01d8acec96167078 | refs/heads/master | 2022-12-04T15:00:47.363076 | 2020-08-22T22:26:39 | 2020-08-22T22:26:39 | 237,664,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from odoo import api, fields, models, _
class InsectFamily(models.Model):
_name = "insect.family"
_description = "Insect Family"
name = fields.Char('Name', required=True)
position = fields.Char('Position')
super_family_id = fields.Many2one('insect.super.family', string='Super Family', required=Tru... | [
"dag@odoo.com"
] | dag@odoo.com |
7c2dbe11d9c7876daed93c39543914fc1ab2a014 | 66005dbb8038c55e7081d449970efe415d97212f | /read_models.py | 159861cc58073522483be87c87016511abcd653e | [
"Apache-2.0"
] | permissive | Lednik7/SMART_Product | 4793fdb77b9283cf62fa035f26bbbee967c3a844 | 069f63ec944747352b8609d103e7ffb5023c798f | refs/heads/main | 2023-03-25T20:34:17.787365 | 2021-03-21T18:06:51 | 2021-03-21T18:06:51 | 316,019,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | import os
import pickle
PATH = 'models/'
def read_models():
with open(os.path.join(PATH, 'abstract_certain_feat_xgb.pkl'), 'rb') as f:
abstract_certain_feat_xgb = pickle.load(f)
with open(os.path.join(PATH, 'abstract_certain_vect_xgb.pkl'), 'rb') as f:
abstract_certain_vect_xgb = ... | [
"noreply@github.com"
] | Lednik7.noreply@github.com |
9e4720e9b3e5b30877ce9ada3e58d4df32d842f4 | c7ebe99afb7dbace55cb9c4ae334996791966bf9 | /src/Asyncio/exception_handling.py | 8fcb94c5d2293222bd935920d0f1fd1e7ca97e67 | [] | no_license | avimehenwal/python.avimehenwal | 880760ee0fed850bf02d5de6d3ebab0fee3a9629 | 0b8c32338fb19ea7e806c7e56362bd2e46947df2 | refs/heads/master | 2023-01-22T20:59:41.367849 | 2021-12-20T00:10:17 | 2021-12-20T00:10:17 | 49,519,361 | 1 | 0 | null | 2023-01-09T23:00:53 | 2016-01-12T18:12:18 | Python | UTF-8 | Python | false | false | 434 | py | import asyncio
@asyncio.coroutine
def A():
raise Exception("Something went wrong in A!")
@asyncio.coroutine
def B():
a = yield from A()
yield a + 1
@asyncio.coroutine
def C():
try:
b = yield from B()
print(b)
except Exception as e:
print("C got exception:", e)
def mai... | [
"avi.mehanwal@gmail.com"
] | avi.mehanwal@gmail.com |
9026f35aa56cd5cb5b3b0d947ee3ea90a09a5eb0 | 906d2ad0e38bec1e8cc28c91e0cdab2f9ad0db22 | /vagueness/line_plot_meaning_median.py | 5d55d42d5c517a42eff5316cc7a87f5b83d35eb0 | [] | no_license | alan-turing-institute/latin_annotation | 0c5d0a77a97997fa7ddde167fb47e14b88ef8c2f | 7d59782f7a66f5b4d5de5b3a77519edce531ee28 | refs/heads/master | 2023-04-11T21:25:47.910309 | 2022-05-03T07:52:01 | 2022-05-03T07:52:01 | 285,318,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import pandas as pd
import matplotlib.pyplot as plt
inputf = pd.read_csv('ratios_by_meaning_nbr_median.tsv', sep="\t", header=None)
columns = []
for column in inputf:
columns.append(inputf[column].tolist())
source = columns[0]
alpha = columns[1]
source = map(str, source)
fig = plt.figure()
ax = fig.add_subplot(11... | [
"helena.b.sabel@gmail.com"
] | helena.b.sabel@gmail.com |
a8b75d380cc2dabf3b993334ea90a79166b071f7 | 729ee5bcb31708a82b08509775786597dac02263 | /coding-challenges/week06/AssignmentQ4.py | 40922ab75fb78db62f5805f72f03ea8d78695d15 | [] | no_license | pandey-ankur-au17/Python | 67c2478316df30c2ac8ceffa6704cf5701161c27 | 287007646a694a0dd6221d02b47923935a66fcf4 | refs/heads/master | 2023-08-30T05:29:24.440447 | 2021-09-25T16:07:23 | 2021-09-25T16:07:23 | 358,367,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Given an array of size n and a number k, find all elements that appear
# more than n/k times
# Input : k = 4 ,n=9 , A = [ 3 ,1, 2, 2, 2, 1, 4, 3, 3 ]
# # Output: - [ 3 , 2]
list1=list(map(int,input("Enter the list=").split()))
n=len(list1)
k=int(input("Enter the value of k="))
frequency={}
for i in list1:
if... | [
"ankurpandey131@gmail.com"
] | ankurpandey131@gmail.com |
40693fc2bae730d2956de0b897e805803e03cd92 | 9f72bec949c972b90da0133b7df7f74dc80173f5 | /Assignment 1/PageRankApp/wait_for_spark_app.py | 68044ed6fd8bcb8071a63fa558042faef54fecfd | [] | no_license | chakshuahuja/CS744 | 1bc3e9eead95259ccfc51442a9160a16f4310ec3 | 811425c1942a2b87718b79c29eb0e9b1eef05ceb | refs/heads/master | 2020-04-21T10:57:07.497643 | 2019-05-16T15:05:14 | 2019-05-16T15:05:14 | 169,503,918 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from urllib import request
import json
import subprocess, sys
ip_address = subprocess.check_output('hostname -i', shell=True).decode('utf-8').strip()
api_url = "http://" + ip_address + ":4040/api/v1/applications/"
WAIT_PERCENTAGE = 50.0
def get_json_from_url(url):
try: return json.loads(request.urlopen(url).read(... | [
"SushmaKN@node0.sparkassign.cs744-s19-pg0.wisc.cloudlab.us"
] | SushmaKN@node0.sparkassign.cs744-s19-pg0.wisc.cloudlab.us |
66bf1e3802beecffaca8da272bb0fc05f0cfac1f | 00db4eef63423432ab44d8c6fb2f7c4e38f55791 | /Python/第2题/test.py | 3b40a253792585b9ca31e68cf07439c2325389a2 | [
"AFL-3.0"
] | permissive | eternidad33/csp | 736276c340e560fc29c85fd1ce7659d95e372a4e | da25225c578464d4ca500a4bb655e1a2205d9a52 | refs/heads/master | 2023-02-13T16:17:33.651541 | 2021-01-08T03:44:32 | 2021-01-08T03:44:32 | 281,258,083 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # 公共钥匙盒
# 找出要借,或者要还的钥匙编号
def return_lend_key(info, time):
RL_key = []
for i in range(0, len(time)):
if time[i] == t:
RL_key.append(info[i][0])
return RL_key
n, k = input().split()
n = int(n)
k = int(k)
key = [i for i in range(1, n + 1)] # 钥匙盒
info = [[0 for i in range(3)] for j in ra... | [
"3496655347@qq.com"
] | 3496655347@qq.com |
08b345bee03aef1c1b0c715a527cb238aae959d8 | 75cd185cf371d6c7e5f094aaa31eb63e9fa85b13 | /exam/urls.py | 40d70f1cbfe68bec0bd6263fe82b7b54175fbf1a | [] | no_license | satofromjapan/quotes | 42e611537e42110355e85bcb9fc1f9b7f6dfe5d5 | 7a1850ba78937af733a29d32dc0780c9522c2446 | refs/heads/master | 2021-01-20T03:12:18.856139 | 2017-04-26T18:49:10 | 2017-04-26T18:49:10 | 89,511,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | """exam URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"masato.takaha@gmail.com"
] | masato.takaha@gmail.com |
98a3bb666aa53326b5eaed0135122f7aa1ea659d | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002017.py | 3e62b15d60a4b9a7663df6952ee01bd0980a8d61 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
6b5240c09546ae48c6e11c2e580c271be45aea67 | b75ee1f07fcc50142da444e8ae9ba195bf49977a | /test/todo.py | fda75e5f8c9744005e5de098f819c7cadc1540c1 | [
"Apache-2.0"
] | permissive | FlorianLudwig/code-owl | 369bdb57a66c0f06e07853326be685c177e2802a | be6518c89fb49ae600ee004504f9485f328e1090 | refs/heads/master | 2016-08-04T02:26:07.445016 | 2014-05-25T19:19:13 | 2014-05-25T19:19:13 | 18,918,361 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # this file contains tests for missing features
# this means the tests here do FAIL.
import codeowl.search
def match(query, code):
query = codeowl.search.generate_query(query)
code = codeowl.code.parse(code)
return codeowl.search.tokens(query, code, '<test>')
def test_py_import():
assert match(
... | [
"f.ludwig@greyrook.com"
] | f.ludwig@greyrook.com |
ebdd55a6a5fe595a3800d3f060b45d7a9d95bb74 | 3848fcfea9635e8d5aff41007220eefe67b299b0 | /model_prediction/event_log_predictor.py | dd243c83b8219500b39a98ef4acbaa0b57481105 | [
"Apache-2.0"
] | permissive | abhipannala/GenerativeLSTM | cd91934fe4df8ae9ee925b6006a24b47350b9537 | 0f3dab5b9bf675d97276c081154727cc00c77dfd | refs/heads/master | 2022-11-14T05:53:24.491371 | 2020-06-30T16:50:39 | 2020-06-30T16:50:39 | 275,196,342 | 0 | 1 | Apache-2.0 | 2020-06-30T16:50:40 | 2020-06-26T16:08:09 | null | UTF-8 | Python | false | false | 5,643 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 18 17:11:17 2020
@author: Manuel Camargo
"""
import numpy as np
import math
import datetime
from datetime import timedelta
from support_modules import support as sup
class EventLogPredictor():
def __init__(self):
"""constructor"""
self.model = None... | [
"38304139+Mcamargo85@users.noreply.github.com"
] | 38304139+Mcamargo85@users.noreply.github.com |
edcdc2093e120123d93e694e63df0eca3b666191 | 999d99304cc8f7e6c06430d060ffb8d47f4d7549 | /conv_evanyearbook.py | 6a60720b7c6c41716094cedd1ce066ed1dd7ee3a | [] | no_license | mrthinger/High-School-Yearbook-Autoencoder | 7822e82fe4279906e5f8aaca958a25ba0a940bfc | 0fdffc7dbb4208666b4a034077168427ccc9bada | refs/heads/master | 2020-04-06T17:19:35.814721 | 2018-12-18T02:59:20 | 2018-12-18T02:59:20 | 157,654,619 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,938 | py | import os
import cv2
import numpy as np
import tensorflow as tf
import pickle
from tqdm import tqdm
#image dimensions are 550x680
scale = 1
squishDim = (56*scale,68*scale)
facesFolder = "C:\\Users\\miste\\Desktop\\ProjectNov18\\faces"
faces = os.listdir(facesFolder)
faces = [os.path.join(facesFolder, face) for face... | [
"evanpierce@aim.com"
] | evanpierce@aim.com |
2bf16d2a0b120a587301917cafe6e3763746f348 | 52a3beeb07ad326115084a47a9e698efbaec054b | /horizon/.venv/bin/heat | da3eeefdf4e4f11003d3c6597a0c69aea163d0fd | [
"Apache-2.0"
] | permissive | bopopescu/sample_scripts | 3dade0710ecdc8f9251dc60164747830f8de6877 | f9edce63c0a4d636f672702153662bd77bfd400d | refs/heads/master | 2022-11-17T19:19:34.210886 | 2018-06-11T04:14:27 | 2018-06-11T04:14:27 | 282,088,840 | 0 | 0 | null | 2020-07-24T00:57:31 | 2020-07-24T00:57:31 | null | UTF-8 | Python | false | false | 240 | #!/home/horizon/horizon/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from heatclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Suhaib.Chishti@exponential.com"
] | Suhaib.Chishti@exponential.com | |
a75e743e3aba5884be27cb641f199e76cf4d0189 | 247d4dd2bc68de771605cb1b67c44c1c0f0f43dc | /ensemble/house_price.py | 6b14205f4ff44154f5ab33af7874e15521a32d77 | [] | no_license | Kings-union/ML_study | 3f1ad41a9223d7b49eaeb2807870d7590a025804 | 1126c9a519d1fddde1b7d568f02e4df676dc7138 | refs/heads/master | 2021-10-10T12:47:24.134419 | 2019-01-11T01:25:24 | 2019-01-11T01:25:24 | 114,610,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | import numpy as np
import pandas as pd
from sklearn.linear_model import Ridge
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import cross_val_score
import matplotlib.pyplot as plt
train_df = pd.read_csv('./input/train.csv', index_col=0)
test_df = pd.read_csv('./input/test.csv', index_c... | [
"sukisleep@hotmail.com"
] | sukisleep@hotmail.com |
d04aaef21caf30a7b3162da917e0162e5972d2ce | 4e93e4275e82a08d3c114c9dd72deb0959d41a55 | /src/ch10/binary/__init__.py | 6f8ad9a2cdb18a4e50d6eeff4b4bd01581729622 | [] | no_license | wsjhk/wasm-python-book | fd38e5a278be32df49416616724f38a415614e8b | 872bc8fe754a6a3573436f534a8da696c0486c24 | refs/heads/master | 2023-03-16T02:18:48.869794 | 2020-09-17T11:31:49 | 2020-09-17T11:31:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: HuRuiFeng
@file: __init__.py
@time: 2020/8/19 1:55
@project: wasm-python-book
@desc:
"""
from ch10.binary import reader
decode_file = reader.decode_file
| [
"huruifeng1202@163.com"
] | huruifeng1202@163.com |
ba2dba9f3f8b6287d25ffbb5992a661635b0b81c | f1b9dc71b2dafc2b331de495ef4ceab938734fbe | /test.py | b80d38b36f71633c8ecb41f54b9fdf2f08e362bc | [] | no_license | philippjfr/FOSS4G-2017-Talk | 7deb6e48755b71658f930aa55c06d3a903f1abc6 | e3f035dc648cfc4642e774e536d6c07c847417b5 | refs/heads/master | 2022-11-07T07:19:37.053629 | 2017-08-23T17:16:38 | 2017-08-23T17:16:38 | 100,023,633 | 2 | 4 | null | 2022-11-01T10:51:44 | 2017-08-11T11:09:21 | JavaScript | UTF-8 | Python | false | false | 1,261 | py | import holoviews as hv
import param
import parambokeh
import numpy as np
from bokeh.io import curdoc
renderer = hv.renderer('bokeh').instance(mode='server')
class CurveExample(hv.streams.Stream):
color = param.Color(default='#000000', precedence=0)
element = param.ObjectSelector(default=hv.Curve,
... | [
"P.Rudiger@ed.ac.uk"
] | P.Rudiger@ed.ac.uk |
e66ebdd888e9440f4b5b8a61baab02d13ca65f89 | 05a6893b52239f2a415ef9ab3d29060a9a7f4f1f | /beans/beans_bill/apps/expense/migrations/0001_initial.py | d3387272afbd54c8ede566185c29d17e5b9a85b7 | [
"MIT"
] | permissive | tjhlp/beans_code | d4df7bc1f8c3ac545e34ede0c38e56e5984d12e5 | d9b5eceddfd2c0028875001d7d53fd3fd222edf9 | refs/heads/main | 2023-02-20T19:38:03.691823 | 2021-01-14T06:26:48 | 2021-01-14T06:26:48 | 327,171,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2020-07-16 14:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Expen... | [
"shikaining@zkzz.onaliyun.com"
] | shikaining@zkzz.onaliyun.com |
62de38f216a4bb285bd5c78c9ae8517e3d1c44dc | 4ddf82eeb31d46fb67802a4375390eb42a8f23b8 | /tests/pyb/adc.py | 875d31d732cc3648fff5484fb1e95c617dda69ad | [
"MIT"
] | permissive | pulkin/micropython | 1437a507b9e90c8824e80c3553e6209d89e64565 | c274c947c611f510fd2b1c4ef6cbd9f4283794fc | refs/heads/master | 2023-03-08T02:35:28.208819 | 2022-04-19T12:38:47 | 2022-04-19T12:38:47 | 167,732,676 | 103 | 36 | MIT | 2023-02-25T03:02:36 | 2019-01-26T19:57:59 | C | UTF-8 | Python | false | false | 1,546 | py | from pyb import ADC, Timer
adct = ADC(16) # Temperature 930 -> 20C
print(str(adct)[:19])
adcv = ADC(17) # Voltage 1500 -> 3.3V
print(adcv)
# read single sample; 2.5V-5V is pass range
val = adcv.read()
assert val > 1000 and val < 2000
# timer for read_timed
tim = Timer(5, freq=500)
# read into bytearray
buf = byte... | [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
d7758e2169634a87bc921ea9e999b7c9acc9b5f3 | 8924ba7719164c962b49c36c05d81d393915d456 | /jenkins/setup.py | 7d84584d4d8784b27d8c079f2afd88bd88708763 | [] | no_license | carlosal1015/VecGeom | 23525ff91567d58cfde1aa7c66f9cc508a3b5bbf | 12512cd7f67b89f7619a64474080ad24077aba10 | refs/heads/master | 2020-09-13T17:16:12.770167 | 2015-06-02T07:26:54 | 2015-06-02T07:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,224 | py | #!/usr/bin/env python
import sys, getopt, fnmatch, os, subprocess, platform, string, re
global arch, system
arch = platform.machine()
system = platform.system()
# --------------------- Setting command lines options
def main(argv):
global compiler, build_type, op_sys, external, rootDir
global comp, build
... | [
"patricia.mendez@cern.ch"
] | patricia.mendez@cern.ch |
0eab1f1693580c5279c450170b68332f66467d9a | 9b8057e75ee40f02739de698bc7a224de8a3b2f1 | /kwargs.py | dd503311de1dde2d11f05fbcc234fd2a3d7d0684 | [] | no_license | sprawin/Python_Docs | ea5dede9393b5d7a4620b3c54dc73b482fdc0f55 | f5eda0fe70d8075cc04621280eb4b4555524826c | refs/heads/master | 2023-06-28T08:06:45.888736 | 2021-07-20T17:42:37 | 2021-07-20T17:42:37 | 387,541,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # key word arguments
def person(**data):
for i,j in data.items():
print(i,j)
person(name = "Praveen", age = 23, mobile = 9486185751) | [
"spraveen241297@gmail.com"
] | spraveen241297@gmail.com |
9b3ced1227425e01e766e2662feb34222d969e98 | 678f3de123cbe3fe951cf4d8c0dffc1e7fbdc716 | /scripts/run_rf_optimisation_clean_300_gt.py | dac37f6462e49717f02c94b18892fa96a66ef1e0 | [] | no_license | cdesio/leaf_reco | 3c43455fc691d78f0b3e072a314d03b6e8ea9efe | 9581e30e823eab3deb0ee6b08b2f5cb8df7cb631 | refs/heads/master | 2020-04-24T02:51:44.043139 | 2020-03-31T10:57:42 | 2020-03-31T10:57:42 | 171,651,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,774 | py |
import numpy as np
from sklearn.externals import joblib
from sklearn.ensemble import RandomForestRegressor
import os
from sklearn.metrics import mean_squared_error, mean_absolute_error
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
import pickle
data_dir = '/storage/yw18581/d... | [
"yw18581@soolin.dice.priv"
] | yw18581@soolin.dice.priv |
8f542d8f0c3ee94a57ca157f9e12ed70535eb72d | 71abd3768db29b21b611918de4ff7d087273ffd1 | /main.py | 48a06cc8970cc6138c56ce3ce56660dd93b40b2c | [] | no_license | Vamgam/pythonProject2 | e0bcf373828d0740f6280f2e644e3c23610a8911 | 02e29a6d1ed09a7c4eb171d27aa62b2b0f7a9701 | refs/heads/master | 2023-01-31T03:47:47.740080 | 2020-12-18T11:28:50 | 2020-12-18T11:28:50 | 320,336,685 | 0 | 0 | null | 2020-12-18T11:28:51 | 2020-12-10T17:02:38 | Python | UTF-8 | Python | false | false | 1,137 | py | import matplotlib.pyplot as plt
import numpy as np
def power():
l = list(simfunc.split())
n = np.double(l[1])
for i in range(np.size(x)):
x[i] = x[i]**n
def log():
for i in range (np.size(x)):
x[i] = np.log(x)
x = list(map(np.double, input().split()))#входные данные оси x
x = np.asarr... | [
"babikian.gv@phystech.edu"
] | babikian.gv@phystech.edu |
090d6345e55a93d906445f8e35e8c0c555158490 | 998282826ea25958b8e1210777faed11462a6bd0 | /docs/examples/03.5.modules/package1/module2.py | 90506b0779712816d0608619187d87cbe3334e4f | [] | no_license | dluciv/python-intro-course | 13beff3cadf3b48a8dd0c0ea47b4f0061e609644 | 2df111c388154ab5025357b373061375005907cc | refs/heads/master | 2023-06-26T13:22:32.400024 | 2023-04-19T08:31:05 | 2023-04-19T08:31:05 | 147,370,775 | 17 | 29 | null | 2023-02-25T18:37:44 | 2018-09-04T15:50:25 | Python | UTF-8 | Python | false | false | 298 | py | from . import module1 # а вот тут хорошо — import из своего пакета
from .subpack2 import module3 # или из пакета/модуля на одном уровне с собой
def p1m2f1():
return 'p1m2f1 -> ' + module3.p1s2m3f1() + ' -> ' + module1.p1m1f1()
| [
"dluciv@dluciv.name"
] | dluciv@dluciv.name |
f5440ee9f953f8c7f2c78474a02b1d419a55e7f9 | 923ff1031671ec8907420a29aab0cca4ad73ae7c | /tamer_app_workflow/actions/reply_email.py | ed2617ef74f0a33eda69a5faa59c22915b310bbb | [] | no_license | suijius/tamer | c2c4ab5f45bd8920723f15a0594da1d064a59fc1 | 8b52ef9a30cec0fa5f6e9dd493157de3b9a6b5df | refs/heads/master | 2022-11-25T04:28:33.528803 | 2020-08-03T11:04:45 | 2020-08-03T11:04:45 | 279,901,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | import win32com.client
from subprocess import Popen
from django.forms import FileInput, FileField
from django.forms import modelformset_factory
# from dashboard.models import DashboardTask as db_task
#
# from root.views.workflow.action import ActionView
# from root.models import DashboardWFInstance as db_instance
from... | [
"chepurnov_s@iit.ru"
] | chepurnov_s@iit.ru |
2a63154626e0dca340bacdadf3daacf8dd47f105 | ff2db4b2ffb79f84316688681b49f8d695eff120 | /moo/moo/wsgi.py | 69364bcef2ed9254df3a0908864900ca2573e288 | [] | no_license | AVatch/moochat-api | 667a936b1a1de6a68b98ff129b2385fbe146d144 | 2248c40955e58b299db4d9f42b5313bc6db80647 | refs/heads/master | 2021-01-13T00:42:32.043229 | 2015-08-25T01:48:49 | 2015-08-25T01:48:49 | 36,503,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for moo 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"avatchinsky@Adrians-MacBook-Pro.local"
] | avatchinsky@Adrians-MacBook-Pro.local |
f376c1088626c268f63d016c25d700098d8d3d36 | ce6d35d356ba5696718abb41aa47da14b1e849a4 | /python-tools/mySplines.py | eab74b44eac0efc497192ee0f806198c36cf1480 | [] | no_license | lucaparisi91/qmc | 6a59993de84ce69ca52f255efebf2474d9891b22 | 238e51cdf0df367c78f5e315c52acb0350b6e184 | refs/heads/master | 2021-01-10T07:39:07.615316 | 2018-05-02T15:09:45 | 2018-05-02T15:09:45 | 47,068,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | import numpy as np
from math import *
import matplotlib
# creates an array to fit
x=np.arange(0,pi,0.01)
y=np.sin(x + 0.5)
| [
"luca.parisi91@mail.com"
] | luca.parisi91@mail.com |
1eb1a3ffdbf0c0ad15bc3608e15ebb2672d8b659 | eb332586b512e7fe8bfcd25a269885ca1ea71d48 | /local/unit-tests/UT_local_response.py | 1c286ea3f7b577d66361c75b90837d667e6f98b1 | [
"Apache-2.0"
] | permissive | tcmitchell/geni-ops-monitoring | a39b2f985ffa1a8d47cefbb78c29fea6057189b1 | 8ea078175b6105dbe63064d74c2d50f1dfabfe96 | refs/heads/master | 2021-01-25T09:38:30.405709 | 2017-05-25T18:15:30 | 2017-05-25T18:15:30 | 93,867,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83,260 | py | #!/usr/bin/python
#----------------------------------------------------------------------
# Copyright (c) 2014-2015 Raytheon BBN Technologies
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restr... | [
"sblais@bbn.com"
] | sblais@bbn.com |
d85ff8da66e28d47df80755796b5b30c21127fba | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /able_way/long_way/take_eye.py | cfcd983c2042f55d5d6e7c99ddba0ad24bf58cf2 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def good_time(str_arg):
problem_and_work(str_arg)
print('high_thing')
def problem_and_work(str_arg):
print(str_arg)
if __name__ == '__main__':
good_time('able_fact_and_life')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
a4096b7f1c4116a6ffaf257384b64bd4bd388996 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /String/6. ZigZag Conversion(Med).py | 1e80504fb03188e5ba70ed8751bed04c9c9c96c4 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | class Solution:
def convert(self, s: str, numRows: int) -> str:
if numRows == 1:
return s
store = [["" for _ in range(len(s))]for _ in range(numRows)];
i = 0;
m, n = -1, 1;
while i < len(s):
if m == -1:
m += 1;
n -= 1;
... | [
"huangxingyu00@gmail.com"
] | huangxingyu00@gmail.com |
8f99261dcf83817736cc76617544e71959333ffc | b18ab3ccd6101972ffb0a203451f235b834ba93a | /Hkm | 73d66442af1387dc3fcd6130e8e26ce1853cafac | [] | no_license | MaishatArman/import | f27834508a19987684a27d03d419391f8fa0be57 | 7852cc3519af05c193df1d5037296d45d9b26aee | refs/heads/master | 2022-11-22T00:55:42.422145 | 2020-07-23T14:12:50 | 2020-07-23T14:12:50 | 281,968,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,441 | #!/usr/bin/python2
#coding=utf-8
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browser()
br.set_handle_robots(False)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(),max_... | [
"noreply@github.com"
] | MaishatArman.noreply@github.com | |
1584e04269a93d4d37d7dbd400d5a6004bd6ad2a | 455db75000b04f04aae1dc9348ff37c659affc1f | /day16.py | b90e76aaeabd065e7726d76ad38fc0e91f897293 | [] | no_license | wamonite/advent-of-code-2020 | dacf28ebaa1c30d0eec78651923b38f756750928 | dee42dd8a3cd080e323fccd6c79807acecb7b9c6 | refs/heads/master | 2023-02-16T01:08:28.147588 | 2020-12-25T10:44:24 | 2020-12-25T10:44:24 | 317,507,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from aocutil import load_file
import re
from math import prod
def parse_data(file_name):
line_list = load_file(file_name)
field_lookup = {}
ticket_list = []
for line in line_list:
if match := re.match('^([^:]+): ([0-9]+)-([0-9]+) or ([0-9]+)-([0-9... | [
"warren@wamonite.com"
] | warren@wamonite.com |
3c92a91b6ab537d980de67771c79bb1dc50b4fce | 6c06ee99d219c395406d97126af66b553b8e6fe3 | /nick/bin/easy_install-3.7 | 3ed095ad53f75f7fdd1f50cb2b15b9978f5f3ce7 | [] | no_license | Tommyngn/tradervo.com | dff07cb75b87dacfb2cf6dd0ea8253cb18fccdd7 | 91136fb4401a25f739f551508fbb7a8ff45f8627 | refs/heads/master | 2023-04-06T12:30:35.603536 | 2021-04-13T23:43:39 | 2021-04-13T23:43:39 | 357,717,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | 7 | #!/Users/tommynguyen/PycharmProjects/tradervo/nick/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tommynguyen@huy-nguyens-mbp.attlocal.net"
] | tommynguyen@huy-nguyens-mbp.attlocal.net |
adf755248d01bee910715a09fd1c7196fd63850a | 5b5ee3e208fe1286a3f55022f7566802d232ccbe | /catkin_ws/devel/.private/collvoid_msgs/lib/python2.7/dist-packages/collvoid_msgs/msg/_PoseTwistWithCovariance.py | ae618702c19815cbece75e2c00e368707ed9e0b7 | [] | no_license | GUNROX95/CollAvoidAlgorithm | 65ca1951b172f46d70531ff132b132fdda81497b | 1fa07ae7a4d31cdd4fe8784774728348358390db | refs/heads/master | 2021-01-25T09:37:27.138741 | 2017-06-09T13:13:47 | 2017-06-09T13:13:47 | 93,858,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,866 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from collvoid_msgs/PoseTwistWithCovariance.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
class PoseTwistWithCovariance(genp... | [
"shkulant95@mail.ru"
] | shkulant95@mail.ru |
1e7759a2c76745ca96fd467642d869d2be1612be | 2d0f735dc972cf667e5d57a371b5bf2f91980440 | /Stack/NextGreater.py | ed08df815ec12f4d38907521da0aec892df0db74 | [] | no_license | Georgeyjy/LeetCodeSolutions | 81b175818f62960f8a9793052f72c773b4b89e3b | d2a38667103deb0c2f2985a81cfb3b8a3632ed58 | refs/heads/master | 2023-07-19T17:45:00.857689 | 2021-08-25T02:56:33 | 2021-08-25T02:56:33 | 299,679,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# @Time : 2021/8/23 17:25
# @Author : Yang Jianyu
# @File : NextGreater.py
# @Software: LeetCode
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
res, tmp = [], []
def recover_nums2():
while tmp:
nums2.append(tmp.pop())
for... | [
"yangjianyu@dragonest.com"
] | yangjianyu@dragonest.com |
9d9b777e9db5f14839481e9edb2dc062d203210a | 93b5da40708878016d953aeb4d9b908ff8af1e04 | /function/practice2.py | 3a807a52ef9fe652abe3614a37febbc4e2a91658 | [] | no_license | Isaccchoi/python-practice | e50e932d2a7bf13b54e5ca317a03a5d63b406c6b | 70e3e1f8590667cfe5ba4c094873eb39d555c44a | refs/heads/master | 2021-06-29T05:45:18.371743 | 2017-09-21T06:15:47 | 2017-09-21T06:15:47 | 103,229,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | def sequential_search(str, key):
count = 0
while count < len(str):
if str[count] == key:
return count
else:
count += 1
return 0
print(sequential_search("개구리고양이", "개"))
print(sequential_search("개구리고양이", "구"))
print(sequential_search("개구리고양이", "리"))
print(sequential_se... | [
"isaccchoi@naver.com"
] | isaccchoi@naver.com |
6824f019e4300ecd9a3efc0096428b6d6c8ac5c3 | c2639d1af52702cadb1893ec0a308ce7b3a9bb42 | /Devoir - Algos de tri.py | 7a46d11e37fa1a9fab9725c18d4285e9e79fa65b | [] | no_license | RM-NSI/algo_tri | db893740a8b30390df0a3d12608ba80279b0aacd | 63d5a8792a8cd0aa7779a60d3164416a847d8e1e | refs/heads/master | 2021-02-04T00:15:24.909324 | 2020-02-28T15:32:28 | 2020-02-28T15:32:28 | 243,579,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | def belong(n,t):
i=0
while i<len(t):
if n==t[i]:
return True
i=i+1
return False
def somme(t):
res=t[0]
for i in range(len(t)):
res=res+t[i]
return res
def PGint(t):
res=t[0]
for element in t:
if element>res:
res=... | [
"noreply@github.com"
] | RM-NSI.noreply@github.com |
be7266329113d0f67c217f3ca06508e67a8a0521 | 9ecf8b0c977dc596d2d55d2bebc77f4db1a26bde | /train.py | 144579fcb66385bc2a8aa2d9ecce1db5c9743972 | [] | no_license | github1ss/udacity1 | 1160292814c65fdecace0ef24215e0a9a97f0c14 | 0f2f33045b571d9cde89587274f6f984f147419b | refs/heads/main | 2023-01-12T04:12:55.602503 | 2020-11-19T00:50:21 | 2020-11-19T00:50:21 | 312,989,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,893 | py | #!/usr/bin/env python3
# Imports here
# %matplotlib inline
# %config InlineBackend.figure_format = 'retina'
import os.path
from os import path
from datetime import datetime
import matplotlib.pyplot as plt
import numpy as np
import torch
from torch import nn
from torch import optim
import torch.nn.functional as F
from ... | [
"noreply@github.com"
] | github1ss.noreply@github.com |
89fc0f04e2cc35ffa171ae6dd0afea0c9191c529 | cc432fe1675c6b9c0d61ec19295c2c7795d25c50 | /lib/gamemenu.py | 0c2b91db6c55e9bb9d11fe374efccd43bae8b499 | [] | no_license | Swarmers/Bunnies01 | 7e9cc6928266a090912babd2d782a6dcf155b580 | 58495e3df47c57b3bc7ce4b14429055c56ee4fd9 | refs/heads/master | 2021-01-23T13:42:12.897501 | 2012-09-28T20:24:18 | 2012-09-28T20:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,659 | py | # Copyright (C) 2011 Michal Zielinski (michal@zielinscy.org.pl)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is d... | [
"swarmers@gmail.com"
] | swarmers@gmail.com |
2810fd51b4354ad7fd8d9e9928f1cc587879047b | 4f1d9cf4c4c4d589c3f289b49fbad0ee0c984942 | /boucles/pgcd.py | 68658a585b68e65aa1f16d2cda02013a0ca80304 | [] | no_license | khalillakhdhar/python_seance1 | cbb9d089a921cba19610c0ce7b0b9f1f9571130b | 05d436045f837fb8b1cc7d9b5caa9c4de6bf989c | refs/heads/main | 2023-03-18T10:36:23.733373 | 2021-03-13T08:48:58 | 2021-03-13T08:48:58 | 340,619,900 | 0 | 0 | null | 2021-03-13T11:05:32 | 2021-02-20T09:56:02 | Python | UTF-8 | Python | false | false | 124 | py | a=18
b=4
x=a
y=b
while a!=b:
if a>b:
a=a-b
else:
b=b-a
print(" le pgcd de %s et %s est: %s"%(x,y,a)) | [
"khalillakhdharatc@gmail.com"
] | khalillakhdharatc@gmail.com |
3d62ba4d3d55863d8bf63c8e247b1ceed05cfd22 | 10fd1b79600275a6489dff5434adf5d5a362b89c | /test_diff_frame.py | dcbf643db8e362fa488b9a55240a42941c24b1cc | [] | no_license | KoapT/object-detection-scripts | d493919058acc14d5bd0a8c9dbac9df7d523bf58 | ec77368f9c651c8b0d471b44132233c4d7d36e74 | refs/heads/master | 2020-07-31T05:37:33.355783 | 2019-09-24T03:48:11 | 2019-09-24T03:48:11 | 210,502,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
video_file = '/home/wt/Desktop/repositories/anti-bird/input/panoramic-camera/10mniao.dav'
cap = cv2.VideoCapture(video_file)
if cap.isOpened():
print('open video %s success.' % video_file)
else:
print('open video %s fail.' % video_file)
exit... | [
"632649396@qq.com"
] | 632649396@qq.com |
68fb8dad76d94f766d800d59120907b2266b49d5 | 920d200e6e47e05d583416b6b6874192335f06e1 | /Project_6/main.py | 73f6d47efb80504e7876756900bf32f3aa50d53e | [] | no_license | surabhi96/ENPM673 | f2c2cc95a6b0f32ddd3f88a2534cfa29eb8325c7 | b1845dcd1d55eb3a58950c846d18b3bc0c395a0f | refs/heads/master | 2022-06-12T19:15:28.530306 | 2020-05-08T06:50:10 | 2020-05-08T06:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,754 | py | from __future__ import print_function, division
import matplotlib
# matplotlib.use('agg')
import matplotlib.pyplot as plt
import argparse
import torch
import torch.nn as nn
import pandas as pd
from skimage import io, transform
from skimage.transform import rescale, resize
import torch.nn.functional as F
import t... | [
"noreply@github.com"
] | surabhi96.noreply@github.com |
d95d91e5870c43cbc1823099e8f62573c5ba5211 | 4a9de9ef1d1024fa72766e0e3a57749b0144e962 | /code/DM-Assignement-Kmean.py | c41baec9f06b47cf7e9afd996d36a3be662c5181 | [] | no_license | amitesh007/Data_Mining | 56b34896c6aeb0c87656aab37d9a4504f6e87676 | dea256cd0dbb7e34a1d6e258f4a45d55effac383 | refs/heads/master | 2020-04-04T15:49:05.615312 | 2018-11-04T06:02:26 | 2018-11-04T06:02:26 | 156,053,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,507 | py | """
Created on Mon Apr 23 12:14:42 2018
@author: Amitesh ranjan Srivastava
K-Means Clustering
"""
# Importing the libraries
import numpy as np
import pandas as pd
import random
def Kmean(proj):
filename=proj+".csv"
# Importing the dataset
dataset = pd.read_csv(filename)
total=len(data... | [
"noreply@github.com"
] | amitesh007.noreply@github.com |
6e7eb29cbefcb02da94a4dc5677af120f7be8255 | e03cd007b5db872f02284d4886e36c9cc07ca708 | /commerce/auctions/migrations/0006_auto_20200831_2317.py | 37bb6cda62a2f41bdac4a969da34b064bc1d769d | [] | no_license | lucascorumba/cs50-web | 38d88d2624c2e51ca4a44ddb26dab792a121cc93 | 48393b6d180c0728b71722fd2629e001b44ab005 | refs/heads/main | 2023-07-12T09:40:14.401920 | 2021-08-28T01:43:36 | 2021-08-28T01:43:36 | 392,445,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # Generated by Django 3.0.8 on 2020-08-31 23:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('auctions', '0005_auto_20200831_2310'),
]
operations = [
migrations.RenameField(
model_name='auction',
old_name='bids',
... | [
"noreply@github.com"
] | lucascorumba.noreply@github.com |
faeda6d17f8876fc37209e58fdbcce9244b059fd | e41f140b8538db27e1656f239542e06083f4ec2e | /main.py | 43d650f0ad2a725126555925a8705f4c77b2eeb7 | [] | no_license | mroratobaptista/estudo-async | bcd1aad795ed70ea33d8240b9d6c04599ba49061 | 20a8649342596ca2b75ad34538b913097ceec9fa | refs/heads/master | 2020-12-02T21:00:32.935291 | 2017-07-04T18:50:35 | 2017-07-04T18:50:35 | 96,242,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import os
import time
import asyncio
import aiohttp
from openpyxl import load_workbook
PASTA_DOWNLOADS = 'downloads'
def gerar_url(mlb):
return f'https://api.mercadolibre.com/items/{mlb}'
async def pegar_titulo(mlb):
url = gerar_url(mlb)
async with aiohttp.ClientSession() as session:
res = awa... | [
"matheusrorato@gmail.com"
] | matheusrorato@gmail.com |
589ae3c298f4d149fbd516a179903378870e0dea | ab37732e61b958e9b396cee1cd37dc939e44c772 | /electionsentiment/algorithms/fasttextClassify.py | 9464c80edde2b6f175888814717854f99a89d3af | [] | no_license | sharmi1206/elections-2019 | 9941ba588322d72f34cfc29121d5ac7e8345a074 | 4fead88935a79c31940e1715a9ab1c91764c9ff3 | refs/heads/master | 2021-07-11T01:32:34.994242 | 2020-07-24T08:58:45 | 2020-07-24T08:58:45 | 177,279,605 | 23 | 13 | null | null | null | null | UTF-8 | Python | false | false | 5,819 | py | # Import libraries/functions
import pandas as pd
import matplotlib
import numpy as np
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import re
import fastText as ft
from sklearn.model_selection import KFold
from sklearn import metrics
from sklearn.metrics import accuracy_score
import os
import datetime
import... | [
"sharmi.chatterjee@gmail.com"
] | sharmi.chatterjee@gmail.com |
83216ab4814f0ddc0657688c7f97149e35a3bdbb | 142362be3c4f8b19bd118126baccab06d0514c5b | /xapian64/site-packages/djapian/utils/decorators.py | 1deb7553ccf6014639b53b8845f5a841e5fbcb2e | [] | no_license | dkramorov/astwobytes | 84afa4060ffed77d5fd1a6e8bf5c5c69b8115de6 | 55071537c5c84d0a27757f11ae42904745cc1c59 | refs/heads/master | 2023-08-27T07:10:51.883300 | 2023-08-02T16:52:17 | 2023-08-02T16:52:17 | 191,950,319 | 0 | 0 | null | 2022-11-22T09:15:42 | 2019-06-14T13:44:23 | HTML | UTF-8 | Python | false | false | 898 | py | import xapian
def retry_if_except(errors, num_retry=4, cleanup_callback=None):
def _wrap(func):
def _inner(*args, **kwargs):
for n in reversed(range(num_retry)):
try:
return func(*args, **kwargs)
except errors:
# propagate ... | [
"zergo01@yandex.ru"
] | zergo01@yandex.ru |
17f11892021aba94087e4fa3abc455f4236097cc | 62a3fb17e7a6e7b553c519d1f44b64da0c92a36e | /server/api/admin.py | 5bad30814a93eed737cb507d61291f126bf70eb3 | [] | no_license | realitylab-at/dsb | 2e826ce623fc2fc5a2ca44e6502fcb6aabd8833a | 4e3d5dd69b3d5f21de13bc40e547887e0baa97bc | refs/heads/master | 2023-01-14T00:33:18.066428 | 2021-04-06T06:20:12 | 2021-04-06T06:20:12 | 233,031,537 | 1 | 0 | null | 2023-01-02T12:02:18 | 2020-01-10T11:18:31 | Python | UTF-8 | Python | false | false | 14,027 | py | # -*- coding: utf-8 -*-
import time, pytz
from datetime import datetime
from django.core import urlresolvers
from django.db.models import Q
from django.contrib import admin
#from django.contrib.contenttypes import generic
from django.contrib.admin import SimpleListFilter
from django.contrib.admin.models import LogEn... | [
"interface@p3k.org"
] | interface@p3k.org |
beae05a4725f313f6711c8b015d1d6ed2bdd01b0 | 540ed334b689e4b04e4d1f74dfb5564ce3109db4 | /Charkaz/start/migrations/0002_bos.py | 5ec86e4297da6ed5312388b0aaa07fea35847626 | [] | no_license | Charkaz/SalesSystem-natamam- | d5b1e1e46d9bbbac677f957cb20337f88283df4c | c9dd85c532163bf875beebd67ff47ec26ac737b9 | refs/heads/master | 2023-01-20T01:23:15.054698 | 2020-11-19T10:12:33 | 2020-11-19T10:12:33 | 314,207,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.1.2 on 2020-11-07 13:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('start', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Bos',
fields=[
('id', models... | [
"alisanc91@gmail.com"
] | alisanc91@gmail.com |
a30004c94a461eeb29861d85a2c3be339ae13a97 | b687c0ad3174bad2b9a8129625a0876181f59dd1 | /calculate_cr.py | 928f7c9927eb2c99125ff207c8c65ec041f0b970 | [] | no_license | Aaron-Zhao123/ACS_dissertation | dc7bb9296707ab53737c26a86ae780743614ada1 | bf5212cd450d5a69f5227a1e64f2a27ed884e3f2 | refs/heads/master | 2021-01-22T08:39:52.350695 | 2017-06-12T14:06:37 | 2017-06-12T14:06:37 | 92,629,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import numpy as np
lenet_pr = [22.115, 92.475, 99.697, 32.914] #dynamic surgery with l1l2
# lenet_pr = [36.54, 87.90, 99.658, 18.42] #dynamic surgery
COMPRESSED_BITS = 4
# lenet_pr = [51.92, 79.84, 99.38, 49.9] #b
# lenet_pr = [35.38, 92.23, 99.55, 52.79]
lenet_pr = [i/float(100) for i in lenet_pr]
ele = np.array([0.5... | [
"aaronzhao0731@gmail.com"
] | aaronzhao0731@gmail.com |
8a74b58a0dd3b1902117bf253eb1bc1fa3280e2f | 3d4a7079c0da1daf90a484ce487a7aa62add9da0 | /ml_backend/ml_face/face_recognition.py | 2ceb6758fafda899697b4e3f6726888240f41e25 | [] | no_license | LuuO/ML-Image-Processor | 9a9f71fc99670da2b31e13c129cc1d8132bbd223 | 25cc3ca3fd5f99d9a53ed265a339865bc60bd4f1 | refs/heads/main | 2023-05-01T09:35:25.785091 | 2021-05-21T03:56:50 | 2021-05-21T03:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | from sklearn.decomposition import PCA
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from ._face_recognition_dataset import build_train_dataset, build_prediction_dataset
class FaceRecognition:
def __init__(self):
self.__sample_size = (62, 47) # (height, width)
self.names = [... | [
"LuuO2000@outlook.com"
] | LuuO2000@outlook.com |
9833d2b12e056b8b15c62a2acb3915c2751bc61e | 84f4f3c24c05d121188bc09e2e77a5c72b325462 | /ENV3.5/bin/symilar | f07e3add4c284babe9cf890de9a83ee31629f789 | [] | no_license | FremanZhang/blog | eff6e4b616f454063bec112fb0410327b8da9909 | 0fbd7b77a3dbc871205a3164ad8995ffff389e12 | refs/heads/master | 2020-03-19T20:20:16.870787 | 2018-11-22T08:03:02 | 2018-11-22T08:03:02 | 136,897,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/freman/Code/blog/ENV3.5/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"freman@yeah.net"
] | freman@yeah.net | |
33d72641ac0d442992fe4ce9dbdcc1a4cef73b0f | ff83ba40f532b7ea1cae917c727c87fd5d8ea153 | /reconb.py | cb5c036fe628fd4b548b34c4b1a04cad905ca6c2 | [] | no_license | idanbuller/Reconb | 7483081b9fd4bedcca463dfebee2c28d429a5299 | 16606f39cfee72041a36b132793ef9a1c077cf13 | refs/heads/master | 2023-06-01T10:08:23.730487 | 2020-04-28T07:32:37 | 2020-04-28T07:32:37 | 255,982,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,682 | py | #!/usr/bin/env python3
from services import hacker_target, google_domains, banner, brute_force
from people import hunter_io, mail_builder, linkedin
from extra import dorks, vt, pastebin, web_services, robots, admin_panels
from bonus import wappalyzer, reverse, webalayzer
import mysql.connector, csv, validators
fr... | [
"noreply@github.com"
] | idanbuller.noreply@github.com |
0aeda51b0cce4f439f766c12a74cd8df10199861 | 4c7d5602910e3b929ed127549210be6fd746302b | /practical-python/Solutions/3_14/pcost.py | 5685d014454434ca3028e5232e46e677909f274e | [
"CC-BY-SA-4.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jianchengwang/todo-python | 8b57d5ce45ea855c8c1413024e82add2267bc9c2 | 36bdaf6fae714531946047ececca995d60f86e4a | refs/heads/master | 2023-03-07T06:22:22.301555 | 2021-11-26T07:08:02 | 2021-11-26T07:08:02 | 199,950,188 | 0 | 0 | MIT | 2023-03-05T16:12:56 | 2019-08-01T00:55:21 | Python | UTF-8 | Python | false | false | 414 | py | # pcost.py
import report
def portfolio_cost(filename):
'''
Computes the total cost (shares*price) of a portfolio file
'''
portfolio = report.read_portfolio(filename)
return sum([s['shares']*s['price'] for s in portfolio])
import sys
if len(sys.argv) == 2:
filename = sys.argv[1]
else:
file... | [
"jiancheng_wang@yahoo.com"
] | jiancheng_wang@yahoo.com |
72ed78d1946311751aacef03b5cd5e8568d811d2 | b274efc15c5a15fe8da5b3c7694f69f25599b81f | /video_access.py | 4535d99fcd36a5342465c219fd7f13e2983b5459 | [] | no_license | CloudHackathon/cloud-video-converter | ebac37a2031c1ee55343e7ef3fdccf8ca69bed93 | 0954d86d29bb9addbeae2ac5e10dcc9e50157623 | refs/heads/master | 2020-06-10T03:35:43.740470 | 2016-12-11T04:57:48 | 2016-12-11T04:57:48 | 76,098,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | #!/usr/bin/python
import MySQLdb
import os
import sys
import json
import socket
import trans
def insert_db(vname, format, segid, count, local_ip):
convsip = ""
try:
conn = MySQLdb.connect(host="10.66.129.25",user="root",passwd="leozhiqin!",port=3306)
cur = conn.cursor()
value = [vname, format, segid, count, l... | [
"leozhiqin@gmail.com"
] | leozhiqin@gmail.com |
148fb213015feb1540b835a3c3aa04040e41d88c | 6369ab85ac25eb5786f6747737a3834df42b1424 | /deleteNode.py | 8c919600dafe68598963d72788541d49559811c1 | [] | no_license | ThomasBJones2/HackerRank | e78022004b8896abc8e12487f1815a6e0696ebc3 | 22fa88eb68fbc42dfbc62f8585301d1807c2b332 | refs/heads/master | 2020-12-21T08:25:19.117165 | 2016-11-19T09:24:34 | 2016-11-19T09:24:34 | 56,036,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
#this is a stupid O(N) delete node, I was made to. Its not my fault.
class Solution(object):
def deleteNode(self, node):
"""
:type node: ListNode
:r... | [
"ThomasBJones2@gmail.com"
] | ThomasBJones2@gmail.com |
b569c9dd38a526d1cd48b1499ce724188897d69b | f1a9733d35d2dfd9471d0e084cd50a484e727382 | /L_algorithms/2_AddTwoNumbers/addtwonumbers.py | e047fed9c7482ac95420a2fa6b397b1418fd4746 | [
"MIT"
] | permissive | kenzhaoyihui/lettcode | 9e51bd5d57115ea457b3bfb211d102663cb54c3c | eed7683f187554f925dcad0afbec835bc98b343d | refs/heads/master | 2021-05-16T06:12:01.881237 | 2017-11-07T10:36:35 | 2017-11-07T10:36:35 | 103,372,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
n... | [
"2993614148@qq.com"
] | 2993614148@qq.com |
6e23795c082d9c880ab06a9e34ccd820e2e5f6d4 | d1c22a79eea429713a13ed0d91f6ced0b7e34d9c | /dbms_project/realEstate/apps.py | 10ab5e23f62fc4a57c44c8e886a12938e881be01 | [] | no_license | rahultg2/Real_Estate_Office | 29cd135c4b9971f308ffcd2cd8edc7c4c084f91f | d61a5a74208a6a42a0b1dfbed8beeda80fb58f87 | refs/heads/main | 2023-05-15T10:05:25.383058 | 2021-05-28T14:20:16 | 2021-05-28T14:20:16 | 364,491,714 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class RealestateConfig(AppConfig):
name = 'realEstate'
| [
"rsoni953804@gmail.com"
] | rsoni953804@gmail.com |
3331920c786ce57ecc941a7a06350a9676937674 | 4e2242488aa49f0a7e4527253605692dce5146e0 | /generator.py | 48e5bffae91dfa10c0105f95fdb20d6dac6db778 | [] | no_license | doliom/GUI-Tkinter-authentication | 4c9092ab936140f26eb6486b0c0c558530ad2ee1 | 87c5d7745609388b4fad4a6dcf2fa7c7e91d561e | refs/heads/master | 2023-01-01T13:05:41.098601 | 2020-10-27T16:11:15 | 2020-10-27T16:11:15 | 299,434,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from random import sample
PASS_PHRASE = (
'abcdefghijklmnopqrstuvwxyz' +
'ABCDEFGHIJKLMNOPQRSTUVWXYZ' +
'+=-*'
)
def generate(count=1, length=6, chars=PASS_PHRASE):
if count == 1:
return ''.join(sample(chars, length))
passwords = []
while count > 0:
passwords.append... | [
"srslyreader@gmail.com"
] | srslyreader@gmail.com |
3ac63a37dd9fe036a533819ce394690375942cf4 | d1dfdb6c75d6b3db11fd7f4a82b064ba2bc46795 | /record_wav.py | 408007d0247e7c8f61ce61c754f2d8a5fae96d46 | [] | no_license | gonium/soundnetzfreq | 12eff244b31131cca7af160156a05025a07c7306 | 1782451be8ae00e56a839bcb68d937d89907ed5b | refs/heads/master | 2021-01-10T10:51:44.594502 | 2016-01-22T20:15:59 | 2016-01-22T20:17:56 | 49,506,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | """PyAudio example: Record a few seconds of audio and save to a WAVE file."""
import pyaudio
import wave
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 2
RATE = 44100
RECORD_SECONDS = 5
WAVE_OUTPUT_FILENAME = "output.wav"
p = pyaudio.PyAudio()
print "Found %d audio devices" % p.get_device_count()
for i in range(p... | [
"md@gonium.net"
] | md@gonium.net |
14f7ea5a0fd4e2ab4ffa08421ed6e486da33ccfc | 4692f28f86ee84a76abfac8cc8a0dd41fcd402e4 | /tasks/github_tasks.py | ddf0c9af7bae0fe3c10ef1e08285fae600084aa1 | [
"CC0-1.0",
"BSD-3-Clause",
"Apache-2.0",
"GPL-1.0-or-later",
"MIT",
"0BSD",
"Unlicense",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-2-Clause-Views",
"MPL-2.0"
] | permissive | DataDog/datadog-agent | cc4b89839d6031903bf23aa12eccc2a3f3c7f213 | d960cdb7de8fa5d1c7138cfe58e754af80cb796a | refs/heads/main | 2023-09-04T10:45:08.138748 | 2023-09-04T09:13:43 | 2023-09-04T09:13:43 | 49,970,739 | 2,388 | 1,288 | Apache-2.0 | 2023-09-14T20:06:34 | 2016-01-19T17:40:41 | Go | UTF-8 | Python | false | false | 3,694 | py | import os
from invoke import Exit, task
from .libs.github_actions_tools import (
download_artifacts_with_retry,
follow_workflow_run,
print_workflow_conclusion,
trigger_macos_workflow,
)
from .utils import DEFAULT_BRANCH, load_release_versions
@task
def trigger_macos_build(
ctx,
datadog_agent... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
380ff41b42f8149fb0f95f550c5bedddd25c9232 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02724/s435287686.py | 462d510537b496c3a2a42ca1c7ffce6125472883 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | x = int(input())
hap = x // 500
hap2 = (x - hap*500)//5
ans = hap*1000 + hap2*5
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f583ffc9554da72889c5ff3330ae59ffb727248f | fa6c23ad3f7d5b8b36e9f6b62acbeae2cc1ea493 | /offer/string_replace.py | f5b83549832a87513d9f433a6c1e6d2202fbce64 | [] | no_license | yuzhiquan/PythonData-Structures-and-Algorithms | da08a301e90449c98ebe4a0c2d6a04980b2c08ae | 851b640f173c98d8b0bdca38314db4f350906ee7 | refs/heads/master | 2021-01-21T06:53:34.672890 | 2017-03-05T00:49:00 | 2017-03-05T00:49:00 | 83,293,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # -*- coding:utf-8 -*-
'''
请实现一个函数,将一个字符串中的空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。
'''
class Solution:
# s 源字符串
def __init__(self):
pass
def replaceSpace(self, s):
# write code here
return s.replace(' ', '%20') | [
"yuzhiquanlong@gmail.com"
] | yuzhiquanlong@gmail.com |
019ab9a8348c516eab7132b6900f6f45b8172cdb | 243ce25168eea65144713a1100ca997a2d29f280 | /p68.py | aaea8a7b5cd711d48a2ecaed6cc2366716f5667f | [] | no_license | acadien/projecteuler | 6aa1efbb1141ecf36d6b23bb6b058070e5e881e0 | 2efb0b5577cee7f046ed4f67d0f01f438cbf3770 | refs/heads/master | 2020-04-28T21:33:49.631044 | 2013-12-06T19:25:20 | 2013-12-06T19:25:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/python
from math import *
from random import *
from itertools import chain,permutations
o_ind=range(5)
i_ind=[[5,6],[6,7],[7,8],[8,9],[9,5]]
def trysum(A):
if 10 in A[5:]:
return False
B=set([A[i]+A[i_ind[i][0]]+A[i_ind[i][1]] for i in range(5)])
if len(B)==1:
return True
re... | [
"adamcadien@gmail.com"
] | adamcadien@gmail.com |
8818f59eb4c005ec1159556cdb9670486e7084e3 | bf280df59d2a4592c1ded1474f23385c4addba89 | /gem/web/blueprints/roles/controller.py | 0a50ac80d1ba4ee3427e83370b14db4ccd1d9dd1 | [] | no_license | akdasa/gem | f382c7bbe2d3987bf87e264684e50ac0475f5de6 | 15ca96d702443a8e256400e1ec13ed0b739348e1 | refs/heads/master | 2021-09-21T04:41:35.218007 | 2018-01-20T15:07:16 | 2018-01-20T15:07:16 | 106,115,014 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | from gem.db import roles
from gem.web.blueprints.crud_controller import CrudController
class RolesController(CrudController):
def __init__(self):
super().__init__(roles, namespace="roles", columns=["name"])
self._permissions = [
{"name": "proposals.create", "desc": "Create new proposal... | [
"advaita.krishna.das@gmail.com"
] | advaita.krishna.das@gmail.com |
f6574b50767f2e5634a32e21a8a0d7c92831866c | 36c79dd837dabf6ab1e8d699fd8cbf0bc340fe92 | /timeRecord/views.py | 3e2e30beeb63e23c3a78b9950c704efaa059bd3d | [] | no_license | chelseXie/timeSpider | 3fcff3fe90d3ad824757e766411992117e9260a0 | b66382db27c70d341f24edf8c36e6952aab2c146 | refs/heads/master | 2021-01-15T11:49:14.550985 | 2017-08-08T06:48:35 | 2017-08-08T06:48:35 | 99,634,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django.http import HttpResponse
from timeRecord.models import User
# 数据库操作
def testdb(request):
user = User(nickName='runoob',mobile='13051321091')
user.save()
return HttpResponse("<p>数据添加成功!</p>") | [
"xiehao35755@163.com"
] | xiehao35755@163.com |
2389903b60b4264a9b460f5fe2add655e548d819 | e46ee16a807d538aa580eb7b1e517fa7a5fb442a | /zombieapocalypse.py | c21128dcf24067519bee553138f788775d3f96c0 | [] | no_license | cmckeag/Coursera-POC | c4beb01a39efc3daed8fe29203cf840384b3ec6d | 2dc1d6496275f921e140d8063c6d64d6fce2694a | refs/heads/master | 2020-03-28T04:50:10.153441 | 2018-09-06T22:21:10 | 2018-09-06T22:21:10 | 147,739,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,843 | py | """
Student portion of Zombie Apocalypse mini-project
Requires the poc provided modules to actually run, so the code won't work.
But the logic for the grid and breadth first search is accurate.
"""
import random
#import poc_grid
#import poc_queue
#import poc_zombie_gui
# global constants
EMPTY = 0
FULL = 1
FOUR_WAY... | [
"christophermckeag@Christophers-MacBook-Pro.local"
] | christophermckeag@Christophers-MacBook-Pro.local |
e3d93c357626b24d30d4a9f19b4b7486172005b4 | 4b3ff56fd0ef767e8294d93ed83b0bd252535080 | /NP2Interface/NP.py | 19f78585b9ac256bd1318a33d9164ffb4845b93a | [
"BSD-2-Clause"
] | permissive | kennycaiguo/PyGame_samples | 6223912bff4f2ab8b8a50c1ba157fcf39d8ca956 | 4612354c6da0a3a554f19b14595523f5b2df416b | refs/heads/master | 2022-12-20T13:56:00.361249 | 2020-10-03T08:55:41 | 2020-10-03T08:55:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | ## test numpy library for IronPython
def linspace(a,b,c):
d=float(b)/float(c)
s=float(a)
V=[s]
while(s<=float(b)):
s+=d
V.append(s)
return V
| [
"dcadogan@live.com.ar"
] | dcadogan@live.com.ar |
24af40a664f71b8bc3c4a75d08321e528be63db0 | 4b65d693c3149b8c83d548a70908ab8ed9c7cb59 | /demo.py | c98ad9345af5d5d3cd7ff904823df142e8e7e8d8 | [] | no_license | Hiromasa-H/RL_snake | a644b72340c126e8b634af4595341a58626d9585 | 37f88504fd38bd70c30ef21ab2cb7a021fadede9 | refs/heads/main | 2022-12-27T15:23:02.954081 | 2020-10-20T02:32:57 | 2020-10-20T02:32:57 | 304,896,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | from game import SnakeGame
from agent import Agent
from utils import *
import torch as T
import numpy as np
import glob, os
from datetime import datetime
plot_name = 'demo.png'
video_name = 'demo.mp4'
target_folder = "demo"
n_episodes = 20
pretrained_weights = "weights/latest.pt"
if __name__ == '__main__':
#del... | [
"hhiromasa217@gmail.com"
] | hhiromasa217@gmail.com |
e1deab83389f3a158a86076670d0bded1a976175 | 99e57f00fcaf4469c1c1b79f2d17176aaef9a790 | /hr_payslip_batch_confirm/models/__init__.py | 07e6a958e3299a35542efcae0c6a19e9d50b4dda | [] | no_license | detian08/mcl | d007ffd0e869f3bd9a8c74bc8473119901f0de2a | 32d61148326c931aca0107c3894061773f287e33 | refs/heads/master | 2022-03-23T19:36:29.608645 | 2019-12-11T10:15:50 | 2019-12-11T10:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from . import hr_payroll
from . import hr_payroll_run | [
"adarsh@prixgen.com"
] | adarsh@prixgen.com |
ae9e61d3ae9ee479adabb49c6e4d75d50cecfd7e | b1f7c8eecdfc1e54e868430d7b6192b162f5a530 | /insta/signals.py | 2177664422d6238343c5645260f46897273c08a5 | [] | no_license | Nyagah-Tech/instagramWebApp | 490c9d8874c082132e9a0d78eb849e2b1136656b | abf3421a408ac1daf5f5bf20b76073ad73894eba | refs/heads/master | 2022-12-13T04:33:26.104920 | 2020-01-06T21:18:17 | 2020-01-06T21:18:17 | 229,194,006 | 0 | 0 | null | 2022-11-22T05:13:48 | 2019-12-20T05:08:18 | Python | UTF-8 | Python | false | false | 565 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile
@receiver(post_save, sender=User)
def create_profile(sender,instance,created,**kwargs):
'''
this is a function that creates a profile of a user after registrat... | [
"dan@localhost.localdomain"
] | dan@localhost.localdomain |
86aa110c474a0437ba29edd80241a9c9e1f167f5 | 0a26e8bc3be5961b4d554be57eac42b94d0b342b | /user/apps.py | 38179d23264f53b1191ab9dfa3fa62dad4fe6a14 | [] | no_license | firaz-bug/murugan-bhavan | f9a7ffe6b5cd4e02b86d6b6f8790f0899d776e44 | 00c85175f1a6657457feda04661e9f92f499ee9b | refs/heads/master | 2023-03-11T12:13:31.092068 | 2021-02-21T08:05:12 | 2021-02-21T08:05:12 | 340,828,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | from django.apps import AppConfig
class UserConfig(AppConfig):
name = 'user'
class AuthenticationConfig(object):
name = 'authentication' | [
"barathjr10@gmail.com"
] | barathjr10@gmail.com |
afb6679c6f38ae89a8a656f3eb32febbd33d4f05 | 9070b4caaa0f216793f8cf4c24de9f3225d4e36f | /baselines/scd_soc/hiexpl/bert/file_utils.py | ea9b36ea24681701bb53275cfa43181c39b59c07 | [] | no_license | vdefont/archipelago | 239075918674e01fb000f5ec8fb6c1041d16390e | d0c2e63683383e557f30e2017713d699b8ef5e1e | refs/heads/main | 2023-03-28T16:22:26.312658 | 2021-04-10T23:35:29 | 2021-04-10T23:35:29 | 354,415,763 | 0 | 0 | null | 2021-04-03T23:31:44 | 2021-04-03T23:31:44 | null | UTF-8 | Python | false | false | 8,959 | py | """
Utilities for working with the local dataset cache.
This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp
Copyright by the AllenNLP authors.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import json
import logging
import os
import shutil
impo... | [
"tsangm@usc.edu"
] | tsangm@usc.edu |
3a062ab7dee1768038d5ad898ef260365867ac66 | db4bf72b44022900c888f6e03e60a48a19421419 | /manage.py | f6295844b73228b6c59579654a5d3f0a1986553b | [] | no_license | IqbalBintangsyah/AFI | 39af872dd03c658010b647e3857e51026669de93 | 5a3e16b6f28ba853ec522edec72f581b50631d47 | refs/heads/master | 2023-04-12T16:05:38.527909 | 2021-04-29T05:40:40 | 2021-04-29T05:40:40 | 362,702,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | 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', 'afi.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"iqbalbintangsyah@users.noreply.github.com"
] | iqbalbintangsyah@users.noreply.github.com |
c32c88fb41f9079617c7f05351d0dfdf4ec186f9 | d9be50d9e446af18067652488028a5fea6d0d1fc | /features/checkbox.py | 6c3a9c0876949136e1785803036cc5a7da0d2418 | [] | no_license | joshivaidehi/python-selenium | 9ce5d3a9e324f952cb7fa89bdeb84e450540c7b5 | f4bb5071676e1577f4f4884bd1aeeb5a48224b31 | refs/heads/master | 2023-02-12T13:51:28.836016 | 2021-01-08T10:34:05 | 2021-01-08T10:34:05 | 323,307,880 | 0 | 0 | null | 2020-12-28T13:56:52 | 2020-12-21T10:52:02 | Python | UTF-8 | Python | false | false | 322 | py | from selenium import webdriver
from selenium.webdriver.common import keys
driver = webdriver.Chrome(executable_path='/home/devx/selenium/chromedriver')
driver.get('http://demos.dojotoolkit.org/dijit/tests/form/test_CheckBox.html')
driver.find_elements_by_xpath(".//*[contains(text(),'cb7: normal checkbox.')]").click(... | [
"vaidehi.joshi@devx.work"
] | vaidehi.joshi@devx.work |
f9d7f2202c7c7b8cfb47887171023887d23fb306 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_192/ch50_2020_03_31_18_26_15_429003.py | 9cc22791965cdb59d8ef25da1a85490c844cd611 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def junta_nome_sobrenome(n, s):
n_s = []
espaco = [' ']*len(n)
i = 0
while i < len(n):
n_s.append(n[i] = espaco[i] + s[i])
i += 1
return n_s
| [
"you@example.com"
] | you@example.com |
038fdc40a3a521cb02d77534b62f022e96feb347 | 7180e2465f21b8e3b315da9f088ebf35175526fb | /剑指Offer/斐波那契数列/菲波那切数列.py | fb81646b98dbe796a3c6bf79851b3a8bbfc33e89 | [] | no_license | QunLeLZ/LeetCood | eb499520033147666f85ce1d3474102c2f951fa2 | 1b77e6c91b5fef442c74ed7cac1bb65144e0913e | refs/heads/master | 2020-04-03T02:57:34.701647 | 2019-01-03T14:49:41 | 2019-01-03T14:49:41 | 154,972,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # -*- coding:utf-8 -*-
class Solution:
def Fibonacci(self, n):
# write code here
if n <= 1:
return n
first,second,third = 0,1,0
for i in range(2,n+1):
third = first + second
first = second
second = third
return third | [
"a9276985676@qq.com"
] | a9276985676@qq.com |
02778531cc548dda2bfadf226376a93af1bcd11f | 746bf62ae3599f0d2dcd620ae37cd11370733cc3 | /leetcode/contains-duplicate.py | 768cd64e1cb979d349fc2bf6872d9d0a27bb7e6b | [] | no_license | wanglinjie/coding | ec0e614343b39dc02191455165eb1a5c9e6747ce | 350f28cad5ec384df476f6403cb7a7db419de329 | refs/heads/master | 2021-04-22T14:00:48.825959 | 2017-05-02T12:49:05 | 2017-05-02T12:49:05 | 48,011,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Author: Wanglj
Create Time : 20151223
Last Modified:
判断列表中是否有重复的
'''
class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
nums_set = set(nums)
if len(nums_set) < len(n... | [
"hitwhwlj@163.com"
] | hitwhwlj@163.com |
e6b039e84646038f6ab8f1808e5e8055ceaa6c86 | 4bb3fa33d8056518647ca8d9a2446528d5a4e124 | /AES_App_for_NetApp/cdp/ciholas_serial_number.py | 15f002c6c316e871070bb00fe9b8f11d3e91b456 | [] | no_license | kunmukh/Location_Dependent_Cryptosystem | bb4a78883abf03502a3cce476e49ec05be7cd091 | 271f25757c5f700155a50ac4d5a568ba041c033e | refs/heads/master | 2020-04-13T12:46:18.858477 | 2019-08-28T02:14:16 | 2019-08-28T02:14:16 | 163,211,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # pylint: disable=trailing-whitespace, too-few-public-methods
class CiholasSerialNumber():
"""Ciholas Serial Number Class Definition"""
def __init__(self, value=0):
if isinstance(value, CiholasSerialNumber):
self.as_int = value.as_int
elif isinstance(value, str):
self.a... | [
"kunmukh@gmail.com"
] | kunmukh@gmail.com |
a00abbe94e66a3c2a350f31b410075866297c202 | 15e48fec851ae0c3780ff983d64ac42ef1deefb1 | /mythril/disassembler/callgraph.py | 1ca5f35778f17d61041ebd10e995916b20481a5f | [
"MIT"
] | permissive | somethingnew2-0/mythril | ee1836f4105625b25be3eb0275d4b8d9fd67dae8 | 2e627394a5f669a40120bd7cd7d4970f2a1b5484 | refs/heads/master | 2021-07-20T13:25:06.357680 | 2017-10-22T02:57:07 | 2017-10-22T02:57:07 | 107,824,670 | 0 | 0 | null | 2017-10-21T23:57:19 | 2017-10-21T23:57:19 | null | UTF-8 | Python | false | false | 3,471 | py | from laser.ethereum import svm
from z3 import Z3Exception, simplify
import re
graph_html = '''<html>
<head>
<style type="text/css">
#mynetwork {
background-color: #000000;
}
body {
background-color: #000000;
color: #ffffff;
}
</style>
<link href="https://cdnjs.cloudflare.com/ajax/libs/... | [
"bernhard.mueller11@gmail.com"
] | bernhard.mueller11@gmail.com |
62b7897f6f243bde43c73bd0addea96c61ff23d3 | e2d23d749779ed79472a961d2ab529eeffa0b5b0 | /gcloud/tests/core/models/test_user_default_project.py | a8944c2c0e485a689a536b1e3088ebda6139b172 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | manlucas/atom | 9fa026b3f914e53cd2d34aecdae580bda09adda7 | 94963fc6fdfd0568473ee68e9d1631f421265359 | refs/heads/master | 2022-09-30T06:19:53.828308 | 2020-01-21T14:08:36 | 2020-01-21T14:08:36 | 235,356,376 | 0 | 0 | NOASSERTION | 2022-09-16T18:17:08 | 2020-01-21T14:04:51 | Python | UTF-8 | Python | false | false | 2,282 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"lucaswang@canway.net"
] | lucaswang@canway.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.