blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4ee9e95d02c77a02adf28c3f310160cd3a48059 | 04950cee2efe6c19bcce82f87f01cc90a96b2802 | /blog/migrations/0001_initial.py | 2be8ca5dd3b1f00ef6ff0d9d94b22c874ca4e45c | [] | no_license | kumarneelabh13/my-first-blog | 93919fa7e38302f89aed153ea8092cf9a8f6895f | 5afb78153ba6b8210f21447421db422902eb1c98 | refs/heads/master | 2022-02-05T03:04:00.599314 | 2018-07-23T22:51:47 | 2018-07-23T22:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.6 on 2018-07-23 19:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"neelabh.plus@gmail.com"
] | neelabh.plus@gmail.com |
00e018844712f45a170f37fe63ef8d8e4411d18d | cabdbe5461bee03c14b0a1ad6627edc54dae2ffe | /migrations/0005_auto__add_game.py | 0c0ff2b203dff1e0e9c66b03b300cd585740e942 | [] | no_license | jeffself/bowl-predictions | c2416a4456ee404f6c709bd7705e8d0fa7ddcc25 | 52ca993c6ee7d6f57e2feb66e88a7c5317967931 | refs/heads/master | 2021-01-01T16:05:20.314064 | 2013-01-03T02:59:53 | 2013-01-03T02:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,262 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Game'
db.create_table('bowls_game', (
('id', self.gf('django.db.models.fields.Au... | [
"jeff.self@gmail.com"
] | jeff.self@gmail.com |
d174d21032804d359d6c11940c1d34010ee9f1d4 | 1915774790a77a630c00e70738ac41a315f5a2cb | /doorscalc/migrations/0038_auto_20190828_0818.py | 700027d8f8f6d981755119764f7adca3d7b95bad | [] | no_license | coconutcake/hajduktools | 842948646d2e8d3368b4d420d73bba981d649d43 | 6f9e678a1168195d77d1163bc9145205d03bb141 | refs/heads/master | 2020-07-02T20:02:19.914649 | 2019-09-13T17:44:05 | 2019-09-13T17:44:05 | 201,648,138 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # Generated by Django 2.1.11 on 2019-08-28 06:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doorscalc', '0037_auto_20190822_1052'),
]
operations = [
migrations.AlterField(
model_name='order',
name='status',
... | [
"contact@mign.pl"
] | contact@mign.pl |
dc9298119d3f7417426f8105321b14e4105227e3 | 719517cb831c9945e93e7b849688d1ba688d2a4c | /level2/level2_1py.py | e25a983a072ac8c4a1a7b265734fcd3ce09e49db | [] | no_license | mariajdab/foobar-with-google | d4ad5153441c42c6877abde4a75ff3f475a6e6cd | 14a7f7296e95ac5441841d6910c258a2153dd36f | refs/heads/main | 2023-02-24T06:32:37.082703 | 2021-01-19T05:38:54 | 2021-01-19T05:38:54 | 330,865,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | def solution(h, q, p=None):
if p is None:
p = []
n_f = 2 ** h - 1
if n_f == q[0]:
p.append(-1)
else:
n_r = n_f - 1
n_l = n_r // 2
for level in range(h - 2, -1, -1):
if q[0] == n_l or q[0] == n_r:
p.append(n_f)
break
... | [
"mariajdab@gmail.com"
] | mariajdab@gmail.com |
188bf0c384ca5e11074fa0fbc29b38db59e81396 | 7738d2821e513e991ea4a4a03c1775be27647ccc | /WMId.py | 82aeceecf47e4b5c436750a78858fd89a4f57aca | [] | no_license | nikolai-neustroev/nyc_tnc | d7441f10f88326c27c2648c435f431f030a2a1ab | 6193ad39079285b13ad84315b96bf5e6a7f1a7b1 | refs/heads/master | 2020-03-26T08:57:11.420607 | 2018-08-14T13:58:46 | 2018-08-14T13:58:46 | 144,727,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,356 | py | WMId = {
'10T' : 'Oshkosh',
'11V' : 'Ottawa',
'137' : 'Hummer',
'15G' : 'Gillig',
'17N' : 'John Deere',
'16V' : 'Bix Tex',
'18X' : 'WRV',
'19U' : 'Acura',
'19V' : 'Acura',
'19X' : 'Honda',
'1A4' : 'Chrysler',
'1A8' : 'Chrysler',
'1AC' : 'AMC',
'1AM' : 'AMC',
'... | [
"noreply@github.com"
] | noreply@github.com |
c2f3abecb51eda49f0ae56f558a35387b556b92d | 7713b6d1cc718810d578d82a3125712606fd03bb | /chat.py | 5f0b01aff02043ddf09b4fe484e1a30997655f39 | [] | no_license | MrDimonLimon/FTG-Modules | 2380e8f4bcb21fd591c145595cb5b4b6bfd25090 | ec162eb084fc922600750ba8c4680709b1e8bd30 | refs/heads/main | 2023-07-11T21:07:36.354932 | 2021-08-24T17:56:29 | 2021-08-24T17:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,930 | py | # -*- coding: utf-8 -*-
# Module author: @ftgmodulesbyfl1yd, @dekftgmodules, @memeframe
import asyncio
import io
from asyncio import sleep
from os import remove
from telethon import errors
from telethon import functions
from telethon.errors import UserIdInvalidError, UserNotMutualContactError, \
UserPrivacyRestrict... | [
"rodiongudz.services@gmail.com"
] | rodiongudz.services@gmail.com |
29f0cc1ce377e3ab76cf47f569c9cb3339a5f704 | fa799561f7b7e404702882a23c635d330a02ffe6 | /weblogic_wls-wsat_cve-2017-3506_unserialization.py | 5eea64feef12a0d853b082307e17c3e7371dfadd | [] | no_license | whoadmin/pocs | 07521e89c3227f9bd036250c98d3dbcc63a63f31 | 9e50a919abf5c57aa44c620522fcaf6a61656292 | refs/heads/master | 2021-07-12T05:00:06.587761 | 2020-11-14T02:35:46 | 2020-11-14T02:35:46 | 217,504,814 | 30 | 14 | null | null | null | null | UTF-8 | Python | false | false | 5,664 | py | """
If you have issues about development, please read:
https://github.com/knownsec/pocsuite3/blob/master/docs/CODING.md
for more about information, plz visit http://pocsuite.org
"""
import re
from collections import OrderedDict
from urllib.parse import urljoin
from pocsuite3.api import Output, POCBase, register_poc, ... | [
"345919932@qq.com"
] | 345919932@qq.com |
8b90ba21cb54e34c2f27ac8b0228034538287c62 | e1e2d55000670805944cd08a0a12ea7b86b9e68d | /dataAnalysing.py | 4b5e915b1b90940a28f17e6da387c4c153e4b918 | [] | no_license | pianoflu/dataAnalysing | 684cec167316ef436af3c73266c2f79535718807 | e84b9d9560a3c412a78aeb6c0ddee9d2529c3d3c | refs/heads/master | 2020-12-03T03:40:35.746495 | 2017-06-29T09:25:06 | 2017-06-29T09:25:17 | 95,760,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,309 | py | # coding=utf-8
# pip install requests
# pip install bs4
# pip install XlsxWriter
import re
import json
import requests
import xlsxwriter
from bs4 import BeautifulSoup
from collections import Counter
url = "https://www.lagou.com/jobs/positionAjax.json?needAddtionalResult=false"
keyword = input('请输入您所需要查找的关键字:')
head... | [
"2456136965@qq.com"
] | 2456136965@qq.com |
1434edbf203110a40d993508e20577056c7ba9dc | f124e3a874bf9bfe8ce2d694d276238c1a1150fc | /src/lib/pedal/sandbox/result.py | 6f2f9b61ed343b8ae41d3c6743ef572fea823ec4 | [
"MIT",
"Python-2.0"
] | permissive | Skydler/skulpt | b37a737b4f82c788e2f94b3a406fc3a313a75274 | 6eeabde2c5eb80c4a13f0958b75a69d99cd31b8a | refs/heads/master | 2020-08-17T10:48:29.244685 | 2019-10-23T12:16:36 | 2019-10-23T12:16:36 | 215,650,824 | 0 | 0 | NOASSERTION | 2019-10-16T21:50:53 | 2019-10-16T21:50:53 | null | UTF-8 | Python | false | false | 12,543 | py | class SandboxResult:
"""
Proxy class for wrapping results from executing student code. Attempts
to perfectly emulate the underlying data value, so that users will never
realize they have a proxy. The advantage is that special information is
available in the corresponding Sandbox about this result th... | [
"acbart@vt.edu"
] | acbart@vt.edu |
e0e4a3cdb6e335b9bbbb3d95223d61a6789872b4 | 3e1ee1106c8f979c1412940746b0e6617042fe6a | /setup.py | 8265a191fd9c2206925d842428b3d58127e09cb0 | [
"MIT"
] | permissive | qwymierne/humpback | 1d83df04ba04e60a1c5b898ceb1f63cd881cc667 | 7cc420c05c427ff8f1c4c1155ddb05272e78bd71 | refs/heads/master | 2022-11-18T19:09:14.467416 | 2020-07-08T21:53:29 | 2020-07-08T21:53:29 | 250,867,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="humpback",
version="0.0.1",
author="Jakub Sieroń",
author_email="j.sieron@student.uw.edu.pl",
description="Some tools for exploring and filtering large databases",
long_description=lon... | [
"j.sieron@student.uw.edu.pl"
] | j.sieron@student.uw.edu.pl |
62a53fe9c49e2e6d6879cbdea7e2a48a0870e4b5 | f93d6f45360006690266ab80391312c6c4cde521 | /grpc/grpc_pb2_grpc.py | 34f737a8e900337cdead1cb7c849e6663e1dd9a3 | [] | no_license | derektli97/Glow | 2c15f97f9f876474ba05a66fde8a1a7e093e6f9b | 27814ba24089afc0d1902678ef407d9343d4a4ba | refs/heads/master | 2020-04-23T09:14:43.445203 | 2019-02-16T22:59:10 | 2019-02-16T22:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,145 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import grpc_pb2 as grpc__pb2
class GlowStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.Test... | [
"kevinjnguyen2@gmail.com"
] | kevinjnguyen2@gmail.com |
8004f29d6870ea33e38e6ccb271a5e25398d8f61 | e635c2ff2ba923fdc5e53e9a8035594b644a55fd | /app/__init__.py | ef4940b26f290dde1b6a9d5b54e047158db1ea51 | [] | no_license | gracehseu/flask_heroku_outline | 471e1a8e9e8002a9c88d2e402f5b279fbb463a2b | 5e8bae5b8e0b8f8b16675948d783c9d8be610151 | refs/heads/master | 2023-01-19T04:43:11.528097 | 2020-12-04T07:49:51 | 2020-12-04T07:49:51 | 318,426,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from flask import Flask
# importing blueprints from modules
from .module_ex_1.controllers import module_ex_1_bp
from .module_ex_2.controllers import module_ex_2_bp
# creating app
app = Flask(__name__)
# getting configurations
app.config.from_object('config')
# register blueprints
app.register_blueprint(module_ex_1_... | [
"25470155+gracehseu@users.noreply.github.com"
] | 25470155+gracehseu@users.noreply.github.com |
adfd67c20156cb8b8ad74e8c8a720e9e2e48f5eb | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QiPr3M5tsqfsbYcCQ_6.py | 971a4a4b867272607ab5fce9aa8d69b8c201cd28 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py |
def square_digits(n):
curdigit = 0
final = ""
while n > 0:
curdigit = n % 10
n = n // 10
final = str(curdigit ** 2) + final
final = int(final)
print(final)
return final
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1b03c1a1a0d78c73b3e27a78e2bdf6de77b83a1d | 7d13b93220f4d4d3f22f969e5709813a0ea65517 | /core/migrations/0009_auto_20200112_1823.py | 7be7e9646a01e5ef33b171e9472ceb000d42c1fd | [] | no_license | ma7aziz/dr_booking | 68b0c623b02a32679e5cedba1924b9bd26c1ca3f | 92912638f9476a22692a25022623a18d001c0109 | refs/heads/master | 2020-12-18T09:45:12.948107 | 2020-01-21T12:14:49 | 2020-01-21T12:14:49 | 235,333,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # Generated by Django 3.0.1 on 2020-01-12 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20200112_1820'),
]
operations = [
migrations.AlterField(
model_name='doctor',
name='city',
... | [
"ma7.aelaziz@gmail.com"
] | ma7.aelaziz@gmail.com |
6e78c15fc68bcc044e3603390c21cfd6b7dacdc4 | 8a8fc760c9d4589eaa0845e6c68f3f37937d6804 | /Stardew.py | d7be31c6412a3ff166a7ae29d09b275741d16fad | [] | no_license | npr96/new_stardew | 6847278e9e2d3dd9f444e7c4979624e10c04b0f5 | cc3b703306083d6ef3508de8f1ae1b6991a74f53 | refs/heads/master | 2021-02-26T13:53:24.801248 | 2020-03-09T20:59:09 | 2020-03-09T20:59:09 | 245,529,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | from T2_Module import Bones
class Player:
def __init__(self, wallet=0, location='home', start=0, name='', farm_name=''):
self.wallet = wallet
self.location = location
self.start = start
self.name = name
self.farm_name = farm_name
self.imp = ''
char_create = Bones... | [
"npr1830@gmail.com"
] | npr1830@gmail.com |
f8a0b1b30cd967fa9b3450c9cfb4207194c8ec86 | 8c680fc22c005aadc84deff33850d819e943124a | /open-test-data/rfc4475-sip-torture-test/unksm2.dat.py | a19935571b6edd931465bffe6ed24bb66262a1db | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bobjects/BobStack | abc824b8513d826cbc725e8fbd3837ae8e03d646 | c177b286075044832f44baf9ace201780c8b4320 | refs/heads/master | 2020-04-06T05:12:35.041273 | 2017-10-08T23:39:35 | 2017-10-08T23:39:35 | 50,403,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | messageString = (
'REGISTER sip:example.com SIP/2.0\r\n'
'To: isbn:2983792873\r\n'
'From: <http://www.example.com>;tag=3234233\r\n'
'Call-ID: unksm2.daksdj@hyphenated-host.example.com\r\n'
'CSeq: 234902 REGISTER\r\n'
'Max-Forwards: 70... | [
"bob@bobjectsinc.com"
] | bob@bobjectsinc.com |
001c9e457be644b4190728e819ae36c69529ca2f | 819f6f4be3b10ddf291592c7003865c963a508d8 | /MySMLJRPE/boards/tests/test_views.py | 13a455461e86a84c35ffbda521ebc5e4de769ab6 | [] | no_license | NormanBro/PSMLJRPE | 3409b91a3846e0a079781ec613ff2397041d76b6 | 73d16ce8cf983ffdc316577fc31781f7383823a5 | refs/heads/main | 2023-07-07T22:51:37.088778 | 2021-08-18T23:26:19 | 2021-08-18T23:26:19 | 396,626,770 | 0 | 0 | null | 2021-08-16T05:26:45 | 2021-08-16T05:03:36 | Python | UTF-8 | Python | false | false | 2,901 | py | from django.urls import reverse, resolve
from django.test import TestCase
from ..views import board_topics, home, new_topic
from ..models import Board
class HomeTests(TestCase):
def setUp(self):
self.board = Board.objects.create(name='Django', description='Django board.')
url = reverse('hom... | [
"esqueletopvp@gmail.com"
] | esqueletopvp@gmail.com |
89f69aee3cd62c26555027892f18ab446feca3d8 | 8297b720267eee8c8e442c52607315792474ee7a | /chat_application/chat_app_dev_env/bin/pyreverse | f7cb53d794dd5c8ff4946d62fe35fcb008a53db9 | [] | no_license | harshsavasil/Chat-Application-Nativescript | 8d70d747af7c9aa5ccb27ae5608bbab299b25ab0 | dceee37bb571f9c2001bdbfebf71dc1849525e0e | refs/heads/master | 2021-04-09T16:14:33.321497 | 2018-05-13T20:47:45 | 2018-05-13T20:47:45 | 125,745,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | #!/home/harsh/Workspace/nativeScript_dev/chat_application/chat_app_dev_env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"harsh@ziploan.in"
] | harsh@ziploan.in | |
e9f18e7cf838a0d9ad2b3ff178bfda18e06dd1ec | ceb75e50d77b962edbe866b0640271cdd4721be9 | /hash.py | d986345513156fa9df62d089ac9bfcc250367c63 | [] | no_license | rocket3989/hashCode2020 | 9394dc52e66c085e14fdd6f4152d6605f426b79a | 6fd287381c3b32813eb3f63558d3afd83bd0ebbf | refs/heads/master | 2021-01-08T11:14:36.956131 | 2020-02-27T02:16:50 | 2020-02-27T02:16:50 | 242,014,611 | 3 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | B, L, D = [int(x) for x in input().split()]
score = [int(x) for x in input().split()]
freq = [0 for i in range(B)]
from heapq import heappop, heappush, heapify
import random
calls = 0
class library:
def __init__(self, count, time, rate, books):
self.count = count
self.time = time
... | [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
e9ba6a4f036333e586a76b8b3bda11f1d6446c69 | 9737b916b712f99852278a0c1481dcb8cc794e99 | /mac/settings.py | ace079b9b6fa63b7050af96effd70352b0e005d1 | [] | no_license | GeekyMonk07/thegeekystore.github.io | f20e909c9c5abd7581304d8a7e91fc96cef2e9b1 | a239d149dfe7969bfcd69a7dce367d2fd73c50dd | refs/heads/master | 2023-07-02T23:08:48.227694 | 2021-08-10T18:42:29 | 2021-08-10T18:42:29 | 394,750,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | """
Django settings for mac project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from p... | [
"thelearninggeek07@gmail.com"
] | thelearninggeek07@gmail.com |
5090569746bd55fdf7180963a3c5b2c344c9bd1d | d506ac167881bf072707ffb19631d01e21a3e934 | /natto/binding.py | 4d7804d4f6c50a0f8a7319db0b38221d188c04fa | [
"BSD-2-Clause"
] | permissive | kain-jy/natto-py | 8e6fe0cd03eef857ebf3a74be609db84a55b023a | 4f4169f0bac3b760ca91df6eee1ca293e9704503 | refs/heads/master | 2020-04-07T21:28:29.332321 | 2015-02-23T15:36:27 | 2015-02-23T15:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,172 | py | # -*- coding: utf-8 -*-
'''Binding via CFFI to the MeCab library.'''
import cffi
def _ffi_libmecab():
'''Returns an FFI interface to MeCab library.
Library definition is from mecab.h.
'''
ffi = cffi.FFI()
ffi.cdef('''
struct mecab_dictionary_info_t {
const char ... | [
"buruzaemon@users.noreply.github.com"
] | buruzaemon@users.noreply.github.com |
19bd990cc1d5e9bf479616f5f371f5e6d56b1e45 | 58a5ac7bce3624a3465d2670367e8127da8c64bd | /myENV/bin/flask | 9e1170224ba5b77be4b87e0c1af10a7d932c1792 | [] | no_license | germcauley/Python_Flask | f30edec9430a306d53b251bbc82f215a4f82b274 | a71ddd3eeddf684e13190a6f960cef915015531f | refs/heads/master | 2022-10-13T13:04:34.674691 | 2019-12-02T18:11:37 | 2019-12-02T18:11:37 | 208,087,592 | 0 | 0 | null | 2022-09-16T18:10:09 | 2019-09-12T15:47:17 | Python | UTF-8 | Python | false | false | 266 | #!/Users/gmcauley/PycharmProjects/Flask_Tutorial/venv/myENV/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"geraldmcauley@gwsteam.com"
] | geraldmcauley@gwsteam.com | |
a86e288fd8a1db05b1e1369fea4e5b7b03df6a51 | 2dc78bc075dd8ad88527c3399833974ed2e53ae5 | /wsroutine.py | cd3d489b96b5bfcd0606c50d10422b657d94ef46 | [] | no_license | cchrisgong/kuramoto_no_cluster | af72eef65eac58fb8fe88641463727d9af931956 | 23a7a57e255eace4fbd9a54144bbbc1649a9e84e | refs/heads/master | 2020-08-28T02:26:41.808764 | 2019-10-25T15:21:30 | 2019-10-25T15:21:30 | 217,561,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | #from Vector import *
import numpy as np
from numpy import cos, sin, pi, exp, arccos, sqrt, log, loadtxt, fabs, std
import sys
from scipy.optimize import minimize
import cmath
h_min = 1e-2
########################################### integration routine ##############################
############################### In... | [
"noreply@github.com"
] | noreply@github.com |
e30f9dfb96f688439caf3db1cd6882c6de1688f0 | 81c6278a9d50e04794eb4b0fe35ec0d595ca60d1 | /cerulean/test/test_torque_scheduler.py | cee58c7bb4fb372013b4807428628b71862ece59 | [
"Apache-2.0"
] | permissive | romulogoncalves/cerulean | c5c028328873d49b326d5bba1520c6de41b23f16 | c61b4848a46f93e47653a474771ee6c443727c79 | refs/heads/master | 2020-08-02T09:31:15.982745 | 2019-01-21T09:26:38 | 2019-01-21T09:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from cerulean import JobDescription
from cerulean.torque_scheduler import (_get_field_from_qstat_xml,
_job_desc_to_job_script,
_seconds_to_time)
def test_job_script_name() -> None:
job_desc = JobDescription()
job_desc.name = 'test_n... | [
"l.veen@esciencecenter.nl"
] | l.veen@esciencecenter.nl |
5527d442385b8f0c0615d0a660fc4d258e79dea0 | 9b53ea3e79206787b9957d6859559c6d0ce2fe71 | /Practice/36/Python/point.py | 3c162b1cf16bab54da68cc83826c6c1507d0390e | [] | no_license | affirVega/Programming | 4aa4bd981c0885d29117d8df3f2547d31bbe06e3 | c4005457dfe7ce14f5abbbcb1fe801a584443067 | refs/heads/master | 2023-04-19T15:42:42.203912 | 2021-04-24T16:45:03 | 2021-04-24T16:45:03 | 295,347,967 | 2 | 19 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | import math
import copy
from enum import Enum, auto, unique
@unique
class CoordSystem(Enum):
Cartesian = auto()
Polar = auto()
_percision = 1e-10
class Point:
def __init__(self, a1 = 0, a2 = 0, coord_system = CoordSystem.Cartesian):
if type(a1) == str:
p = a1.find(',') # позиция запят... | [
"affirvega@krutt.org"
] | affirvega@krutt.org |
28fa8a759dc6ffc18f5c7ac27600ff3016c62383 | 7283f51c9ab9f53701e4c9708f20078758d26989 | /tests/test_490HW.py | 3386f26c9f2ec6ac624101f4232b15e2277bc8a3 | [] | no_license | BCraine/BCraine490HW | 4875369b836fda13dd98e9d2166042df9308ae0a | 605474dc82a4a214aa7f952a0cb4abe6f6e310b6 | refs/heads/master | 2023-04-11T13:40:17.015730 | 2021-04-25T20:39:27 | 2021-04-25T20:39:27 | 361,489,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | # import main
def test_happy(monkeypatch):
monkeypatch.setattr('builtins.input', lambda _: "Massachusetts")
state = input("Please enter a state to do business in.\n"
"You may pick between Massachusetts, New Hampshire, or Maine\n")
assert state == "Massachusetts"
| [
"brandoncraine193@gmail.com"
] | brandoncraine193@gmail.com |
4012aaa1a578b50479a7ed4413a18d044e9b6734 | f47991b692697f29a468c9a8d3a3d80ca8bda055 | /HG/lab_code/lab01.py | 9fd7acc8a27d73a7f756774d5434fc7b504440e9 | [] | no_license | hogunkee/CanWeDeep | 10dd4cd2ef5d61ba82772373caf50790229735e6 | 24dbc3cbd1fc7121a873066b3e6eb39ca4ce7094 | refs/heads/master | 2021-04-18T19:31:09.664515 | 2020-12-23T04:05:24 | 2020-12-23T04:05:24 | 126,709,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import tensorflow as tf
hello = tf.constant("Hello, TensorFlow!")
sess = tf.Session()
print(sess.run(hello))
#####################################################
node1 = tf.constant(3.0, tf.float32)
node2 = tf.constant(4.0)
node3 = tf.add(node1, node2)
print("node1:", node1, "node2:", node2)
print("node3:", node3)... | [
"hogunhogun@naver.com"
] | hogunhogun@naver.com |
6fa816eb506c7963ab82c7b6144d01cb26179dc3 | 0fe062832fb0490ab78314a0b1cd06123f112529 | /tests/conftest.py | 16462790d808b9562a1ec1d6d12ff0114db4188a | [
"BSD-2-Clause"
] | permissive | FilipeMaia/afnumpy | 4d5f59a8a486e835a1db0a4506650b35f582df55 | 17306d281dfc82257be7fd5f522031407b4bc16b | refs/heads/master | 2022-09-16T08:15:32.690656 | 2022-08-25T09:26:13 | 2022-08-25T09:26:13 | 35,001,963 | 33 | 14 | BSD-2-Clause | 2018-06-04T15:02:28 | 2015-05-03T21:48:23 | Python | UTF-8 | Python | false | false | 406 | py | import arrayfire
import pytest
backends = arrayfire.library.get_available_backends()
# do not use opencl backend, it's kinda broken
#backends = [x for x in backends if x != 'opencl']
# This will set the different backends before each test is executed
@pytest.fixture(scope="function", params=backends, autouse=True)
de... | [
"filipe.c.maia@gmail.com"
] | filipe.c.maia@gmail.com |
bc9ae930f9b3a8b12ccb821e89bb277f81c1a19d | 76d3ec49d75ca5cef755e612a97ddcbc34f62bf3 | /data_integration/parallel_tasks/sql.py | 724456ec4dcef6e187d023a7fe4298906fd58d8a | [
"MIT"
] | permissive | ierosodin/data-integration | 8f7e9500bda03c8316061452bc502d68cfcd33da | f3ee414e8b8994e5b740a374c0594e40862ff6e9 | refs/heads/master | 2021-01-02T14:58:10.752745 | 2020-02-13T00:58:58 | 2020-02-13T00:58:58 | 239,665,119 | 0 | 0 | MIT | 2020-02-11T03:11:37 | 2020-02-11T03:11:36 | null | UTF-8 | Python | false | false | 3,315 | py | import inspect
import re
import typing
from mara_page import _, html
from .. import config, pipelines
from ..commands import sql
class ParallelExecuteSQL(pipelines.ParallelTask, sql._SQLCommand):
def __init__(self, id: str, description: str, parameter_function: typing.Callable, parameter_placeholders: [str],
... | [
"martin.loetzsch@gmail.com"
] | martin.loetzsch@gmail.com |
cdeb4e8690477000342cd59097c9cc23be076db6 | 4e5b233311bdb5872fd5f862f90b3c6e56f56bc2 | /Day_16_CoffeeMachine.py | d342630146136aa15eca126c5e01696d1bebea25 | [] | no_license | asher-lab/100daysofpython | 02b7c6703b82683f824e3a5b21d41233141827df | 046f16fddb1073195f320e0f0f6e091c35f10314 | refs/heads/main | 2023-07-01T17:55:57.654898 | 2021-08-11T02:38:59 | 2021-08-11T02:38:59 | 388,103,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from menu import Menu, MenuItem
from coffee_maker import CoffeeMaker
from money_machine import MoneyMachine
#declaring objects
menu = Menu()
coffee_maker = CoffeeMaker()
money_machine = MoneyMachine()
is_on = True
while is_on:
options = menu.get_items()
choice = input(f"What would you like? {options}:")
... | [
"noreply@github.com"
] | noreply@github.com |
4ea0b9b40fea28cf979342e613ffcf0c2010e2d2 | d52ee2f7ec5dcd8825f4e221a7f084d488d35634 | /new_scripts/cluster_rerank/rerank_match_dress.py | 442dbeed13eb4e02caf9a03b28d1e9dadb8028df | [] | no_license | rekriz11/sockeye-recipes | 9dbf96140e4d9d546210dd1c29801132e1b9201c | 644363b92e2f38311cc2b7e926b6558aa41900f3 | refs/heads/master | 2020-03-29T16:52:52.542574 | 2020-03-13T18:18:25 | 2020-03-13T18:18:25 | 150,131,769 | 5 | 3 | null | 2018-09-24T16:15:47 | 2018-09-24T16:15:46 | null | UTF-8 | Python | false | false | 9,656 | py | import kenlm
import sys
import gensim.models as g
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
from fractions import Fraction
from collections import Counter
## Checks validity of output
def debug_output(sentences, scores, title):
print(title)
for i in range(len(sentences)):
... | [
"rekriz@seas.upenn.edu"
] | rekriz@seas.upenn.edu |
5e66ce42e37919c2af3d3500d584ca01a11259d1 | 2d481e4272f005b58917d8d101089376114c3207 | /Arithmetic Formatter/Solved/arithmetic_arranger.py | c4d5090f86a686a14de25c369a2246169dd5454c | [] | no_license | aashishpt/freecodecamp_python_projects | 509ec8c5af1e4f78feace57ad3d6c2be16053b7e | f8e3d019890f17eff204f2671c152b19e9420204 | refs/heads/master | 2022-11-14T23:03:51.654430 | 2020-07-12T09:51:35 | 2020-07-12T09:51:35 | 278,645,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py |
from evaluate import evaluate
def arithmetic_arranger(problems:list,answers=False):
if len(problems)>5:
return "Error: Too many problems."
# initiate empty variables needed
first_str_list = []
second_str_list = []
sep_str_list = []
ans_str_list = []
exps = problems
for ... | [
"aashishpt@github.com"
] | aashishpt@github.com |
e0e440cf9fcd46c81cf3b191a8b56f64ddb6cd51 | 3247cbc59098ea17c408966ed71f6908cf9fdc3e | /etc/proton | 1fe6d6a22e91ea17c9f4fe220630a796fb1db67d | [
"Apache-2.0"
] | permissive | Quinn-Yan/proton | 70dd6a5edfe62a13d51da960d54ba910fd5ce9b9 | 538cc219e169949eccc079b69b0d14284dbfb396 | refs/heads/master | 2020-11-28T01:14:41.866451 | 2019-12-22T20:30:57 | 2019-12-22T20:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,696 | #!/usr/bin/env python3
# Copyright (C) 2016 - 2019 Entynetproject
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use the software 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 ... | [
"noreply@github.com"
] | noreply@github.com | |
140cd9dd221e93879ef61e3ac46f1da643d4c2c2 | d10234590502b1b591828ae318739133ab32e0a8 | /gitScrape.py | fba7c173a2a874ccd8803b72cee9db278599ba9d | [] | no_license | ack8006/recurseWorkflow | c17f08701b62489d8a113f8002efd89ea2fd5db9 | d1b75d605913b067c2b7d012bff1d7ba8bbe7a09 | refs/heads/master | 2021-01-10T19:38:50.398136 | 2015-09-02T02:52:01 | 2015-09-02T02:52:01 | 41,641,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | import requests
from contextlib import closing
import datetime
#https://api.github.com/
#/users/:username/received_events/public
#list languages
#GET /repos/:owner/:repo/languages
#list user repos
#GET /users/:username/repos
#*****handle pages
class getGitHubData():
def __init__(self, username):
self.... | [
"takata.alex@gmail.com"
] | takata.alex@gmail.com |
c6693a896d85200d20be1efe6ee5859d976d7d89 | 191d318f619f9ea3ab9b7e8031c3f8478381f530 | /Sentiment Analysis Bollywood/dashboard.py | 54b9822de1eef89420d1b723be34a0fecd69a130 | [] | no_license | phyverse/Sentiment-Analysis | ddb2b171aa65bad3171e658d5cffdf185ff9521f | 5d73e68ead5392ea3a0d4e376bac2157c5a83933 | refs/heads/master | 2023-07-19T09:59:00.238141 | 2020-05-04T09:16:58 | 2020-05-04T09:16:58 | 260,370,691 | 0 | 0 | null | 2023-07-06T21:28:04 | 2020-05-01T03:23:13 | Jupyter Notebook | UTF-8 | Python | false | false | 733 | py | import kmeans,manual,table,twitterapicall,dbCreate
def mainfun():
a=input("What operation do you want to do? [1]Fetch tweets from twitter. [2]See charts of the tweet. [3]Manual input. [4]show users in cluster table. [5]see database [q] Quit: ")
if a=='1':
twitterapicall.twitterapi()
mai... | [
"noreply@github.com"
] | noreply@github.com |
2d44edeb1a01d18e93e0d0f6b182dc4dfc11ab43 | e1a50a83892f87d01ab0308c6046f306ff9a5218 | /models.py | 4183c9a72480b14c5e0787687acf49ff58dd4063 | [] | no_license | benmcmorran/virtualdoorbell | dd5a3fcff5cd53ec3ef573fb0295d426566d5ffc | 8c2c0e0490d20c0766c23779466cfe2ae86509e5 | refs/heads/master | 2020-11-29T11:52:43.515579 | 2017-05-08T19:18:48 | 2017-05-08T19:18:48 | 90,663,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import datetime
from google.appengine.ext import db
class Doorbell(db.Model):
creation = db.DateTimeProperty(auto_now_add=True)
rings = db.ListProperty(datetime.datetime)
name = db.StringProperty()
viewed = db.BooleanProperty()
clientIDs = db.StringListProperty() | [
"ben.mcmorran@gmail.com"
] | ben.mcmorran@gmail.com |
5cc161d99b5edd628699e5661cc0f2f66c1c13df | 857a442c98d1524eaa85d94a936934cf22dfa1d1 | /mean_sightings.py | f2f74f235d9c07ef9aa4c7ff867c6b0d410bb664 | [] | no_license | ekh351/Python_unit_testing | 3647ccc827c9477c2f57e894e5be38f24bd65dc7 | 55547788abf7a0486da113109bef0c4b159d874c | refs/heads/master | 2016-09-06T07:31:40.119141 | 2014-11-25T14:03:05 | 2014-11-25T14:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import matplotlib.mlab as ml
import numpy as np
def get_sightings(filename,ani):
#Loading table
tab = ml.csv2rec(filename)
#Allow for case insensitivity
ani=ani.capitalize();
#Find total number of records for animals and calculate mean sightings
isfocus = (tab['animal'] == ani) ... | [
"ekh351@gmail.com"
] | ekh351@gmail.com |
2c486fdff4147264b3a4d0404a6e8af18fa3daab | 2055c8b46b72e4fa19dc87fddf29faf0c81e703a | /Trackle/trackle/venv/lib/python3.6/encodings/iso8859_13.py | dad20781f270f4685c66642e733d6fd0ec0061e5 | [] | no_license | JMRLudan/Trackle2 | 2c72a3fff2e9bfe988874e00b64f56950043e825 | 2d2f486f076eb956903dabcc05434f1ecc6b6079 | refs/heads/master | 2021-06-20T08:56:56.973353 | 2020-01-19T14:28:59 | 2020-01-19T14:28:59 | 176,396,178 | 1 | 2 | null | 2021-06-10T21:20:09 | 2019-03-19T01:10:28 | Python | UTF-8 | Python | false | false | 61 | py | /Users/JLudan/anaconda3/lib/python3.6/encodings/iso8859_13.py | [
"joshludanr@gmail.com"
] | joshludanr@gmail.com |
0384d7dfb9a7e53271b18c52096a581c20d45dc2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_46/71.py | 24e9421799bdf1037f657a345661908082b4f683 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | input_file = "A-large.in";
output_file = "0.out";
input = open(input_file,"r");
output = open(output_file,"w+");
num_tests = int(input.readline());
for test in range(num_tests):
size = int(input.readline());
matrix = []
a = []
for i in range(size):
gg = input.readline()
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
db497c282ce7e9e7fbb847d04b8596f891db88a1 | d7dadde807fb638534462d52b79260ed7cdb64c6 | /management/migrations/0003_auto_20200407_0228.py | 045c3696165b91872137ca603b90d14a2cb25dec | [] | no_license | adilos12/ldpdonza-management | 841fa954ffa052364ad921de9a3abc0168b53f00 | d85c7b6d1dc1d6b572e5c70ede2537697b796699 | refs/heads/master | 2022-12-04T06:02:42.820595 | 2020-08-29T12:42:31 | 2020-08-29T12:42:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | # Generated by Django 3.0.5 on 2020-04-07 00:28
from django.db import migrations, models
import localflavor.generic.models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('management', '0002_auto_20200405_0855'),
]
operations = [
migrations.... | [
"tim.vanerum@ugent.be"
] | tim.vanerum@ugent.be |
c4a2189bd043c8b607522d23537ddd839021efa3 | 13045157b7ff1bf8e17f26049ee182daddbf30a7 | /Embedded/drcom.py | 9247616ec75e29d7308063199352833b70be2b6e | [] | no_license | JerryLiao26/drcom-py | d6afae7b7f512cf96ee068de1250c1885ddc1eaf | 61b320ad6eed1adffbcec93185bf925dfbfe8a7c | refs/heads/master | 2020-12-24T20:43:08.044676 | 2017-06-20T10:45:31 | 2017-06-20T10:45:31 | 59,505,685 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,814 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import os, sys, json
# Get python major version
py_version_index = str(sys.version_info).index('major')
py_version = str(sys.version_info)[(py_version_index + 6) : (py_version_index + 7)]
if py_version == "2": # Python2.x
from urllib2 import urlopen
from urllib im... | [
"jerryliao26@gmail.com"
] | jerryliao26@gmail.com |
81fa627e293605e74746676da48b221cdaa59e9d | ce0a3a73c7825f7327b8319fb2593b6b01659bb0 | /webtest03/evaluation/migrations/0002_auto_20180802_0151.py | 5bb7bf88cabc2d1779cc24878b96578183d001a5 | [] | no_license | soccergame/deeplearning | 28b0a6ed85df12e362b3a451050fab5a2a994be7 | cbc65d3eba453992a279cfd96a9d3640d8fe6b9f | refs/heads/master | 2020-03-28T22:38:26.085464 | 2018-08-31T11:22:39 | 2018-08-31T11:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-02 01:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('evaluation', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"18811442380@163.com"
] | 18811442380@163.com |
c4594e10edae91736450b2a4a8024d95e8912936 | 4b7d56fe3f5b2f532172b110bc1b05ae36c84468 | /deprecated/csvTable.py | b30225884a429c54bcc1823170e93b2b7f9f4b9a | [] | no_license | digideskio/WmAgentScripts | fdfc80dc3c967c7a61b5bd7ef1f37cf0aed17761 | 6ead6971043fb25c3c43a667a1879370e6b3a689 | refs/heads/master | 2021-04-29T00:21:22.216242 | 2016-12-26T10:34:15 | 2016-12-26T10:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,237 | py | #!/usr/bin/env python
import httplib, json, csv, time, smtplib, os, traceback
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.Utils import COMMASPACE, formatdate
from email import Encoders
from dbs.apis.dbsClient import DbsApi
mailingLis... | [
"jbadillo@cern.ch"
] | jbadillo@cern.ch |
77d9f7ba90c4cf8635621eec3d5b56604e3dbc8a | 3fd35e132acf26c1404469477114b752cd6a294b | /test/test_arena.py | 6e5e0a49888492db16c92a7812a80ddc2be95844 | [] | no_license | LIQRGV/robot-arena | 6655306ff08714f63ad6cea13c41967a230a8e9c | bfc6a2bb58b6036ba9fa7be5c6a666074bb64408 | refs/heads/master | 2020-04-14T13:22:31.923585 | 2019-02-01T12:19:17 | 2019-02-01T12:19:17 | 163,866,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,055 | py | from unittest import TestCase
from unittest.mock import (
Mock,
patch
)
from robotarena import (
Action,
Arena,
Coordinate,
DisplayConsole as Display,
FieldBase,
RobotRandom,
)
class TestArena(TestCase):
def setUp(self):
self.patcher = patch('builtins.print') # i just dont ... | [
"septian@infoflow.co.id"
] | septian@infoflow.co.id |
6960f98454113c7a8a8738f5e1910773e847daca | 57a9a6fd03678d55dadd77dd376d89a015afa266 | /manage.py | 5fc50c3b615bac1417076792e7d740b856a8647d | [] | no_license | Matje1979/contactbook_app | 9b9d28e96ae84d4810d57e2cf2c6e9082d6b8988 | 1fa21cdc630e876af596127ed3c1f948cf40b11e | refs/heads/main | 2023-05-22T10:01:54.817520 | 2021-06-08T11:19:46 | 2021-06-08T11:19:46 | 374,974,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | 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', 'contactbook_project.settings')
try:
from django.core.management import execute_from_command_line
... | [
"damircicic@gmail.com"
] | damircicic@gmail.com |
b379fe00b217ad4ed8e25c129a5d6635217f6dfa | 7fa84c44d929e1761e1e5032c9e43023b4ef3a68 | /train_toy.py | 2f3f36f5315c8b3590aa61634d9e949bac60d5ff | [
"MIT"
] | permissive | zivzone/implicit-normalizing-flows | 17fcf62148858fc8909570bc6229b0a8054a0127 | d8babe48bdea7b1ba98be698bef2e954ac3817ee | refs/heads/master | 2023-05-04T07:07:15.331173 | 2021-05-26T07:17:58 | 2021-05-26T07:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,447 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import argparse
import os
import time
import math
import numpy as np
import torch
import lib.optimizers as optim
import lib.layers.base as base_layers
import lib.layers as layers
import lib.toy_data as toy_data
import lib.utils as utils
from lib... | [
"lucheng.lc15@gmail.com"
] | lucheng.lc15@gmail.com |
66322e287c6b4586776e85303fbc8f20198de35f | cf6c67790393b4d1ad75f5f30fef00455bc9a541 | /icgc_dataobjects/run.py | c71e438d674f2c7beed3bc51313bfcf68ef4a785 | [
"MIT"
] | permissive | ohsu-comp-bio/icgc_dataobjects | fe3b231838875c9dadb9eacb17004fc59790689c | 3cbb676d2e1a9a21e03f3cfb8a3853752aa97916 | refs/heads/master | 2022-10-09T01:04:14.259700 | 2017-05-05T20:28:50 | 2017-05-05T20:28:50 | 90,410,194 | 0 | 0 | MIT | 2022-09-23T20:52:26 | 2017-05-05T19:33:26 | Python | UTF-8 | Python | false | false | 2,301 | py | #!/usr/bin/env python
"""
Proxy front end to the dcc server
"""
import os
from flask import request, jsonify, Response, abort, Flask
from flask_cors import CORS
# our utilities
import dcc_proxy
def _configure_app():
""" set app wide config """
# start the app
app = Flask(__name__)
# allow cross site... | [
"brian@bwalsh.com"
] | brian@bwalsh.com |
82418a74662292be850486b2c58549865c559f61 | cca70c9bdf4a80013420a4eaede1363e266cb319 | /CSC 555 Mining Big Data/kMapper.py | 8ca7bd58568d7c53bed212eb2bd1b889194160c8 | [] | no_license | mounazamran/Depaul | dc52e811b3408a1fcc11962627f3fe6ae0825dc0 | f1ba87b7ef33d321c5b27ec880b4fff7de24ec10 | refs/heads/master | 2021-02-11T13:43:15.999509 | 2020-02-26T07:44:04 | 2020-02-26T07:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | #!/usr/bin/python
import sys
import math
#read initiual centers from file
fd = open('centers.txt', 'r')
centers = []
for line in fd:
l = line.strip()
v = line.split(' ')
centers.extend([v])
fd.close()
# read numericfile.txt
for line in sys.stdin:
line = line.strip()
vals = line.split(' ')
v0 = float(va... | [
"michal.chowaniak@gmail.com"
] | michal.chowaniak@gmail.com |
2a4aff5ccb113103b0f4e2d159854e9d84d5c574 | ca3839c69a1b2c02cea03e8a5f34cdabf0b6b624 | /make_it_rain.py | 893d63e9ffaae4c140f630c731228350b54635ed | [] | no_license | SeedyROM/rain_data_app | bd13d254bc6c573beca8d39b044e1347f7cfdae8 | 235d59bc24738f6484ea684fc0e69a23ec8f130e | refs/heads/master | 2020-12-14T08:48:49.340295 | 2017-06-24T04:21:33 | 2017-06-24T04:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py |
from datetime import datetime
from collections import namedtuple
from itertools import groupby
RainDataPoint = namedtuple('RainDataPoint', 'date_recorded, daily_total, hourly_data')
#this strips everything after the line of --------------- in the file by
def remove_header(data):
for line_number, line in enumerat... | [
"swilliams0520@gmail.com"
] | swilliams0520@gmail.com |
feb8e900948ef8f99cf828449e6bbbcd4d871c64 | 807de8c0aee3f1bb191b77a2ecb612e67cd9ac7e | /my_nb_poeme.py | cce38e66fb492ca8c2c9f3ba22d6e9cf6a7303a2 | [] | no_license | talmoroc/deepcarroll | e6b70ddf014c1f38b31638b922db608f3ed79cbb | f013b17e4d2c6ee3fcedb2d26ef3f19400ac096e | refs/heads/master | 2022-04-12T02:31:23.088385 | 2020-04-11T04:36:01 | 2020-04-11T04:36:01 | 254,791,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,608 | py | import config_etienne as cf
import sys
import codecs
import random
import time
import imp
import os
import tensorflow as tf
# tf.disable_eager_execution()
# tf.disable_v2_behavior()
import numpy as np
import gensim.models as g
from sonnet_model import SonnetModel
from RUN_epoch import run_epoch
from u... | [
"noreply@github.com"
] | noreply@github.com |
1de785d965a16611407a7698d4f739e95efbd8f9 | 2b9415486061bdb02f598e1ad62b5e7f87bdb15f | /blog/forms.py | e67e1d0440c3d04fc78c8a7e1bf26990b4ba2fb6 | [] | no_license | Betadinho/Flask-Blog | 9e687e149d00082c5f20eaa33b2c1138ab084b4d | 29d07177441f81e40b3dff81b309038558eb5f5d | refs/heads/master | 2023-02-21T23:24:00.723537 | 2019-06-18T11:55:46 | 2019-06-18T11:55:46 | 192,530,382 | 0 | 0 | null | 2023-02-02T06:34:14 | 2019-06-18T11:53:02 | HTML | UTF-8 | Python | false | false | 1,415 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from blog.models import User
class RegistrationForm(FlaskForm):
username = StringField('Username', validators=[D... | [
"noreply@github.com"
] | noreply@github.com |
994447042d7d558126ef42892fb7bf4a1845423b | f1e20ed27c6c732b92a52123433bcc1f8a5fbb0e | /Flame Game/flame.py | 9c2b6af08334c9219c22db4b33250220f884c078 | [] | no_license | DishaM-123/Python | 2ddec65777943fbecaae392e5a483b116a1148af | 127a42981b0dba914f5346ccd4e1acd46e1e4b7a | refs/heads/master | 2022-12-08T14:29:42.813430 | 2020-09-04T09:38:04 | 2020-09-04T09:38:04 | 292,808,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | name1 = input("enter a name:").lower()
name2 = input("enter another name:").lower()
name1= name1.replace("","")
name2= name2.replace("","")
print(name1)
print(name2)
for i in name1:
for j in name2:
if i == j:
name1= name1.replace(i,"",1)
name2= name2.replace(j,"",1)
... | [
"noreply@github.com"
] | noreply@github.com |
e90a14246e9f14ab4179dcd6e01df7a97a632414 | a414c7bf2d89199032e95202be03d24cd5114389 | /Euler problems/problem 3.py | fb26e8e0b0bd92a559c8310b41c2f08d8538fcd4 | [] | no_license | ryunder/Project-Euler | 1cf9f22948784d0dd2598dcdcc32af6a9846a5b3 | d92b0d1936710d126acbfccdf37bd526081cf244 | refs/heads/master | 2020-12-30T00:10:30.738358 | 2020-02-10T01:31:22 | 2020-02-10T01:31:22 | 238,789,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def factorize(num):
factors = []
i = 2
while i * i <= num:
if (num % i):
i += 1
else:
factors.append(i)
num //= i
if num > 1:
factors.append(num)
return factors
print(factorize(600851475143))
| [
"noreply@github.com"
] | noreply@github.com |
ab355a206aeadff1b8beca05b4bd401def5b4de2 | fa9658f595beed78fe17a0402309fc4c7bd8afcd | /scripts/tests/test_es_template.py | f4034c37c4b9740f167c202f661146ed5fe2acaf | [
"Apache-2.0"
] | permissive | zlammers/ecs | 662a9a9d07624ad26e489bab8270cacdaac65472 | 0e60cb7b1cc21a61a3d2fed877bc88bb06a98fe5 | refs/heads/master | 2022-11-24T06:27:25.520428 | 2022-11-02T17:22:40 | 2022-11-02T17:22:40 | 191,854,669 | 0 | 0 | Apache-2.0 | 2019-06-14T01:14:24 | 2019-06-14T01:14:23 | null | UTF-8 | Python | false | false | 7,090 | py | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | [
"noreply@github.com"
] | noreply@github.com |
ffd9dc16f603d827f2770aa462b19116227f81ab | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/ib_miniprojects_backend/covid_dashboard/interactors/get_mandals_daily_report_day_wise_interactor.py | 391e90db9899d1ac8399b764ed3bda3330121e23 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,116 | py | {"filter":false,"title":"get_mandals_daily_report_day_wise_interactor.py","tooltip":"/ib_miniprojects_backend/covid_dashboard/interactors/get_mandals_daily_report_day_wise_interactor.py","undoManager":{"mark":16,"position":16,"stack":[[{"start":{"row":22,"column":8},"end":{"row":25,"column":9},"action":"remove","lines"... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
e2b74033e4d73ccf70a1101396f0177fba4886dc | af7a617bc0512f855126853e05fa8560cdfaa9ce | /DB_SQLite/Python_moduls/sqlite3/sqlite_update_multiple_rows_with_executemany.py | 712533055aac6fcd4c08dae4b6568e7e27d89da6 | [] | no_license | Fuerfenf/Basic_things_of_the_SQL | 7c67f22c75d4bbafd950aa522710788bcf34abb7 | d342da6c2ecd6f447d3a3de1ae4d24566b0be72a | refs/heads/master | 2023-01-12T18:09:28.131255 | 2020-11-18T09:08:32 | 2020-11-18T09:08:32 | 313,902,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | import sqlite3
def updateMultipleRecords(recordList):
try:
db_connect = sqlite3.connect('C:\sqlite\database\Egor_test.db')
cursor = db_connect.cursor()
print("Connected to SQLite")
sqlite_update_query = """Update SqliteDb_developers set salary = ? where id = ?"""
cursor.ex... | [
"egor602@mail.ru"
] | egor602@mail.ru |
ad4c9c0333e080237540c8fd773da78df8d384ef | 11d91bb8b13dbf8734ea3b79cfac53e62cb1a924 | /3_clean_merge.py | 200ec29d491d9c68f6e7c21b7a61ec48aaa33487 | [] | no_license | yuenhsu/Vietnam_Power_Plants | 2f34fc9da892ab27b7a256caca9478b4aef3ea93 | b5c0c88aa962e102a21d28b1ab13cc5eec6ac7a0 | refs/heads/master | 2022-12-25T11:18:41.252236 | 2020-10-04T17:23:16 | 2020-10-04T17:23:16 | 293,588,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # Import PDP & Merge with WRI/Market
pdp = pd.read_csv('https://github.com/yuenhsu/Vietnam_Power_Plants/blob/master/data/eng_pdp.csv').drop(columns='base_name')
wri_market = pd.read_csv('https://github.com/yuenhsu/Vietnam_Power_Plants/blob/master/data/eng_wri.csv')
all = pdp.merge(
wri_market.drop(columns='_merge'... | [
"55968287+yuenhsu@users.noreply.github.com"
] | 55968287+yuenhsu@users.noreply.github.com |
4e7ea016425cbb9b17e33015138870c711fbd758 | 633aca1308dd579a622fd8559de7d96e425f0dc4 | /src/analysis/state_smoother/plt_smoother_rmse_spread_v_shift.py | 7592bc23dcbc137941786202ca65f8063923c3e6 | [
"Apache-2.0"
] | permissive | cgrudz/DataAssimilationBenchmarks.jl | 416316e455e5f593ee84a2b558818d66eaa72380 | f0ae3f780c506f5523f9f3ea580457b102a8960a | refs/heads/master | 2023-04-08T08:50:49.561094 | 2022-11-10T19:46:51 | 2022-11-10T19:46:51 | 268,903,920 | 13 | 2 | Apache-2.0 | 2022-11-04T16:57:36 | 2020-06-02T20:41:13 | Julia | UTF-8 | Python | false | false | 5,191 | py | import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import pickle
from matplotlib.colors import Normalize
from matplotlib import rc
from matplotlib.colors import LogNorm
import glob
import ipdb
import math
import h5py as h5
obs_un = 1.0
#method_list = ["mles-n-transform_classic", "mles-n-transform... | [
"cgrudz@mailbox.org"
] | cgrudz@mailbox.org |
ab6185ba90c94448913c8279f6c0785763528b8d | 22946b79620a06405f5c1add7844ca7eb118b5ce | /templates/frontend/start-frontend.erb | d6bd3711d5735145a3e11a40aa7e7da2154afb3c | [
"BSD-2-Clause-Views"
] | permissive | SUNET/puppet-sunet | 91ae0c023f4e00dc863d5fe28ee0f660791506db | 39296bb5780218e28f816ee6f39ce99746d452a0 | refs/heads/main | 2023-08-28T03:11:10.798430 | 2023-08-21T13:31:40 | 2023-08-21T13:36:04 | 35,332,499 | 1 | 6 | NOASSERTION | 2023-09-04T09:39:22 | 2015-05-09T14:56:01 | Puppet | UTF-8 | Python | false | false | 10,659 | erb | #!/usr/bin/env python3
#
# Copyright 2019 SUNET. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# ... | [
"fredrik@thulin.net"
] | fredrik@thulin.net |
10d89ccf48030a21af7ede810a916baf31c0f345 | 811b3ad8cf06ad6c196a3c3d0437027dc12bb65a | /test/first_project/first_project/urls.py | e864ef749fd846b1cfc0d6d14be8c2d555450a99 | [
"MIT"
] | permissive | imsks/Web-Dev-with-Django | b9de3ceb904452e8a63eb3d15943dea9aa4a9cce | dec87795d18c24a5492758202c29a463bbba105a | refs/heads/master | 2020-05-26T01:43:46.164923 | 2019-08-11T04:14:57 | 2019-08-11T04:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.contrib import admin
from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$', views.index, name="index"),
url(r'^users/', include('first_app.urls')),
url('admin/', admin.site.urls),
]
| [
"sachinkshuklaoo7@gmail.com"
] | sachinkshuklaoo7@gmail.com |
3a21cb6bea3daf9fdb83c7cc3b6c5ea806fcbf2c | 01d92ca39cd4836aaef67e2efcf88a44671c7213 | /code_pack_22/1_threading/locking_with_context.py | d2ee717504e82208c6cb39cf3f7507afc038a607 | [] | no_license | manuelpereira292/py3_bootcamp | 247f411b80f09c46aeeba90a96e6a5d3fd329f2c | 1988553394cb993db82c39993ed397e497bd5ae8 | refs/heads/master | 2022-08-20T02:25:51.265204 | 2020-05-15T22:26:27 | 2020-05-15T22:26:27 | 263,367,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | import threading
total = 0
lock = threading.Lock()
def update_total(amount):
"""
Updates the total by the given amount
"""
global total
with lock:
total += amount
print (total)
if __name__ == '__main__':
for i in range(10):
my_thread = threading.Thread(
target=... | [
"manuelpereira292@gmail.com"
] | manuelpereira292@gmail.com |
eda818281b66bccdb61e0f018cf79daaf0ba0d6b | c89ffeecf4a28d9b10aba41efc10143d11172972 | /digitar_nome.py | 0f048b9fea936841f1c7e59760dd581561db2bd2 | [] | no_license | namnamgit/pythonProjects | 3bbabea987fc5baa40dd00e16d86732d8e3c80b4 | 8f8cad0b44139585a4733f554f68ad0126f6d198 | refs/heads/master | 2020-06-04T08:19:15.167879 | 2013-10-30T04:55:15 | 2013-10-30T04:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | nome = input("Digite seu nome: ")
print("Você digitou %s" %nome)
print("Olá, %s!" %nome)
input()
| [
"panda.musame@gmail.com"
] | panda.musame@gmail.com |
62761c4213e8d3fd11ac2734a38d39fed0be7f54 | 44b6bc41fe8e424196f98dbc5b2f050c1f9645f8 | /platforms/windows/dos/34480.py | 15fb0b06f9a6f2300b2fa265f1402a0d1a77a6aa | [] | no_license | angeloobeta/exploit-database | 21283dd8549f47836a35af6f3ea7b63b8dba11ea | 43f3d9e94c01a7f51e30561a96214af231dd9d36 | refs/heads/master | 2021-08-08T21:07:38.794539 | 2017-11-11T05:01:28 | 2017-11-11T05:01:28 | 110,380,452 | 0 | 1 | null | 2017-11-11T21:09:05 | 2017-11-11T21:09:04 | null | UTF-8 | Python | false | false | 1,201 | py | source: http://www.securityfocus.com/bid/42473/info
Xilisoft Video Converter is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary checks on user-supplied data.
Attackers may leverage this issue to execute arbitrary code in the context of the application. Failed attacks will ca... | [
"info@exploit-db.com"
] | info@exploit-db.com |
e8fc1d761894c544fc9f36d9aa38ca5900bef47d | 3fda3ff2e9334433554b6cf923506f428d9e9366 | /hipeac/migrations/0014_auto_20190121_1724.py | ebf27a1920573587d68f431147ce919777e91b00 | [
"MIT"
] | permissive | CreativeOthman/hipeac | 12adb61099886a6719dfccfa5ce26fdec8951bf9 | 2ce98da17cac2c6a87ec88df1b7676db4c200607 | refs/heads/master | 2022-07-20T10:06:58.771811 | 2020-05-07T11:39:13 | 2020-05-07T11:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.1.5 on 2019-01-21 16:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("hipeac", "0013_auto_20190121_1650"),
]
operations = [
migrations.AlterField(
model_name="video", name="youtube_id", field=models... | [
"eneko.illarramendi@ugent.be"
] | eneko.illarramendi@ugent.be |
fcec06be7e20929428dcdc37e5342560de471ba0 | fc107164d575585eb281b985cf877b4fe44f5fb6 | /server_v2.py | d1c15d4f14ce10d49474c983dc68af8c6acaa6cf | [
"MIT"
] | permissive | hieplebstar/voice-quickstart-server-python | b6d078936f1abfb910a0e33e8c4e63f72d36879e | 587b79fdce1bdc63fb8562bc24b821a6cb7b2c3c | refs/heads/master | 2020-12-24T11:17:11.845579 | 2017-05-31T08:43:45 | 2017-05-31T08:43:45 | 73,042,958 | 0 | 1 | null | 2016-11-07T04:43:48 | 2016-11-07T04:43:48 | null | UTF-8 | Python | false | false | 12,907 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import json
from flask import Flask, request
from twilio.jwt.access_token import AccessToken, VoiceGrant
from twilio.rest import Client
from datetime import date
import twilio.twiml
import urllib
import json
import urlparse
import smtplib
from email.mime.text import... | [
"job@shakehand.co"
] | job@shakehand.co |
05f9a32aaaf312888ab11c05a9a8fe64fce6275c | 520ddc12f81eff79b3dec43e8ef5fe0e2b1bc200 | /app_Optibin.py | 47c344c4dc6d36c96625ed546e0f209256b60c92 | [] | no_license | Phlasse/Opti-bin | 2207d6a4e2a0b2145e2dd0e992af9ec142f9f686 | dd6a58031ba8811cbbeb8cfe2260efc381c2d422 | refs/heads/master | 2023-03-31T08:01:00.099208 | 2021-03-23T08:24:10 | 2021-03-23T08:24:10 | 336,838,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,076 | py | from tkinter import *
import os
from os.path import isfile, join
import time
import pandas as pd
import numpy as np
import optibin.fivebin
import matplotlib.pyplot as plt
################################################################################
##### Overall Layout #############################################... | [
"zastrow.phillip@gmail.com"
] | zastrow.phillip@gmail.com |
304e3957bdc086d84bb32f2b58268c58ea73ca28 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Cheese Boys/cheeseboys/sprites/speech.py | 5e1567b82b17412d9134367a27d554ca30c1da16 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c6cecd706830ed02d31a0263b2cde423305efa564853d608ed6bd0df573421f1
size 5969
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
4e11329cf9698d352a9e37b32b7bf63a1fb494c1 | 053c4b1afe571e0985addd27b167ab20cd209989 | /BlogSayfam/wsgi.py | 2429a5e838ef0fa8c50b2999b66e9775b716cdac | [] | no_license | furkanunutmaz/BlogWebSite | e64ce2c46e521ff4713c30ec28d56f15f6ed72cd | 54186bd8184abdfbbf612b8713ffba3d7ab7fa49 | refs/heads/master | 2022-12-04T08:21:22.644558 | 2020-09-01T06:02:18 | 2020-09-01T06:02:18 | 261,754,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for BlogSayfam project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"35935681+furkanunutmaz@users.noreply.github.com"
] | 35935681+furkanunutmaz@users.noreply.github.com |
9bf24903265c1bc14d6e5a9f7216a605a464b36c | b2f84608cc28c492430e972028fa0e178865c78c | /source_py2/combi/_python_toolbox/third_party/unittest2/__init__.py | 49e2cceae502115ad7682c8ecd14fb5abac2f8b0 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cool-RR/combi | 54efa752403a4acb6933475102702e43de93c81d | 9c5c143a792ffd8fb38b6470f926268c8bacbc31 | refs/heads/master | 2021-09-23T10:02:52.984204 | 2021-09-18T08:45:57 | 2021-09-18T08:45:57 | 25,787,956 | 24 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,548 | py | """
unittest2
unittest2 is a backport of the new features added to the unittest testing
framework in Python 2.7 and beyond. It is tested to run on Python 2.4 - 2.7.
To use unittest2 instead of unittest simply replace ``import unittest`` with
``import python_toolbox.third_party.unittest2``.
Copyright (c) 1999-2003 S... | [
"ram@rachum.com"
] | ram@rachum.com |
b842064996a69b9a291d526c8eabf0144004c179 | 72f6107e4602a898b370edc216c83b4dad52608d | /function_modules/michalewicz_2d.py | b9afe1b0d81cf1b667dd38955de810db18094744 | [] | no_license | kkh8676/opt_functions | 2fd0a550e48b6d4598bff78393d65ed9fca75d34 | 11f48dd56a43cd15c3975fcd80861c2d290fa2bf | refs/heads/master | 2023-02-02T02:28:52.956700 | 2020-12-21T15:12:17 | 2020-12-21T15:12:17 | 257,262,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import numpy as np
import math
def michalewicz_2d(x1,x2):
result = 0
Xs = [x1,x2]
for dim in range(len(Xs)):
# dim is 0 to len-1
x = Xs[dim]
d = dim+1
first_term = np.sin(x)
second_term = np.sin(d*(x**2)/np.pi) ** (2*10)
prod = first_term * second_term
result = result + prod
... | [
"noreply@github.com"
] | noreply@github.com |
1270e18c86fefef7504af98a1f66c65d422ca3a5 | bdbeca3fdc7ea3ef2f1b66aab9ea50e15cfbc553 | /django_sample/urls.py | 5153d54fffd528e7e5124cdc3fe449615124944d | [] | no_license | socialcomputing/django_sample | d99b35b4d02ef98e319efec6ef7feee3b29211d7 | ded880a08afdbdd4b899112a7c6d74f07d7c176f | refs/heads/master | 2021-01-13T01:58:08.970181 | 2013-10-24T12:05:54 | 2013-10-24T12:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'english_learner.views.home', name='home'),
# url(r'^english_learner/', include('en... | [
"roman.prokofyev@gmail.com"
] | roman.prokofyev@gmail.com |
021f1314d0644e555809568baade395ac69141b5 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129090305.py | ef65231461d111f8f831f2b4447d7863c8308ec4 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,586 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like G... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
d63df94ee14aef0bb4f0f8251acbd2875e7fc534 | 1973f7a63c5626c808a02dc1d0446c40f2941f1a | /PythonWorkSpace/venv/Test_1/QqBot.py | 3afed52595602ed1aee7eeba42ebbce5e01339d1 | [] | no_license | duanqiyue/Dy-s-PythonTestWorkSpace | fb9c8b81ed9594eda875facdb982fd8ed8208a82 | 48aed39f3605ff40516ee2682f6e896e155bcb80 | refs/heads/master | 2020-03-27T12:15:06.619482 | 2019-09-05T03:16:12 | 2019-09-05T03:16:12 | 146,535,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # encoding: utf-8
from qqbot import QQBotSlot as qqbotslot, RunBot
import time
#查看单词
from SelectWords import select_word
#发送消息
from QqSendMessage import sendMessageBy770
#@QQ小冰
from QqSendMessage import callXiaoBing
@qqbotslot
def onQQMessage(bot, contact, member, content):
str = ""
try:
str = content.split("【")[... | [
"wis20180423"
] | wis20180423 |
7814f7d29f90b521adca18824a5cd2dffb926525 | ddf8ff6e97bd925938349ccc09eb3e167bc30c66 | /raster2csv_11-6.py | 5a98bddc387ad5891bb4fc7b2253193a11d74f2e | [] | no_license | route2sabya/poultry_siteSuitability | 6e94371a5d5231b401021c27a5e902fd37dbde2f | bc22d07d41396fff1319198cce0d5aa5a46f4f69 | refs/heads/master | 2020-04-05T17:38:19.273473 | 2018-11-12T07:51:05 | 2018-11-12T07:51:05 | 157,069,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | #Import gdal
from osgeo import gdal
from tkinter import *
from tkinter.filedialog import askopenfilename
from tkinter import filedialog
src_filename = filedialog.askopenfilename()
#Open existing dataset
src_ds = gdal.Open( src_filename )
#Open output format driver, see gdal_translate --formats for list
format = "CSV... | [
"route2sabya@gmail.com"
] | route2sabya@gmail.com |
6dde344d937bbde2680824f18e8a250bc34d3438 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0601-0700/0606-Construct String from Binary Tree/0606-Construct String from Binary Tree.py | 671610319831f8a2afe833ffb4c97b48a252abe7 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 467 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def tree2str(self, t: TreeNode) -> str:
if t is None:
return ''
left = '({})'.format(self.tree2str(t.left)) if t.left o... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
79af4fcd25ac2b06beb82affc99d7bf3befdaa40 | a639ced7370a5bf91d4fe3794ab64725c86f2d6c | /register/urls.py | a5f257db435139bde6842c412eb72a7a68052073 | [] | no_license | param108/aspect-django | d7f0b7cf299f4df1810a1151f49a9076aaa169d0 | 772b04743fcb6088e322e60c10c17c3b90cb53c2 | refs/heads/master | 2021-01-10T05:20:08.110101 | 2016-04-19T19:03:44 | 2016-04-19T19:03:44 | 55,175,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | """doitgym/register URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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')
... | [
"paramp@cisco.com"
] | paramp@cisco.com |
3118ae7b4ef784c19bdfbe51c4ced770efde174b | 8b5d7a0d401f6d7996bcd0fbab8f9d88711dadca | /setup.py | 2c1e97912e1210c502163d938c3499c64bdee0b6 | [] | no_license | jackkamm/osx-mkl-omp-cython-bug | e197be531b434ed2ecf77a4b959ee11642ad6c4c | f0f436fd7835bff8af6718c994d2e5ac611d6fda | refs/heads/master | 2021-04-03T07:45:17.977802 | 2018-03-08T12:35:03 | 2018-03-08T12:35:03 | 124,385,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/env python3
from setuptools import setup, Extension
#import os
from Cython.Build import cythonize
import numpy
extensions = [
Extension("ext",
sources=["ext.pyx"],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp'],
include_dirs=[numpy.get_include()])]
extensions... | [
"jack@Jacks-MacBook-Pro.local"
] | jack@Jacks-MacBook-Pro.local |
c1d98ac5b74e244d504b655e8dc8754ce0952e07 | 76f2a4ea3896a74b155ff970b3ddd538f268ebd4 | /03_function/func_04.py | 8396ab8de7831fcca64ba2b5deb71e7225301c05 | [] | no_license | jnjnslab/python-sample | fb91c34aa274ae6371c9548637e9fe2994da63ff | ce71ceff2854e59c020c646831360a04f6eba0c0 | refs/heads/main | 2023-02-03T01:36:59.926884 | 2020-12-23T10:18:13 | 2020-12-23T10:18:13 | 309,023,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #ローカル変数のスコープ
def spam():
eggs = 99
bacon()
print(eggs)
def bacon():
ham = 101
eggs = 0
spam() | [
"jnjnslab@gmail.com"
] | jnjnslab@gmail.com |
b611f93e5bc12f60c52864354fd9bc2e6658c7e2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5751500831719424_1/Python/knabbers/game.py | 381bdefdea24efb577b9752009b3a139eb774628 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | def solve(file):
f = open(file,'r')
lines = f.readlines()
nCases = int(lines[0])
outf = open("output.txt",'w')
i = 1 # line number
n = 1 # case number
while nCases > 0:
#print("case: " + str(n))
line = lines[i].replace('\n', "").split(" ")
N = int(line[0... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
645dcd5964dd6d6dbcc4419aa558fa330d554f92 | 8f2410722d415ae5522d434aa0b791aaaf6f01b5 | /delayedsparse/__init__.py | 3e882290c5d98e28fcdcf096c95bddf6de6a78fd | [] | no_license | logichen/delayedsparse | 3b33ba9207ebf3ff9844b6d8e9dcaf98a2493aa3 | 8ab9fc64174cd9ee0413ebf48bf74d31f1b694f6 | refs/heads/master | 2020-11-26T07:26:42.226287 | 2018-11-12T16:59:10 | 2018-11-12T16:59:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py |
from .delayedsparse import safe_sparse_dot, delayedspmatrix,delayedspmatrix_t,isdelayedspmatrix
from .extmath2 import randomized_svd
from .ca import CA
from .pca import PCA
from .cca import CCA
from .__version__ import __version__
| [
"niitsuma@mub.biglobe.ne.jp"
] | niitsuma@mub.biglobe.ne.jp |
5f7a9b2612c79430d4c1e5242715bc642e2d3fac | f64e31cb76909a6f7fb592ad623e0a94deec25ae | /leetcode/p1143_longest_common_subsequence.py | 85183f69cab74bceb6e18858c63272d6a774702d | [] | no_license | weak-head/leetcode | 365d635cb985e1d154985188f6728c18cab1f877 | 9a20e1835652f5e6c33ef5c238f622e81f84ca26 | refs/heads/main | 2023-05-11T14:19:58.205709 | 2023-05-05T20:57:13 | 2023-05-05T20:57:13 | 172,853,059 | 0 | 1 | null | 2022-12-09T05:22:32 | 2019-02-27T05:58:54 | Python | UTF-8 | Python | false | false | 1,521 | py | from functools import lru_cache
def lcs_bu_optimized(a, b):
"""
Dynamic Programming, bottom-up
Optimized for space
Time: O(a * b)
Space: O(min(a, b))
a - length of 'a'
b - length of 'b'
"""
if a < b:
a, b = b, a
pre = [0] * (len(b) + 1)
cur = [0] * (len(b... | [
"zinchenko@live.com"
] | zinchenko@live.com |
b064f1e3de40121d067b76ce1f86adb8ee3c312d | 70410a0fd7fa9004b1d789ca165b21a6bba80b85 | /polls/models.py | 09cec8b62f0c474d5fc67415413ab19d3abdaebd | [] | no_license | Sukhrobjon/django-starter-tutorial | a310907a132d86ae9a7d0ba757642955b0f49569 | 9b6a6f7a8d98b1b85fe24d64d3ca3b7cf12a3932 | refs/heads/master | 2023-04-29T12:05:05.800364 | 2019-07-14T04:17:10 | 2019-07-14T04:17:10 | 189,487,751 | 0 | 0 | null | 2023-04-21T20:37:03 | 2019-05-30T21:57:15 | Python | UTF-8 | Python | false | false | 1,055 | py | import datetime
from django.db import models
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
def __str__(self):
"""Return string representation of question text."""
return se... | [
"sgolibbo@mail.ccsf.edu"
] | sgolibbo@mail.ccsf.edu |
3de64313516dd895157084a3cbf32f9873faef8c | 2ee26a18b5323128c20bfb8bfe127f4591d48df2 | /telethon_asyncpg/_patch.py | daba2a9d81758570bc82dd960421afda6ff1dcd5 | [
"MIT"
] | permissive | ukinti/telethon_asyncpg | 97eb8719f4427eeda9caa2ae192ffe243fa1c0b5 | 12fdfba905b493ac2c677a5f65c72c2051f02eb9 | refs/heads/master | 2022-08-28T06:31:32.645765 | 2020-05-26T10:03:26 | 2020-05-26T10:03:26 | 265,714,520 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | """
---
mod stands for module not modulo :)
"""
import inspect
import importlib
from typing import TypeVar, Tuple, cast
AMod = TypeVar("AMod")
BMod = TypeVar("BMod")
IS_PATCHED = False
def do_import(
a_mod: str,
klass: str,
b_mod_replace: Tuple[str, str]
) -> Tuple[AMod, BMod]:
a_lib_impl = importl... | [
"mpa@snejugal.ru"
] | mpa@snejugal.ru |
7e0c8d8062192d16e4bffd7fe377b23e38eb03c8 | 9469e6459a56566ee84731b023eb18bcc14417e6 | /powerapp_pocket/signals.py | 7a41a308f503b8d894e44053cff82286ef5e5733 | [] | no_license | Doist/powerapp-pocket | b5adca6b768f98ed61299e5436018535309de60c | 920beb7892527f8302c8ea53a2e1edf161ccae91 | refs/heads/master | 2021-01-25T12:07:27.533750 | 2015-06-04T23:47:33 | 2015-06-04T23:47:33 | 35,607,506 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | # -*- coding: utf-8 -*-
from logging import getLogger
from django.dispatch.dispatcher import receiver
from .apps import AppConfig
from .tasks import process_item
from powerapp.core.todoist_utils import get_personal_project
logger = getLogger(__name__)
PROJECT_NAME = 'Pocket task list'
@receiver(AppConfig.signals.t... | [
"roman.imankulov@gmail.com"
] | roman.imankulov@gmail.com |
6855ed27eaa948eb54e709ab40bd5df6ee431364 | 142462485e960a57411ecb7d4165faa329b4b359 | /Palabras Reservadas 1.py | 7d5328dd203d0ef5e552e1e4df22709891b06c65 | [] | no_license | Geovani-Batalla/Python | 463198ac3a5cbefbbba52abb3b221b960764a9e7 | 180fb73e23188fa5bd77be19d47f77ee3d57fc9d | refs/heads/master | 2022-10-20T15:17:53.645457 | 2020-06-30T22:45:09 | 2020-06-30T22:45:09 | 276,156,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #28 PALABRAS RESERVADAS
#and, del, for, is, raise, assert, if, else, elif, from, lambda, return, break, global, not
#try, class, except, or, while, continue, exec, import, yield, def, finally, in, print
#SE PUEDEN UTILIZAR EN VARIABLES SI SE CAMBIA UNA LETRA POR MAYUSCULA
#COMENTARIOS
"""SE USAN LAS 3 COMILLA... | [
"noreply@github.com"
] | noreply@github.com |
d7d520545a76e645d5a2fefc516e92f7b480c1ce | ad9e06f71c27c5b9411410b1b68d95a4fa63fc33 | /yulia_nikonova/lazyfca.py | a16b96cf0b586e61cd07ff0c5ed154226815026d | [] | no_license | zhiyenbay/lazyfca15 | 774ff192b1a6433605536ab230aaa38b1fb4f760 | 50e5effeab24aa8b7f26e02eba8d491a525d4d09 | refs/heads/master | 2021-01-13T06:28:42.981746 | 2015-12-23T23:34:25 | 2015-12-23T23:34:25 | 48,500,638 | 0 | 0 | null | 2015-12-23T16:38:54 | 2015-12-23T16:38:53 | null | UTF-8 | Python | false | false | 2,419 | py |
# coding: utf-8
# In[144]:
import pandas as pd
import numpy as np
# In[145]:
import copy
def dummy_encode_categorical_columns(data):
result_data = copy.deepcopy(data)
for column in data.columns.values:
result_data = pd.concat([result_data, pd.get_dummies(result_data[column], prefix = column, pref... | [
"nikonova.julya@gmail.com"
] | nikonova.julya@gmail.com |
1a4bf122accfb4f028278d24ca294e2a75fc9a19 | b078e68756676b240ccbf5bfd234f5bc3ade736b | /movie website/media.py | aec3fe485dce9f91928f6d716bc93527f73217b1 | [] | no_license | benreylopez/movie-website | 3872b1e16eb5bcc7b63ef435479ddc91daaecd42 | 5dc51df620cdfcbf63b0544688a1cc09e1c675c4 | refs/heads/master | 2020-03-19T12:54:38.525269 | 2018-06-08T01:17:47 | 2018-06-08T01:17:47 | 136,549,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import webbrowser
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image,
trailer_youtube):
self.title = movie_title
self.storline = movie_storyline
self.poster_image_url = poster_image
self.trailer_youtube_url = trailer_youtube
def show_trailer():
webbrowser.op... | [
"noreply@github.com"
] | noreply@github.com |
5cb5888a1aad42927e1c68873bdd9111650f4450 | 28bb4247e899d051316e61dbe878cc250250b58d | /venv/Lib/site-packages/mongoengine/base/document.py | 63c4aa1f7e22c67be3328aefa8eed29b3041b423 | [] | no_license | migcarde/wutcookAPITest | a22dd2cef9262b3a7cde9dfe1f80be6d1b9750bf | 629dfecaad3da834651432f6bce51bd95f5b8144 | refs/heads/master | 2020-04-23T12:02:28.527354 | 2019-02-17T18:49:28 | 2019-02-17T18:49:28 | 171,156,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,435 | py | import copy
import numbers
from functools import partial
from bson import ObjectId, json_util
from bson.dbref import DBRef
from bson.son import SON
import pymongo
import six
from mongoengine import signals
from mongoengine.base.common import get_document
from mongoengine.base.datastructures import (BaseDi... | [
"mcaraballodelarosa@outlook.com"
] | mcaraballodelarosa@outlook.com |
c0678c6993c807e664ea8ec4b97700245f70a249 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/tmq.py | 27bf48cf32fb5e4b44eceb5c0914b07b54d6bd96 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3bdbcd894aca2764c5f613e61735a26b4dcd9682 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /egoi-api/models/contact_tags_bulk.py | 777973f2f1f9803fe088a3eca9cc254351553231 | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,818 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
703e9f7b689117fc619815d869344a90f7c007e8 | 977db9b2628400acb2c72585cabc35a832d76041 | /tp2/tp.py | a5958be940d63dbfdf86b1b1364cf31a3737cda6 | [] | no_license | cafehaine/m1_apprentissage | bd4b43712f5bbed6364943a2550121c7d3887c73 | 4eea7de9d88da745347f3a22412942e42c79aee1 | refs/heads/master | 2023-03-27T18:11:40.159422 | 2021-03-26T14:59:01 | 2021-03-26T14:59:01 | 338,993,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | import matplotlib.pyplot as plt
import seaborn as sns
import pandas
from sklearn.metrics import confusion_matrix, mean_absolute_error, mean_squared_error, r2_score
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier, KNeighborsRegressor
from sklearn.preprocessing impo... | [
"kilian.guillaume@gmail.com"
] | kilian.guillaume@gmail.com |
fdbb660f545830ff2eeba03c8119ffb287d3280f | d93ffd55c429d1969da3a2d469f97a474acaca7d | /274_h_index.py | 9a6d71d796d572e9d8f07f77780601e051ab0655 | [] | no_license | kingofyeti/leetcode-py | ed03a1f20f15c7711874b70d88740d99c8942823 | a7923bf36825b89279e2aa7a0f6cf868992b62b0 | refs/heads/master | 2021-01-10T08:26:53.189298 | 2016-09-28T01:44:56 | 2016-09-28T01:44:56 | 54,414,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import sys
class Solution(object):
def hIndex(self,citations):
if not citations: return 0
return [min(i+1,c) for i,c in enumerate(sorted(citations,reverse=True))]
citations = map(int,raw_input().split())
solution = Solution()
print solution.hIndex(citations)
| [
"kingofyeti@gmail.com"
] | kingofyeti@gmail.com |
23ac65e4c42dcf72e8a8fc9eba6fe8b732cc82a5 | 0f7399e476d35defec21220e8461acd36d65c6a4 | /summarization/models.py | 83c3e930699f069b1b490d9b56d8899b0eece8a1 | [
"MIT"
] | permissive | neda60/Adversarial-video-summarization-pytorch | ef51e5dd26fe43767b07f36eb630a9d38c4a0fbc | 65c93a98c7968770f753a0e7ad203ea03029728b | refs/heads/master | 2022-11-29T17:15:51.245725 | 2022-11-16T05:50:53 | 2022-11-16T05:50:53 | 244,706,277 | 0 | 0 | MIT | 2020-03-03T18:03:34 | 2020-03-03T18:03:33 | null | UTF-8 | Python | false | false | 5,773 | py | import torch
import torch.nn as nn
from configs.config import get_config
# output normalized importance scores
class sLSTM(nn.Module):
def __init__(self, input_size, hidden_size, num_layers=2, bidirectional=True):
super().__init__()
self.input_size = input_size
self.hidden_size = hidden_size
self.n... | [
"emna.amor8@gmail.com"
] | emna.amor8@gmail.com |
17f185d539e9e9a84b5e23a43d3d3a0689fa4294 | 1f56df755dac80e623fc417acdfe2dd7b591a429 | /controllers/ingreso_hospitalario.py | dad7214aa5a2254404b80b73adde686b32122efd | [
"LicenseRef-scancode-public-domain"
] | permissive | jorgelhd94/datacovid_web2py | 365b2628b8f0e3d9ef427d66a824952cbfab6e07 | 337aabd9fc604e2e1c488fc99ad5b874f18e8fcf | refs/heads/master | 2023-07-17T23:10:25.128443 | 2021-08-29T17:02:45 | 2021-08-29T17:02:45 | 396,048,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,625 | py | requirements = auth.has_membership(
"Administrador") or auth.has_membership("Ingresos Hospitalarios")
only_ingresos = auth.has_membership("Ingresos Hospitalarios")
@auth.requires(requirements)
def administrar():
datos = db(db.ingreso_hospitalario.id > 0).select()
return locals()
@auth.requires(requireme... | [
"jorgelhd94@gmail.com"
] | jorgelhd94@gmail.com |
5b585547b3cf9cdeb345b76bc99dfc53a08ae357 | db943c2eb9cd2a0c9e0b6c41ac199571f47f8dde | /comparison operator.py | 9d7c4d51a19f073fddbaddbaea477275e84c5e2d | [] | no_license | Bayodecode/python_coder | af329f17709087343bc83f9d5fe13756e32b8fab | 97e349803ec38cf5572c8ba021717bad9cd874d5 | refs/heads/master | 2023-08-08T20:34:51.676959 | 2022-07-03T02:33:38 | 2022-07-03T02:33:38 | 242,335,519 | 0 | 0 | null | 2023-07-20T14:54:09 | 2020-02-22T12:11:21 | Python | UTF-8 | Python | false | false | 209 | py | name = "Salvagejjgjgjjjjjfjfjjfj"
if len(name) < 3:
print("name must be at least 3 characters")
elif len(name) > 10:
print("Name should be maximum of 10 characters")
else:
print("Name looks good")
| [
"bayodeibironke@gmail.com"
] | bayodeibironke@gmail.com |
49fcde49e33b06de32a621cb299ecd5bffa8e3b9 | da82dda955093f4a8143d77075970cecd462c46e | /기본수학1/1712.py | 3fc5e164505732961638ff9db4b12df866a6b5a7 | [] | no_license | damagejun19/baekjoon | 36d2ab5917e08874e23690533d221de6c5747dae | 644c05807665cc60573b0a41858e395e964c365b | refs/heads/main | 2023-05-25T06:10:35.977178 | 2021-06-10T14:45:20 | 2021-06-10T14:45:20 | 372,837,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | fixed_cost, variable_cost, selling_cost = map(int, input().split())
if variable_cost < selling_cost:
count = - fixed_cost / (variable_cost - selling_cost)
print(int(count) + 1)
else:
print(-1)
| [
"noreply@github.com"
] | noreply@github.com |
137101cb034ff672b819f6c29ab68c10a0682bf3 | ad92cd039b916e18185ee8f792681e1e21340d11 | /io_scene_wmo/render/wmo/drawing_object.py | 500bdbc6805ac7e110dca68f867dd62939a025c9 | [] | no_license | DeKaDeNcE/blender-wow-studio | f5c29aa38c07d9581a93b9b150294e32df545df0 | cb2ac5fa1d80ff092f949b615cc14128a02dcad8 | refs/heads/master | 2023-07-08T10:25:00.793797 | 2020-11-22T17:22:28 | 2020-11-22T17:22:28 | 392,403,179 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | import traceback
import bpy
import numpy as np
from mathutils import Matrix
from typing import List
from .drawing_batch import M2DrawingBatch
from ..utils import render_debug
from ...wbs_kernel.wbs_kernel import CM2DrawingMesh, CM2DrawingBatch
from ..bgl_ext import glCheckError
class M2DrawingObject:
batches: ... | [
"skarnproject@gmail.com"
] | skarnproject@gmail.com |
bdf18b241ea65dc841d7ca7cb18e9bc44f9914b1 | 7c645634e46fb70b6bc134d0d12534529d831daf | /tests/pyarubacentral/get_switches.py | 2432117ecaa10f79e444bedd7634f8c65014e57f | [
"Apache-2.0"
] | permissive | rinehardramos/pyarubacentral | e0f06d0513528efbb595116ca137614c4be8b831 | c95b30463ca173231b277ba4f4cc4369368cbcaa | refs/heads/master | 2021-08-28T08:30:55.568439 | 2017-12-11T18:35:00 | 2017-12-11T18:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/env python3
import requests, json
from pyarubacentral import auth
def get_switches(sessiondata):
url = "https://app1-apigw.central.arubanetworks.com/monitoring/v1/switches"
payload = {'access_token': sessiondata['access_token']}
headers = {"Accept": "application/json"}
response = requests... | [
"michael@michaelrosejr.com"
] | michael@michaelrosejr.com |
9d648a90f5b5488ac68f7b2ebec5518780efa0fd | 04c06575a49a3f4e30e4f3f2bf2365585664d2e8 | /Python_leetcode/24_swap_nodes_in_pairs.py | 6d2c095fc982f7793a0cc9d932a27ca9930222c8 | [] | no_license | xiangcao/Leetcode | 18da3d5b271ff586fdf44c53f1a677423ca3dfed | d953abe2c9680f636563e76287d2f907e90ced63 | refs/heads/master | 2022-06-22T04:45:15.446329 | 2022-06-17T13:03:01 | 2022-06-17T13:03:01 | 26,052,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def swapPairs(self, head):
dummyhead = ListNode(0)
dummyhead.next = head
curhead = dummyhead
while curhead.... | [
"xiangcaol@xiang-m01.vmware.com"
] | xiangcaol@xiang-m01.vmware.com |
0235ff898c02b1ea6cffade6cdbd16bf275f62db | 054ddbc1fa0e1b1d0a999bbe877591e942aa0f12 | /python/02-python高级-2/07-调试程序.py | fe40b41d92b7c298c62ebdd30a2a6a9627d046fd | [] | no_license | VinceBy/newone | 66c8cf77159344c7d2ec196233d58a412e1c3073 | ffc6a0d9ccbdb3f66c4995834f01e3bc2df0415d | refs/heads/master | 2022-02-22T23:00:21.720497 | 2019-07-09T08:47:25 | 2019-07-09T08:47:25 | 195,958,240 | 0 | 0 | null | 2022-02-12T09:19:32 | 2019-07-09T07:42:20 | Python | UTF-8 | Python | false | false | 337 | py | #coding=utf-8
import pdb
def add3Nums(a1,a2,a3):
result = a1+a2+a3
return result
def get3NumsAvarage(s1,s2):
s3 = s1 + s2 + s1
result = 0
result = add3Nums(s1,s2,s3)/3
return result
if __name__ == '__main__':
a = 11
# pdb.set_trace()
b = 12
final = get3NumsAvarage(a,b... | [
"1260787968@qq.com"
] | 1260787968@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.