blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf5c6fee091e8426d7dd6d71ed755b2e3e1eaeed | 7e4425342a4d7e0f40978af17091f32d2712c79c | /Cb_DeepLearning_lec/Day_04_02_collection.py | 280b5a625f46315f5d0d9b50bfda8439d9fccca1 | [] | no_license | yunhui21/CB_Ai_NLP | eca3da00c6c9615c8737b50d2c5ebe8dd1e3ba8a | b66ecc24abfd988fc9e7f19fa1941826b1bf38a4 | refs/heads/master | 2023-01-07T14:21:26.758030 | 2020-11-16T05:57:30 | 2020-11-16T05:57:30 | 291,835,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | # Day_04_02_collection.py
a = [1, 3, 7, 9]
for i in a:
print(i, end=' ')
print()
# 문제
# 리스트를 거꾸로 출력하세요
for i in reversed(a):
print(i, end=' ')
print()
# 튜플 : 상수 버전의 리스트 (읽기 전용 리스트)
b = (1, 3, 7, 9)
print(b)
print(b[0], b[1])
for i in b:
print(i, end=' ')
print()
# b[0] = -1 # error
# b.append(... | [
"yunhui21@gmail.com"
] | yunhui21@gmail.com |
d7bc1849f667986a5c952b587f0cea53c5180c85 | 968949635b157804c048a400f3c2459b097d1296 | /Python/2017_example_MITPS1b.py | a61677dfe116c7f0ca02b98ebb753fe054299202 | [] | no_license | EliBildman/CS1-Projects | 2e22ad7d0c34facdabef784b43fdca621129bf41 | d3edc80fd1956e84775478e441b1fae27c3b2a9e | refs/heads/master | 2021-10-23T23:31:39.931753 | 2019-03-20T18:34:59 | 2019-03-20T18:34:59 | 114,024,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | init_balance = float(input("Outstanding balance: "))
interest = float(input("Annual interest rate (dec): "))
monthly_payment = 0
months = 13
while months > 12:
months = 0
monthly_payment += 10
balance = init_balance
while balance > 0:
balance = round(balance * (1 + (interest / 12)), 2)
... | [
"eli@bildman.com"
] | eli@bildman.com |
5103cc928788d30e67890665c674dd02fe179634 | b30468e308671c8ae93d421d76e675713689fbbc | /mineral_catalog/minerals/views.py | 26afdd1b8946c1b80d2d47e17ea71e13f95db390 | [] | no_license | lfisher1998/Python-Techdegree-Project-6 | cb6ba0219fc340f590ec931462eb12ca600a6375 | f6ff8a34734cd01023bdf85dc0a16d7f027225e8 | refs/heads/master | 2020-05-05T04:49:59.517885 | 2019-04-05T19:23:36 | 2019-04-05T19:23:36 | 179,726,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from collections import OrderedDict
from django.db.models.functions import Lower
from django.http import Http404
from django.shortcuts import render
from .models import Mineral
def mineral_list(request):
minerals = Mineral.objects.all()
return render(request, 'minerals/index.html', {'minerals': minerals})
... | [
"noreply@github.com"
] | lfisher1998.noreply@github.com |
beecac358761373299eadb88bb99a044d335fbed | e2840689c879e82854322cd7a0ef094244b83b2b | /main.py | 6ac589e596e2787d6ba78b01a9e5781efecdb0d9 | [] | no_license | 349/harmoniser | cc740d5c73d9109160adb5949c339403c958f608 | 0bad0dcffe971c0657771817e484424d443d365a | refs/heads/master | 2022-10-28T16:29:38.715906 | 2020-06-08T22:30:19 | 2020-06-08T22:30:19 | 270,847,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py |
melody_file = open("melody.txt", "rt") #open to read melody
melody = melody_file.read() #string melody from melody
melody_file.close()
print(melody)
for x in len(melody):
pass
#make an array with each note | [
"james.sheridan@outlook.com"
] | james.sheridan@outlook.com |
02d549172e472542fc2a2d3045217259fbf12efa | 085530edb6ff64a5838ac675b7282a59928c9851 | /capstone/flight_control/gps_amd.py | a8cbec81fd362a484f7fdf2d844eb3b5fc3a658b | [] | no_license | leadtheway01/UVa | 1a836c275e704779df52e12f62cdbd0b8f9cb9f7 | c016766b17db1a36d86244de31ec3d161eed612f | refs/heads/master | 2021-01-20T18:39:50.190870 | 2017-05-11T02:45:53 | 2017-05-11T02:45:53 | 90,928,106 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | #!/usr/bin/env python
from dronekit import connect, VehicleMode, LocationGlobalRelative
import time
"""
Take off
"""
def takeoff(vehicle, aTargetAltitude):
print "Taking off!"
vehicle.simple_takeoff(aTargetAltitude)
while True:
print "Altitude: ", vehicle.location.global_relative_frame.alt
if vehicle.location.... | [
"wdk7bj@virginia.edu"
] | wdk7bj@virginia.edu |
ae9c23f5fdb98de82ae8cbf6a8e4ee62419a45d6 | 493a36f1f8606c7ddce8fc7fe49ce4409faf80be | /.history/B073040023/client_20210614185044.py | dc83e9c3495b85ade6ac751b06199f40df2ea143 | [] | no_license | ZhangRRz/computer_network | f7c3b82e62920bc0881dff923895da8ae60fa653 | 077848a2191fdfe2516798829644c32eaeded11e | refs/heads/main | 2023-05-28T02:18:09.902165 | 2021-06-15T06:28:59 | 2021-06-15T06:28:59 | 376,568,344 | 0 | 0 | null | 2021-06-13T14:48:36 | 2021-06-13T14:48:36 | null | UTF-8 | Python | false | false | 4,772 | py | import socket
import threading
import tcppacket
import struct
# socket.socket() will create a TCP socket (default)
# socket.socket(socket.AF_INET, socket.SOCK_STREAM) to explicitly define a TCP socket
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # explicitly define a UDP socket
udp_host = '127.0.0.1' # Host... | [
"tom95011@gmail.com"
] | tom95011@gmail.com |
21108a445d65be0ac0386514b2c345649b88fd66 | 32fb781cb6718ef90c4fdfba0469f9278380a256 | /AntShares/Core/Transaction.py | 83091faf4d380c5c037c959eb17dbfab2778feca | [
"MIT"
] | permissive | OTCGO/sync_antshares | 1dcd6f809518ff2f9f89047d7da5efedb14e8625 | 5724a5a820ec5f59e0c886a3c1646db2d07b4d78 | refs/heads/master | 2021-01-22T22:49:26.094742 | 2017-12-14T17:15:33 | 2017-12-14T17:15:33 | 85,582,206 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | # -*- coding:utf-8 -*-
"""
Description:
Transaction Basic Class
Usage:
from AntShares.Core.Transaction import Transaction
"""
from AntShares.Core.AssetType import AssetType
from AntShares.Core.TransactionType import TransactionType
from AntShares.Helper import *
from AntShares.Fixed8 import Fixed8
from AntShar... | [
"flowjacky@gmail.com"
] | flowjacky@gmail.com |
d523d4aaff289eae4c93219f44ef1d4ca8dc999a | 4c3509b7948f756d5cba90490384143d83924644 | /chapter8/library_checkout/tests/test_checkout_mass_message.py | e9bec218737bae4ed0fbbdf9c30bf662101917ba | [] | no_license | n37r06u3/odoo12-development-essentials | 3049221c4df568326f5c71c4f02aa658216a5b2e | 456ea192c1c0320bbce2d6c030bef4f364a0bf88 | refs/heads/master | 2020-04-18T01:01:41.114763 | 2019-01-23T02:56:42 | 2019-01-23T02:56:42 | 167,102,350 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from odoo.tests.common import TransactionCase
from odoo import exceptions
class TestWizard(TransactionCase):
def setUp(self, *args, **kwargs):
super(TestWizard, self).setUp(*args, **kwargs)
# Setup test data
admin_user = self.env.ref('base.user_admin')
self.Checkout = self.env['lib... | [
"n37r06u3@gmail.com"
] | n37r06u3@gmail.com |
480778148664d4907f34cb73cc9d20b41eeac656 | 4667bbbc941b743547fb8d39c1e1058ad233c446 | /5.py | c282829913411e79df53cb1cef63a31a602b653d | [] | no_license | shamilmhussain/QR-code | 6e3e0d8beb79807e50c5e63b8b273cd9c1c9ba32 | 453f16d799b9b3c7908914e853b351630d956724 | refs/heads/master | 2020-06-14T10:44:16.720076 | 2019-07-03T05:23:02 | 2019-07-03T05:23:02 | 194,984,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | from __future__ import print_function
import pyzbar.pyzbar as pyzbar
import numpy as np
import cv2
def decode(im):
# Find barcodes and QR codes
decodedObjects = pyzbar.decode(im)
# Print results
for obj in decodedObjects:
print('Type : ', obj.type)
print('Data : ', obj.data, '\n')
... | [
"shamilmhussain@gmail.com"
] | shamilmhussain@gmail.com |
246dcfe77d429a182463f159f158577ef8353990 | 1f8f423532070a9b49bad7b15af6cd12d0d3e5d0 | /app/src/applications/user/view/AvlanUserListView.py | 2395120f5b89bcf128e497a6623991d513adb7db | [] | no_license | r2r-dev/avlan-docker | 357ce99db914660a0ffdb2022ee139f213e5514b | 1fe6b045bc9d03cbc81b69431e98af45958358d0 | refs/heads/master | 2021-06-12T00:54:19.901286 | 2017-01-29T22:22:32 | 2017-01-29T22:22:32 | 68,092,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from src.applications.base.view.AvlanBaseView import AvlanBaseView
class AvlanUserListView(AvlanBaseView):
__template = 'webroot/html/AvlanUserListTemplate.tmpl'
def __init__(self, translation=None):
AvlanBaseView.__init__(
self,
self.__template,
translation,
... | [
"artur.stachecki@gmail.com"
] | artur.stachecki@gmail.com |
b4633c3cf26d5c187ffcfec668318ef6eef731a8 | 380f8425f31088c61e1eb02690ce33b62c503040 | /pset6/readability-in-progress/readability.py | c71a9116cb32985cfbb6ff27b85757bc8e6ae2f9 | [] | no_license | thalita89/HarvardProblems-set6 | c4ce2ba86bf18ca1bb5931ea87c6612633c22c52 | 2b97e4d72a28bc2857623ad3d4eab470ffc9323d | refs/heads/master | 2023-04-08T01:43:30.418846 | 2021-04-17T17:23:37 | 2021-04-17T17:23:37 | 358,929,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 25 17:12:13 2021
@author: thalitaramires
"""
#4) Readability:
#Problem: https://cs50.harvard.edu/x/2021/psets/6/readability/
#Primeiro passo:
#solicitar a string
#Segundo passo
#tratar os dados da string
#Terceiro passo
#Executar o algoritmo ... | [
"thalitaramires89@gmail.com"
] | thalitaramires89@gmail.com |
4b12cb9e5dcf0c50d61ba29d1ec577502c471c7c | a37240b1f7b62067c2e56577dd8710fa647dc779 | /classifyClient/IMU.py | abc1b7ce378846da49842b41a55858191576f425 | [] | no_license | 180D-FW-2020/Team5 | 6e82c57a22d5b0ed06f35e97e9d2723dec9853ac | edc0c9e1204f43f29ca2c10d34cf2af0e486a0e4 | refs/heads/master | 2023-03-13T16:56:26.604271 | 2021-03-12T01:04:23 | 2021-03-12T01:04:23 | 297,809,977 | 0 | 0 | null | 2021-03-09T21:10:34 | 2020-09-23T00:44:47 | Python | UTF-8 | Python | false | false | 11,822 | py | import smbus2 as smbus
bus = smbus.SMBus(1)
from LSM9DS0 import *
from LSM9DS1 import *
from LSM6DSL import *
from LIS3MDL import *
import time
BerryIMUversion = 99
def detectIMU():
#Detect which version of BerryIMU is connected using the 'who am i' register
#BerryIMUv1 uses the LSM9DS0
#BerryIMUv2... | [
"jonryangoh@gmail.com"
] | jonryangoh@gmail.com |
cc3e8e736099a578fdb1575de3070766cc9c13fb | e66770daf4d1679c735cfab1ac24dd1f5107bd83 | /Chapter06/Ch06_Code/GUI_multiple_threads_starting_a_thread.py | a33887dfb3fb91f64788072ca95a614df27e233a | [] | no_license | CodedQuen/Python-GUI-Programming-Cookbook | c038eb6cec4945ff4f2b09e1551f9db712dd2502 | f02b0f9916fb8272edc7ed4704eecce53ae0231c | refs/heads/master | 2022-05-27T19:35:35.004455 | 2020-05-05T01:00:51 | 2020-05-05T01:00:51 | 261,329,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,778 | py | '''
May 2017
@author: Burkhard A. Meier
'''
#======================
# imports
#======================
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
from tkinter import Menu
from tkinter import messagebox as msg
from tkinter import Spinbox
from time import sleep
im... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
63e526bd1682671945b0d368a5e61108f4cc7ba4 | 055ed076c6b1d3ee294797c92dc9533776571f54 | /hash_table.py | 0f58d2d5574064831df9b135798223c4d1b70936 | [] | no_license | imartin2433/Western-Governors-University-Parcel-Service | b7609b1a89d92b3954ef9f4640b354f4a631191f | 3c41972cab7332330eba434b1a46a114390b3bb7 | refs/heads/main | 2023-07-24T05:21:23.352596 | 2021-08-16T15:01:40 | 2021-08-16T15:01:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | # HashTable class using chaining.
class ChainingHashTable:
"""
A class to represent a person.
Attributes
----------
initial_capacity : int
the initial size of the hashtable
Methods
-------
insert:
Inserts elements into the hashtable
search:
Search for eleme... | [
"ishmael.martin@icloud.com"
] | ishmael.martin@icloud.com |
5cdfb9f36ca69e8ff5fabc7944ba6a1bbc3b4b56 | 14b00b45523dc474b9cb8e3c527f84e322c9e178 | /scen9.py | f1a1525900163d46e25047abe20ddc874e09964d | [] | no_license | GilBaggio/python-project | d67a1bcb710e5623ce41ba3715c7b7d69459da7c | 64d47f07fc0688c9fe5ce135a38683b5ff59b23a | refs/heads/master | 2021-01-10T17:43:38.577848 | 2015-12-09T10:46:15 | 2015-12-09T10:46:15 | 47,684,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | #Highest percentage in all india level
def high_percentage():
try:
#opening and reading the standerdised file
stdfile = open('Standardiseddata.csv','r')
firstline = stdfile.readline()
heading = firstline.split(',')
percentage_index = heading.index('mathpcor')
... | [
"tsccbe17@gmail.com"
] | tsccbe17@gmail.com |
51624a9d93d6b8f1ec4bc07488f89856c586aa69 | e8bef0f6dc2bd90f25e4bd2f32668ac31f2f0fe2 | /old/variable_neutral_line_manipulator/display/result_graph_widget.py | ba4d3f93c8c774e04818fda648d5ba6b63d68d50 | [] | no_license | MINGXUANCALVIN/variableNeutralLineManipulator | cdf3db4314029d84e3831ecb02570b0171615273 | c2356a49c9efd62d4ec6aa2bd83bcce26ede3707 | refs/heads/master | 2023-04-27T00:39:42.232858 | 2020-05-30T05:24:28 | 2020-05-30T05:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | import math
import numpy as np
from PyQt5.QtCore import QSize, Qt
from PyQt5.QtWidgets import QSizePolicy, QVBoxLayout, QWidget
from matplotlib.backends.qt_compat import QtWidgets
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from mpl_toolkits.... | [
"dickson0717@hotmail.com"
] | dickson0717@hotmail.com |
b715d3f300e76228033f8818f704dd9ab56f4a6b | b394241994f896463a95ab291e98957d66987ba2 | /app.py | b02b6e9ccc5ab740082f4254e2eb29bb50a7f3a6 | [] | no_license | admajaput/Myfirst_Dashplotly | fdef83a291fdaafa16ad8f9612c7dcb0079ab6a2 | e84ddd9bf46c2a7ab41d131b234f3c6f8066a1f9 | refs/heads/master | 2020-04-08T04:15:32.393439 | 2018-11-25T08:00:04 | 2018-11-25T08:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,660 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
import pandas as pd
import plotly.graph_objs as go
from dash.dependencies import Input,Output
from categoryplot import getPlot, catgory
import numpy as np
from plotly import tools
app = dash.Dash()
app.title = 'Purwadhika Dash Plotly... | [
"asmaja113@gmail.com"
] | asmaja113@gmail.com |
22b06f917a2e60d9e5443d0a32cf7b4cb27e71c3 | 50f42e142c7b989afc9bc9d9fd53515923aceb56 | /ML_practice/test_field.py | 824433785cb92c1abe62e59a015e4140ff9a6c0c | [] | no_license | shincling/MyCommon | 7d02da4408f1ab0acf883845cbb8b8e54e364076 | ae362fdef8d51c808645f7827a86e43d07db6e0f | refs/heads/master | 2021-01-17T04:10:57.546936 | 2018-11-06T13:17:27 | 2018-11-06T13:17:27 | 45,384,609 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | def f():
print "Before first yield"
yield 1
print "Before second yield"
yield 2
print "After second yield"
g = f()
# g.next()
# g.next()
print "Before first next"
g.next()
print "Before second next"
g.next()
print "Before third yield"
g.next() | [
"shijing609@163.com"
] | shijing609@163.com |
4ed9874c1f88b19a1c4b4f1546c73a2abcebc081 | 194f21e0c0e0d1fbf827ffcbd1a0dbb5b7ddd1cf | /sksurgerybard.py | 41534a870c6e56bf3bdebb972ede6c06783255df | [
"BSD-3-Clause"
] | permissive | SciKit-Surgery/scikit-surgerybard | b5ccdf7df9b179da41986d41cbe45ce2d154c363 | 3a4ec2f2b22e12af2781238122427dd91231d110 | refs/heads/master | 2023-07-07T15:42:36.771451 | 2023-06-27T19:52:24 | 2023-06-27T19:52:24 | 260,141,467 | 3 | 0 | NOASSERTION | 2023-06-27T19:52:25 | 2020-04-30T07:22:32 | Python | UTF-8 | Python | false | false | 177 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from sksurgerybard.ui.sksurgerybard_command_line import main
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
| [
"mianasbatahmad@eduroam-int-dhcp-97-228-159.ucl.ac.uk"
] | mianasbatahmad@eduroam-int-dhcp-97-228-159.ucl.ac.uk |
b77f6cb4c37844887fe9769139d3b4cf953d6420 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL18_mMed-1000_mDark-20_ctau-500_unflavored-down_cff.py | a689762b309b5edaf406483255496d14a1d0b40b | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,981 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
12864b8861704ee4da1a109a726b0489f7f6ad36 | ea7d0f2ad8d4441ebbead7f7cc8469fdf2f2e207 | /media.py | e7142b39063d7c2af5be436d42225cf73ea94bd4 | [] | no_license | lmichilot/UdacityFSW_Project1 | f9d243d7aa50bb44ef305cd7acb1cff02a0b76aa | e70fb2346fab007b83747ad698d94d8ebeb68b57 | refs/heads/master | 2021-06-25T16:14:33.130345 | 2017-08-25T15:57:49 | 2017-08-25T15:57:49 | 101,202,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import webbrowser
class Movie():
"""
This class provides a way to store movie related information.
Attributes:
title: The title of the movie.
storyline: The summary of the movie.
poster_image_url: URL of the movie poster.
trailer_youtube_url: URL of the movie trailer.
... | [
"lmichilot@gmail.com"
] | lmichilot@gmail.com |
a51cafd8e5a3eaf78fe28d734db7d6fe74c76867 | ea5403586b2b67cd84c927de649318693236251d | /Python/04ControlFlow/03DataTypes/Exercises/01String.py | ed3df598cc05f7d67136104d50542943582f227c | [] | no_license | Mybro1968/AWS | ce71d175a13a85cc71ff5903fce4c2a1c73dc798 | 22362214897167649250dbed9b17065699795e64 | refs/heads/master | 2020-03-22T11:27:44.032406 | 2018-07-09T09:07:52 | 2018-07-09T09:07:52 | 139,972,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | ####
#01String.py
# strings 3 words together
####
word1 = "Good"
word2 = "Day"
word3 = "Gary"
sentence = word1 +" " + word2 + " " + word3
print(sentence)
| [
"noreply@github.com"
] | Mybro1968.noreply@github.com |
bb7711a1d9a0542bf0147818f036a11eb8eb630f | 5f65e12a62b59aea9263f35240c960b7e6009aa5 | /cb_scripts/game_on.py | 5cd86411560201702863ecffeab27460f20cfee6 | [
"MIT"
] | permissive | christopher-burke/python-scripts | 23e80b8e7f26a74ab68dc7d0ad1a8093d900cf8b | f5dceca0bdbe9de6197b26858600b792f6adff8a | refs/heads/main | 2022-05-20T01:36:04.668447 | 2022-04-25T20:31:33 | 2022-04-25T20:31:33 | 6,054,247 | 1 | 1 | MIT | 2022-03-16T02:24:45 | 2012-10-03T01:49:53 | Python | UTF-8 | Python | false | false | 1,233 | py | #!/usr/bin/env python3
"""Game on.
Games won tracker.
"""
from dataclasses import dataclass, asdict
import json
import sys
# from datetime import date
@dataclass
class Player:
"""Player dataclass."""
name: str
@dataclass
class Match:
"""Match dataclass."""
game: str
date: date = date.today... | [
"christopherjamesburke@gmail.com"
] | christopherjamesburke@gmail.com |
a7b37f0a32f43b1387f9bb0b53aeb674392056fe | 729ce64f0270821b12ce8f3cdda25dcd16c7afde | /flask_demo/association_analysis/alarm_association.py | b0dd6b05670331547e90778501a0182ca057a74f | [] | no_license | XLab-Tongji/Correlation_Analysis | 2ebb1e049cc8043d46fb1bbc37ef8349d9f1fda6 | c7b7b3118bbd2a53ac835c4457d43f5e58a009e4 | refs/heads/master | 2020-06-30T10:15:23.600334 | 2019-08-05T08:56:24 | 2019-08-05T08:56:24 | 200,798,908 | 0 | 0 | null | 2019-08-06T07:23:40 | 2019-08-06T07:23:39 | null | UTF-8 | Python | false | false | 4,831 | py | #-*- coding: UTF-8 -*-
from __future__ import division
import random
import math
from operator import itemgetter
def mixdata(alarmtime, timeseries_set, timeseries):
"""
:param alarmtime: 报警的时刻序列,已经排好顺序
:param timeseries_set: 每个报警时刻的时间序列构成的时序集
:param timeseries: 报警时刻整体区间内的时序数据
:return:mixset是混合集,a... | [
"547095144@qq.com"
] | 547095144@qq.com |
3e6a3ec1448066c03ebb5cb49c3430eec98d982a | c18f8172cdec913b3df3c241c343c1634ff1f26c | /Pluralsight/Intermediate/Unit_Testing_with_Python/1_Unit_Testing_Fundamentals/5_Poor_test/test_phonebook.py | 2a023f48ae679afd622685897b5488c281b5344c | [] | no_license | Gwinew/To-Lern-Python-Beginner | 0b0acb370790b1e4f3832ff8472cebd009e57bae | 7d7c01482419b4fb67bdcddd3e379cd4ef43ac2e | refs/heads/master | 2021-07-02T06:52:35.347061 | 2020-08-31T17:28:31 | 2020-08-31T17:28:31 | 146,579,656 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,135 | py | # Poor test case
"""Given a list of names and phone numbers.
Make a Phonebook
Determine if it is consistent:
- no number is a prefix of another
- e.g. Bob 91125426, Anna 97625992
- Emergency 911
- Bob and Emergency are inconsistent
"""
import unittest
from phonebook import Pho... | [
"maksymilian.wesolowski@gmail.com"
] | maksymilian.wesolowski@gmail.com |
f3b6fcf3ff2434a6798b06c31ddd4ea7418aaf06 | 6d065137cb8d0ec08fc0c4b41ffddc2a90e9a949 | /apps/base_dato/migrations/0001_initial.py | 41b2a422f0ce2693b943a452224545cbafc37040 | [] | no_license | Morales1408/Software-engineering | 2aa6ddc2503aa1be8e7809cf732a9586d63def52 | 29206f9e3fef4c28a9eefd59839091f292c0e87d | refs/heads/master | 2022-11-27T17:15:00.356726 | 2020-07-27T19:21:50 | 2020-07-27T19:21:50 | 282,942,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | py | # Generated by Django 3.0.7 on 2020-07-06 16:54
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='chofere',
fields=[
... | [
"st1809116@upy.edu.mx"
] | st1809116@upy.edu.mx |
7f333078d9807b56b618427a57b317b03cb1a02b | fe93c6797b942510cd511aacdb9986afa4106999 | /dl24/log.py | 4a833f47e0ae009b6205d58f4e1802bb0930e603 | [] | no_license | szgut/queueing | 0890875cfd20f028ba2ca254e16cf54a9585ec76 | 452c9dafcfad69766bc9f0051479ecc5ccccabd6 | refs/heads/master | 2020-06-09T05:00:54.886558 | 2015-04-06T14:43:21 | 2015-04-06T14:43:21 | 31,563,843 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | BLACK = '\033[30m'
RED = '\033[31m'
GREEN = '\033[32m'
YELLOW = '\033[33m'
BLUE = '\033[34m'
MAGENTA = '\033[35m'
CYAN = '\033[36m'
WHITE = '\033[37m'
RESET = '\033[0;0m'
BOLD = '\033[1m'
REVERSE = '\033[2m'
BLACKBG = '\033[40m'
REDBG = '\033[41m'
GREENBG = '\033[42m'
YELLOWBG= '\033[43m'
BLUE... | [
"pog992@gmail.com"
] | pog992@gmail.com |
f8441dfac7d30823607f006ff4e75a1d25cff2e6 | d5ac351fd1e521fbd9bf5f0883a5a139d7f740e4 | /forms.py | 55f8af9c9259943890584f7d6557fd92dd2aed2f | [] | no_license | Abhishekkumartrn/Kgp-networking-app-interface | 05d1877c967c64f7e290933af277b926b8396b07 | 250168d64a1d3c251388af57c96f6131a9afcde3 | refs/heads/master | 2022-12-03T04:42:36.188637 | 2020-08-08T08:48:20 | 2020-08-08T08:48:20 | 286,686,263 | 0 | 0 | null | 2020-08-11T08:16:57 | 2020-08-11T08:16:57 | null | UTF-8 | Python | false | false | 1,000 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo
class RegForm(FlaskForm):
username = StringField('Username',
validators=[DataRequired(),Length(min=8, max=15... | [
"noreply@github.com"
] | Abhishekkumartrn.noreply@github.com |
9f1faec8e0731fbad823f5000c61ae7553ec1af1 | 9083d620ec89d3c85f4270fd724010c20799368e | /app/admin.py | a6361094fdf44cebc131a84ddfb668ce2f22b52a | [] | no_license | riyadhswe/CovidHelp | e122aa1fefacb985c862e758a3021af4af08712e | 5e004739ec3facebbccdf0e9e46f96d3c01b2bb6 | refs/heads/master | 2023-08-14T04:14:37.458150 | 2021-10-10T05:02:23 | 2021-10-10T05:02:23 | 370,762,838 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.contrib import admin
from app.models import *
# Register your models here.
admin.site.register(Division)
admin.site.register(City)
admin.site.register(Hospital)
admin.site.register(Service)
| [
"riyadhswe@gmail.com"
] | riyadhswe@gmail.com |
487914b02da780d1d7776bd247bf83f3fdb7aaad | 167f475843d1fbd002636000173d81c97a1b2998 | /Pigwarts/Year3_Getting_Fancy/Chapter4_Lessons/loop5.py | 344c292daa4c7a0dd480492cd3d45e07cec54b90 | [] | no_license | edwinevans/HarryPotterTerminalQuest | 35f188ad69d26ef7ae051725568811210a6a741c | ffa9767666148b1668511459b59a6e261e61e5fa | refs/heads/master | 2022-05-12T11:38:14.988095 | 2022-03-19T01:24:14 | 2022-03-19T01:24:14 | 71,944,091 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #
# Keep printing random numbers until you find one less than 0.1
# Then print "Eurika!" and exit
#
# You can review earlier examples but try to create the whole program yourself without
# any hints
#
import random
while True:
number = random.random()
print number
if number < 0.1:
print "Eurika!"
break | [
"miaevans@edwin-evanss-macbook-pro.local"
] | miaevans@edwin-evanss-macbook-pro.local |
e954d47805f5d4d7ba09ea9172d9c32d2bb332c4 | e30469369764d7f1a5bd8b40970c574a84b9b8fd | /theReal/theRealOTC/urls.py | 52427268fda0470d10e8e59b65563c5e2b1728a3 | [] | no_license | seedatnabeel/OTC | f1ba57a714387667a723fa8709ed798ceb2d00a4 | 7fd7d938ded592472c05b51cfdedfcddf5512e93 | refs/heads/master | 2021-01-17T17:17:22.578481 | 2016-07-07T14:22:24 | 2016-07-07T14:22:24 | 61,906,244 | 0 | 0 | null | 2016-07-02T06:11:18 | 2016-06-24T19:00:02 | Python | UTF-8 | Python | false | false | 318 | py | from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^symptoms/', include('symptoms.urls')),
url(r'^causes/', include('causes.urls')),
url(r'^meds/', include('meds.urls')),
url(r'^contact/', include('contact.urls')),
] | [
"seedatnabeel@gmail.com"
] | seedatnabeel@gmail.com |
fb4a70ccbc105159901a8fc6d5fac8efdb7b4dbd | dec884c0f55b830571357e1a4563f93a11adf715 | /medusa/monitoring/dogstatsd.py | a4d9af0c3743bdb2eb00c6f73766648aa45e33bf | [
"Apache-2.0"
] | permissive | thelastpickle/cassandra-medusa | 1a08a2bb13cf36fdde344364ff4757caf6a4119e | aa41d5d05c93fa521c85b10b0f65e09041d7b742 | refs/heads/master | 2023-09-01T14:08:55.200660 | 2023-09-01T09:33:11 | 2023-09-01T09:33:11 | 219,795,871 | 246 | 130 | Apache-2.0 | 2023-09-14T09:06:35 | 2019-11-05T16:48:44 | Python | UTF-8 | Python | false | false | 1,646 | py | # -*- coding: utf-8 -*-
# Copyright 2021-present Shopify. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"alex.dejanovski@datastax.com"
] | alex.dejanovski@datastax.com |
c98b8344c6499cdf92eead15af7b0f8c6e83b2aa | db9ea672e8e21c45691904e3f883db87d4f702f9 | /sorting/sort.py | d84c18610d615221cde64c5b8f35666b0b0231f7 | [] | no_license | manoj06/Miscellaneous | 5f24837fdefdbef12ad1effef19de480219fbd01 | b03f817d5eba67b8da2014bf8a9278b06cc98d7f | refs/heads/master | 2021-05-10T09:33:26.960958 | 2018-01-25T15:14:08 | 2018-01-25T15:14:08 | 118,928,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | a=[1,5,7,8,9,2]
empty=[]
m=1
while True:
for i in range(len(a)):
count=0
for k in range(len(a)):
if a[i]<a[k]:
count=count+1
if count==len(a)-m:
if a[i] not in empty:
empty.append(a[i])
m=m+1
if len(empty)==len(a):
print empty
break
| [
"noreply@github.com"
] | manoj06.noreply@github.com |
a8ef2e8c10dd9e7ee0a932102a223060dfdcb6e8 | 6ec9f752e83928b7b906ba7179c6d706dfad5da1 | /app/gestionPedidos/form.py | 744ee780d07d15f036178f4a5f90e51bd24a5bd1 | [] | no_license | daniel-0s/django_pills_course | 31f8a77f70227b88ceca7ca5c8d929f95207a4ef | 587465187989600b252de0ac086d49429d8ef7a3 | refs/heads/master | 2022-10-06T12:03:02.268239 | 2020-06-09T22:27:55 | 2020-06-09T22:27:55 | 268,869,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django import forms
class FormularioContacto (forms.Form):
asunto = forms.CharField()
email = forms.EmailField()
mensaje = forms.CharField() | [
"daniel@MacBook-Pro.local"
] | daniel@MacBook-Pro.local |
b993149959091524ad909c1a0096aa98eb498b9e | 1f351d7178b430a329bf52a3894738eff6db8e72 | /producer.py | f641ad7d10c01f871c620f39fe4c5fa105772392 | [
"MIT"
] | permissive | ulfox/kafka-video-stream | 2e681cede1616bb99840e7bdfe30562abbd45f4d | e60b79415517c6e8528f98bf31687bd721006780 | refs/heads/master | 2022-02-09T14:27:20.460847 | 2022-02-01T12:43:20 | 2022-02-01T12:43:20 | 219,063,355 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | from sys import argv, exit
from time import sleep
import cv2
from kafka import KafkaProducer
class kafkaVideoStreaming():
def __init__(self, bootstrap_servers, topic, videoFile, client_id, batch_size=65536, frq=0.001):
self.videoFile = videoFile
self.topicKey = str(videoFile)
self.topic = t... | [
"christos"
] | christos |
65c743b47d21b4a5f4bc9d61deec30998b053b8f | 349dd60aea666ef28e54bab5becc9df5dd55b090 | /venv/Scripts/pip-script.py | 0660ac3e8a2c89f82bf43bc472935d95540cf396 | [] | no_license | Firesean/DotGame | 22cd44caa72d9150d3f7667b2bf9b9352277f548 | 02763a79de7d32a7dd0f7c1fba43d95ba1595a52 | refs/heads/master | 2023-05-26T11:40:10.217601 | 2023-05-12T19:51:13 | 2023-05-12T19:51:13 | 209,174,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!C:\Users\Owner\PycharmProjects\DotGame\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0... | [
"46581862+Firesean@users.noreply.github.com"
] | 46581862+Firesean@users.noreply.github.com |
5f446b40e7dde06790d494ceb680e3446c01f024 | 72d7ce952b86c6799a621107b21df0958222e510 | /icp.py | 0e1db83e692d4fea315d064aeec12a341e8aa4fd | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ericlong423/AlignNet-3D | ea3b6a4e971487de362adfbbf241294bfb36c0f5 | eb34e03a38012f06f86bc2847ae4093b14355e04 | refs/heads/master | 2022-11-08T07:53:43.228489 | 2020-06-25T09:41:34 | 2020-06-25T09:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,544 | py | import json
import logging
import os
import sys
import time
# from py_goicp import GoICP, POINT3D, ROTNODE, TRANSNODE
from contextlib import contextmanager
import numpy as np
from scipy.spatial.transform import Rotation
from tqdm import tqdm
import evaluation
import open3d as o3
import provider
from pointcloud impor... | [
"gross.jojo@googlemail.com"
] | gross.jojo@googlemail.com |
a003ec5234690f0465bc53f3b4e729bc1c4555a9 | 199c2bd148e2e97c5f8544864847591bb2402898 | /lesson_3_templates/manage.py | eda6e8efa4532dbf011eaa1518c476e3693ad2c2 | [] | no_license | achuDk/django_lesson | 443fc1f4af3f0ce1f0277cb2bde56774501fa60d | e5a8a5d70d5293b3a8db120052e7fed120bd7c80 | refs/heads/master | 2020-03-13T13:28:29.596443 | 2018-05-08T10:02:53 | 2018-05-08T10:02:53 | 131,139,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lesson_3_templates.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import D... | [
"achudk@qq.com"
] | achudk@qq.com |
8555fadef2daaa5488669cc0abbc52955524a398 | 8962da83c3397557ab62637b0ece739a3b5d4534 | /w3resource/q8.py | 055fa66595a42f1e9c1aedc76cecf9dd0f5a9114 | [] | no_license | kylechenoO/812pytest | a2a74c2b5fa0c92212c4b398bea7a663a36fced8 | bb3892c046dfa55db1a46016959d99835da53c78 | refs/heads/main | 2023-01-24T13:05:55.331383 | 2020-12-09T13:57:06 | 2020-12-09T13:57:06 | 315,020,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/opt/anaconda/bin/python
## Question 8: Write a Python program to display the first and last colors from the following list.
## import build-in pkgs
import re
## main run part
inputStr = input('Please input a list split with blank: ')
inputList = re.split(' ', inputStr)
print('1st item: {}'.format(inputList[0]))
pr... | [
"kyle@hacking-linux.com"
] | kyle@hacking-linux.com |
5986254371197dae06e34dd142354b05a0bbf455 | 4feb215ca051153d458a0f1c01e1fd50cce39fd9 | /manage.py | cca3a6efc5378e30d6b361936919e5dd4c41d78d | [] | no_license | visse0001/animal_shelter | 747f205d5f16fe42ac5d1a77bd3eae9a19a49acb | e3c001e4d58c85405b34ca01353dbfa0bf6bae0c | refs/heads/master | 2022-11-26T03:12:28.197951 | 2021-02-13T07:39:02 | 2021-02-13T07:39:02 | 248,967,900 | 0 | 0 | null | 2022-11-22T05:26:28 | 2020-03-21T12:06:41 | Python | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'animal_shelter.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"san.kuczynska@gmail.com"
] | san.kuczynska@gmail.com |
bd1e14773ad0fd6f809ba56d000a8bfabe1c6386 | add971046c4bd766c380d90d39535080d102ec4d | /blog/urls.py | 03f7a5fafcdbe2a31d1969b8fe1d5c58bea75ab2 | [] | no_license | auroralemieux/djangogirls-tut | a82170979f6c3d719ea4c7945edcfa533d69d65a | b0121f9acbabbd2bec5e5097e8c42cc81346fc84 | refs/heads/master | 2020-04-05T12:09:51.957158 | 2017-06-30T16:08:33 | 2017-06-30T16:08:33 | 95,243,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from django.conf.urls import url
from . import views
urlpatterns = [
# this is setting the root route
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name="post_new"),
url(r'^post/(?P<pk>\d+)/edit... | [
"aurora.lemieux@gmail.com"
] | aurora.lemieux@gmail.com |
379eed348ef285df31430cde41c3cad20e18dc15 | c151f8b82401500127aa5f924472b9b93c33f12f | /checkout/migrations/0001_initial.py | 9db939681b0c9ea9a7d6f63f56e48e7c4d1889d9 | [] | no_license | djacura/AGame | 4f7f8984ada210272b6249f496aacbc6d01eca56 | 0e85461e04b702d1f2e8094d733af480951e69f7 | refs/heads/master | 2023-03-11T09:17:56.309282 | 2021-02-28T08:52:09 | 2021-02-28T08:52:09 | 327,087,869 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | # Generated by Django 3.1.5 on 2021-01-18 21:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0002_auto_20210114_1719'),
]
operations = [
migrations.CreateModel(
... | [
"d.jacura@sky.com"
] | d.jacura@sky.com |
d660489e8f9aaa85168fe6230a528f5fa782d489 | 70fe5d0580424a2362feaec811cc58cf3abde1ca | /code/clean_data.py | 08c4f4d791ae552232ecf466d14612fa6be37642 | [] | no_license | zhang-yw/avn | 7d426d325f1030225faf50bda62461428da52166 | fd0bf6fe2144c02f81322be0f337ca8edfec5138 | refs/heads/master | 2022-12-05T14:22:49.741324 | 2020-09-01T14:24:45 | 2020-09-01T14:24:45 | 284,073,064 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | import h5py
import numpy as np
import networkx as nx
def get_pres(locs, rot, p_locs, p_pres):
for i in range(len(p_locs)):
if abs(p_locs[i][0]-locs[0]) < 0.25 and abs(p_locs[i][1]-locs[1]) < 0.25 and abs(p_locs[i][2]*90-rot) < 0.25:
return p_pres[i]
print("Not find")
print(locs)
print(rot)
exit(0)
f = h5py... | [
"yw-zhang16@mails.tsinghua.edu.cn"
] | yw-zhang16@mails.tsinghua.edu.cn |
e50a825fdb662cf8e4ddd282dfbd05d6ad92f388 | 3d00db49663c4694c2a2d83ccb279d16c4f43389 | /iaas.py | 7afb0581cdf2e7ec5bbff0ef63e55d2c282ea7e5 | [] | no_license | harshita978/cloud | 16cee4cad4073e087bf3526261d6f09c67354e31 | 710872fd0e8e57ea50b01171d9f5b81e8d43cfad | refs/heads/master | 2021-01-20T11:18:16.923515 | 2017-08-24T15:05:20 | 2017-08-24T15:05:20 | 83,948,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,010 | py | #!/usr/bin/python2
import commands
import cgi,cgitb
print "Content-type : text/html"
print ""
cgitb.enable()
x=cgi.FieldStorage()
user=x.getvalue('usr')
password=x.getvalue('passwd')
osname=x.getvalue('name')
osram=x.getvalue('ram')
oscpu=x.getvalue('cpu')
por=x.getvalue('port')
#hd=x.getvalue('hd')
#for radio button... | [
"noreply@github.com"
] | harshita978.noreply@github.com |
6fda27d6057b3948676d60f07f52a37bf01d75ff | 69168aa705bf3eef9163f485ff7d3b651de33190 | /python/convert_csv_gdf.py | ea7f112f44a510ce80df77d0c7b489cf490ad864 | [] | no_license | mrhysjones/rwc-gephi | 6aa03cda2386431e4ef2f7e49cbfd04b89273878 | ee0f6e16ee28c86e4466ac10e99160ebf42dddae | refs/heads/master | 2021-01-10T06:48:40.663708 | 2016-02-17T15:15:54 | 2016-02-17T15:15:54 | 51,853,746 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | import csv
# Take a CSV file in the form 'TeamA, TeamB, ScoreA, ScoreB, TriesA, TriesB' and
# create a GDF representation for use with Gephi
def convert_csv_gdf(csv_filename, gdf_filename='output.gdf'):
# Put result data from CSV files into 2D arrays for processing
fixtures = []
scores = []
tries = []
with open(... | [
"contact@matt-j.me"
] | contact@matt-j.me |
f0da7aa51ef368c2762cf0033e027208273b4603 | 41188a72facc51c65d0d58efe127f5e8c8811f5e | /0046. Permutations/Solution.py | 76886c436d83c51c92b29bc0f627d71268d88c1c | [
"MIT"
] | permissive | furutuki/LeetCodeSolution | 74ccebc8335125bbc4cbf1a76eb8d4281802f5b9 | 089d27af04bf81149251787409d1866c7c4390fb | refs/heads/master | 2022-10-31T08:46:15.124759 | 2022-10-25T02:57:54 | 2022-10-25T02:57:54 | 168,449,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from typing import List
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
def dfs(num: List[int], cur_res: List[int]):
if not num:
ret.append(cur_res)
return
else:
for i in range(len(num)):
d... | [
"furutuki@foxmail.com"
] | furutuki@foxmail.com |
f97209b91defd35c3e6f48a28ca9922c38530bc2 | 56a24c62ee11a7ea3124619625cb9782fc33c74b | /Softmax_Boltzmann.py | 3967fffb533a755dc0355ee668d1f7003e3e4a02 | [] | no_license | MezniMouafek1/Reinforcement-Learning | 03eff0f25b26cf7445b9eb65e8ee7b470c9fb795 | 31649e49f53d33d0bf842b1ecb1b680f2bf0b310 | refs/heads/master | 2020-12-04T07:09:48.164947 | 2020-01-03T21:58:37 | 2020-01-03T21:58:37 | 231,671,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # -*- coding: utf-8 -*-
#https://github.com/JKCooper2/gym-bandits.git
#cd
#pip install -e .
import numpy as np
import gym_bandits
import gym
from gym import wrappers
env = gym.make("BanditTenArmedGaussian-v0")
env = wrappers.Monitor(env,'C:\DATASCIENCES')
env.action_space
#initialisez les variables:
# nombre... | [
"mouafek.mezni@esprit.tn"
] | mouafek.mezni@esprit.tn |
731ea584c6c77788eb745d2777f2ade7e83e3595 | baf418eb9fc7756a6eea75fe0d8c9fa18a5c7fb0 | /works/migrations/0001_initial.py | 67cc0624bde8f5e4158955d253308050f7d19ddd | [] | no_license | ansakoy/dsw | 37c47dfd6f4010d7c4d25cab758ed1a09645ce91 | c676a9920205b46259df593ceb62f0d0a8198041 | refs/heads/master | 2021-06-14T00:31:42.138547 | 2019-10-09T14:49:55 | 2019-10-09T14:49:55 | 181,659,065 | 0 | 0 | null | 2021-06-10T21:50:38 | 2019-04-16T09:34:18 | HTML | UTF-8 | Python | false | false | 3,838 | py | # Generated by Django 2.2 on 2019-04-19 11:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
... | [
"ansakoy@gmail.com"
] | ansakoy@gmail.com |
32d2b673b4421719313ac17c64560921dade7d60 | 2b8d4e22d10ca118fba0100cc87af04f3939448f | /ioud10/ioud_sale_order/__manifest__.py | 22982bed7d88a58ac835d123e58c4e47090afaf9 | [] | no_license | ahmed-amine-ellouze/personal | f10c0a161da709f689a3254ec20486411102a92d | 4fe19ca76523cf274a3a85c8bcad653100ff556f | refs/heads/master | 2023-03-28T23:17:05.402578 | 2021-03-25T13:33:18 | 2021-03-25T13:33:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
{
'name': "ioud_sale_order",
'summary': """
This module is for customization of sale for iOud """,
'description': """
This module is for customization of sale for iOud
""",
'author': "SolutionFounder",
'website': "http://www.solutionfounder.com",
... | [
"hussnainsajid08@gmail.com"
] | hussnainsajid08@gmail.com |
193122adf0ef9170907c47e035ebe8434d378807 | e3910a25ca4456a35112d41f184fe2a919214ac0 | /reservation/migrations/0003_auto_20160310_2101.py | 4bd2beed2f08e5987ae67f1bc5dbe13adea43864 | [] | no_license | RobertPastor/studio_reservation | a498f1ae2077bb21199651d245f22cb59ef13370 | 63a47de856cc1d5aedbd4024d8696b39470d11f2 | refs/heads/master | 2021-01-10T16:13:32.935529 | 2018-01-28T14:19:28 | 2018-01-28T14:19:28 | 54,514,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.3 on 2016-03-10 20:01
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('reservation', '0002_reserva... | [
"robert.pastor0691@orange.fr"
] | robert.pastor0691@orange.fr |
fad28a7559308bee0c5acdfc8681f51b8076f9be | c101c4f7dfdb4492a380e7564beaf2892c9ae527 | /modules/s3/s3resource.py | f30e194ceb9f99545db7f694b1314d6241141f10 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | somayjain/eden | 0137b4c89f04ae35b431881d27a175deb4b31ebb | d401e20a7512e7b7781f16a13503bbd984bf2dbb | refs/heads/master | 2021-01-18T11:56:50.477613 | 2014-11-16T11:34:27 | 2014-11-20T12:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210,832 | py | # -*- coding: utf-8 -*-
""" S3 Resources
@copyright: 2009-2014 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restri... | [
"dominic@nursix.org"
] | dominic@nursix.org |
375a86fb3e15986700a4f9d2efe2244a228d0657 | 49f80da499ab75acc243b50a1d4c1617cff04284 | /CerealAnalysis/__main__.py | c5155afdeb06ca924496772f7ef10e4580732f49 | [] | no_license | damiengarrouste78/CerealAnalysis-repo | 524f9e243cdc494283a0bfd92e147a96a20ea696 | f5935f9a3fcf24eae95ef2c98153b538701ff9be | refs/heads/main | 2023-05-06T07:54:10.900923 | 2021-05-21T14:52:01 | 2021-05-21T14:52:01 | 369,239,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import sys
sys.path.append(".\\")
from app import run
if __name__ == '__main__':
run() | [
"noreply@github.com"
] | damiengarrouste78.noreply@github.com |
7f721f804bb356a2863c1e1a5bde29a255ad08f7 | d5280a5dd28a81b9e3a687b7c5312a0a4c36353a | /Checkouts/emptyAmountTestCase.py | b5275c580e396a7636acf2aa5089fbf5b3290d7e | [] | no_license | amritregmi/python_automation | 4eb394ecbc09517eeae3edcd7ab6b8d335a58fb0 | c514641a69c83dd3691eed973facf6f938dccd06 | refs/heads/main | 2023-03-07T06:02:36.563055 | 2021-02-19T21:40:08 | 2021-02-19T21:40:08 | 313,269,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | import os, sys
from selenium.webdriver.support.ui import Select
sys.path.insert(0, os.path.abspath(".."))
from Base import loggedInBaseTestCase
class EmptyAmountTestCase(loggedInBaseTestCase.LoggedInBaseTestCase):
def test_emptyAmount(self):
self._caseId = 291
self._suiteId = 8
self._user =... | [
"amrit@amrit.com"
] | amrit@amrit.com |
c1e10c049c27fd320f32a3101f5578c62b0d3f4b | 92ba25f34af38603970f1f773381178e3ee1c787 | /task_NER_Pipeline.py | c4f02bcc9d0ccb26469fad6c9758eabadc07a48b | [] | no_license | tianyao-aka/Bert_for_NER_POS | 870aaa89c50368bd3b049c56cd37e19b11a8e270 | e88533aa8915b306d8c24b90f86be25133f6700c | refs/heads/main | 2023-01-23T23:58:26.887003 | 2020-12-08T12:56:18 | 2020-12-08T12:56:18 | 319,638,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,213 | py | import numpy as np
import pandas as pd
from conllu import parse_incr,parse
import torch
import matplotlib.pyplot as plt
from collections import Counter
import pickle
from seqeval.metrics import f1_score
from pytorch_transformers import BertTokenizer, BertModel, BertForMaskedLM,AdamW, WarmupLinearSchedule
impor... | [
"noreply@github.com"
] | tianyao-aka.noreply@github.com |
8b346eaacf62c7cde882fe6c60be97b4649c2519 | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/DICTIONARY/Day48 Tasks/Task2.py | 81b89aa1ff7a364846dcb6ab7608ea8ed5a16508 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 211 | py | '''2. Write a Python script to add a key to a dictionary.
Sample Dictionary : {0: 10, 1: 20}
Expected Result : {0: 10, 1: 20, 2: 30} '''
original_dict = {0: 10, 1: 20}
original_dict[2] = 30
print(original_dict) | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
e1e60256ed0e465a7c3a3fe862106351f0ce1953 | e24a3601449f5aaf235cb2a7445146d622da1c87 | /test_ws/build/catkin_generated/order_packages.py | 59923b0fbbb6d0b6ddc0f6d2f1c4c843a69b8168 | [] | no_license | udooer-old/ROS | 1edb919524535baf010f62b3dd6e499e859b8d70 | a19833431919d5995fc67dfd4a288b25919f5bfe | refs/heads/master | 2022-11-08T06:48:35.324381 | 2020-06-30T09:42:02 | 2020-06-30T09:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = '/home/yong/ROS/test_ws/src'
whitelisted_packages = ''.split(';') if '' != '' else []
blacklisted_packages = ''.split(';') if '' != '' else []
underlay_workspaces = '/home/yong/sensor_ws/devel;/home/yong/catkin_ws/devel;/opt/ros/melod... | [
"hunghsuyong114shane@gmail.com"
] | hunghsuyong114shane@gmail.com |
8753a921a15f6a43bf864b793500b8df7df5a232 | bc437dc74647765b51996f64b35fda3d047daf93 | /2_Intermediate/day18_The_Hirst_Painting_Project/main.py | 4c03978fb420c12c9f275227d28b734e5c0a907b | [] | no_license | macosta-42/100_days_of_code | e06720d57b6ed870a3dd4fa4e6d019296206a08f | 5b527dc18bae2ef556c26f653ef3c4badf94bb82 | refs/heads/main | 2023-05-22T03:26:02.422275 | 2021-06-10T10:31:26 | 2021-06-10T10:31:26 | 328,963,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # import colorgram
#
# Extract 30 colors from an image.
# colors = colorgram.extract('image.jpg', 30)
#
# rgb_colors = []
#
# for color in colors:
# r = color.rgb.r
# g = color.rgb.g
# b = color.rgb.b
# new_color = (r, g, b)
# rgb_colors.append(new_color)
#
#
# print(rgb_colors)
import turtle as t
... | [
"macosta@student.42.fr"
] | macosta@student.42.fr |
39449e677ee1bf94f14738a476fbaeffef554460 | 11e484590b27585facf758f0432eeebe66bf790a | /fal_default_discount/__openerp__.py | ebb37f69d114ff8b401e6a98002ffca961d71f5d | [] | no_license | jeanabreu/falinwa_branch | 51b38ee5a3373d42417b84a0431bad9f7295f373 | be96a209479259cd5b47dec73694938848a2db6c | refs/heads/master | 2021-01-18T10:25:49.866747 | 2015-08-25T10:05:05 | 2015-08-25T10:05:05 | 41,369,368 | 0 | 1 | null | 2015-08-25T14:51:50 | 2015-08-25T14:51:50 | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
{
"name": "GEN-39_Default Discount",
"version": "1.0",
'author': 'Falinwa Hans',
"description": """
Module to give default discount
""",
"depends" : ['base','account','sale','purchase'],
'init_xml': [],
'data': [
],
'update_xml': [
'res_partner... | [
"hans.yonathan@falinwa.com"
] | hans.yonathan@falinwa.com |
55070346d3ec2829e4dd6a8d84eee4fdd455a3b8 | 8ea915b38738ec717e2ac763786005877cfc0064 | /main.py | b4749d36c6ae3341cdd0bee2c053deddbbec9801 | [] | no_license | jimmy43333/Python_Learning | 374e3c2695200ab3020e423d02513a6866530adb | 01672e23838827ac77dcf1c49034bde015d14be5 | refs/heads/master | 2023-08-14T17:54:18.630258 | 2023-07-12T14:07:28 | 2023-07-12T14:10:07 | 104,288,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | #from learning_test import Learning
import logging
from TGlog import setuplog
if __name__ == '__main__':
setuplog("./Log/infoLog.log",'a',logging.INFO)
setuplog("./Log/errorLog.log",'w',logging.ERROR)
logging.debug("Debug from main")
logging.info("Info from main")
logging.warning("Warning from... | [
"jimmy43333@gmail.com"
] | jimmy43333@gmail.com |
7c92061e65b904281c64601cd3cdbc135f8bd3a3 | bb5a27d39bca1d2bb3eeb752b04a43b71801a110 | /Python/PostgreTools/export2kml.py | b7203bcc15df58a32821126896af370fade4f68a | [] | no_license | hulaba/datatools | 0ed6bb40c6d3c3ca389ede1b80fa8888e760ae66 | 538ddb1d92a3fa8c9d9d87289ae00b9234c2bbef | refs/heads/master | 2021-05-31T09:14:35.105356 | 2011-12-03T03:01:33 | 2011-12-03T03:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,740 | py | import os,string,codecs,unicodedata
from psycopg2 import connect
from osgeo import ogr
from xml.dom import minidom
from datetime import *
def export_gl_outline(basin_code,outpath):
kml_file=outpath+'gl_'+basin_code+'.kml'
conn=connect("host=localhost dbname=GGLIS user=postgres password=... | [
"wulizong@18d743b0-f649-0410-97d6-f906a9d518df"
] | wulizong@18d743b0-f649-0410-97d6-f906a9d518df |
2f1e39e5de40e2d9c364cac742d86ea64786c212 | 9886b515b02e595fbcea77ccd27e43d2c6c5261a | /tools/apigee-analytics-load-generator-demo/v2/load-generator/backend/services/loyalty/loyalty.py | acb7d6bd0c0e19b6b30e0729a97ffc9322451488 | [
"Apache-2.0"
] | permissive | igalonso/devrel | 783b2dcd6c01d6f1517a0ad333666bc6c4c18afa | aecd1d281bc21aedb9d88611a2a61ed46a30f3ed | refs/heads/main | 2023-06-16T03:18:25.113785 | 2021-07-06T14:51:32 | 2021-07-06T14:51:32 | 383,504,044 | 0 | 0 | Apache-2.0 | 2021-07-06T14:50:02 | 2021-07-06T14:50:02 | null | UTF-8 | Python | false | false | 1,191 | py | import time
import random
def getTotalLoyaltyPoints(id):
sleepTime = random.randint(1,50)
print("random sleep: ",sleepTime)
if id == 1:
points = {
"total_rewards_points":43526244,
"healthy_choice_points":665446,
"transaction_id":"234099-324234-4324532"
}
... | [
"igalonso@gmail.com"
] | igalonso@gmail.com |
d923942c79de930927cb13329ae09b97438abfd4 | b7536e7d366949a34902da4426e0693293b3b99d | /projs/scrapy/demobot/spiders/imgsp.py | b30c6a894d956137a6e60508d6b5ff6c9f6d7c91 | [
"MIT"
] | permissive | peacexie/python | 55fe4220e7d92e989bd6b76082bd3c1ebd8e010a | de776979030fdd537a0a9ec6d6933bb8b6da46eb | refs/heads/master | 2021-01-22T00:45:27.614636 | 2019-11-13T00:59:43 | 2019-11-13T00:59:43 | 102,193,239 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # -*- coding:utf-8 -*-
import scrapy
from demobot.items import ImagespiderItem
class ImgspiderSpider(scrapy.Spider):
name = 'imgsp'
custom_settings = {
'ITEM_PIPELINES': {'demobot.pipelines.ImagespiderPipeline':300}
}
allowed_domains = ['lab.scrapyd.cn']
start_urls = [
'http://lab... | [
"xpigeon@163.com"
] | xpigeon@163.com |
41e72a68572be0fbf05ea4f8cca49a634c8412f1 | 101afac6526d9756905dc90467cef894fff3ab40 | /rpa_basic/1_excel/1_create_file.py | ee2cd8040c44038f170e7d2a29a1a25ebed522a5 | [] | no_license | IMRaccoon/Python-study | a1353a6b6fdbe3ea66db667a9199e43f1582e4fb | e60a021d2968f04d6098acf751c20283ea193bb4 | refs/heads/main | 2023-07-09T22:18:04.527124 | 2021-08-11T19:10:33 | 2021-08-11T19:10:33 | 320,856,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from openpyxl import Workbook
wb = Workbook() # 새 워크북 생성
ws = wb.active # 현재 활성화된 sheet 가져옴
ws.title = "NadoSheet" # sheet 의 이름을 변경
wb.save('sample.xlsx')
wb.close()
| [
"whdies816@gmail.com"
] | whdies816@gmail.com |
4fd1ad6f5adbd7ceebecd3beab071b89dc4786e0 | 4da2982f763d784b3e42d9968b3e726b7e70d06b | /Program Fungsi 5.py | 6f673fdff6775308a4177d7841ccf1165edd7594 | [] | no_license | adelliamaharanip/Python-X2-AdelliaMaharaniPutri | acb5c2ade4a5a2de2e1d89e5fac3c2337722b168 | 23e48c14a5b67afaa89583777aa9541ef2376917 | refs/heads/master | 2023-04-19T16:31:27.152809 | 2021-05-06T23:38:58 | 2021-05-06T23:38:58 | 335,598,686 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Definisi fungsi
def penjumlahan( *vartuple ):
print ("Jumlahnya adalah: ")
jumlah = 0
for var in vartuple:
jumlah = jumlah + var
print(jumlah)
def rata(*vartuple):
print("Rata-ratanya adalah : ")
rerata = 0
tot = 0
for var in vartuple:
tot = tot + var... | [
"noreply@github.com"
] | adelliamaharanip.noreply@github.com |
1dc3c512bc7cab780a6d844525295ac1300e961a | 3ff0693a38c2dfe40970e04d67b5698c3445b546 | /app/models.py | ba2a957175df3933b2589bb50218ca87b7b457dd | [] | no_license | microwriting/pro15_tango | a1c13cca1434a076e88ff10aa0eeb9471f461401 | dedad47277c96a62c7a9ba49d19ea8c15a4f6d74 | refs/heads/master | 2020-03-07T14:30:31.475682 | 2018-04-02T10:35:14 | 2018-04-02T10:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from django.db import models
from django.utils import timezone
class Tag(models.Model):
name = models.CharField('Tagname', max_length=255)
created_at = models.DateTimeField('date', default=timezone.now)
ordering = models.IntegerField(default=0)
def __str__(self):
return self.name
class M... | [
"info@micro-w.top"
] | info@micro-w.top |
7a3726afe8b02197bef84696ceada8f8fae392c1 | ea68fad8ce90c488fe9846d6fe636ef94d35fc8c | /pyiele/fetchFunctionData.py | 497f218a1d575941d87368f2eee3ad8259c60928 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | runtimeverification/iele-semantics | 03eb1bf28c1afbf682bb83f86f269f36f374adaf | e030f7592753ee3dd6452757a5fdcfe3baacf037 | refs/heads/master | 2023-08-04T15:02:32.863523 | 2023-07-20T13:54:42 | 2023-07-20T13:54:42 | 105,186,520 | 131 | 39 | NOASSERTION | 2023-07-18T16:39:18 | 2017-09-28T18:44:13 | HTML | UTF-8 | Python | false | false | 2,453 | py | #!/usr/bin/python3
import sys
import os
import json
import re
from Crypto.Hash import keccak
def generate_signature(name:str, inputs:dict) -> str:
''' A function signature looks like `name(arg_type1,arg_type2)` '''
args= "(" +','.join([x["type"] for x in inputs]) + ")"
return name+args
def process_file(f... | [
"noreply@github.com"
] | runtimeverification.noreply@github.com |
bf5759cafd97195415fe90bc53d0e1a21911ab09 | 63a7376693125bfeb9f58961539bb516e3102206 | /prob50.py | 1027ab724c5ae172da5be61fde484505b8a5d8c1 | [] | no_license | guruprasadpr/Euler_Python | 8108283ab5eb4ca12491ae62d613c34bb5696c3c | 208604206f41fddf37f2cd4564eba439aaa23a5e | refs/heads/master | 2021-01-01T17:33:37.406142 | 2013-03-27T07:51:48 | 2013-03-27T07:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | #!/usr/bin/python
from gprfuncs import *
lprm=getPrimeBel(100)
print lprm
| [
"guruprasadpr@yahoo.com"
] | guruprasadpr@yahoo.com |
3ae079ee27ae66672e7f2c9fb20860d317f0af8e | 3e6c00aa1be93f36e2fc674ccdf6773f076424a9 | /blogapp/migrations/0002_alter_blog_id.py | be8890f29e3ddf6cca398ba49191e17df92e771c | [] | no_license | eunji0221/0625 | 2da984a7f3a1a2baf3abe734d827f3671663752a | a3afb277d0d54725bfe08296f3fabf495b8a54a8 | refs/heads/main | 2023-06-10T05:39:11.160829 | 2021-07-02T08:29:18 | 2021-07-02T08:29:18 | 382,278,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 3.2.2 on 2021-06-25 10:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='blog',
name='id',
field=m... | [
"{em309@naver.com}"
] | {em309@naver.com} |
d5a21b5befbc6ab95420d33922549f98623497f7 | 7e7db897707bdf2f76467b640f89630ba6dd96c2 | /network.py | dd2f59f69b391112be783a2df0cc08adfc717694 | [
"MIT"
] | permissive | sk364/handwritten-digit-recognizer | f72439ad95396bdf704dea08f5e2eab5dc92bc56 | ece86d7f6b78bfaad69028b30879a6e92b1e50e2 | refs/heads/master | 2021-01-19T19:57:38.855010 | 2017-04-27T11:09:13 | 2017-04-27T11:09:13 | 88,470,675 | 0 | 1 | null | 2017-04-27T11:09:14 | 2017-04-17T04:41:31 | Python | UTF-8 | Python | false | false | 7,722 | py | import os
import numpy as np
import random
from activations import sigmoid, sigmoid_prime
class NeuralNetwork(object):
def __init__(self, sizes=list(), learning_rate=0.8, mini_batch_size=10,
epochs=10, lmbda=5.0):
"""Initialize a Neural Network model.
Parameters
-------... | [
"skad5455[at]gmail.com"
] | skad5455[at]gmail.com |
1ae172ee905717997bd46629d8738ca156c1ed5c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/EFT/ggH/tools/2017_MakeAnaTemplates.py | 6a081846b8ae6c05a502216a36fb9d23aaf6807a | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 31,671 | py |
import sys
import ROOT
import numpy as np
import shutil
import math
import os
ROOT.gStyle.SetOptStat(0)
ROOT.gStyle.SetOptTitle(0)
############# Couplings of mixed samples (g)
cons = {"VBF_H0M" : 0.29797901870, "VBF_H0PH" : 0.27196538, "VBF_H0L1" : -2158.21307286,
"WH_H0M" : 0.1236136, "WH_H0PH" : 0.... | [
"tomas.kello@cern.ch"
] | tomas.kello@cern.ch |
cc9d70872b0b7736cd51c99e19f150a06d3ed609 | 2a94e94c4e3f75aa1e75a6a4287def0d886dc2f3 | /accounts/migrations/0002_order_product.py | a8d54fe9216f678e13075c89b0434259b511d539 | [] | no_license | zero-one-0/CRM | bf721d456eca9da4003b948483589cc382959dfc | c30f777c8d3413d98d53ec9d12fe4c2924e9dfd7 | refs/heads/main | 2023-05-09T04:54:41.039244 | 2021-06-03T14:50:42 | 2021-06-03T14:50:42 | 373,542,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | # Generated by Django 3.2.3 on 2021-06-02 04:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Order',
fields=[
('id', m... | [
"zeros_ones@pop-os.localdomain"
] | zeros_ones@pop-os.localdomain |
63a3859655163da8d1b68d6100318174b51087b3 | fa69eadde7b449647ebd976214d2f99886b6db18 | /FireHydrant/common/enum/task/type.py | da3d9f0df70ac9947f6d9e55b12919b3b7ed67be | [] | no_license | shoogoome/FireHydrant | 0da1d6e06aa9e853837f6435a30ac4ef73118764 | 7467cd66e1fc91f0b3a264f8fc9b93f22f09fe7b | refs/heads/master | 2020-06-21T01:29:25.711595 | 2019-12-18T00:31:01 | 2019-12-18T00:31:01 | 197,309,304 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # -*- coding: utf-8 -*-
# coding:utf-8
from common.core.dao.enumBase import EnumBase
class TaskTypeEnum(EnumBase):
PERSONAL = 0
TEAM = 1
__default__ = PERSONAL
__desc__ = {
'PERSONAL': '个人任务',
'TEAM': '团队任务',
} | [
"shoogoome@sina.com"
] | shoogoome@sina.com |
f3dd96f1082ad540ddc6630f148e84b403cb2e0d | 651c5a5b3abdb220cd20c33db9dfb5447c973917 | /events/utils/reports.py | b22dcdc497a611005dc5f4e7a92a0b25509d85cd | [] | no_license | Frankie-Figz/capital-nature-ingest | cc8b568f7af32d700b6caf603a1f0465bbc49b74 | a33d4fc86f500729a88b1041d4f5abf8e9b74712 | refs/heads/master | 2020-12-22T00:49:28.706241 | 2020-10-11T22:05:52 | 2020-10-11T22:05:52 | 236,619,317 | 0 | 0 | null | 2020-01-27T23:35:30 | 2020-01-27T23:35:29 | null | UTF-8 | Python | false | false | 15,177 | py | import csv
from datetime import datetime
from io import StringIO
import os
import re
import pandas as pd
from pandas.errors import EmptyDataError
from .event_source_map import event_source_map
from .aws_utils import get_matching_s3_keys, object_key_exists, \
read_and_delete_object, put_object
BUCKET = os.getenv... | [
"noreply@github.com"
] | Frankie-Figz.noreply@github.com |
67892bec91a5b51722b84ad0ed1c65ff578271b5 | 29511e6344136ab5b2e921dd10e48a2c85efc0e9 | /days/46-48-beautifulsoup4/github-trending-scraper/scraper.py | 2fe077498b6ca351a82a76ad8384d3158530d221 | [
"MIT"
] | permissive | michaelstrefeler/100daysofcode-with-python-course | 29e695ece3366d2d60d9f3dab50580f2af619d3b | a332ac1bf23105904c987cdf02611b78282dd054 | refs/heads/master | 2020-04-02T12:47:42.531554 | 2019-01-31T17:01:50 | 2019-01-31T17:01:50 | 154,452,154 | 0 | 0 | null | 2018-10-24T06:45:49 | 2018-10-24T06:45:48 | null | UTF-8 | Python | false | false | 595 | py | from requests import get
from bs4 import BeautifulSoup
URL = "https://github.com/trending"
def pull_site():
raw_site_page = get(URL)
raw_site_page.raise_for_status()
return raw_site_page
def scrape(site):
soup = BeautifulSoup(site.text, 'html.parser')
repos = soup.find_all('li', 'col-12 d-block... | [
"mstrefeler@me.com"
] | mstrefeler@me.com |
636a708a2340a9dd663072ed3c62b42dc9dca597 | c62097f261a152ef849ee1328ce4dae5565e99c6 | /lec2_branch_loops.py | 7a69aaf8c485c0a1e543dc8a4685af7716c26dd4 | [] | no_license | grovemonkey/pyprojects | 84c4de0576fff90f4d6ea5eb6db34927945aa059 | 4970c8e14b8de72cc30d90277eb8264a039b0aeb | refs/heads/master | 2020-11-24T17:29:18.867645 | 2020-03-29T16:11:27 | 2020-03-29T16:11:27 | 228,272,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | ###################
## EXAMPLE: strings
###################
#hi = "hello there"
#name = "ana"
#greet = hi + name
#print(greet)
#greeting = hi + " " + name
#print(greeting)
#silly = hi + (" " + name)*3
#print(silly)
####################
## EXAMPLE: output
####################
#x = 15
#x_str = str(x)... | [
"noreply@github.com"
] | grovemonkey.noreply@github.com |
15b0244d6e97ea5157fc8b3fca78e83c8ad29fa7 | 08d4d33f7f44751199dcd6e9c6cbe940c8d20e6b | /movie_review.py | df748e0e45481f0df2c9264c3a80002da6628c37 | [] | no_license | yogesh-kamble/kaggle-submission | 385428da580430a7aef40e03aec004340967620c | e970c789a304e78b34f8c69e5dbe870428d8d771 | refs/heads/master | 2021-03-12T20:10:49.040115 | 2015-01-18T16:28:31 | 2015-01-18T16:28:31 | 29,432,153 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | import csv
#from textblob.classifiers import NaiveBayesClassifier
#from nltk import NaiveBayesClassifier, classify
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.pipeline import Pipeline
from sklearn.naive_bayes import GaussianNB
fro... | [
"yogesh.kamble102@gmail.com"
] | yogesh.kamble102@gmail.com |
f988ab25a0b885c399e49b122f64041b27982268 | d477a7c859a49b2bcb7e23a8f24f6f1cb715643c | /lib/colorPuzzle.py | 1def83aaaffe068a8df071e533db7913f7ff0d44 | [
"MIT"
] | permissive | scriptslay3r/MyRose | 3e691f09bce695a75c5229d64db7893d943a7f83 | b716969b6bb424be3125c6370b0c9f450cf76151 | refs/heads/master | 2022-10-01T23:40:49.038235 | 2020-06-09T12:53:47 | 2020-06-09T12:53:47 | 259,688,194 | 1 | 0 | MIT | 2020-06-09T12:53:48 | 2020-04-28T16:12:09 | HTML | UTF-8 | Python | false | false | 4,972 | py | import pygame, sys, random
from pygame.locals import *
pygame.init()
tickTock = pygame.time.Clock()
FPS = 30
WINLENGTH = 500
WINBREADTH = 500
BOXSIZE = 40
GAPSIZE = 7
BOARDLENGTH = 5
BOARDBREADTH = 5
XMARGIN = (WINLENGTH - (BOXSIZE + GAPSIZE) * BOARDLENGTH) / 2
YMARGIN = (WINBREADTH - (BOXSIZE + GAPSIZE) * BOARDBREADT... | [
"noreply@github.com"
] | scriptslay3r.noreply@github.com |
de3d50a87a32fe3546e5f17888e1fe94e450ebf7 | 3a23439178cb24d0b4985db17623227d09711535 | /optdemo.py | 1cc20a576a405094a9cc0c0a5e213c7ecff454bb | [
"MIT"
] | permissive | raeidsaqur/ml-gradientdescent | 4ff6f4825e305069d0de8fc30877db70abe181f9 | a061423c8e9c131ad05970d7cbaf2f42f646db1c | refs/heads/master | 2021-07-01T16:27:34.131577 | 2017-09-16T04:30:26 | 2017-09-16T04:30:26 | 103,724,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import numpy as np
import pylab
from scipy.optimize import line_search
def steepest_descent(grad_fun,params,num_iters, *varargs):
## Learning Rates
#eta = 0.1
eta = 2
#eta = 3
## Momentum
alpha=0.7
momentum=True
d = np.ones(params.shape)
d = d / np.linalg.norm(d)
mom = np.zer... | [
"raeidsaqur@gmail.com"
] | raeidsaqur@gmail.com |
aea3a9a0fed5a05744f4626fdc556ebdf7532d35 | 7ad2cca42292067c2707f6f49722fe9b568c0539 | /no-hashing-methods/CMDN_IJCAI2016-master/deepnet-master/deepnet/fx_util.py | d12e60f52900eac2a7b8d44e42165d9593d5c2a2 | [
"BSD-3-Clause"
] | permissive | qiqi545/gcn-cross-modal | 4de16de800620ac2ed96fc5d8ca7409d20255b25 | 29e9b0d0e9abebc0d359c6a727d180d57f45832b | refs/heads/master | 2021-05-20T16:57:30.113968 | 2020-03-21T14:28:03 | 2020-03-21T14:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | import time
import sys
import os
import numpy
import gzip
import zipfile
import cPickle
import random
import PIL.Image
try:
import magic
ms = magic.open(magic.MAGIC_NONE)
ms.load()
except ImportError: # no magic module
ms = None
class fx_UnpickleError(Exception):
pass
def fx_pickle(file... | [
"hbzhang@vt.edu"
] | hbzhang@vt.edu |
48139347ca38ff413663fe2c88ee25ff2ed40945 | c1c4dfdb8df223e19b811b18cce709ff47afe336 | /node_modules/gulp-sass/node_modules/node-sass/build/config.gypi | 438b9289b86a205279ccc357b01c9c83d5168d18 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hgagliardi/artapp | a4bb7664ecfb091c20f95921453ae86e8c4548cb | d27ac93000c9dcf065ce585dc9c611551f687a27 | refs/heads/master | 2021-05-06T13:27:12.188706 | 2017-12-13T12:24:43 | 2017-12-13T12:24:43 | 113,225,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,323 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"DISENO-03@macMiniHernan.local"
] | DISENO-03@macMiniHernan.local |
7db647d25a21499083092c001e5dbe7f68539f5a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/506ae8f067379afa4417a57db5814487ea198a23-<_ldflags>-fix.py | e74dc5c62be559f47e3819254ac49089008a296f | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | @utils.memoize
def _ldflags(ldflags_str, libs, flags, libs_dir, include_dir):
'Extract list of compilation flags from a string.\n\n Depending on the options, different type of flags will be kept.\n\n Parameters\n ----------\n ldflags_str : string\n The string to process. Typically, this will be t... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
43daa47323e7acbe7a228bde6ae71b319b1d9a2d | 549069741a2ab84f9dea7b2a95b5e1024ab9c1e5 | /RecklessPilot.py | 2d3154f878c4b65adc2b6ae3a0b1cdba8317bf78 | [] | no_license | fitzscott/BattleCruisers | 869a7938f7130c85b9fc485054e64c988373b7b5 | 26c2dd3deca3a9064459dd3cab91f3a8d12602a3 | refs/heads/master | 2020-05-22T15:19:39.757344 | 2017-04-20T13:14:52 | 2017-04-20T13:14:52 | 84,698,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 11 22:05:57 2017
@author: bushnelf
"""
import Card
class RecklessPilot(Card.Card):
"""
Reckless Pilot - discard a card, get 4 VP
"""
def __init__(self):
Card.Card.__init__(self, "Reckless Pilot", 11)
self.add_symbol(self.Symbols[2])
... | [
"bushnelf@gmail.com"
] | bushnelf@gmail.com |
58b227ae000cdf636e95f70367240f5ccb8b65c8 | a7e86b6fdd072ba3b78fbf8ff0adc1f5dba8d8bb | /2. Linear Regression/DecisionTreeRegression/Untitled.py | 55a0bc0a8f127ca4e3187eb089bf840aa78855a8 | [] | no_license | TheRochVoices/UdemyML | 28cddbd5ed4ac9b8e453dcbbc11b0127293c5ba6 | b5f8565f8fdc28d2c59d91b2ccd333eef992d9ec | refs/heads/master | 2020-03-18T05:56:31.808020 | 2018-06-15T08:41:55 | 2018-06-15T08:41:55 | 134,368,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
# coding: utf-8
# In[1]:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
dataSet = pd.read_csv('Position_Salaries.csv')
lvl = dataSet.iloc[:, 1:2].values
slry = dataSet.iloc[:, 2].values
# In[2]:
from sklearn.tree import DecisionTreeRegressor
regressor = DecisionTreeRegressor()
regressor... | [
"rochaks001@gmail.com"
] | rochaks001@gmail.com |
f071dd3ab7d5003922d1cca53b99fbfe3d628dc9 | 84d7b74bf290ff73a7a1322900841628caf501c8 | /9.py | 44a143ce64257a64954ca0754edfc59f638f5e17 | [] | no_license | glen-s-abraham/sem3record | 351d03dd7d20acc4167be57b73ef67ef45bdf313 | 18d109f3a56481a2d31ba79f82c4582e4260106d | refs/heads/master | 2023-01-07T21:40:27.509805 | 2020-11-11T14:38:13 | 2020-11-11T14:38:13 | 308,214,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | """List operations"""
uset=set()
i=0
while i!=6:
print("\n1.Add to set\n2.Remove from set\n3.Print set\n4.Count Elements of set\n5.Find element in set\n6.Clear set and Exit")
i=int(input("Enter Option\n"))
if i==1:
element=input("EnterElement:")
uset.add(element)
elif i==2:
print(uset)
pos=input("Enter ele... | [
"glenprojects666@gmail.com"
] | glenprojects666@gmail.com |
3020613b94d8ab6d48331de09fbcc650efe92b54 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/15_module_re/task_15_2a.py | ff8cb7e603b04c43d8bed5f08c6262dda11c4009 | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # -*- coding: utf-8 -*-
'''
Задание 15.2a
Создать функцию convert_to_dict, которая ожидает два аргумента:
* список с названиями полей
* список кортежей со значениями
Функция возвращает результат в виде списка словарей, где ключи - взяты из первого списка,
а значения подставлены из второго.
Например, если функции пер... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
ada5076670ac2df02c7e357dcab945a4c4e346ff | 5c7e1f689acf9e6602fcd71e9b35611e3f7b4f68 | /flaskr/blog.py | 477fcf8c55ed094b7e208573fec94e58ac284834 | [] | no_license | luisfdresch/flask-tutorial | d65da628fa6710c4a5185864dbb7181c9e8cb5c6 | 31ca9bda8d8ac253fa443d726a3c2d1838c3c1b0 | refs/heads/main | 2023-01-12T13:10:40.568332 | 2020-11-06T21:06:14 | 2020-11-06T21:06:14 | 310,701,254 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | from flask import Blueprint, flash, g, redirect, render_template, request, url_for
from werkzeug.exceptions import abort
from flaskr.auth import login_required
from flaskr.db import get_db
bp = Blueprint('blog', __name__)
@bp.route('/')
def index():
db = get_db()
posts = db.execute(
'SELECT p.id... | [
"66801762+luisfdresch@users.noreply.github.com"
] | 66801762+luisfdresch@users.noreply.github.com |
042afc513c24332f122836a2cec49692b2f77a28 | 7a63ce94e1806a959c9c445c2e0bae95afb760c8 | /tests/incident/test_resolve.py | 8ccf653a5dbc4b46fd96837ef309be097512d6e1 | [
"MIT"
] | permissive | pklauke/pycamunda | 20b54ceb4a40e836148e84912afd04d78d6ba0ec | 3faac4037212df139d415ee1a54a6594ae5e9ac5 | refs/heads/master | 2023-08-18T10:23:30.503737 | 2022-04-17T18:34:40 | 2022-04-17T18:34:40 | 240,333,835 | 40 | 16 | MIT | 2023-09-12T13:29:08 | 2020-02-13T18:37:25 | Python | UTF-8 | Python | false | false | 1,602 | py | # -*- coding: utf-8 -*-
import unittest.mock
import pytest
import pycamunda.incident
from tests.mock import raise_requests_exception_mock, not_ok_response_mock
def test_resolve_params(engine_url):
resolve_incident = pycamunda.incident.Resolve(url=engine_url, id_='anId')
assert resolve_incident.url == engi... | [
"peter.klauke@tu-dortmund.de"
] | peter.klauke@tu-dortmund.de |
b549437484d60e16f3abc854f97caa01baff0c64 | cfdaf1675a6a6a3c21c163ea48556a82d1f761f7 | /Actividades/AF04/ventana_principal.py | 591a0cbb2d104c65690f5adbec995595b09c185e | [] | no_license | catalinamusalem/Catalina | 8114568486f2e6e8b73def164274064de6790bbb | e508ccb622e03e543c1a7da6b2c1d4636325b92b | refs/heads/master | 2022-11-28T14:42:55.037042 | 2020-07-05T22:06:01 | 2020-07-05T22:06:01 | 286,140,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,460 | py | import os
import sys
from random import choice
from PyQt5.QtWidgets import QLabel, QWidget, QLineEdit, \
QHBoxLayout, QVBoxLayout, QPushButton
from PyQt5.QtCore import Qt, pyqtSignal
from PyQt5.QtGui import QPixmap
from PyQt5.QtWidgets import QApplication
class VentanaPrincipal(QWidget):
# Aquí debes crear ... | [
"catalina.musalem@uc.cl"
] | catalina.musalem@uc.cl |
b1363d2eeea65f67da9c4da23778667e39565849 | ee4152e9b5eafa7afafe05de04391a9a3606eea3 | /client/API/AddRecord.py | 431bc9058aefc1020df12034d650ed008e3998a5 | [] | no_license | adibl/password_saver | 3a06c8c04905d82f01fc14b41b646a6578af2b70 | 2ea73781db92ce750f91039251f2c06e929da7bb | refs/heads/master | 2020-04-09T23:51:34.804870 | 2019-06-16T10:13:42 | 2019-06-16T10:13:42 | 160,665,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | """
name:
date:
description
"""
import base64
import json
import requests
import os
from .connection import Request
class Passwords(object):
FILE_NAME = 'token.txt'
@classmethod
def handle(cls, url, username, password):
return cls.POST(url, username, password)
@classmethod
def GET(cls):
... | [
"bleyer23@gmail.com"
] | bleyer23@gmail.com |
b73073e4f2e03c0334d581cd58c370cbb1610117 | fc74465456f450ecf6570b442cf50c3e8d1660d6 | /client/utils/anylizer.py | 6edbc18fefee6ec6417c80c73c61a77dbf30df5a | [] | no_license | Kipparis/Colored-Music | be9c62dd2f2df51acb3d8d83a12cb39744845494 | d8f197d3650cbfa8687e787a17e604b3b5b4437d | refs/heads/master | 2021-06-24T18:54:21.868129 | 2021-03-14T09:28:12 | 2021-03-14T09:28:12 | 215,289,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py |
if __name__ == "__main__":
print("create instance of class for each song and add callback to detect\
when beat occure")
| [
"keepintine@gmail.com"
] | keepintine@gmail.com |
bf4cc1866bdf160e9fef06a248672cd9a1a9bd77 | a50b27edfb2ae5398169c452731257019d23583d | /contrib/pyminer/pyminer.py | e09cc81ba1cf59a4ef3e342474e90110c043d468 | [
"MIT"
] | permissive | medelin/bearcoin | b33a93c85372c7af000bb300871a1df9cb603ee5 | 0e35af5b1a1f92594401f3fe1d090a13d963bb0e | refs/heads/master | 2016-08-16T10:54:58.298304 | 2015-07-01T05:06:07 | 2015-07-01T05:06:07 | 34,278,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,449 | py | #!/usr/bin/python
#
# Copyright (c) 2011 The Nautiluscoin developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
import time
import json
import pprint
import hashlib
import struct
import re
import base64
import httplib
i... | [
"piotr@medelin.net"
] | piotr@medelin.net |
881b5c0fc9bea295c8d51dcae0942461610bb9c2 | 8c5f1e07333edfd14a58677ea90ea9a8ec24daa7 | /examples/simple_pendulum/custom_simple_pendulum.py | 423dcab619d69ba966d9a866ae2b925a8862fb9f | [
"MIT"
] | permissive | echoix/pyro | 52c37b3c14fb3b52977be510545fdc43922dd8f9 | 787920cb14e3669bc65c530fd8f91d4277a24279 | refs/heads/master | 2020-09-07T09:08:21.114064 | 2019-11-10T05:59:50 | 2019-11-10T05:59:50 | 220,733,155 | 0 | 0 | MIT | 2019-11-10T02:52:39 | 2019-11-10T02:52:38 | null | UTF-8 | Python | false | false | 1,412 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 7 12:19:01 2018
@author: nvidia
"""
###############################################################################
import numpy as np
###############################################################################
from pyro.dynamic import pendulum
######################... | [
"alx87grd@gmail.com"
] | alx87grd@gmail.com |
d51b0b507c16f3480bdd85165672cf7a919454c4 | 9e12f81814b24aa54acccb80fcaf3bf688bd984a | /Spiders/youku/parsers/parse_detail_list_page.py | 0d5dc03cc9424dcec81974f5a428c0d4251a0c13 | [] | no_license | wangtaihong/mov | 76793050cdece48894be6433dd407cc918c0bbb3 | 8d394ca9c8c2906a585e58b85f974f68664629d3 | refs/heads/master | 2020-03-19T20:02:52.626127 | 2018-07-16T02:40:52 | 2018-07-16T02:40:52 | 136,885,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,708 | py | # coding:utf-8
import re
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from lxml import etree
def url_format(url):
"""
//v.youku.com/v_show/id_XMzA5NTA1ODg2MA==.html?s=bc2a0ca1a64b11e6b9bb
http://v.youku.com/v_show/id_XMzA5NTA1ODg2MA==.html
"""
url = re.sub('http:', '', url)
return "ht... | [
"wangtaihong8@163.com"
] | wangtaihong8@163.com |
e9ab3371c89c06a80611e79a4dffd4bb44019dfa | 3718077f1cbbc458fdb55dd7f904baab4b493bde | /main.py | 5417be7d37b58912767d73d230f893f70ce35013 | [] | no_license | SupersonicCoder18/THE-MOVIE-API- | 7b65cf9d8caba1f44826f0b03c188c973296155b | 3a75eda4b0d1a7caf183d518a2b615ff086efbcd | refs/heads/main | 2023-02-21T21:23:01.509582 | 2021-01-25T12:24:28 | 2021-01-25T12:24:28 | 332,738,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | from flask import Flask, jsonify, request
import csv
from storage import all_movies, liked_movies, not_liked_movies, did_not_watch
from Demographic_Filtering import output
from Content_Filtering import get_recommendations
app = Flask(__name__)
@app.route("/get-movie")
def get_movie():
movie_data = {
... | [
"noreply@github.com"
] | SupersonicCoder18.noreply@github.com |
2b8edfa347b5b9d6a6b2c2d912242611e9907980 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /nonfatal_code/hospital/Formatting/001_pre_format_UK_UTLA_fit_models.py | a401509726a0ff362b8b717c593c63c90020b098 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,688 | py | # -*- coding: utf-8 -*-
"""
formatting UK UTLA data
"""
import pandas as pd
import numpy as np
import platform
import sys
import statsmodels.formula.api as smf
import statsmodels.api as sm
import time
sys.path.append("FILEPATH")
from hosp_prep import *
# Environment:
if platform.system() == "Linux":
... | [
"nsidles@uw.edu"
] | nsidles@uw.edu |
ae3c07417196b04210dbed26d9b1fba5aac5f9ec | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/numpy/core/tests/test_regression.py | 39a92211635a6dcc5cd242241cf5f18f0e08b70e | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2d5a65e7c1da1e87651cabd3481c0012ad15f784275aad1259a1312faf19cfc2
size 81211
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
bce22db2adda5234a705ff0d1fb719565b3bddd8 | 9692a20a1e7a224a72785e4495f31421639b9f3b | /frex/pipeline_stages/filters/candidate_filterer.py | 2d79e3b31e1ec3776b5978e1f52488af2826dfdb | [] | no_license | solashirai/FREx | 6b0cb040930761a0e269f4591d7dde36e3f636d1 | 36ad09a0cb0020661ee990c7800bafd110e2ec04 | refs/heads/master | 2023-08-14T08:49:49.270281 | 2021-09-29T14:58:23 | 2021-09-29T14:58:23 | 291,760,109 | 0 | 0 | null | 2021-09-24T22:41:19 | 2020-08-31T15:57:47 | Python | UTF-8 | Python | false | false | 2,535 | py | from abc import abstractmethod
from typing import Generator, Optional, Any
from frex.models import Explanation, Candidate
from frex.pipeline_stages import PipelineStage
class CandidateFilterer(PipelineStage):
"""
CandidateFilterer is a PipelineStage that determines whether input candidates should be removed f... | [
"solashakashirai@gmail.com"
] | solashakashirai@gmail.com |
a262ae2e16a1c482655881051aec3552ba5cef76 | 3e8f63c0e45de6df395f41c62889330ad1a2f839 | /lesson10/basic/warehouse.py | 551ee21a9ee3bdfb327fde49840ae8bccb54269e | [] | no_license | lvshaokang/python | 336de2ec7d532fc777bf221dece307ee6625562f | 71807622f19922e1ea718c38c544fc77d666d274 | refs/heads/master | 2020-03-28T19:41:44.530856 | 2018-10-01T14:56:45 | 2018-10-01T14:56:45 | 149,000,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | class WarehouseManageSys:
def __init__(self):
self.item_detail = {"老坛酸菜": 5, "红烧牛肉": 4, "酸辣粉": 6, "拉面": 7, "老干妈": 10, "乌江": 2, "王中王": 2, "蒜肠": 12, "淀粉肠": 8}
def get_item_list(self, item_type):
pm_list = ["老坛酸菜", "红烧牛肉", "酸辣粉", "拉面"]
zc_list = ["老干妈", "乌江"]
xc_list = ["王中王", "蒜肠"... | [
"lvshaokang@hotmail.com"
] | lvshaokang@hotmail.com |
f481ea5b3e5bc16aabe05bdd0923e9f989d4f03d | a9f508078a6950ec72c7bd4fbf6b2cac664c31a9 | /proxypool/importer.py | 976e76680792e8db97cea4bf72fea86830e54f56 | [] | no_license | 0x1un/proxypool-china | 6bcaf7bd3ed7fa440bc6ef132dada7e1cc0185d7 | b480ffe62c802c579e754fcb0bcceca8fe246a74 | refs/heads/master | 2020-03-20T09:48:47.860726 | 2018-06-16T13:36:51 | 2018-06-16T13:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from proxypool.db import RedisClient
conn = RedisClient()
#导入函数
def set(proxy):
result = conn.add(proxy)
print(proxy)
print('录入成功' if result else '录入失败')
#手动导入代理
def scan():
print('请输入代理, 输入exit退出读入')
while True:
proxy = input()
if proxy == 'exit':
break
set(pr... | [
"aumujun@gmail.com"
] | aumujun@gmail.com |
98273d8b2de18dfad4d203ed5449358037428885 | 5bdd9737aef29f0341676b21c2df2d371985628f | /object_ref_object.py | 5325909f9582199489f4ec01585200986c4fa51a | [] | no_license | lamontu/starter | 23eb9ceb8f260a7380d4fb2111158f0dc06dd7cb | 176539fc03508b78da320737eeae43b4e509dbd6 | refs/heads/master | 2022-09-25T22:51:16.456495 | 2022-09-10T15:13:48 | 2022-09-10T15:13:48 | 62,473,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | # -*- coding: utf-8 -*-
class from_obj(object):
def __init__(self, to_obj):
self.to_obj = to_obj
print('b = [1, 2, 3]')
b = [1, 2, 3]
print('a = from_obj(b)')
a = from_obj(b)
print('id(b) >>>>')
print(hex(id(b)))
print()
print('id(a) >>>>')
print(hex(id(a)))
print()
print('id(a.to_obj) >>>>')
print(he... | [
"lamontyu@163.com"
] | lamontyu@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.