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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9137b0a07320448c05ca54c3dde46318d637b4c1 | 8d26c6d3836c0580d37d8e71d02f113e009532bc | /tests/debug/test_controller.py | 5760cd5416a84b680056b8fffcc6eb7990767d00 | [
"MIT"
] | permissive | fchauvel/rasp-machine | 3bd5b62c5dfcb7474f948dbe7bfc1377a59fe0bb | 140fd3bb38d5c7933389c5a010fd4fcecc607876 | refs/heads/main | 2023-04-29T14:02:22.174472 | 2021-05-22T08:55:04 | 2021-05-22T08:55:04 | 365,338,342 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | #
# This file is part of rasp-machine.
#
# Copyright (C) 2021 by Franck Chauvel
#
# This code is licensed under the MIT License.
# See LICENSE.txt for details
#
from rasp.debug.controller import Break, DebugController, Quit, SetAccumulator, SetMemory, \
SetInstructionPointer, ShowCPU, ShowMemory, ShowSource, Step... | [
"fchauvel@Francks-MacBook-Air.local"
] | fchauvel@Francks-MacBook-Air.local |
58f06df37bdf3aa5057e2dc27ba176ff46525400 | 6178e1601a88aaf05d19b4aabf4395d96513a3ae | /RockPaperScissors.py | 3ca80590a73c21bc450635ba6dc621fdc7f2bd58 | [] | no_license | chanan-hash/RPS---rock-paper-scissors | 3ceee5da74ee0aeea74acd182df458a166380180 | 7100936ce97b1fbfcc6a00f0b5a3c0ea794edb39 | refs/heads/master | 2022-11-30T09:01:18.939263 | 2020-08-08T20:23:45 | 2020-08-08T20:23:45 | 286,111,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | # lets creat our pc by random
import random
# the moves that the pc can choose
moves = ["rock", "paper", "scissors"]
keep_playing = "true"
countC = 0
countP = 0
countT = 0
while keep_playing == "true":
cmove = random.choice(moves)
pmoves = input("what is your move: rock, paper or scissors ?")
print(... | [
"chananhelman@gmail.com"
] | chananhelman@gmail.com |
804b7d2aeaf690de61b0b87bbb40796c12287a2a | dfaf5cd5607c2c4e55ec9173d2d7ca12842db129 | /104_findDiagonalOrder.py | add0e471b6091ea711a6ab960ca377f92f09bd77 | [] | no_license | khinthandarkyaw98/Leetcode | 2b0be053931b3ddec6309d136228dae1f4c61b2b | 578f2a38d8a41864ebfd6c4e941f6915c7c0a508 | refs/heads/master | 2023-06-24T02:34:59.399319 | 2021-07-14T19:37:14 | 2021-07-14T19:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import collections
class Solution:
def findDiagonalOrder(self, nums: List[List[int]]) -> List[int]:
res = []
q = collections.deque()
q.append((0,0))
while q:
row, col = q.popleft()
if col == 0 and row < len(nums)-1:
q.append((row + 1, ... | [
"noreply@github.com"
] | noreply@github.com |
c8cfdcbe34ea2f3661ecc2ae9ab3418ab1b65fca | 593a914230467f6dd37af2f58a552f9ed0beb691 | /movierater/urls.py | fc9f48ed293027e419d2dbb44077d9a80999b60d | [] | no_license | tom3108/Django-Restfull-API | 3b816aa02742887593bd5274355cbb95dd7d4cf0 | a749c8f4c0b6f2f09c53247528f1be7935ba78fa | refs/heads/master | 2022-11-14T04:43:02.821656 | 2020-07-05T21:59:11 | 2020-07-05T21:59:11 | 275,021,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.urls import include
from api import urls
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include(urls)),
]
| [
"t.madziara@gmail.com"
] | t.madziara@gmail.com |
f16456d6543dfb8a815b5f970e49aa59bfc89f36 | 8848d3340d83a0a6e3d6ab1a88504655ba380215 | /asset/migrations/0015_auto_20170905_1604.py | 8b42a0be9776b25d27ecf3143641f2ff50327671 | [] | no_license | ezbuy/cmdb | 51480e38492ee63717cdb5489231d80ac69e0bc0 | 9a3649f952001075ae1cfa4578fbc47505f5bd62 | refs/heads/master | 2022-12-12T05:15:41.282991 | 2018-07-13T07:42:25 | 2018-07-13T07:42:25 | 121,585,817 | 12 | 11 | null | 2022-12-08T00:00:31 | 2018-02-15T02:56:02 | Python | UTF-8 | Python | false | false | 766 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-09-05 16:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('asset', '0014_gotemplaterevision'),
]
operations = [
migrations.AddField(
... | [
"pengzihe@ezbuy.com"
] | pengzihe@ezbuy.com |
83cfc39f2209d26c0a9c99269007926b5565da96 | 84268b920e7959590d1bf11a883dd7619f783759 | /app/app.py | 926cdfe9c020de578ebacfc7f8cc8d90a0556efa | [
"MIT"
] | permissive | teguh87/flask_scrappy | 37071bf82a4ffae9b179ff2198735aee87f3e33e | 9d477f550aa8bf1579ac60ece4949a78f83258ed | refs/heads/master | 2020-03-28T08:06:43.909417 | 2018-09-10T00:51:24 | 2018-09-10T00:51:24 | 147,945,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import os
from eve import Eve
import sassutils.wsgi
app = Eve()
app.wsgi_app = sassutils.wsgi.SassMiddleware(app.wsgi_app, {}) | [
"teguh@finmas.co.id"
] | teguh@finmas.co.id |
22a4c9a7a54a2b11a51889f8c59e7bff6a55fe19 | 68e71bb1f07d1daf047a528127497a015f970b38 | /scalex/job.py | 0832342dc4807d90fbd4ca479183f45a65910a2b | [] | no_license | scalextremeinc/scalexsdk | 46c4ca79476b33df4e128eac7113c855d9201645 | 5daa1bbe6948b49f12915847e3c8755537f8a2e8 | refs/heads/master | 2021-01-19T03:23:46.129788 | 2016-02-22T02:32:41 | 2016-02-22T02:32:41 | 4,515,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,956 | py | '''
@undocumented: __package__
@undocumented: create
'''
import urllib
import urllib2
import json
import datetime
import time
#
from scalex import userinfo
from scalex import script
# JOB API
# 3.29 + // restJobController.testCreateJob();
# 3.30 + // restJobController.testRunInfo();
# 3.31 + ... | [
"midnacc@gmail.com"
] | midnacc@gmail.com |
e5a585746b41b9ab864636f386143fac7a8d2f36 | 4d1aadff2aec7681f9b34b1b4e31106bc313528d | /twilio_whatsapp.py | edf5b82ef400566c4092cf7f30112a32b07b1724 | [] | no_license | andreivirtosu/canyon_outlet_checker | ff20a3b3da4b8a6a7e4735ac406033980e73f2a6 | ed10b80165b720bc0f3ff04ca358b88ebc88331a | refs/heads/master | 2023-01-21T06:41:15.998119 | 2020-05-24T14:06:18 | 2020-05-24T14:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from twilio.rest import Client
import smtplib
import settings
def send_whatsapp(message):
client = Client(settings.ACCOUNT_SID, settings.AUTH_TOKEN)
message = client.messages.create(
from_=settings.WHATSAPP_FROM,
body=message,
... | [
"andrei.virtosu@gmail.com"
] | andrei.virtosu@gmail.com |
989cebdde1f1edb13d8b2c625c233a9d8db44468 | cd04112e1b8995cabb3464fe408c308aa3005bdd | /pylib/appy/pod/renderer.py | cd28abab24a9009d15aec2f623c459106b8ec56f | [] | no_license | vampolo/cacerp | 6fc132bf827fb9ec245f32d6caf6d4c5ab827e2d | 57aef2008ae4cb6e783d46b0cfc7cfc32b16a54c | refs/heads/master | 2021-01-19T05:28:57.675300 | 2011-03-28T17:17:24 | 2011-03-28T17:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,528 | py | # ------------------------------------------------------------------------------
# Appy is a framework for building applications in the Python language.
# Copyright (C) 2007 Gaetan Delannay
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# a... | [
"vincenzo.ampolo@gmail.com"
] | vincenzo.ampolo@gmail.com |
c3cfdf6b8b26ef6a5ba2d41b9255b819f05c9320 | 4448b231f32cafd1c4184d009befef2387a66d97 | /Session10/drill2.py | 21480b98ed32c1cd0faf03b9281f3b8a1dc5e8f8 | [] | no_license | NguyenTheGiaHuy1/NguyenTheGiaHuy-Python-B08 | 5c25b78888b8f53105f70982b051a45c239bedc1 | c010c3723550078e6786d81c824dc56552677451 | refs/heads/master | 2020-07-25T23:02:56.289781 | 2019-11-08T15:24:09 | 2019-11-08T15:24:09 | 208,450,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | tu_dien = {
"name" : "tên",
"left" : "bên trái",
"right" : "bên phải",
"pen" : "bút mực"
}
print(tu_dien) | [
"trankimdung6479@gmail.com"
] | trankimdung6479@gmail.com |
f36498b94c34dadcda318c0658bad0c3f69ef38d | a7173ccfeb2c22371b077939b1007d2a9f7ecd91 | /etl/lib/test_keymap.py | 30d3d6b6493763b595d377e4bf45860ab0594e92 | [] | no_license | RealMassive-Archive/ETL | 6b8d41c77c141e8c74a02e4b282c9206ca24950b | 018ca8dc01d9cf847dcad09ec5dfc4e206550398 | refs/heads/master | 2021-06-06T20:09:23.937301 | 2016-10-17T18:53:06 | 2016-10-17T18:53:06 | 60,286,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import os
from keymap import KeyMap
def test_keymap():
km = KeyMap()
km.insert(1234, 'building', 'abcde', 5678, 'building')
assert km.get_new('building', 'building', 1234) == 5678
outfile = '/tmp/keymap.csv'
km.dump(outfile)
assert os.path.exists(outfile)
os.remove(outfile)
| [
"clifalison@gmail.com"
] | clifalison@gmail.com |
606a71da75b0fde28073e51976b220804b4d1857 | 4a6c6fcb62383a674788687d66a1f3a5bf72305e | /entrypoints/cli/main.py | 8db9ab0e3250d36bcb228cc686a92fd7f2c03404 | [] | no_license | nitor-infotech-oss/python-event-driven-code | 35b0ff8eb2d2bd135b50937ea9e7cfa1ca94426e | 3c4c3e73fce8d91d067d0fa17b450b3e0e3d8b54 | refs/heads/main | 2022-12-27T03:43:35.426521 | 2020-10-13T16:11:13 | 2020-10-13T16:11:13 | 313,206,473 | 0 | 0 | null | 2020-11-16T06:07:14 | 2020-11-16T06:07:13 | null | UTF-8 | Python | false | false | 300 | py | from services.user_service import UserService
from infrastructure.dynamodb.user_repository import UserRepository
from domain.user import User
if __name__ == "__main__":
user = User(id="1",first_name="a",last_name="b")
user_repo = UserRepository()
UserService(user_repo).create_user(user) | [
"vipidnas2@gmail.com"
] | vipidnas2@gmail.com |
8edae035598a6bff9f6a7325d526abfd07cb3fab | e5ba55ac56d2d07aeebd7253fbe5d186196c9a52 | /catkin_ws/catkin_ws/build/iai_kinect2/kinect2_registration/catkin_generated/pkg.installspace.context.pc.py | 85e878c71d08a7cf827ee4e610db3258f4e5642e | [] | no_license | masiro97/darrsm | 5305a3e7c1fba2635a4925b9e079f45b40162862 | b881d00427d2af5d75ca509a191e57f2890e1ece | refs/heads/master | 2021-05-10T21:57:17.760536 | 2018-01-20T15:13:56 | 2018-01-20T15:13:56 | 111,084,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/cun/catkin_ws/install/include;/usr/include".split(';') if "/home/cun/catkin_ws/install/include;/usr/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_... | [
"estrk7120@gmail.com"
] | estrk7120@gmail.com |
f8f8d0fcc0626e8acc6e68b8e7a68732519ad1ab | e34ea9281833c412a68ccaba4eb5d51f73c41c15 | /triangle3.py | e822ee2aa8d42f5fdb8d97f482ed8517634d0369 | [] | no_license | RansomBroker/shape-python | 035083a2712b5e66edfbcbb7391c20d706447847 | 4a34420aac127d9c347d6e62bdbd4391d7556522 | refs/heads/main | 2023-01-21T04:53:41.335889 | 2020-11-23T07:17:24 | 2020-11-23T07:17:24 | 315,227,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | n = 5
for i in range(n):
print(i+1, end=' ')
for j in range(n-i):
print(j+1, end=' ')
print() | [
"yadisoke@gmail.com"
] | yadisoke@gmail.com |
bde29ad2458262b1c8ab48e3fef1c35acf7d9092 | 0cf396a646638f485a8ce0da93b0aa1f81bf13b7 | /counter.py | dfd68121ae433a792525d4e765e57ca569828f4b | [] | no_license | Siriapps/hackerrankPython | c698ee77bb3d59f6b1833b63c2916e54dda0e45b | 3ceb2600db536170e643e830520e7f9c50053d9b | refs/heads/main | 2023-04-05T05:46:24.071778 | 2021-04-16T02:06:17 | 2021-04-16T02:06:17 | 311,360,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # https://www.hackerrank.com/challenges/collections-counter/problem
from collections import Counter
n = int(input()) # Number of shoes
shoes = Counter(map(int, input().split())) # Number of shoes in stock
customers = int(input()) # number of customers
total = []
for i in range(customers):
size, price = map(int,... | [
"siriapps3@gmail.com"
] | siriapps3@gmail.com |
12b17a01e7b342ba83df6ec57ad8bed9335437d0 | ecceece5136fa6d7413b1589595407b8bc636757 | /src/readTexturedOBJ.py | fff3fe0f08d88c1bf9290ce9d2adccf78e014604 | [] | no_license | oarriaga/PyGPToolbox | 3ad7c4484deabac1434185182b2b97efabf86002 | 74c695f0857573b9c2f17c0d3ddeb226b1b50277 | refs/heads/master | 2020-03-28T06:14:34.346998 | 2018-03-20T15:48:15 | 2018-03-20T15:48:15 | 147,822,655 | 3 | 0 | null | 2018-09-07T12:49:40 | 2018-09-07T12:49:40 | null | UTF-8 | Python | false | false | 2,160 | py | from faceNormals import *
import numpy as np
def readTexturedOBJ(filepath):
V = []
F = []
TV = [] # UV coordinate
TF = [] # face list for texture vertices TV
with open(filepath, "rb") as f:
lines = f.readlines()
while True:
for line in lines:
if line == "":
... | [
"htliu1992@gmail.com"
] | htliu1992@gmail.com |
8c0eca11dc07e53048fb9c39b4c4dd7b1179ed1f | cd79634eb30f8975bcf05c15c7be61bb6b7e6ddd | /WebCrawler/experiment.py | bba67e817eed31a52e974cef1bd0f7fe48d9725e | [] | no_license | memdreams/WebCrawler | 5f25648774d47be0da11a6ea4808862a53430097 | 54dc9100f4fc094958d52ef95e89fe5ad740c825 | refs/heads/master | 2020-03-21T23:47:57.918871 | 2018-08-11T01:36:21 | 2018-08-11T01:36:21 | 139,206,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py |
from lxml import etree
from lxml import html
text = '''
<div>
<ul>
<li class="item-0"><a href="link1.html">first item</a></li>
<li class="item-1"><a href="link2.html">second item</a></li>
<li class="item-inactive"><a href="link3.html">third item</a></li>
<li class="item-1"><a h... | [
"memdreams@me.com"
] | memdreams@me.com |
c9a4c97fec0969912c7f9e3728790ea187ad6bd1 | a72e37ecb0fa6169390fb0fad5a55ac98b17e63e | /venv/bin/pyreverse | 0be0591e4ddd891c7413406242def1866d245f2c | [] | no_license | imhussein/btre_python | 896bc6048309c81876f9536cfe24c55430635ed3 | a2540afa7ceef3f6147ff2b5537a62cdcd306616 | refs/heads/master | 2022-10-04T08:38:03.295859 | 2020-06-07T09:44:13 | 2020-06-07T09:44:13 | 270,259,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/home/mohamed/btre/venv/bin/python3.7
# -*- 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())
| [
"hussein@blockgemini.com"
] | hussein@blockgemini.com | |
7db6ac1d7bbede773a656374c72c50f123b81a47 | 06816e83a574cc3e64ebbd3cc2d61a7832da01d7 | /staircase.py | dc451923289ce17f8e92e1e3e1f52d7d56be4c35 | [] | no_license | d1joseph/HackerRank-problem-sets-and-solutions | 48edb69206f17b7d5063600d4c1544c45e175ee6 | d27d509d2fe8f747b57faa48cf7829b12663f3ca | refs/heads/master | 2023-07-06T03:24:05.582429 | 2023-07-03T10:03:22 | 2023-07-03T10:03:22 | 239,671,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | #https://www.hackerrank.com/challenges/staircase/problem
#print a stair case of size = n
'''
#
##
###
####
'''
#the above is an example of n = 4, where the base = height of the staircase.
# constraints 0 < n =< 100
n = int(input())
def staircase(n):
for i in range(n):
string = ' ' * n
print(string.... | [
"djnholdings@gmail.com"
] | djnholdings@gmail.com |
354bddead8b362c4a86b3458ab7824512ff5a9ec | c5e866610729ba4258054900affeda1469fcf2e0 | /TokenType.py | 575f4c172ce03f7cadf69a8b66004c9e9384bd8b | [] | no_license | connorjan/lox | d5e9635ccccc6cb700bb1b2bfc7e4cec0bb1fad1 | 30c1c82bcb5eb91a363e19d3792a5b973bdd66cf | refs/heads/master | 2023-08-09T00:17:46.327750 | 2023-07-31T02:10:44 | 2023-07-31T02:27:16 | 174,078,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | from enum import Enum, auto
class TokenType(Enum):
# Single-character tokens
LEFT_PAREN = auto()
RIGHT_PAREN = auto()
LEFT_BRACE = auto()
RIGHT_BRACE = auto()
COMMA = auto()
DOT = auto()
MINUS = auto()
PLUS = auto()
SEMICOLON = auto()
SLASH = auto()
AMPERSAND = auto()
... | [
"connor@connorgoldberg.com"
] | connor@connorgoldberg.com |
181d8eeac78ec6e4bb15132189a0c9e3c534ec7b | 88b198a3def52beda25891b749f5d3c8a7d44f20 | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/some_object.py | 2d8e71360af0abadd0ceaa32aa82ce4ccd9ddce5 | [
"Apache-2.0"
] | permissive | weaselflink/openapi-generator | 03e92fe5d2680a04bc136e83c6c7317a6db7774d | 129fd0ad5c95b8de90ba5a6350de725a12019071 | refs/heads/master | 2022-10-05T09:13:00.427796 | 2022-05-30T09:53:26 | 2022-05-30T09:53:26 | 207,326,774 | 0 | 0 | Apache-2.0 | 2023-09-05T10:22:02 | 2019-09-09T14:18:30 | Java | UTF-8 | Python | false | false | 2,756 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | noreply@github.com |
f22b08e51bb1d8ba20ff0b9ace6282205d0751dd | c883bf3cc158aec617c3c879c5fbb7f75baccb64 | /Community/bulk_delete_mac_address/migration.py | b2550279be021d596ae0122397c4609fb23f6dfa | [
"LicenseRef-scancode-commercial-license",
"Apache-2.0"
] | permissive | bluecatlabs/gateway-workflows | 46b3ddd5f743beeabd91a6d943530969d62daf73 | 60b36434e689c3ef852ab388ca2aae370e70c62d | refs/heads/master | 2023-09-05T20:57:11.804452 | 2023-08-23T21:51:59 | 2023-08-23T21:51:59 | 107,717,495 | 45 | 87 | Apache-2.0 | 2023-09-07T07:43:47 | 2017-10-20T19:20:29 | Python | UTF-8 | Python | false | false | 2,161 | py | # Copyright 2021 BlueCat Networks (USA) Inc. and its affiliates
# -*- coding: utf-8 -*-
#
# 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
#
# Unle... | [
"rtamura@MP14RTAMURA2.local"
] | rtamura@MP14RTAMURA2.local |
c4fd421d68ff28a7640dd58d8d940a722bc01081 | a78272823c369fdffeb6133fbc7c95f8ffbdf3ba | /predict_a_language.py | e3bf5e257b4e28cc68d04deb63673af5d5daab12 | [] | no_license | lucaswannen/source_code_classification_with_CNN | a0a5f0151cad6dbb37ff0d205a613b0f8857223c | 8d1d581b0df51cef4849f4bb3b91131cbcf3450c | refs/heads/master | 2023-04-29T22:50:17.740119 | 2021-05-22T21:10:00 | 2021-05-22T21:10:00 | 368,924,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,485 | py | # Ceci est un script permettant de prédire la langage d'un script contenu dans un fichier.
path_model = 'models/model_final.h5' #Chemin du modèle sauvegardé
#Imports
import numpy as np
import matplotlib.pyplot as plt
import cv2
from os import listdir
from os.path import isfile, join
import random
from tensorflow.... | [
"lucas.wannenmacher@insa-rouen.fr"
] | lucas.wannenmacher@insa-rouen.fr |
2fd81783c34a50ffcd311b0c373bbea8c1419435 | 8a2c11d6997c43f163a0a2fa650ff9f98baa7562 | /packet.py | d4130043f42a40d1ee9faeb53c967a3891315929 | [
"BSD-3-Clause"
] | permissive | kkaszyk/pytap | 29445f016816610e8b9b42f6365dc1b992bf97e9 | fda709bdcb9974543dc94dedf9d730884f459159 | refs/heads/main | 2023-03-09T02:05:12.728297 | 2021-02-12T13:57:34 | 2021-02-12T13:57:34 | 334,768,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | class InstructionPacket():
def __init__(self, pc, num_instructions, dependent_addrs):
self.pc = pc
self.num_instructions = num_instructions
self.dependent_addrs = dependent_addrs
def print(self):
print("Arithmetic: " + str(self.num_instructions))
class LoadPacket(InstructionPac... | [
"kubakaszyk@gmail.com"
] | kubakaszyk@gmail.com |
06d8213d60b976c8a6249ca22c1d77c164221103 | 633bd08102d17b2e622cd951b7f7adfca1a3f67b | /web/artproject/secondapp/apps.py | bc97a6d25c31fa11fd45cb602860595d693751ac | [] | no_license | joohayoung/waple-art_hackathon | 41b1f71c7e98e7f0902f570f3c2986ebd8f91933 | b8f83328ecf348be42428ecb815577244e5b18c3 | refs/heads/main | 2023-01-21T14:40:07.112704 | 2020-12-07T14:46:14 | 2020-12-07T14:46:14 | 319,350,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class SecondappConfig(AppConfig):
name = 'secondapp'
| [
"hayjoo0723@gmail.com"
] | hayjoo0723@gmail.com |
3dda82b466bafbcaa40be352687a374972074d35 | 098861e76fad8355878e8762226f8282ff7b9d0d | /pyvizio_speaker/api_command.py | 4faefd2a067425af441cc575206cba3a68dea110 | [
"MIT"
] | permissive | jeradM/pyvizio-speaker | 8e1c15f648e3e057da78c1698fe91a994810deb7 | e57ace5b1abf573692302822cd6cf7cd8d38654e | refs/heads/master | 2020-03-14T05:40:35.355984 | 2018-04-29T16:32:52 | 2018-04-29T16:32:52 | 131,469,256 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | from .util import HashValsHolder, Endpoint, KeyCode
from .api_response import Response
class Command:
def __init__(self, value=None):
self._hash_vals = HashValsHolder.instance()
self._value = value
@property
def hash_val(self):
return self._hash_vals.get_hash_val(self.name)
@... | [
"jerad.meisner@gmail.com"
] | jerad.meisner@gmail.com |
5277b890a3ae51ed650089fc6477697b688a0a18 | caa3befc9805d067b23f7e6fad3404c039593ca4 | /telegram_bot/tg_aria2_bot.py | b246dcb4546bdd0fe504dbdf81cffd1d35c1d53d | [] | no_license | mengyyy/learn_python | 95517c9407a0e6c0aea4ad6ff86cbea770aff737 | 523b0724933fd5e91c5c74fe8f4c5d0c68fc43a0 | refs/heads/master | 2021-01-22T19:25:49.818961 | 2018-08-31T17:11:01 | 2018-08-31T17:11:01 | 85,198,020 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,836 | py | #! /usr/bin/python3
# -*- coding:utf-8 -*-
import telegram
from telegram.ext import Updater
from telegram.ext import CommandHandler
from telegram.ext import MessageHandler, Filters
from telegram.ext import RegexHandler
from telegram.ext import BaseFilter
import logging
import cfscrape # apt-get install nodejs pip3 in... | [
"noreply@github.com"
] | noreply@github.com |
a62680358221a10ed97929f60004a3daf96d38ca | 8a9cfc55d18e99f6648ae2679b835fee5eaea6ec | /notebooks/407-person-tracking-webcam/deepsort_utils/tracker.py | 6a1eb6dfe3eb7c286244becd11e61e00b40aa04f | [
"Apache-2.0"
] | permissive | HoTaeWang/openvino_notebooks | 705ead404d49f59d50f689a31da2026fc9968b5f | cfa4d8b7a130e68a5240a40334c4db308fbdc20d | refs/heads/main | 2023-05-27T06:08:24.014685 | 2023-05-19T20:42:30 | 2023-05-19T20:42:30 | 360,728,400 | 0 | 0 | Apache-2.0 | 2021-04-23T01:29:25 | 2021-04-23T01:29:24 | null | UTF-8 | Python | false | false | 5,225 | py | import numpy as np
from . import kalman_filter
from . import linear_assignment
from . import iou_matching
from .track import Track
class Tracker:
"""
This is the multi-target tracker.
Parameters
----------
metric : nn_matching.NearestNeighborDistanceMetric
A distance metric for measuremen... | [
"noreply@github.com"
] | noreply@github.com |
608a6602c909e3eb19077fd474d488e6b05d6a21 | 37c31ea1b52aa65db8b0477b742b513528e81df0 | /pokemon/pokemon/urls.py | da5b89d0d81db1e4193a507973e08ced46813a16 | [] | no_license | Jkamo84/pokedex | 5f0477da442ac96f3f9d40c162c3778c994e2841 | 0880db14263f7bd50492ae2eecf6f544ad215625 | refs/heads/main | 2023-01-24T20:13:20.507556 | 2020-11-15T20:52:57 | 2020-11-15T20:52:57 | 313,110,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.contrib import admin
from django.urls import include, path
urlpatterns = [
path('pokedex/', include('pokedex.urls')),
path('admin/', admin.site.urls),
] | [
"juanplazasb84@gmail.com"
] | juanplazasb84@gmail.com |
c0e2db5983dbfcfad0a85134151f3dbc72727491 | 9ed45a701dc532bf3e26a506525c35be1f2a2c5f | /DjangoWStyle.py | 2dfade4b378f09620f9814460e32882a3df42d45 | [] | no_license | caseycesari/vectorformats.DjangoWStyle | 13d0ee3e3f436145eeb78f24de9e5dc300e7aec2 | 8ceebe0daf5dbbac8b943ea948fd228379edcecf | refs/heads/master | 2021-05-26T14:26:52.333285 | 2012-03-24T23:33:47 | 2012-03-24T23:33:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | import pickle
from vectorformats.Feature import Feature
from vectorformats.Formats.Format import Format
class DjangoWStyle(Format):
""" This class is designed to decode a Django QuerySet object into
Feature.Vector objects, with some additonal properties and
style settings for Leaflet (leaflet.cloud... | [
"cpthomas@gmail.com"
] | cpthomas@gmail.com |
a197523a71e001c0bb1291d174a1846b0a80b7da | ec9d98c21beb3f5cc53da6207b8b84c64d3dbb67 | /zhijiadaren/migrations/0006_auto_20190831_1528.py | be7429abb549708fd96953693b094bfce93ac543 | [] | no_license | luffy9125/kediaoCenter | 8adf45298b13cbbe9bbc03774d2122ba0b1eb77f | ccc2eadfed0e3cfe659d51b7adb7d0a79c866211 | refs/heads/master | 2020-08-17T22:11:12.926416 | 2019-10-17T06:48:53 | 2019-10-17T06:48:53 | 215,716,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # Generated by Django 2.0 on 2019-08-31 07:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('zhijiadaren', '0005_blog_readed_num'),
]
operations = [
migrations.CreateModel(
name='ReadNum',
... | [
"luffy9125@163.com"
] | luffy9125@163.com |
35ba53add2b8261e7418dac4ec635415e0442b84 | 069ded12974b29642037adbced8ec0f8327ab543 | /component/bluetooth/scanner.py | 96d2069e4290e581ca2e7c427eab7664be4fb028 | [] | no_license | EricaTheRhino/brain_django | 1b521b23803d455b65ccb9137b1e89117be6cab0 | 5b2e20fd66ec6b61ac16792c82ddfca9af814d9b | refs/heads/master | 2016-09-06T11:01:31.488388 | 2015-09-11T16:01:31 | 2015-09-11T16:01:31 | 31,730,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import dbus
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
import gobject
import requests
import os, sys
import json
fpid = os.fork()
if fpid != 0:
sys.exit(0)
cache = {}
filtered = [
"00:80:98:EA:D3:CD",
"00:80:98:E9:1F:BB",
"00:1E:C2:9B:B6:A0",
"00:25:BC:68:E9:F6",
"00:1F:5B:... | [
"mjewell@gmail.com"
] | mjewell@gmail.com |
5fa42b561291cec7207cee64b180cf8d69d352c1 | 90411561b2e01319d77f2fb86cf187867fe96ff1 | /FirstProj/src/Words.py | 6371eb1b576eeafd25568c1a9e2a424aa39cdf01 | [] | no_license | datarpita/Pythonics | e327fd9d5b78b0d2159c6aa2b0f20f4e7b1550ca | 9ffa5c6b2ad533ee61aa39a764f162ab6814959e | refs/heads/master | 2020-04-07T04:11:34.396518 | 2018-12-06T03:24:56 | 2018-12-06T03:24:56 | 158,043,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | '''
Created on Nov 18, 2018
@author: Mgmi
'''
'''
This is doc string
This function finds the words in sentences
and stores them in a list
@param sentence_list: a list containing all the sentences
@return: a list containing the individual words
'''
def find_word(sentence_list):
word_list=[]
for sentence in sen... | [
"arpita.datta@cognizant.com"
] | arpita.datta@cognizant.com |
7fb68897db9841bc5319ff7e955988b1d4194678 | d37c861ac45f97ab83957f08b320e76b4deef687 | /orders/migrations/0001_initial.py | 0fd2b0904ec95ab934476ffee280e4acc3a865a8 | [
"MIT"
] | permissive | MamvotaTake/Django-Application | ac2104039f3e585ce6b778905657cdbabafb647d | 81fbb01d6cd5cc4a91f6ba68c21f2a1e1d21a37e | refs/heads/main | 2023-08-12T20:57:59.350631 | 2021-10-20T08:15:50 | 2021-10-20T08:15:50 | 416,573,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,194 | py | # Generated by Django 3.1 on 2021-09-21 16:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
('store', '0002_variation'),
]
operations = [
migrati... | [
"tooyoungmamvota@gmail.com"
] | tooyoungmamvota@gmail.com |
515ca087d10d3513ea2227b5a61def1e683100d4 | 8143d965b9b61757f79a5e0a03ebf338e5a3f22e | /backend/main/routes/user_routes.py | 03da09e62fe3ad2c1804ba2d570cac620e66ef1c | [] | no_license | nchenche/alifs-api | 8ea35c39a77276295863a6949dc3ef01e23d635b | d3a3e905aed4002026db6d783f12140e2eb89e17 | refs/heads/master | 2023-06-25T10:03:49.051586 | 2021-07-16T12:18:49 | 2021-07-16T12:18:49 | 337,019,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for, jsonify, abort, make_response
)
from main import db
from main.services import user_service
from main.models.user import User
bp = Blueprint('user', __name__, url_prefix='/alifs/api/auth')
@bp.before_app_request
def lo... | [
"nicolas.chevrollier@laposte.net"
] | nicolas.chevrollier@laposte.net |
b47c8ba36e0258e136cfd4494a9301f2fb2e54b3 | 70b65dfa4c3ef89bb8ffc633f2033ab3d2c19fd6 | /back/src/migrations/versions/9fbe12168226_.py | 6f8110d1d9a523a2a027e734bb1389796e547a43 | [] | no_license | mayu-snba19/hacku-vol4 | c210244ed180491fac7f1879d025667c841878bd | 9ab881b85f8145122a61f4f5cb90fad61786f4c3 | refs/heads/main | 2023-04-14T02:37:18.213910 | 2021-03-24T02:03:56 | 2021-03-24T02:03:56 | 343,309,315 | 2 | 5 | null | 2023-05-23T02:14:09 | 2021-03-01T06:11:11 | TypeScript | UTF-8 | Python | false | false | 1,652 | py | """empty message
Revision ID: 9fbe12168226
Revises: 1e13dfec183c
Create Date: 2021-03-05 01:52:51.936763
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '9fbe12168226'
down_revision = '1e13dfec183c'
branch_labels = None... | [
"ugax2kontomo0314@gmail.com"
] | ugax2kontomo0314@gmail.com |
b942645e69d7dd1d7dcbcdb08855353708ff84f2 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /components/autofill/content/common/DEPS | c3505fa54c3ecf8453d1bfdeff494e6ca31545ae | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 58 | include_rules = [
"+content/public/common",
"+ipc",
]
| [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net | |
087e38af3d68a8694db3c9ceef3cd62c4bab3bb9 | ab40c4af90055b2387a4bf0fe2863941debfa7f1 | /setup.py | 16d426352a56fe27014f9fde737c27ee119d8c0b | [] | no_license | Granitosaurus/pq | a30ccad8db4044239beb2eb08502eb34b233c635 | cb716ca8df59583c2d8e448d14f84a65a00b782a | refs/heads/master | 2021-05-04T05:21:54.008379 | 2017-09-29T04:32:52 | 2017-09-29T04:32:52 | 70,983,383 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from distutils.core import setup
setup(
name='pq',
version='0.1',
packages=['pq'],
url='https://github.com/granitosaurus/pq',
license='GPLv3',
author='granitosaurus',
author_email='bernardas.alisauskas@gmail.com',
install_requires=[
'click',
'parsel',
'dicttoxml'... | [
"bernardas.alisauskas@gmail.com"
] | bernardas.alisauskas@gmail.com |
e9ff54520e19034bdda3afa301b087d5db126dfa | 376b679da9707b91cedb2b9d490af879ed4697ce | /fft/real_imag/main.py | 40bfd5e4cdc0ad4bee502f4fefb76b1f8ac3b9d3 | [] | no_license | Srishti013/Time_Series_Classification | 17d9cbab1557fd4c150331026d2b176d0befb948 | 0708fd57d4611db84f09ee7e3a53f06540bbef5c | refs/heads/main | 2023-08-23T08:09:40.190565 | 2021-10-27T06:39:19 | 2021-10-27T06:39:19 | 381,101,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,178 | py | import funct as module
import pandas as pd
Name =['Adiac','ArrowHead','Beef','BeetleFly','BirdChicken','Car','CBF','ChlorineConcentration','Coffee','Computers','CricketX','CricketY','CricketZ','DiatomSizeReduction','DistalPhalanxOutlineAgeGroup','DistalPhalanxOutlineCorrect','DistalPhalanxTW','Earthquakes','ECG200','EC... | [
"noreply@github.com"
] | noreply@github.com |
f7069d0de200d1883e7840ebfcdab0ad60192a08 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fv/abd.py | 3dd4529c22f77fef93c0dbd871cbccde845e5b30 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,840 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
2558eb429a70a1c07d1dc3089478c3b3ab870249 | 656eb6d63cc936f2a80261becd1e3f8b60e249bc | /03_picnic/version_info.py | f32a3e03321e0f0345b7fe91f85beb3d547085be | [
"MIT"
] | permissive | ddijk/tiny_python_projects | 6baa848cd696dfd3243650f97a7f44f4831dca9c | a9416039559b34bf8d36f1c043d6670f86a4583f | refs/heads/master | 2023-01-22T15:55:49.429677 | 2020-11-26T15:19:04 | 2020-11-26T15:19:38 | 279,935,410 | 0 | 0 | MIT | 2020-07-15T17:35:25 | 2020-07-15T17:35:25 | null | UTF-8 | Python | false | false | 202 | py | import sys
print('versie: ' + str(len(sys.version_info)))
print('-----')
for i in range(len(sys.version_info)):
print('versie: ' + str(sys.version_info[i]))
print('-----')
print(*sys.version_info)
| [
"dick@dijkrosoft.nl"
] | dick@dijkrosoft.nl |
aa78c02ad67f591157675a47bfb284c8d0878d46 | 9d7dad57f552f4687352c32fcced4aa49b13d6c0 | /tdl/tests/test_newtaskform.py | 224de889cc8d7298ecd90eadee78e6d2620fe105 | [
"MIT"
] | permissive | chrstsrs/todolist | 3e97f3eaf124c910bfda0f68aa854074a09e6658 | 8e13c5a8f6cabad0cf3f715ba9134dd82a46cc3e | refs/heads/master | 2022-12-14T05:22:48.451494 | 2019-01-23T21:24:15 | 2019-01-23T21:24:15 | 163,313,306 | 1 | 0 | MIT | 2022-12-08T01:20:31 | 2018-12-27T16:05:18 | HTML | UTF-8 | Python | false | false | 2,088 | py | from django.test import TestCase
from ..forms import NewTaskForm
class NewTaskFormTests(TestCase):
def test_edit_task_field_name(self):
form = NewTaskForm()
self.assertTrue(form.fields['name'].label == None or form.fields['name'].label == 'name')
def test_edit_task_field_description(... | [
"noreply@github.com"
] | noreply@github.com |
a90e6404551b5912048b4829a5294fbb441ab70e | 93a95c5b9411960b394cfb63e400910d7d1abf50 | /estoque/migrations/0002_auto_20210510_1515.py | ea13d302de4b62141beacc1712e501fe83515d36 | [
"MIT"
] | permissive | jonathan-mothe/estoque | 9377e4ac826fabe9d1a4f66f817204334a59a311 | de8d0ea87e67e93ad4922a2d81b1ba7d68a29845 | refs/heads/master | 2023-04-21T19:08:07.579886 | 2021-05-11T17:46:31 | 2021-05-11T17:46:31 | 364,916,799 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | # Generated by Django 3.2.2 on 2021-05-10 18:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('estoque', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='EstoqueEntrada',
... | [
"jonathan.mothe@gmail.com"
] | jonathan.mothe@gmail.com |
83fc41d8dbacc110b36cbeb2ded34e1d9ef46d8b | 1ad65a239d7aa2302bf192f8bff22947ccc9ef70 | /ws_test.py | 15701dbfd9c053cd8ea134ee0898500fa5be35be | [] | no_license | pHearning/WebsocketFighting | 24f3142b9fcdd5aaa2e4fa48a37f686390b595fa | 2f9729dbee11ceeba676b7c7fdffc7f3c8795378 | refs/heads/master | 2021-01-11T16:40:51.686120 | 2017-01-27T10:48:56 | 2017-01-27T10:48:56 | 80,138,125 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import websocket
import thread
import time
import json
class turn_holder():
turn = ''
red_hp = 0
blue_hp = 0
move = ''
def on_message(ws, message):
print message
new_message = json.loads(message)
turn_holder.turn = new_message["turn"]
turn_holder.move = new_message["move"]
turn... | [
"tedjohanssondeveloper@gmail.com"
] | tedjohanssondeveloper@gmail.com |
542816beffb8b703f3ac06dfc3663090ffee2d00 | b129c9b11e9d2c06114f45ce03a94f4f2a177119 | /hugin/haproxy/filters/userstate.py | c25adced17d38446916ca97be7ca2a70eced1dc0 | [] | no_license | pyfidelity/hugin.haproxy | a9e48e345b03ed9d361c0d6c8617135378f5c311 | 444e30350936883e7749c2371f394fa82c1644fe | refs/heads/master | 2016-09-01T17:29:48.210244 | 2014-11-24T12:34:51 | 2014-11-24T12:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | # Userstate is about detecting when users switch backend node when session affinity is used.
import re
from hugin.haproxy import registerFilter
from collections import deque
COOKIEMATCH = re.compile('.*="?(?P<cookie>\S+)')
class UserState(object):
def __init__(self):
self.duplicates = 0 # Redundant reloa... | [
"florian.schulze@gmx.net"
] | florian.schulze@gmx.net |
01f2ca3744cd9fbadbed8d343ed1e17851ff73e1 | 403f3702e6e47c0a5439284801bfdc9fae707711 | /Ordenes_ST/migrations/0016_auto_20200401_0139.py | ef776349de9f55271c910a386fdc65a7f4d7dcba | [] | no_license | harold-pinedar/CenterPro | db85d617c83459afa23b027266ac6b774c72e45a | c37b081a49516a9ac14a794ce9f67727b89c3661 | refs/heads/master | 2022-04-15T01:16:51.060297 | 2020-04-01T02:03:34 | 2020-04-01T02:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | # Generated by Django 3.0.4 on 2020-04-01 01:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Colaborador', '0018_auto_20200401_0139'),
('Ordenes_ST', '0015_auto_20200401_0119'),
]
operations = [
... | [
"fredyortegon30@gmail.com"
] | fredyortegon30@gmail.com |
902f82ec1d6408a0d05074ad354a7e9e1de2a428 | 75dbf493c64532514efa1ed5a0a54e6bb59a891b | /annhub_python/ml_lib/__init__.py | 6dc5d97af2f1568464ffc8f3e2fb929b94c72613 | [] | no_license | ans-ari/annhub-python | e73c6664cf3fabcd8bede9764e653d6160f9653d | 83aef254ab8d10059554f2054630a601c2c39863 | refs/heads/master | 2023-08-23T02:30:14.864537 | 2021-10-23T14:35:07 | 2021-10-23T14:35:07 | 410,797,783 | 0 | 1 | null | 2021-10-05T08:01:52 | 2021-09-27T08:12:34 | Python | UTF-8 | Python | false | false | 478 | py | import requests
def download():
URL = "https://github.com/ans-ari/annhub-python/raw/update-library/annhub_python/ml_lib/annhub.pyd"
response = requests.get(url=URL,allow_redirects=True)
file_name = "annhub.pyd"
with open(file_name,'wb') as f:
f.write(response.content)
# As the .pyd... | [
"noreply@github.com"
] | noreply@github.com |
48171eaf40c64fcf8748da54f2d65fe4eea701b6 | 5a6cd9da73ad197e6ca29cce0436640797991096 | /bench/app/benchmark/use_cases/listeners/sms_alert_listener.py | cdcd12c842ac62ca9c09a1f3212464711d6df263 | [] | no_license | in-void/flask-ddd-ca | 1c944f040f7001318ac2e73a3bfb8b36271424e6 | 201246cdd003c08b89d8bee08790db2afd9f0b72 | refs/heads/master | 2023-05-27T19:39:06.290935 | 2019-08-27T15:51:08 | 2019-08-27T15:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | # -*- coding: utf-8 -*-
from bench.app.benchmark.domain.config import NotificationsConfig
from bench.app.benchmark.domain.events import ComparativeBenchmarkFinished
from bench.app.benchmark.infrastructure.repositories import ComparativeBenchmarkRepository
from bench.app.core.domain.events_dispatcher import DomainEvent... | [
"barnard.kano@gmail.com"
] | barnard.kano@gmail.com |
7fc8092fd2f9fce44d8b397616ccbd500a075fa8 | 7ed07e6adefeb9fe088121bfd3b2509c5943ec20 | /extra_apps/xadmin/plugins/export.py | 743b3b7f8479686468db64d270fdb63c91c6e602 | [] | no_license | jon110101/untitled1 | 3639a381f4877723e865693167758e85f89138e1 | 0ee271f28580403c7efa86d182366113449b114e | refs/heads/master | 2021-05-09T11:46:09.814064 | 2018-01-26T02:54:27 | 2018-01-26T02:54:27 | 118,997,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,560 | py | import io
import datetime
import sys
# from future.utils import iteritems
from django.http import HttpResponse
from django.template import loader
from django.utils import six
from django.utils.encoding import force_text, smart_text
from django.utils.html import escape
from django.utils.translation import ugettext as _... | [
"hyyy1101@163.com"
] | hyyy1101@163.com |
4f27f3c576f15a3cc19c726ce07b1b97751878de | d839e0558ce7c6701302937dda53759a4357d9e1 | /quiz/urls.py | 72982e32db1ed9862f27a5e9ace381669cbc1d44 | [] | no_license | rachit7399/Online-exam-Django | ce28e81c7626d78129d77a0db95376ba2c10a7bd | 575fb077d9fc443035767b1928d2d6029e47ccc8 | refs/heads/master | 2023-05-04T05:20:51.070098 | 2021-05-04T12:43:36 | 2021-05-04T12:43:36 | 364,252,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | """user URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"rachit.rachit.bundela@gmail.com"
] | rachit.rachit.bundela@gmail.com |
182707792e16940dfa836c5a377cfaeab1a95585 | c5ef48fce207b9ecf60144eb3dbbc9f938269d80 | /config/settings/production.py | 2cb6207b3f3c08ee610a917c7fdaf40855ce56c0 | [
"BSD-3-Clause"
] | permissive | wservices/django-cp-email-manager | c8d076a54e2c269402a71424b7e19bc5c9dea631 | f5bc08231d556d97e64facea2bbbb335600f6e3c | refs/heads/master | 2023-01-11T23:13:50.022565 | 2022-01-13T21:04:21 | 2022-01-13T21:04:21 | 140,289,852 | 0 | 0 | BSD-3-Clause | 2022-12-27T15:34:28 | 2018-07-09T13:31:31 | JavaScript | UTF-8 | Python | false | false | 2,697 | py | # -*- coding: utf-8 -*-
"""
Production Configurations
- Use Redis for cache
"""
from __future__ import absolute_import, unicode_literals
from .common import * # noqa
# SECURITY CONFIGURATION
# ------------------------------------------------------------------------------
# See https://docs.djangoproject.com/en/1.9... | [
"info@wservices.ch"
] | info@wservices.ch |
91fe7b157dda79175abcc8c63072cce47e5a4bfd | 2c8d3e341e813c1b1b88ae824edeaadb366aec0a | /Parser/PY Files/rrt-greedypassive/smo2-14.py | ebaf369a8a3b92a25da1be8c2f941fa5ed65534c | [] | no_license | kiriphorito/MoveAndTag-Manticore | 2e24a958f4941556b2d2714563718069cc5b208f | d07a3d8c0bacf34cf5f433384a6fd45170896b7a | refs/heads/master | 2021-01-20T11:40:49.232449 | 2017-02-26T14:08:48 | 2017-02-26T14:08:48 | 82,548,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87,736 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
u"""
@brief: Path Planning Sample Code with Randamized Rapidly-Exploring Random Trees (RRT)
@author: AtsushiSakai
@license: MIT
"""
import shapely
from shapely.geometry import Polygon, LineString, Point, MultiPoint, GeometryCollection
import matplotlib.pyplot as plt
from as... | [
"sam.h.pham@gmail.com"
] | sam.h.pham@gmail.com |
301441e999e632c03147751b84aff6d3fd63c0c1 | f0f5ef31ad7057845408a2168b30d7769632ac74 | /stumanageBackend/core/migrations/0001_initial.py | e867fae8a9feadd783a05101f645e8da552c492e | [] | no_license | sharif181/django-react-simple-app | 0429fc3492ada2d1f8dfa6ce14f0765ec10eb89c | c69fc8de15c7af650f59f907628b7033527f160b | refs/heads/main | 2023-03-15T23:24:22.592068 | 2021-03-03T17:07:58 | 2021-03-03T17:07:58 | 344,198,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # Generated by Django 3.1.5 on 2021-01-08 15:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='studentInfo',
fields=[
('id', models.AutoFi... | [
"sharifkhan74647464@gmail.com"
] | sharifkhan74647464@gmail.com |
5f7ab5326e3927d2f99cf006d0e55d5bbd6b7b69 | 203f053a2caa0bea75cf6905a3f0eb4a967c4976 | /django_gplus/django_gplus/urls.py | a2a71b7b914ef433b350b5b1d958c67fd29492f7 | [] | no_license | Alsum/gsocial | 4c663400d68eeb93a2425e612f0b0d3611718550 | ebc3cfdc1844ae16ae9d4af911978ee65310c456 | refs/heads/master | 2021-01-23T02:39:53.540813 | 2017-03-24T01:22:08 | 2017-03-24T01:22:08 | 86,013,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """django_gplus 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')
Cla... | [
"engsum@gmail.com"
] | engsum@gmail.com |
8a21fb04dd9a94e97bf3626e2d80e17dcf8ceb91 | 40e0ce23528ca0613d5494917362308b54de4ea6 | /lpthw/ex19_sd3.py | e1163339603e519c1b53db523a1c61c12ce7744c | [] | no_license | selimski/Study | bdeb929eeff216156fae1d07bd9a39c969c26284 | 92d2c273b7fbca483a5a4cbbef72cde87aab36bd | refs/heads/master | 2021-01-11T05:37:36.038780 | 2016-11-08T22:08:58 | 2016-11-08T22:08:58 | 71,508,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | def func1(*args):
arg1, arg2 = args
print "Today you choose: %r as your first argument." % arg1
print "You didn't choose: %r. You did not... \n" % arg2
func1("Yes","Yaaaauzaaaa")
func1(10 + 2, 9 + 4)
a1 = 1000
a2 = 0.1
func1(a1, a2)
func1(a1 + 1, a2 + 12345)
b1 = "hey"
b2 = "bye"
func1(b1 + "bae", b2 +... | [
"selimnowicki@Dr-Evil-MacBook-Pro.local"
] | selimnowicki@Dr-Evil-MacBook-Pro.local |
244972f15e90d08c549f5a61dbfdaa978f98430d | 241434deb3804a2a5253fcb2631b8aa09a906efe | /Prediction/LSTM_model.py | 60e3a6c7318ee9eec20f0b8cbf4be8819e32e87c | [] | no_license | JohnP-1/fpl-analystics-prediction | c3ed2255a203d76a01fafe6c79f8663003b973fe | d71c0743cde8e9bd7c534bc38612e9cdd5ea9b0b | refs/heads/main | 2023-03-17T12:56:22.706445 | 2021-03-04T07:14:54 | 2021-03-04T07:14:54 | 326,921,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | import pandas as pd
import numpy as np
from preprocess import preprocess
import os.path as path
from models import LSTM
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import random
path_data = path.join(path.dirname(path.dirname(path.abspath(__file__))), 'Processed', 'model_database.csv')
data = pd... | [
"j.e.palmer-1@sms.ed.ac.uk"
] | j.e.palmer-1@sms.ed.ac.uk |
1fd9d339fb8682ef8a6f21a25cc9fe2d23ae8ca3 | 09bcd2a342fc79a4a7c30e24a76788d90df2176d | /galleria/artists/migrations/0001_initial.py | f3a25b6873d47bb0d9d6a0437de97740b0176461 | [
"Apache-2.0"
] | permissive | kamalhg/galleria | 48b2ed5ef1931ee12b7247caf7e50caa167c88ff | 18ee38e99869812e61244d62652514d1c46bf3f3 | refs/heads/master | 2020-12-27T12:15:22.233386 | 2014-06-18T15:53:54 | 2014-06-18T15:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,628 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Artist'
db.create_table('artists_artist', (
(... | [
"hum3@drummond.info"
] | hum3@drummond.info |
a0d0b8457024d2982d5052c463bd38f342cf93d4 | e18f0a32703fbe841d27c8a0e55eca9b9ab39cce | /run.py | c3e6569870cc01a9823fac62025ce182b58ea349 | [
"Apache-2.0"
] | permissive | qybing/tf-pose-estimation | 302550e74d457edea178b8e36a9cd58c1cbe89e8 | 9adc3d4bf1c87fba4df977b83cee8e656882fe15 | refs/heads/master | 2023-04-10T08:59:08.778691 | 2019-06-19T06:11:49 | 2019-06-19T06:11:49 | 189,166,320 | 0 | 0 | Apache-2.0 | 2023-03-25T00:06:18 | 2019-05-29T06:44:17 | PureBasic | UTF-8 | Python | false | false | 3,518 | py | import argparse
import logging
import sys
import time
from tf_pose import common
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
logger = logging.getLogger('TfPoseEstimatorRun')
logger.handlers.clear()
logger.setLevel(logging.DEBUG)
ch ... | [
"qiaoyanbing1@163.com"
] | qiaoyanbing1@163.com |
9f5ac57a3446426f8ff756599e9780e245ee3da3 | dd80d6c017cab703fd0cfcab4a8ff745095b42de | /329-longest-increasing-path-in-a-matrix.py | ba3c37c48fab049566ae457ff2ff97351b40ae3e | [] | no_license | dingyaguang117/LeetCode | d2b42e87c35250f0e6bed3af49ec9e077196fff4 | b5684499584a6f5006af907b1225455ea58c1104 | refs/heads/master | 2021-09-12T15:02:56.194575 | 2021-08-20T02:15:35 | 2021-08-20T02:15:35 | 21,963,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | '''
递归+记忆化, DP
'''
class Solution(object):
def calc(self, i, j):
if self.dp[i][j]:
return self.dp[i][j]
value = self.matrix[i][j]
ans = 0
if i > 0 and self.matrix[i-1][j] < value:
ans = max(ans, self.calc(i-1, j))
if j > 0 and self.matrix[i][j-1] < value:
ans = max(ans, self.calc(i, j-1))
if i <... | [
"dingyaguang117@gmail.com"
] | dingyaguang117@gmail.com |
8384c25f0bd13dd9db7d550b2dcd676408c0460e | d5cc5b93483f3e13b13cb0580a1994583c70ebb8 | /tmuxp/testsuite/test_config_teamocil.py | 184d205016b1244ea37d8ce4677b4cf7cdbec981 | [
"BSD-3-Clause"
] | permissive | GoodDingo/tmuxp | b07293e3090760283f7e733fd538410f36f8bea7 | 23594fdae5473aaa31c33dae64ace59001847f9e | refs/heads/master | 2020-12-11T07:38:36.346464 | 2013-12-25T03:29:06 | 2013-12-25T03:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,985 | py | # -*- coding: utf-8 -*-
"""Test for tmuxp teamocil configuration..
tmuxp.tests.test_config_teamocil
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2013 Tony Narlock.
:license: BSD, see LICENSE for details
"""
from __future__ import absolute_import, division, print_function, \
with_statement, unicode_lit... | [
"tony@git-pull.com"
] | tony@git-pull.com |
fd94d32ab8a50d496a3803833a4fbfee21a3d4a8 | 2ba6ca934f24bb388bccdb7c6c8af0acb0e50a7a | /Gamle scripts/old tests/test10.py | f6757d4dc11c4a4b4522a7e5340648080a3db440 | [
"MIT"
] | permissive | MadsAW/machine-learning-on-materials | 6fdb71baee94a8cb951dc4e2632950218454c4bc | 6101c7e3d12be54b12391c78442294198a39cc9b | refs/heads/master | 2020-03-28T20:40:25.595479 | 2019-01-28T18:58:12 | 2019-01-28T18:58:12 | 149,092,384 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 26 11:57:35 2018
@author: Simon
"""
import os
from createLargerFeatureMatrix import simpleLargeMatrix
import pickle
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras import regularizers
import numpy as np
path =... | [
"simon.kamuk@gmail.com"
] | simon.kamuk@gmail.com |
0d67648812aee24d60a3a8ce41b2b18c527f6a6d | b36d6c2066c7b34386d2575a435ee6ecb5cfbb9b | /live_bug.py | ba07a18512443ab04543e16a5d60ed2f3425c188 | [] | no_license | kingkonghon/bug | 3456418fead893c4c1e75a693cbd9649b98f55b5 | 0a2dd43580162544910861c09529e2cbe41fee6e | refs/heads/master | 2021-01-13T05:25:13.033973 | 2017-03-17T07:29:57 | 2017-03-17T07:29:57 | 81,426,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,951 | py | import datetime as dt
import urllib2
from bs4 import BeautifulSoup
import pandas as pd
import time
import csv
import MySQLdb
from sqlalchemy import create_engine
import logging
def parsePage(url):
while True:
try:
r = urllib2.Request(url)
page = urllib2.urlopen(r, data=None, timeou... | [
"kingkonghon@hotmail.com"
] | kingkonghon@hotmail.com |
5cb291f086a1a6e113110c2af91826068dd57189 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/4287546/snippet.py | 9124f440cdeccffaef8a4bd8d92dd5e133c999f6 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 680 | py | # FROM: http://en.wikipedia.org/wiki/Base_36#Python_implementation
def base36encode(number):
"""Converts an integer into a base36 string."""
ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
if not isinstance(number, (int, long)):
raise TypeError('This function must be called on an integer.')
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
ebfd3c5ec16c2733d41e8c7b34b1f6cd09317644 | 7100f3358c9b8dba4b0cf1890bb1334d6833eacf | /Transition_examples_NCL_to_PyNGL/read_data/TRANS_read_ASCII_lat_lon_value_way2.py | 2e40183d8bcd1ea60b23477025039424b1cf5456 | [
"MIT"
] | permissive | KMFleischer/PyEarthScience | c0278329a47660c5dcb5cf5f7e6b9617684b4da0 | 9624ad3d6f6bae89a7ed71763144b56b8ba8b885 | refs/heads/master | 2022-08-12T17:01:18.854579 | 2022-07-28T14:42:11 | 2022-07-28T14:42:11 | 44,372,741 | 60 | 31 | MIT | 2022-07-27T13:19:56 | 2015-10-16T08:35:20 | Jupyter Notebook | UTF-8 | Python | false | false | 2,610 | py | #
# File:
# TRANS_read_ASCII_lat_lon_value_way2.py
#
# Synopsis:
# Illustrates how to read an ASCII file and create a
# contour fill plot on a map
#
# Categories:
# I/O
# contour plot
# map plot
#
# Author:
# Karin Meier-Fleischer, based on NCL example
#
# Date of initial publication:
# ... | [
"meier-fleischer@dkrz.de"
] | meier-fleischer@dkrz.de |
666459957700b84b14bec98f21fbd9d2c6441c2b | 7236d1d4873faa9735fd5e2d4598b211a370f731 | /project/n/projects/projects/ecommapp/ecommerce/migrations/0020_auto_20200928_1630.py | 7ceab26f28c88cea212b50ab80571813c500c591 | [] | no_license | Dreambigxz/my_first_django_app | 05f5a5d330d72084489f9306fca9ca232af13999 | 9e21ebcbe63c7394280558d2977ef8a796960e0d | refs/heads/main | 2023-01-03T18:45:20.712074 | 2020-10-23T09:05:47 | 2020-10-23T09:05:47 | 306,180,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.0.8 on 2020-09-28 15:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecommerce', '0019_products_color'),
]
operations = [
migrations.AlterField(
model_name='products',
nam... | [
"onyemordidaniel@gmail.com"
] | onyemordidaniel@gmail.com |
bd94282c6683da22e869c64a0dd76f5ba27d7158 | 35c1dcb0c8a713725a8d9d3062df26b096a4c150 | /setup.py | 295d74e177fe1a2cc941145ea359d2970b74527a | [
"MIT"
] | permissive | ijgarcesc/pybiblio | 84fc78c09866a65bd13945ab36c8841587d74f09 | 02428eba8c4fcef3f9311ca9ba7be6bab661ca9e | refs/heads/master | 2021-07-15T07:40:08.319875 | 2017-10-18T13:57:08 | 2017-10-18T13:57:08 | 105,827,028 | 0 | 0 | null | 2017-10-04T22:48:12 | 2017-10-04T22:48:12 | null | UTF-8 | Python | false | false | 899 | py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='pybiblio',
version='0.0.0',
description='Analysis of bibliographic information using python',
long_description='A tool for creating and gradding assignments in the Jupyter Notebook using t... | [
"jdvelasq@unal.edu.co"
] | jdvelasq@unal.edu.co |
16b801019c6fae214098e1bee6e09311a7b48845 | 80e1313c8936f7cda0a4686c2d07d516e974158f | /tests/test_heatmap_smoketest.py | fb786f336f19e649df8ccde5c7d87366b3c9a800 | [
"MIT"
] | permissive | wahtak/develocorder | 1bb00bd9d88cd41a79a37e406732777e9cf55e81 | e8fb5d4e93355c6d28a08f5a21d3e948459da392 | refs/heads/master | 2020-12-20T00:37:42.162675 | 2020-02-10T23:05:41 | 2020-02-10T23:05:41 | 235,900,917 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | from unittest.mock import patch
import pytest
import matplotlib
from develocorder import Heatmap, set_recorder, record
@pytest.mark.filterwarnings(
"ignore:Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure"
)
@patch("develocorder.graph._global_container_instance", None)
@p... | [
"alexander.wt.metz@gmail.com"
] | alexander.wt.metz@gmail.com |
a0e6dacc42f43f83393b7db514c433a1171143a3 | 2a3188301e622f1f6bce3acc4974bf641daf3578 | /driving-behaviour/src/data_utils.py | 7616a149bcc60a00b530218c0b2580b59d6ffef8 | [
"MIT"
] | permissive | cy94/ghack | 884d2116853656eb3101d4bdd158386c9d6944e7 | 75a55cbb3c89517ed60b7885abfb6ba5b53bfcef | refs/heads/master | 2020-03-28T14:38:33.646118 | 2018-09-12T13:25:38 | 2018-09-12T13:25:38 | 148,506,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # -*- coding: utf-8 -*-
# @Author: chandan
# @Date: 2017-07-08 00:32:17
# @Last Modified by: chandan
# @Last Modified time: 2018-08-28 17:11:51
import pandas as pd
def read_file(fname):
df = pd.read_csv(fname, header=None)
return df
| [
"chandan.yeshwanth@siemens.com"
] | chandan.yeshwanth@siemens.com |
63806dd54f4edeaf3c314607b3876a7b5e12b74c | 81a1507bfb534da45a0aca8f95ee859bdd37e7b5 | /fc/ast.py | f4b14b638a077c07a85edba6d290871864977da7 | [] | no_license | arpit-saxena/flipbook | ec81de9e77ac1ed8161bbdc3f9ccd17b83c5a1be | 1ffbf28c6dcf534c53c55732533dfa13d1b47fac | refs/heads/main | 2023-08-24T15:55:05.008131 | 2021-11-06T12:25:13 | 2021-11-06T12:25:13 | 424,356,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | from __future__ import annotations
from collections import namedtuple
from typing import List
from .config import GRID_SIZE
from sortedcontainers import SortedDict
class Object:
def __init__(self, name: str) -> None:
self.name = name
class SceneElement:
def __init__(self, object_name: str, pos_x: ... | [
"arpit.saxena2000@yahoo.in"
] | arpit.saxena2000@yahoo.in |
92ec561813fa2612c71339d61d9e4a46e94ae5c3 | 0fd0495f194bc22f0322d02ebabe8add9bf5814c | /python_concept_references/strings.py | 219c87dc70935c66bdb73b5f543c1efcaa79c660 | [] | no_license | WorldPierce/Automate_the_Boring_Stuff_With_Python | bd6982bddefa712598dc5e6eb4cf2a2aa87b2c1f | a0bc6ba49d92b25f4fbe8d4fdd9385f294567e4c | refs/heads/master | 2020-12-30T09:58:38.341981 | 2017-08-05T19:51:10 | 2017-08-05T19:51:10 | 99,248,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | spam = 'hello world!'
print(spam.upper())
print(spam.lower())
print(spam.islower())
print(spam.isupper())
# isalpha - letters only?
# isalnum - alphpa numeric?
# isspace - single space?
# istitle - every first word capital after space?
print(spam.title())
# startswith('str') | endswith('str')
print('\n\n'.join(['cat... | [
"bildo316@gmail.com"
] | bildo316@gmail.com |
07b9f1b6db7bb45b9d2272190d29db9566448bcf | 4e566a1944fdfcf9de007a6c404136c2529830c1 | /imagedataset.py | bee04f3237ce389335c1805488d9e254691ba786 | [] | no_license | Sreenivas1993/Yelp-photo-Classification | 22314788378b33060df73707445d4db0e292f945 | e86dded2f3ea4ad53e7e83a9346390ed2b8a443d | refs/heads/master | 2021-08-23T03:43:43.395428 | 2017-12-03T01:12:51 | 2017-12-03T01:12:51 | 110,392,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 18 21:34:09 2017
@author: Sreenivas
"""
from PIL import Image
import os
import os.path
import pandas as pd
import torch.utils.data as data
def pil_loader(path):
# open path as file to avoid ResourceWarning (https://github.com/python-pillow/Pillow/issues/835)
w... | [
"sreenivenki@gmail.com"
] | sreenivenki@gmail.com |
3245b49aa803d9fd7eaad75b78856c0dd540cbf0 | 1d4adeca605818749247235dba11a90fbc154748 | /deprecated/services/deployment/deployment_controller.py | 6ccff0b553fb38655e4e8f6737b142ce9a9a71f7 | [
"Apache-2.0"
] | permissive | joshish-iu/cloudmesh-nist | 4598cd884fb9faaef5ea5cc5fa3e3920dbc6ebff | c26952859c2230231420058f6c488c9f6cc73218 | refs/heads/master | 2020-05-26T13:11:51.730994 | 2019-05-21T10:42:28 | 2019-05-21T10:42:28 | 188,243,290 | 0 | 0 | NOASSERTION | 2019-05-23T13:48:49 | 2019-05-23T13:48:48 | null | UTF-8 | Python | false | false | 905 | py | import connexion
import six
#from deployment_controller import *
from swagger_server.models.deployment import Deployment # noqa: E501
from swagger_server import util
from pymongo import MongoClient
client = MongoClient()
db = client['cm']
deployments = db['deployment']
def get_deployment():
"""
:return... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
63049adb954204a6d260ac373203abbc430dd063 | 67568ac53039fd633f9017bd368a13258191e1b2 | /thrift_example/file_transport/file/FileService.py | 429826b7eddda8fd50d339c35c87f6a40c1cd0ea | [] | no_license | starryrbs/rpc_shared | 22012bbb5e0916a178e088f1be58acedd589c13d | 6e4feb2929337ccb885ff629c13a0a6d3bc457d2 | refs/heads/master | 2022-12-11T04:27:24.176393 | 2020-09-02T16:01:37 | 2020-09-02T16:01:37 | 291,492,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,528 | py | #
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | [
"1322096624@qq.com"
] | 1322096624@qq.com |
fbf8ad242fdce014c3e68374b9493dc4412d6cae | d48219cbb727da7c283260e95afc61c43c5e9006 | /tests/test_main.py | 62832d8fcac385cb6e45e9a494a972a565595bc4 | [
"MIT"
] | permissive | NathanVaughn/actions-cloudflare-purge | a83a2c6cea330dd6c88c11e382176920dc386745 | aefc898270f34a9bbf2078094f8728bcf4043047 | refs/heads/master | 2023-06-27T15:12:12.359346 | 2023-06-08T22:58:14 | 2023-06-08T22:58:14 | 210,984,075 | 23 | 6 | MIT | 2023-08-28T21:04:06 | 2019-09-26T02:40:26 | Python | UTF-8 | Python | false | false | 12,323 | py | import json
import os
import subprocess
import sys
from typing import List, Tuple
import pytest
# weird environment variable to enable testing mode that no one else should ever set
os.environ["NATHANVAUGHN_TESTING"] = "True"
def run_command(options: List[str]) -> Tuple[str, dict, dict]:
# run the command just a... | [
"nvaughn51@gmail.com"
] | nvaughn51@gmail.com |
a105bce6c8161218e02ea347b9d1dae4caa90058 | 12406580078bd7db2902887582186ce544619d57 | /runwise_multiplicity/asp_extraction_method.py | 9dc19dde1b35613bf5b32e4a0f7e387afb162772 | [
"MIT"
] | permissive | fact-project/runwise_multiplicity | 92adfcf38ef88077ef81e9653be7113c652310ea | 57526b6dbade135ee26d0ba04b2ba6f77879628b | refs/heads/master | 2018-07-03T03:28:47.091187 | 2018-05-31T17:42:30 | 2018-05-31T17:42:30 | 126,005,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | import matplotlib.pyplot as plt
import runwise_multiplicity as rwm
import numpy as np
import pandas as pd
run_info = pd.read_msgpack(
'fact_run_info_table_20180319.msg')
read_file = rwm.read_gzipped_jsonl(
'run_database_of_photon_multiplicity_20180207.jsonl.gz')
r = rwm.multiplicity_intenity_to_rates(read_fil... | [
"amandeepsingh@ads.ethz.ch"
] | amandeepsingh@ads.ethz.ch |
212760228292c0bf7012fb43f8ccebebea45a312 | 66b92a180fb10e2f4dea337022c4ce85cb4f486d | /pis_ofap/main/serializers.py | f05b555c9964907514d8832855a413ef3a01fc6e | [] | no_license | encrypted-fox/django-pis-ofap | f5c7315138a500283432e5d1c6b4c3b943a30075 | b2d9a5c38b7649e9269b33b2de388a87d4d0f922 | refs/heads/master | 2022-11-08T19:13:17.345990 | 2020-06-18T16:05:19 | 2020-06-18T16:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from rest_framework import serializers
from .models import *
class EmployeesSerializer(serializers.ModelSerializer):
class Meta:
model = Employees
fields = '__all__'
class RequestsSerializer(serializers.ModelSerializer):
class Meta:
model = Requests
fields = '__all__'
class... | [
"yaroslav.souchkov@gmail.com"
] | yaroslav.souchkov@gmail.com |
da783cbc09a1b7c3e9060a93cd82e33e1de0a527 | 43d462e2e9cafabea41768b51231784c381be3ec | /details_from_Wiki/Crawl_car/Crawl_car/spiders/car.py | 993815a003e00cb65bdf90ea08cb5cc08d9359d3 | [] | no_license | DPgg999/- | 899d6b95b3b3ccaac9c540bbe31cc6d6a3b0c0eb | a8966077bb2754ec8d6d2d9a1b32393ac28fc8c9 | refs/heads/master | 2020-05-29T19:53:13.092058 | 2019-06-20T12:40:08 | 2019-06-20T12:40:08 | 189,341,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | # -*- coding: utf-8 -*-
import scrapy
from Crawl_car.items import CrawlCarItem
class CarSpider(scrapy.Spider):
name = 'car'
allowed_domains = ["http://www.baike.com"]
file = open('Z:\项目\Car_\Car_Knowledge_Graph_A\Crawl_car\Crawl_car\spiders\car_name.txt', 'r').read()
wordList = file.split()
count =... | [
"331378255@qq.com"
] | 331378255@qq.com |
497ff7a37a21b8d7b26e76ad4a2070a35baf71cc | bb87afa0fd2f5466f282ba93779293449ae72e9f | /apps/article/tasks.py | 0377213159cd91d4dfd25488e3ce850c0d8f288e | [
"MIT"
] | permissive | xuechuance/website | 14d50e6c66f4315f5829f5a2707fc7bdf3925266 | 91a017ea26806136a89f12d8620a4d99676a7497 | refs/heads/master | 2020-05-27T06:18:36.403271 | 2019-05-21T04:28:02 | 2019-05-21T04:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,889 | py | from __future__ import absolute_import
import datetime
from configparser import ConfigParser
from time import sleep
import requests
from celery import shared_task
from django.core.mail import send_mail
from random import Random
import random
from apps.article.models import Headlines
from apps.user.models impor... | [
"tarena_feng@126.com"
] | tarena_feng@126.com |
742ffb8178826cbe1484ba6d6459345859b86065 | 820e321b20f3a6f1063fb28d83bcec55841c1eea | /python_sample/Chapter5/chapter5_5.py | 71b38e4d9965bc0906ecd13b05a6d1b3eed0c1ad | [] | no_license | WadaTakafumi/Sample | cb6a323ea193b2c2fee87b04d0cae20fef1e621f | b012d6330a73d9230e733c5eb06607d27aa9aef7 | refs/heads/master | 2023-01-27T16:01:28.161048 | 2019-08-13T06:10:53 | 2019-08-13T06:10:53 | 193,650,560 | 0 | 0 | null | 2023-01-19T13:41:02 | 2019-06-25T06:45:04 | Ruby | UTF-8 | Python | false | false | 127 | py | #辞書型
tel = {'jack': 4098, 'sape': 4139}
tel['guido'] = 4127
print(tel)
li=[('a',1),('b',2),('c',3)]
s=dict(li)
print(s) | [
"wdtk2525@gmail.com"
] | wdtk2525@gmail.com |
0209945db389ffcf041bf8356b57309837cca01c | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/profile_h262.py | b8e281c4665dfd372553426648bec8a362d66ae8 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 194 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
class ProfileH262(Enum):
MPEG2_422 = "MPEG2_422"
| [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
27e87424929b5c8237e98b92155346589f22cff5 | f00ad57c98e554470a72511dda7a7bfd160aca19 | /others/test_compress_str.py | 21fe737a9d075590a8f39e8909d0acdd69b93853 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from unittest import TestCase
from compress_string import compress_str
class TestCompressStr(TestCase):
def test_compress_str(self):
self.assertEqual(compress_str("AAAAaaBCCCDDe"), "A4a2B1C3D2e1")
| [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
98f5dd3c6f7bfbe86c72dc575eab1857e19bb214 | d2b99e95f5080bf61bad0c6a4c1f33a9c87cb93c | /music_bg/logging.py | ff19a27d88fec868b3ac419e7c0e891e06e240ed | [
"MIT"
] | permissive | music-bg/music_bg | d5c9f562ed44e743b6ee4ca2e887fbe89d87f0b2 | 5b79eacb32506b6eda5861df4b5f71b611c5dfa3 | refs/heads/master | 2023-08-14T20:23:33.061661 | 2021-09-18T18:51:49 | 2021-09-18T18:51:49 | 405,702,931 | 3 | 0 | MIT | 2021-09-18T10:29:52 | 2021-09-12T17:05:23 | Python | UTF-8 | Python | false | false | 346 | py | from sys import stdout
from loguru import logger
from music_bg.config import LogLevel
def init_logger(level: LogLevel) -> None:
"""Configure music_bg logging.
:param level: New log level.
"""
logger.remove()
logger.add(
sink=stdout,
level=level.value,
diagnose=True,
... | [
"win10@list.ru"
] | win10@list.ru |
1a2c1fd4567315112d871d2a553139e502020022 | a08f51b7e8c648391ebb1e66e74927444895f847 | /Practicas/Practica_19.py | 5d08b7005329db9402ed03d584705da506eea060 | [] | no_license | MarcoVelazquez/Tareas-Estructura-De-Datos | 6598becd1d72b06daace76a48189e6ba5000fa63 | 1b8e5d5404a3afb932e1ecb5571d52b564819ac6 | refs/heads/master | 2021-07-05T08:19:28.821894 | 2019-05-12T22:03:08 | 2019-05-12T22:03:08 | 146,939,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py |
#Listas enlazadas
i = 0
class Nodo(object):
def __init__(self,data):
self.data = data
self.next = None
# def get_data(self):
# return self.data
def push(q,i,p):
if i < 5:
if q.next != None:
print("Ingresa el dato")
data = input()
p = Nodo(data)
q.next = p
q = p
i += 1
return... | [
"noreply@github.com"
] | noreply@github.com |
c85205ef73c8d7167609ae35ca227238328d5b73 | 17dcbf3e791c372294590a54aa9305c4b753b877 | /explosionPOS/cms/migrations/0010_auto_20160622_1522.py | 72a73e8656eef0bc4eaee7599f1e148542aae2ab | [] | no_license | ShogoKitajima/explosionPOS | 69aa6cbca9451241acadd86eaceb60856db557af | d70a162e7d90fa39050431974e861d203f81cd58 | refs/heads/master | 2021-01-21T14:44:03.056760 | 2016-09-20T04:31:41 | 2016-09-20T04:31:41 | 56,673,000 | 0 | 1 | null | 2016-04-28T07:24:50 | 2016-04-20T09:15:17 | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-06-22 06:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cms', '0009_auto_20160511_1445'),
]
operations = [
migrations.AlterField(
... | [
"a3ynxo@gmail.com"
] | a3ynxo@gmail.com |
8aa6b75ec6073c1f06b3f84c8af964bb7fb2e76a | 299372c4931029db3e2a00c97b9730e292e5288e | /test/test_part2.py | 8c445c73d8621b31208f8d80b9b4032f6a610faa | [] | no_license | Yuyu-Ren/ECSE429 | c97c096fa923117326603d49829cb1513b94524a | d7a5c69ef35e5e9602ae31bd30f55299dad9d545 | refs/heads/main | 2023-01-15T07:13:02.304361 | 2020-10-27T01:32:06 | 2020-10-27T01:32:06 | 306,927,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,158 | py | import requests
import json
from support.assertions import assert_valid_json_schema, assert_valid_dictionary_schema, \
get_valid_dictionary_schema, get_valid_json_schema
def test_get_projects_return_code():
r = requests.get(url="http://localhost:4567/projects")
assert r.status_code == 200
def test_get_p... | [
"8889046+Yuyu-Ren@users.noreply.github.com"
] | 8889046+Yuyu-Ren@users.noreply.github.com |
98621e5bca9df5c5b444a34970c6bbb20aa9d82d | 93261d9aa17d09d6eb4f5b25d8c8f49a915cd453 | /test/test.py | 49c26d482ceaeba4243d7c1a3a067e945c62ba4f | [] | no_license | strpc/upload_download_service | 7e6b80473c816a4e94ed1babdce612bdce5e16cf | 25d3737c3faa7d07e1f9418af0bd610ce9f42923 | refs/heads/master | 2022-07-03T01:46:28.027949 | 2020-05-11T08:57:46 | 2020-05-11T08:57:46 | 261,977,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,694 | py | import requests
import os
import unittest
url = f"http://localhost:8000/"
file = 'test.pdf'
class TestServer(unittest.TestCase):
"""Тестирование функционала сервера"""
headers = {'Content-type': 'pdf', 'Filename': file}
def test_post_upload(self):
"""Тест на загрузку файла в сервис по адресу {... | [
"renat.kruchinskij@gmail.com"
] | renat.kruchinskij@gmail.com |
61720acbc0b351390bba5bd82dedafd6d721e1af | 0eff560cadef67ad747fdc4e7c3d91a163df4571 | /pyarduino.py | 98e859eb0ae4cb9de2cb03b0c2b1890289abd46c | [] | no_license | AlexanderMelian/ProjectPAM | d87dfff06e7bcc945735677142bbcddfc28995a9 | efd5211fc824398958db54dcc87acec4bf4f543f | refs/heads/master | 2022-12-04T08:40:14.957234 | 2020-08-25T16:39:26 | 2020-08-25T16:39:26 | 281,609,288 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from pyfirmata import Arduino, util
import user_password
board = Arduino(user_password.port())#change the port
def ledOn():
board.digital[13].write(1)
def ledOff():
board.digital[13].write(0) | [
"alexandermelian@outlook.com"
] | alexandermelian@outlook.com |
9673a3a41a73f9b41461528237414504f9ca82fa | f0971b5d82ecb9d801957a823845cf6ce0321fe9 | /wpm_api/monitor.py | f4fdb6e14d3caf2ac0b8fc4c17c49d1396c4d3af | [
"Apache-2.0"
] | permissive | nikhilkulkarnisr/wpm_api_client | 200295bec40d308b2b0d1dac1b99952d01cdacb3 | 83809e9d101b5d6f6f3313329d1a9fc9a770f816 | refs/heads/master | 2020-12-13T22:35:30.700336 | 2015-05-20T18:29:28 | 2015-05-20T18:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,984 | py | # Copyright 2000 - 2015 NeuStar, Inc.All rights reserved.
# NeuStar, the Neustar logo and related names and logos are registered
# trademarks, service marks or tradenames of NeuStar, Inc. All other
# product names, company names, marks, logos and symbols may be trademarks
# of their respective owners.
import json
clas... | [
"shane.barbetta@neustar.biz"
] | shane.barbetta@neustar.biz |
a77d8dd80a8d0d6ac64a82fb0f81156f195acefd | 86e23cea4bee8580a804d4436f291f695753b5ec | /custom_chars.py | 9dbeb5c9cf65a413619d2a6b23a42ce632d99f5d | [] | no_license | kac-kon/rpi-lib | 844f503ecd8039f784e0316d9f5429f4b8f106f6 | daae5032320e3b08882df81f94b66514ed582234 | refs/heads/master | 2023-07-03T22:10:50.863450 | 2021-05-14T18:27:07 | 2021-05-14T18:27:07 | 352,186,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | arrows = [
# arrow_up
[0x00,
0x04,
0x0E,
0x15,
0x04,
0x04,
0x00,
0x00],
# arrow_up_right
[0x00,
0x0F,
0x03,
0x05,
0x09,
0x10,
0x00,
0x00],
# arrow_right
[0x00,
0x04,
0x02,
0x1F,
... | [
"kacper.kontny@gmail.com"
] | kacper.kontny@gmail.com |
681f7da9bfce9e9c71273cf5a965b0c1703c1575 | ad9286e8f45aceffa8f8a52c2a671a744444b43b | /lib.py | fd814d2409280963a58d6e3595b5ac873871407d | [] | no_license | jocalte/wumpus | 36e9f4fa2a51990cb7e024c67a6acecf60a38c5f | ebeb9394efedcb6e8c4f879c8740a884e6046b43 | refs/heads/master | 2021-01-05T07:53:30.956330 | 2020-02-16T18:33:38 | 2020-02-16T18:33:38 | 240,941,952 | 0 | 0 | null | 2020-02-16T18:20:31 | 2020-02-16T18:20:30 | null | UTF-8 | Python | false | false | 7,062 | py | """
José Miguel Calderón Terol
15/02/2020
version 1.0
"""
import numpy as np
import copy
class Mapa(object):
"""
Clase que crea el mapa, recoje los movimientos de avance del jugador y comprueba el disparo.
Los objetos se almacenan en listas que contienen sus coordenadas.
"""
def __init__(self, siz... | [
"jocalte85@gmail.com"
] | jocalte85@gmail.com |
62194023eeccb98aa40ee194047fb1ed24d608be | 2dc09b8eded668359714b0aa15ef60089c8886c4 | /gunclub/gunclub/wsgi.py | 68bb642eb37a7193bb87e01e75498a4af71f15fa | [
"Apache-2.0"
] | permissive | wiliamsouza/gunclub | 9bc3af70f9bda0f6abdeab76a67f88bf000ec357 | b5a64e380d08b1400eecf8eeab62db1704c1e94a | refs/heads/master | 2020-06-08T00:06:39.366403 | 2012-10-25T06:32:59 | 2012-10-25T06:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | """
WSGI config for gunclub project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` ... | [
"wiliamsouza83@gmail.com"
] | wiliamsouza83@gmail.com |
4c95a2d345027b537dac2498ebacc36cb7aaf94c | 60991c0f938dbcf761d5268de03b80a4e0648c30 | /config.py | 5ed6c57508c440f953c88a8c5894bf3bf3afed26 | [] | no_license | dannysim01/web_apps_bert_sentiment | e77a52b70074b8c53862275a458e469867aaa19c | ac403acfff159429d02cb790ea11fa1170e59807 | refs/heads/master | 2023-04-02T21:55:59.165530 | 2020-07-14T21:18:29 | 2020-07-14T21:18:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import transformers
MAX_LEN = 512
TRAIN_BATCH_SIZE = 8
VALID_BATCH_SIZE = 4
EPOCHS = 10
# ACCUMULATION = 2
BERT_PATH = "../input/bert_base_uncased/"
MODEL_PATH = "bert_sentiment_model.bin"
TRAINING_FILE = "../input/IMDB Dataset.csv"
TOKENIZER = transformers.BertTokenizer.from_pretrained(BERT_PATH, do_lower_c... | [
"dannysimon11@gmail.com"
] | dannysimon11@gmail.com |
21ee44b6155df6c86db7afac320d841dd0a6eea7 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/zulip/2016/4/realm_filters.py | 3ebd74a423ccd5d544621ba6011b7915cf5d5e90 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 2,844 | py | from __future__ import absolute_import
from __future__ import print_function
from optparse import make_option
from django.core.management.base import BaseCommand
from zerver.models import RealmFilter, all_realm_filters, get_realm
from zerver.lib.actions import do_add_realm_filter, do_remove_realm_filter
import sys
cl... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
80c24746c6073d583a09c6dabbafb81559a1f716 | 04f4b5c2e6b283d9ef7198425c3bf926623554d2 | /One_Chicken_Per_Person/one_chicken.py | 81ae99333e88a83795c3f19f3e9580f2d219131b | [] | no_license | gabisala/Kattis | a00e96aab4dbe8033e0e110f5224170b8ad473a3 | 686817fb90b39e0126b4c8b0280f8a1f10c294ee | refs/heads/master | 2021-07-07T11:53:30.931347 | 2017-10-03T15:40:07 | 2017-10-03T15:40:07 | 105,471,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py |
# -*- coding:utf-8 -*-
import sys
# Read data
data = map(int, sys.stdin.readline().split())
people, chicken = data
# Output message with the ratio(people, chicken)
if people > chicken:
if people - chicken == 1:
print 'Dr. Chaz needs 1 more piece of chicken!'
else:
print 'Dr. Chaz needs {} m... | [
"noreply@github.com"
] | noreply@github.com |
8809b90d42ff815f5a5ac1384caeecf159676a44 | 127e9753d54399770ebe9b8124770be305bf8128 | /azure-devops/azext_devops/test/team/test_security_group.py | 58cc04dca06d7e0be16f61b1a9d7a5aeedf02bd6 | [
"MIT"
] | permissive | sandeepchadda/azure-devops-cli-extension | 223111e7ca62414b89dcadbbf724d49b40f19476 | d87336b848e07d4ac7e25c454c35304e4abf2e10 | refs/heads/master | 2020-05-27T22:39:16.937583 | 2019-05-27T08:59:54 | 2019-05-27T08:59:54 | 188,807,782 | 0 | 0 | null | 2019-05-27T08:55:32 | 2019-05-27T08:55:32 | null | UTF-8 | Python | false | false | 10,083 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
1bcd0f6d900720243d017fbdeb811745cab1f329 | f3dedd86822718a0dc9da90da704cc6ed907bd22 | /Codes/ReadData/Read_hdf5_Data.py | ea400e1242e49437c0d800485b60e22775e6ef34 | [] | no_license | BlenderCN-Org/MeshOpt | 80d59e8631eb1eeff33e30b4130ababa02b1337b | 4878bb3bfb0e9c3d880e41754719c4257b8c09b8 | refs/heads/master | 2020-05-23T22:15:19.145510 | 2019-01-09T00:56:40 | 2019-01-09T00:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,528 | py | import h5py
import meshio
import matplotlib.pyplot as plt
import json
import t2listing
from mulgrids import *
from mpl_toolkits.mplot3d import Axes3D
import numpy
from collections import OrderedDict
from itertools import permutations
def plot_Tcell_vs_time(x_pos, y_pos, z_pos):
target = None
i... | [
"noreply@github.com"
] | noreply@github.com |
d8482c372930f5b396b0f84fea8ef886b2b2b545 | 948205e4d3bbe2200ca41ffc4f450ee96948b50f | /picamera/mmalobj.py | ec167f2f6d6e24dfa2b1bba876addbc6c496c0e7 | [
"BSD-3-Clause"
] | permissive | TheSpaghettiDetective/picamera | 1a875dec7f616db059034317dee7b38060149253 | f7b9dcc66224d12ff5a22ece61d76cace2376749 | refs/heads/master | 2022-11-24T12:58:12.932558 | 2020-07-28T18:39:26 | 2020-07-28T18:39:26 | 283,290,128 | 2 | 1 | BSD-3-Clause | 2020-07-28T18:05:32 | 2020-07-28T18:05:32 | null | UTF-8 | Python | false | false | 150,486 | py | # vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# Python header conversion
# Copyright (c) 2013-2017 Dave Jones <dave@waveform.org.uk>
#
# Original headers
# Copyright (c) 2012, Broadcom Europe Ltd
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted... | [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
0bed982517ec2d1db37c3a013aeab72f14937675 | e832ec980dfb5cb52fb3116ca1ac79052cb02fae | /guo_py1811code/first/day_0325/code/requests_07_https.py | d38a5e8c6e7d7af4f5e858619f1ace95123202f2 | [] | no_license | Liu-Zhijuan-0313/Spider | e6b10ebd5f9b5c70803494e1b894ac4556dfc544 | bf04e9615e23350f7c0b9321ac3b7cbd4450dd3e | refs/heads/master | 2020-05-03T18:36:12.102519 | 2019-04-19T02:48:13 | 2019-04-19T02:48:13 | 178,766,396 | 0 | 0 | null | 2019-04-18T07:11:23 | 2019-04-01T01:50:37 | HTML | UTF-8 | Python | false | false | 106 | py | import requests
response = requests.get('https://kennethreitz.com', verify=True)
print(response.text)
| [
"1602176692@qq.com"
] | 1602176692@qq.com |
3e5a0ee492a36fc877f8a707c76bfff088af3935 | c57ae1b94b8bd6260e80d380892042dcf05872ac | /www/models.py | df7ce4ff258fcba256bcc51b88e3657dd1cdfc24 | [] | no_license | fjzhangZzzzzz/WebApp-Test | 46e52ba3aebfb00665b280ecbba82f1f73be3f5b | cb772f50fa8c44892b2e543ebb7d68391e2c9602 | refs/heads/master | 2021-01-13T11:18:50.681142 | 2017-03-02T15:31:35 | 2017-03-02T15:31:35 | 81,418,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # -*- coding: utf-8 -*-
"""
Models for user, blog, comment.
"""
import time, uuid
from www.orm import Model, StringField, BooleanField, FloatField, TextField
__author__ = 'fjzhang'
def next_id():
return '%015d%s000' % (int(time.time() * 1000), uuid.uuid4().hex)
class User(Model):
""" 用户数据模型 """
__ta... | [
"fjzhang_@outlook.com"
] | fjzhang_@outlook.com |
6129595c29face62f25579c8350e0b7adf164974 | c464737ba510915e9414e38cfe4e218aaf5ed96f | /program.py | f6851d1649e88ef36ae6114ce30bc94eef2ab145 | [] | no_license | NehaMahindrakar/Sorting-Images | 26155bc18b8f5076f2ac7eb4b191805f87d76586 | fe4d4e93034f8073a7a1723bdeff3ac07ae4b8d1 | refs/heads/master | 2023-01-22T20:58:58.607097 | 2020-11-25T19:02:22 | 2020-11-25T19:02:22 | 316,028,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,556 | py | #importing the necessary libraries
import glob
import cv2
import os
import shutil
import time
#Quick sort Algorithm to sort the images based on size
def QuickSort(arr,left,right):
i = left
j = right
piv = arr[left + (right - left) // 2][1]
while i <= j:
while arr[i][1] < piv: i += 1
... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.