blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e23b1a85f77241d1b76ad020f4ee46f671128a04 | c66ad1061400c5830c5236b3a9233aa62176f80d | /program5/floater.py | 52bcad1f83ee12188401b3ef43c0d3408e3ef6f2 | [] | no_license | franchescaleung/ChasingPrey | cff6b9a11f49908f31eff7ba6cf3780abc6674fd | 54900366b3ce73d26a10646bb3adac111261f34f | refs/heads/master | 2020-04-25T18:53:29.063109 | 2019-02-27T22:28:08 | 2019-02-27T22:28:08 | 172,999,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | # A Floater is Prey; it updates by moving mostly in
# a straight line, but with random changes to its
# angle and speed, and displays as ufo.gif (whose
# dimensions (width and height) are computed by
# calling .width()/.height() on the PhotoImage
from PIL.ImageTk import PhotoImage
from prey import Pre... | [
"noreply@github.com"
] | franchescaleung.noreply@github.com |
4d303baeb39ff6d713494dce4563ee0596a7aacc | bd8532378ad2a61240faaa7be8ef44c60c055a2a | /rabona/data/leagues/Österreichische Fußball-Bundesliga/SCR Altach/SCR Altach.py | a4e6c68a03b8e7c93421d8a36b634dbb7c39ef21 | [] | no_license | nosoyyo/rabona | 278a9dfe158e342261343b211fb39b911e993803 | b0af3ab5806675fbf81b038633a74943118a67bb | refs/heads/master | 2020-03-16T06:56:55.277293 | 2018-05-30T11:45:51 | 2018-05-30T11:45:51 | 132,565,989 | 2 | 1 | null | 2018-05-30T11:45:52 | 2018-05-08T06:44:11 | Python | UTF-8 | Python | false | false | 9,816 | py | club_info = {'club_url': 'https://www.futbin.com///18/leagues/%C3%96sterreichische%20Fu%C3%9Fball-Bundesliga?page=1&club=15009', 'club_logo': 'https://cdn.futbin.com/content/fifa18/img/clubs/15009.png', 'club_name': 'SCR Altach'}
players = {}
players['Lukse'] = {'player_url': 'https://www.futbin.com//18/player/4636/And... | [
"oyyoson@gmail.com"
] | oyyoson@gmail.com |
45be7213aeff8794c613f2da74ff5b00f986c9a2 | fc5fa0402dfecd408d1c1f78b7d1c041df9f0400 | /dx/derivatives/blackscholes.py | 7fa49483c3d3b1026a6612c5a856d56dc635b99d | [
"MIT"
] | permissive | ViniciusRibeiroSouza/OptionsPricing | 0cfe0e9c4a43d3f6226514b2d532c9c0bd51bcfe | c63426e8b578ce59e3c0bbadf65481ff56c91fb2 | refs/heads/main | 2023-06-01T09:52:06.155514 | 2021-06-08T03:08:28 | 2021-06-08T03:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,039 | py | import numpy as np
import scipy.stats
import matplotlib.pyplot as plt
import pandas as pd
class BlackScholes:
"""
Classe usada parar armazenar dados de uma opção europeia para serem calculados métricas utilizando o modelo de Black-Scholes
...
Propiedades
---------
d1 : flt
d2 : flt
P... | [
"vinirsz@hotmail.com"
] | vinirsz@hotmail.com |
84873498412aa1c1e0b0640b4262e1d6fa21347b | 5c39e166d0c6ec68f71c4c7627956fdd6f28c15e | /andrew/stats/exercise_2_20.py | f4f14361cc2878dbff00bff79fdeb83b94c188a1 | [] | no_license | zero-one-group/zot-internship | a8ae21029086188f4c8ca348c50e445a86a01179 | 9bbc421252b42f1bc85de66d22f48266c59113f0 | refs/heads/master | 2023-01-12T07:48:39.766136 | 2020-10-15T09:03:24 | 2020-10-15T09:03:24 | 279,190,490 | 3 | 3 | null | 2020-11-08T21:30:30 | 2020-07-13T02:32:56 | Python | UTF-8 | Python | false | false | 1,961 | py | '''
In each of the following cases, construct an Accept–Reject algorithm,
generate a sample of the corresponding random variables, and draw the density function
on top of the histogram.
a. Generate normal random variables using a Cauchy candidate in Accept–Reject.
b. Generate gamma G(4.3, 6.2) random variables using a ... | [
"AHW@macbook-pro-2.mynet"
] | AHW@macbook-pro-2.mynet |
9f821f3895798789551e2f22a22e3636952ec599 | 76e8ebacd049766f2c7b550a693e6e5352eb1d4e | /polls/tests.py | 9e0e6dad94b6a07d0d4780cf3e16668b93e3b38d | [] | no_license | ericzenger/hw4 | e35adaa6f89c8f160d54c05908b016836f6047b8 | bef308572fdd22c34a9c010e082df2a4faed41e0 | refs/heads/master | 2021-01-10T12:39:18.323318 | 2016-03-09T03:11:49 | 2016-03-09T03:11:49 | 53,463,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,452 | py | import datetime
from django.utils import timezone
from django.test import TestCase
from polls.models import Question
from polls.views import QuestionModelForm
from django.core.urlresolvers import reverse, resolve
from django.contrib.auth.models import User
from django.db import DataError
from django.core.urlresolvers... | [
"1387508569@mil"
] | 1387508569@mil |
ea7bcfbac2542ccd837ba0a41ce54695564d7b42 | 74c9564073f2733eac214396c125ef990df32b36 | /gstudio/admin/__init__.py | 5ec479ddbcc6e40f0c5b87a2d44756c1856520d4 | [
"BSD-3-Clause"
] | permissive | suruchi/django-gstudio | 0b6d8b8bdb29e16f431ca59f70620dd22c2843a5 | 727eeefe475bb2fd1cf819bdab496f4369d1c991 | refs/heads/master | 2021-01-15T20:13:23.956721 | 2011-11-09T06:30:39 | 2011-11-09T06:30:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | """Admin of Gstudio"""
from django.contrib import admin
from gstudio.models import Objecttype
from gstudio.models import Metatype
from gstudio.admin.objecttype import ObjecttypeAdmin
from gstudio.admin.metatype import MetatypeAdmin
admin.site.register(Objecttype, ObjecttypeAdmin)
admin.site.register(Metatype, Metaty... | [
"nagarjun@gnowledge.org"
] | nagarjun@gnowledge.org |
9abd6dd46453ed8b0436bf88eee68b31f84592c6 | 009cee89a2f3f7733053e5b1d63f87524554758c | /graph/core/module_path.py | 82aa448dc1b92089ec466fd58e1c0b2737e7705b | [] | no_license | yosu/module-graph-prototyping | 288af0fb86581b5a7dec0f5e11ddcbf070d72ad0 | 765f97287aa346d0ca4b5588f4c907df5b8fec47 | refs/heads/master | 2022-12-01T16:25:52.759681 | 2020-08-17T15:59:11 | 2020-08-17T16:00:56 | 288,312,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import dataclasses
@dataclasses.dataclass(frozen=True)
class ModulePath:
name: str
def __post_init__(self):
# not empty
assert self.name
@property
def path_level(self) -> int:
return len(self.name.split("."))
def __lt__(self, other: "ModulePath"):
return self.nam... | [
"woodstock830@gmail.com"
] | woodstock830@gmail.com |
412de0e58abd888274b2b22e2be969e4cbd8de95 | 3cb0441b8dfbe794373650e6ba808222583841db | /input_nilai.py | c5d76353116a10684794c19007bb1adb69bca72c | [] | no_license | RegaNugraha27/Latihan07 | 48b81a9f3aa7dc624ef9714917ca8aa5654e3a8f | bb3745ad62a9be2aed7146b78094c738d53d6a77 | refs/heads/master | 2020-12-23T17:27:35.752760 | 2020-01-30T14:09:13 | 2020-01-30T14:09:13 | 237,218,637 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | from Model.Daftar_Nilai import tambah_data
def inputan():
nama = input("NAMA : ")
nim = int(input("NIM : "))
tugas = int(input("TUGAS : "))
uts = int(input("UTS : "))
uas = int(input("UAS : "))
tambah_data(nama, nim, tugas, uts, uas)
def edit():
from Model.Daftar_Nilai import edit... | [
"noreply@github.com"
] | RegaNugraha27.noreply@github.com |
e56415a28830a6d542f79c0b3441f4ca549a1aa0 | a592235c7d8e9aa7fc5cd4aeacdca3568c6ba7fc | /MZI/3410/Curve.py | 0d524b42a341782e3a9a33f572d4a14d3bcf9264 | [] | no_license | BlackLIonz/BSUIR_4_1_labs | e7a3f695e56ccf0db328377ca443830c95699a9e | 644c5f9a2e466e8f831885a859ab849fd5d2062d | refs/heads/master | 2023-06-09T04:37:17.821259 | 2019-12-31T14:12:59 | 2019-12-31T14:12:59 | 207,292,851 | 4 | 2 | null | 2023-05-30T19:17:37 | 2019-09-09T11:25:25 | HTML | UTF-8 | Python | false | false | 1,500 | py | from utils import bytes_to_long, mod_invert
class Curve:
def __init__(self, p, q, a, b, x, y):
self.p = bytes_to_long(p)
self.q = bytes_to_long(q)
self.a = bytes_to_long(a)
self.b = bytes_to_long(b)
self.x = bytes_to_long(x)
self.y = bytes_to_long(y)
r1 = s... | [
"shotaik@mail.ru"
] | shotaik@mail.ru |
2aa1bc8cc9ff1a014b06338fba46998daac18e01 | 621f2a1e2b78324df165fbbc950e0990f7c8447d | /my_env/bin/sqlformat | 0c36484be7884b21e29876bed597a7585db09137 | [] | no_license | rsjf2020/nest4guest | 0603f1a824e80e6b3abc734e21ae37069811f471 | 392f72bfc0e46cbad72bd2d247199fb79c643009 | refs/heads/main | 2023-03-19T00:26:43.986877 | 2021-03-17T07:45:40 | 2021-03-17T07:45:40 | 345,608,216 | 0 | 0 | null | 2021-03-08T09:56:48 | 2021-03-08T09:56:48 | null | UTF-8 | Python | false | false | 263 | #!/home/rabin/Desktop/djano/patahao/nest4guest/my_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rabcom07@gmail.com"
] | rabcom07@gmail.com | |
424ae5f73a6e092007b8050b4151a8491bb1babb | 95b1296ebdf322de5e1486acc2e775f712584dbe | /day7/day7.py | 1f9a3851b1a8c075556681c0c3a93bca18c48359 | [] | no_license | mjarrett/adventofcode2015 | 51407b4b4a0b27501a5b337ef50e3242c53578f6 | 18210034dadb0f5999ca6690bb1d54adc1f17257 | refs/heads/master | 2021-06-11T11:39:59.916663 | 2017-01-18T05:43:50 | 2017-01-18T05:43:50 | 48,412,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | #!/usr/bin/python
#title :day7.py
#description :advent of code day7
#author :Mike Jarrett
#date :20151225
#version :1
#usage :python day7.py
#notes :
#python_version :2.6.6
#==============================================================================
import re
f = open('input.txt')
#f = open('test.txt'... | [
"msjarrett@gmail.com"
] | msjarrett@gmail.com |
9070e41bc0704a9b5f22306c46cf02951593f2ae | a244a8f515ed76a6a82036e22ae2541eec1e367e | /Parsefiles.py | 8f70cc66926adcc84073196d3d9d05e579b25410 | [] | no_license | Rotorover/FileParser | f60bbf3c9f846926fa172d5bd3f18686a4214a35 | a1ab45787240236fbea05148e98a793b6a73c1a6 | refs/heads/main | 2023-04-19T18:20:29.286081 | 2021-05-20T21:34:42 | 2021-05-20T21:34:42 | 317,986,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # This script should Parse files and concatinate content
import os
# folder_1 = PureWindowsPath("C:\_Temp\benchmarkstt\GCP Transcribe")
file_orig = input("Enter file name: ")
file_post = (file_orig + "_post.txt")
# GCP uses 27 & -3; AWS uses 38 & -7
trimOffset_start = 27
trimOffset_end = -3
with open(file_... | [
"noreply@github.com"
] | Rotorover.noreply@github.com |
febaad2d5f1bc6fa75eadf08f50fa265fdec038b | c1bb75fc10eab4d79caa0e8d21a7914acff0c09b | /polls/admin.py | 6310df971f0fe79556f13d08f3f2c719eddda48c | [] | no_license | aarush7/footfall-counter | 03a94ffa1034c6e9f3688876a6f8aae5d162943a | d580caca92c8f19debac92d3aa65a9bce01eea0c | refs/heads/main | 2023-07-15T08:54:41.400513 | 2021-09-02T05:39:26 | 2021-09-02T05:39:26 | 402,302,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.contrib import admin
from .models import Question, PeopleCount,Choice
admin.site.register(Question)
admin.site.register(Choice)
admin.site.register(PeopleCount)
| [
"aarushgupta212@gmail.com"
] | aarushgupta212@gmail.com |
c2b6167f1d110ce7f0facffaea1445620967156f | 5574599e3c436d8dd39c89481ff89eb601e13fac | /appVote/accounts/models.py | e4f32b948c409424d9d52148d049f2dba8364129 | [] | no_license | Iyed777/appVote | 587285e7ab4376d9cac2910abe30b3fae5bc2440 | 7dbc611ef3dd120fa9286f9085cb2b5fd6572846 | refs/heads/master | 2021-01-13T05:21:15.843128 | 2017-02-20T18:13:05 | 2017-02-20T18:13:05 | 81,362,651 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here
class Member(models.Model):
username = models.CharField(max_length=50)
first_name = models.CharField(max_length=50)
last_name = models.CharField(max_length=50)
email = models.EmailField()
birth_date = models.DateFiel... | [
"iyedsla@gmail.com"
] | iyedsla@gmail.com |
9e49699608907fbc09a3c28478aeb0136b8c7177 | 17cf9ad610ddc492c345e99e13d48c5be10591d6 | /tests/test_flightReservation.py | 1ba777d01951be1836be640697bd118c010ad6f0 | [] | no_license | angrycaptain19/pyhton-test | 37542f36eb3ae4917c93cc655a761203578874fb | c8f049c753c635e3f549c0c8030ab8d6de266947 | refs/heads/master | 2023-03-18T09:39:35.930016 | 2021-03-04T07:42:25 | 2021-03-04T07:42:25 | 344,591,908 | 0 | 0 | null | 2021-03-05T18:13:44 | 2021-03-04T19:51:14 | null | UTF-8 | Python | false | false | 1,280 | py | import re
from pagesObjects.BasePage import BasePage
from pagesObjects.ResultPage import ResultPage
from utlilities.BaseClass import BaseClass
from datetime import datetime, timedelta
class TestFlight(BaseClass):
today_date = datetime.today()
departureDate = today_date.strftime("%d/%m/%Y")
returnDate = (... | [
"ruvaz@live.com"
] | ruvaz@live.com |
b0e7337a7fd1023fc3c80f395a5d6deb8e260357 | d3fee129a0a292e45c0170da2f4870f290309a23 | /sfmutils/state_store.py | f591e8b674a3a73557e1282d4db259692b01a6bd | [
"MIT"
] | permissive | ituethoslab/sfm-utils | e38bf8526e12d9f49252e5f65d124c38f672a8ed | 47ac6b8a894f5b02d947d76c74aa61d59cb5d48d | refs/heads/master | 2023-02-26T16:12:01.489820 | 2020-05-04T12:09:15 | 2020-05-04T12:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,711 | py | import logging
import codecs
import os
import json
import shutil
log = logging.getLogger(__name__)
"""
A harvest state store keeps track of the state of harvesting of different types of resources.
For example, it might be used to keep track of the last tweet fetched from a user timeline.
A harvest state store shoul... | [
"justinlittman@gwu.edu"
] | justinlittman@gwu.edu |
dfab67d2bd71345b89ff952cc64c981bd1ea045b | d605cc55ea1326524fe1450558758184a9520fe8 | /seeds.py | ae5179e7bb1d39fc4fddece161ee75309b36abe2 | [] | no_license | fbabauta/python-newsfeed | 160ea4d3c9fe53fb0e77ab96f8f373f9ade8c3c9 | 8fa22b672af497e6e914a546b0624e476ba0fdac | refs/heads/main | 2023-03-31T14:25:15.787368 | 2021-04-03T04:06:14 | 2021-04-03T04:06:14 | 353,933,992 | 0 | 0 | null | 2021-04-03T04:06:15 | 2021-04-02T06:55:50 | Python | UTF-8 | Python | false | false | 2,087 | py | from app.models import User
from app.db import Session, Base, engine
from app.models import User, Post, Comment, Vote
# drop and rebuild tables
Base.metadata.drop_all(engine)
Base.metadata.create_all(engine)
db = Session()
# insert users
db.add_all([
User(username='alesmonde0', email='nwestnedge0@cbc.ca', password... | [
"francine.babauta@outlook.com"
] | francine.babauta@outlook.com |
efb346cc440dd11fb0ee33eff6f07c4895f3b34c | c887db974d9ec1cc14fdd6a64191bbdfe608f6e2 | /perfis/migrations/0002_auto_20210608_1430.py | 458c68fa2bbb5371a770a9ae433a85ba0892bad0 | [] | no_license | DouglasFeliphe/experiencein | 8c082fab4efd4c119aaef0e44c1f045777b8c380 | 4545b57e1f184b3026d7825ab3d1e65485a0bce0 | refs/heads/master | 2023-06-21T00:27:33.873759 | 2021-08-03T22:43:30 | 2021-08-03T22:43:30 | 368,657,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Generated by Django 2.2 on 2021-06-08 17:30
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('perfis', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='perfil',
old_name='nome_da_empresa',
... | [
"douglasfeliphe@hotmail.com"
] | douglasfeliphe@hotmail.com |
61855138635103deb44d02425d6ece284117d88e | 72c3fdf70ca0fc8b6ec073f840bb70a9e52a1d10 | /day2.py | ec1a81d3722c27169fb28b2fee836e5cc05db170 | [] | no_license | sereneliu/AoC-2016 | c1df58c6ab271aa77528033a7837193f0ddddd7c | 1bd4f11c766f27ba5dff772a536e24e843b8a7d2 | refs/heads/master | 2021-05-12T08:08:47.794767 | 2018-02-09T03:08:26 | 2018-02-09T03:08:26 | 117,267,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | with open('day2.txt') as puzzle_file:
puzzle_input = puzzle_file.read().split('\n')
example_input = [
'ULL',
'RRDDD',
'LURDL',
'UUUUD']
keypad = ['123', '456', '789']
actual_keypad = [' 1 ', ' 234 ', '56789', ' ABC ', ' D ']
def up(x, y):
return x, y - 1
def down(x, y):
return x, ... | [
"cloud9@sentanother.email"
] | cloud9@sentanother.email |
ebe87a45c4436ed13085db6a8f31edb73febc833 | 6906c88458f6798a71515ea31187b2ccece8c211 | /codekata/sum of two numbers odd or even.py | bcbf7002e20951df8a9a83421a3484d7cea40714 | [] | no_license | vsdhanya/guvi | 369ed2ded9811cd56af4fd457d0c1f6582bc14b9 | b62b217db7bfe81e34a2d70cd8c044323e0174fd | refs/heads/master | 2020-06-03T00:10:19.379834 | 2019-07-27T16:53:19 | 2019-07-27T16:53:19 | 191,355,080 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | numb1,numb2=map(int,input().split())
ans=numb1+numb2
if ans%2==0:
print("even")
else:
print("odd")
| [
"noreply@github.com"
] | vsdhanya.noreply@github.com |
c1cbd0ef8f401374648df34ef3ae3fdcb2080dac | a6d3936eac053b55c600d961ce49c6537e9b1d9f | /Python/Simulaciones/Liguilla/jornadas.py | 5cfcc78f99803aae41eb94fee8f2819cb49190d6 | [] | no_license | dcharua/code | 233e382ca5c37983565ca6cb134fb5be18b1af82 | 781fefb8e87334ec3b060c2dcfa9cf142feea0e7 | refs/heads/main | 2021-06-23T20:50:35.493288 | 2020-12-17T20:16:42 | 2020-12-17T20:16:42 | 146,336,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | jornada8 = [["Tiburones", "Cruz Azul"],
["Atlas", "Tigres"],
["Queretaro", "Monarcas"],
["America","Lobos"],
["Monterrey", "Puebla"],
["Necaxa","Xolos"],
["Pachuca","Chivas"],
["Pumas","Leon"],
["Santos", "Toluca"]]
jorna... | [
"danielcharua@hotmail.com"
] | danielcharua@hotmail.com |
7387efb8cc731d9261f4170557712bf510d1ac48 | 8a23722c98688f768e3a2749142b14b0e700eeb1 | /social/social.py | 758cb6bbeff882aeccef33cbf94b6fc5551aebb8 | [
"MIT"
] | permissive | leagueofstuds/los-cogs | 7bf2aaef03de190bed6a0dc872d7f04b2af28d17 | 15720fced75a1c3dc96800592b86e3e8df98cd0d | refs/heads/master | 2021-01-17T19:51:58.349423 | 2016-06-06T05:50:33 | 2016-06-06T05:50:33 | 60,491,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,220 | py | import os
import asyncio
from random import randint, sample
import discord
from discord.ext import commands
class Social:
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True)
async def kiss(self, context, user: discord.Member):
""" kiss anyone """
msg = '{0} Was KISSED by {1... | [
"William.Humphreys-Cloutier@logmein.com"
] | William.Humphreys-Cloutier@logmein.com |
ead37457e9d1ae26a9ddb0c5034ae98ed4005d49 | 69d075f29db8c58df1133eee6af9e5ec40d1ed0b | /paten/utils.py | f180cae01d042baa6841c6adc98bfe4ce54be30e | [] | no_license | gsy0911/paten | d985ee27bf7b96a32519a6bc88450a5ba651eb01 | c121b2558dd523535f44e960b2a92171cc1856a8 | refs/heads/master | 2022-12-10T14:58:27.677139 | 2020-09-08T14:10:33 | 2020-09-08T14:10:33 | 268,189,768 | 0 | 0 | null | 2020-09-08T14:02:07 | 2020-05-31T01:37:54 | Python | UTF-8 | Python | false | false | 536 | py | import re
def validate_function_app_name(function_app_name: str) -> bool:
"""
Args:
function_app_name:
Returns:
True is function_app_name is correct.
See Also:
https://docs.microsoft.com/ja-jp/azure/azure-functions/functions-create-first-azure-function#create-a-function-app
... | [
"yoshiki0911@gmail.com"
] | yoshiki0911@gmail.com |
aa26db8811a44d35425a83b952ee3b5791cf8503 | 3e85167fa5d0277d014a19e16c3864677f53b7c4 | /ArticleBlog/Article/urls.py | e1ce523680b5ebe4b179d7b68e508f1bdb0c2291 | [] | no_license | ltt1997/Djingo1118 | af869b891e8f3d2d32a9b49124fa9769c11f30b5 | 5111efb63e56d277109d6431e8f327689517d788 | refs/heads/master | 2022-12-11T02:20:27.234561 | 2020-03-06T13:51:40 | 2020-03-06T13:51:40 | 239,662,926 | 0 | 0 | null | 2022-12-06T20:46:16 | 2020-02-11T02:56:49 | CSS | UTF-8 | Python | false | false | 370 | py | from django.urls import path,re_path
from .views import *
urlpatterns = [
path('index/',index),
path('about/',about),
path('listpic/',listpic),
re_path('newslistpic/(?P<page>\d+)/',newslistpic),
path('addmany/',addmany),
path('ft_text/',ft_text),
re_path('articleinfo/(?P<id>\d*)/',articleinf... | [
"2231683215@qq.com"
] | 2231683215@qq.com |
997e2e9eea1be9351075548e571bdd63d66f2003 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_189/ch84_2019_06_06_12_13_25_240848.py | 5f8c23a29613b7e484e849d377bd558705a2a600 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | def inverte_dicionario():
dict.keys()=dk
dict.values()=dv
dkey=[]
dvalue=[]
for a in dk:
dvalue.append(a)
for b in dv:
dkey.append(b)
z=dict
dkey=dict.keys(z)
dvalue=dict.values(z)
return (z) | [
"you@example.com"
] | you@example.com |
70cf5301d23b014507310d0fc82cd2a371d18621 | f2b4bfeeaecc5fcc919923a94fc7fd613f07b834 | /my_geek_shop/authapp/migrations/0004_auto_20210902_1337.py | 7de7d346107096b145c478e4a41c6d3a96a9cf8c | [] | no_license | johnk2280/GB_course_Django_Framework_basics | 54770391739b2523d3813c7d303d38eca0c03ab6 | dfb715a51337704813fc56111f6263a6d29b902c | refs/heads/main | 2023-09-01T09:00:19.626983 | 2021-09-26T16:33:52 | 2021-09-26T16:33:52 | 385,336,147 | 0 | 0 | null | 2021-09-26T09:57:27 | 2021-07-12T17:52:49 | JavaScript | UTF-8 | Python | false | false | 708 | py | # Generated by Django 3.2.5 on 2021-09-02 13:37
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0003_auto_20210901_1603'),
]
operations = [
migrations.AlterField(
... | [
"johnk2280@gmail.com"
] | johnk2280@gmail.com |
28c7d91bddab1ef94b1d0f73ff466fbb9c000e05 | 9ff4e9d9d988f2d44f4bc9cb386e5d9e8a666696 | /recursion/hanoi.py | 7ebbdab592b5350f82fcc5968c5e0b55023c084e | [] | no_license | ashengtx/algorithms | 26dd297cbb85149f48b568621dad50685aff0195 | 5231bf11de8b8b9cdd6f8ed765f4c7681a3badd4 | refs/heads/master | 2021-01-01T18:45:21.092083 | 2017-08-23T11:31:22 | 2017-08-23T11:31:22 | 98,427,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py |
def move_tower(height, from_pole, with_pole, to_pole):
if height >= 1:
move_tower(height-1, from_pole, to_pole, with_pole)
move_disk(from_pole, to_pole)
move_tower(height-1, with_pole, from_pole, to_pole)
def moveTower(height,fromPole, toPole, withPole):
if height >= 1:
moveTow... | [
"linliansheng007@163.com"
] | linliansheng007@163.com |
7bf0be59131563d40c328fa49f0dc064b87bf83c | 8e37c0901b4b1295ef45a03882730a53523de50b | /lambdas/app/test/choice_writer/__init__.py | e6cf93ceadc3600f553b91f150f98b82ff00c8f8 | [] | no_license | sjawhar/enchanted-brain | 086a8745939910598cc18b5cefd725ef78b872d9 | c78e1457b28df289c78dc404afaefa746a095b65 | refs/heads/master | 2023-01-12T15:56:02.370278 | 2020-07-19T16:26:55 | 2020-07-19T16:26:55 | 184,348,628 | 1 | 1 | null | 2023-01-05T03:26:09 | 2019-05-01T00:16:38 | JavaScript | UTF-8 | Python | false | false | 73 | py | import os
os.environ["DYNAMODB_TABLE_NAME"] = "testing-enchanted-brain"
| [
"jackson.borchardt@gmail.com"
] | jackson.borchardt@gmail.com |
8187cf5ca9e3e21b1645f1c7b4d10858e8355506 | 6a66fffb719e8338621bf00e27e72a2e40050790 | /MouvementsFouleSegerTamimMartinDedieu/environnement.py | df016bdc6d3af162c2ee9c7e548e2711d606fde1 | [] | no_license | dedieuvalerie/diu-eil-uvsq-1 | cdc304630336ba8e854bba8d5616b12fef6c333b | 95714cb8725cb6a85c7e56f95eb64289a0b6f095 | refs/heads/master | 2020-06-03T00:44:51.861427 | 2019-06-27T17:18:16 | 2019-06-27T17:18:16 | 191,365,449 | 0 | 0 | null | 2019-06-11T12:17:47 | 2019-06-11T12:17:47 | null | UTF-8 | Python | false | false | 6,505 | py | #import grille
from math import *
import random
class Voyageur:
"""
Représente les éléments mobiles qui se déplacent dans la grille donnée à la
construction.
L'attribut couleur peut servir à l'affichage.
L'attribut trajet consiste en un liste de portes par lesquelles doit passer
le vo... | [
"valerie.dedieu@gmail.com"
] | valerie.dedieu@gmail.com |
8a77c9aa0f53c8d7fe001ea13772da74858bd1bd | d62e9450fbfbf646e0bd9207b26e6c980628f11c | /experimental/test_module.py | 7a5fd2ce0f9807e8189b28073d3847b0367929e3 | [] | no_license | Barnettxxf/scrapy_pytest | e81ac050f437f7d5de3c891156f663ed9b35fa3e | bf913655741a32233edb2ed9176b3c9f24ac59bc | refs/heads/master | 2020-06-03T20:42:51.938470 | 2019-06-29T07:23:42 | 2019-06-29T07:23:42 | 191,723,747 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # contents of test_module.py with source code and the test
from pathlib import Path
class Exam:
def __init__(self):
self.exam = 'Math'
def examize(self, extra):
return self.exam + extra
class E(Exam):
def examize(self, extra):
self.exam = 'TestMath'
return super().examiz... | [
"15102096586@163.com"
] | 15102096586@163.com |
076db1487e1ff2cca84679348ac0b202151ba937 | afcf26bbd84161f2775b879a68b2c163878984d9 | /detaileddifferences/detaileddifferences.py | f7c4b6af3a1a8b50588fd719225475252d108a59 | [] | no_license | jakobkhansen/KattisSolutions | 505a0657fa02a5156c853fc0a6566dd51591d36d | 2869d6c9027515fd41eac6fcaee281aa474810c4 | refs/heads/master | 2023-07-07T19:17:37.614836 | 2023-06-28T18:12:50 | 2023-06-28T18:12:50 | 191,001,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import sys
def detaileddifferences(lines):
retStr = []
lines = lines[1:]
for i in range(0, len(lines), 2):
word1 = lines[i]
word2 = lines[i+1]
result = "{}\n{}\n".format(word1, word2)
for j in range(len(word1)):
if word1[j] == word2[j]:
result +... | [
"jakob.hansen@hotmail.no"
] | jakob.hansen@hotmail.no |
dc6f4bfaca71c166477d3a58a9ce15d6366b86b5 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Integration/trend_Lag1Trend/cycle_30/ar_12/test_artificial_128_Integration_Lag1Trend_30_12_100.py | a9cbdbe704f76b2f21a5f6800925bfd1a10fd27f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 269 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 30, transform = "Integration", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
ab2691b76f501c4a62309bdc68b3d68ff527f83a | bcc3d1901bcf9b0c72b654a2be833c77c1db4066 | /smoke_tests.py | 022ca4653b215d2326ffb0f94dfb7a239fe88642 | [] | no_license | lasdolphin/moistatuscheck | f588f27358b11123ae3f4a3507af98051f8eca18 | 7399f53523e2ed21abdfad800f4953a9bbbf0919 | refs/heads/master | 2020-05-04T17:01:50.039203 | 2019-05-13T10:35:22 | 2019-05-13T10:35:22 | 179,295,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | import boto3
import json
import unittest
region = 'eu-central-1'
payload1 = """{
"dry": 1,
"update_id": 4,
"message": {
"message_id": 261,
"from": {
"id": 427355455,
"is_bot": "True",
"first_name": "qwe",
"last_name": "qwe",
"language_code": "en"
},
"chat": {
... | [
"lasdolphin@gmail.com"
] | lasdolphin@gmail.com |
3785f958355754fc84cc65177e26c696dd4e9cea | 742dd0d99099c8ef38eb23e4b4cf763226571e72 | /udfs.py | 937118d59d16a344281f7815a901129bb58ebe9c | [] | no_license | vishwanath79/PigDistributer | 68f4b3ef780a02228c73f70868526529e32699d6 | c61026a5dc1567dfab4429a48ed1bfab1ad32a37 | refs/heads/master | 2016-08-05T15:31:43.756023 | 2014-03-18T01:08:47 | 2014-03-18T01:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | @outputSchema("values:bag{t:tuple(key, value)}")
def bag_of_tuples(map):
return map.items()
| [
"ingvay7@aol.com"
] | ingvay7@aol.com |
3245933ea186704baae813d647a605e633ac67cf | 6500149881382163c430ef2922667633c7f59e81 | /Object Detection/real_time_face_detection.py | 6da85414441146b69fcfca01d90c6c75dc52fb0f | [] | no_license | V-Run-P/Computer-Vision | 37604bea0c5e089af9158ab2ecf0495750d81f7d | 67e59525bb062652bb459a4969c3188e22895ba6 | refs/heads/main | 2023-06-11T16:02:02.932715 | 2021-07-09T12:03:56 | 2021-07-09T12:03:56 | 319,770,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | import cv2
import sys
import logging as log
import datetime as dt
from time import sleep
cascPath = "haarcascade_frontalface_alt2.xml"
faceCascade = cv2.CascadeClassifier(cascPath)
video_capture = cv2.VideoCapture(0)
while True:
ret, frame = video_capture.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY... | [
"noreply@github.com"
] | V-Run-P.noreply@github.com |
4f9c88e2ddbd1acfeb620138840ae3a4972261a0 | 77b998e0e4237ac74649948db3f7729c9740ad4b | /Day12/day12_2.py | cd5d343e0277ab5e52dd046fb9acc76b06b77b08 | [] | no_license | sboyett31/AdventOfCode2020 | 94bd64f01bacc55e20fe55d864d0223c280cb141 | a49aceca123473cb40325494a7f0dc269b7ff2a3 | refs/heads/master | 2023-02-15T14:10:58.727243 | 2021-01-11T23:42:10 | 2021-01-11T23:42:10 | 325,432,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | #######################
# Stephen Boyett
# Advent of Code
# Day 12, Part 2
# 1/3/2021
########################
class ship:
def __init__(self):
self.x = 0
self.y = 0
self.wpy = 1
self.wpx = 10
self.dir = 90
self.wp_quad = 0
def autopilot(self, instr_set):
for i in instr_set:
print(f"Instruction is... | [
"stephen.boyett@adtran.com"
] | stephen.boyett@adtran.com |
b7c1f2d82dc1dd5d62f4507f54d9b21e76f4b8a4 | fc974aaa610ee31d2ed06ef138d89522faae0b76 | /pydata/python_repos.py | 2cd4694bd87f16a00b18e0cfc2b990c9fe83d461 | [] | no_license | wangxinghust/pyhello | 9c2a3f31a0d05c1ca06cb60e6b4175b78e4766e4 | 95c81499c94b4118c8ef34cfa5866953c224d5ee | refs/heads/master | 2020-08-14T17:31:15.980140 | 2019-10-25T05:23:03 | 2019-10-25T05:23:03 | 215,208,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | """
使用API
"""
import requests
import pygal
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
r = requests.get(url)
print("Status code: ", r.status_code)
# 将API响应存储在一个变量中
response_dict = r.json()
# 处理结... | [
"wangxinghust@qq.com"
] | wangxinghust@qq.com |
f4ad5373ba404d554b1f3dec4d3aec8e6e05174b | 38248522bf1e2735aaf057f94f080043cf78d1b8 | /stubs/phantom/vault.py | 65d04e2189569193bb0522da7a0d2a604fb3b77f | [
"Apache-2.0"
] | permissive | mjiyani-crest/phcode42v2 | 94685df9ec07c55dee7763ed3d48898d1503e8f8 | 1e27773df7115845371561956ec0d3433388f6ae | refs/heads/main | 2023-06-23T22:25:14.790298 | 2021-06-28T17:25:34 | 2021-06-28T17:25:34 | 373,809,313 | 0 | 0 | Apache-2.0 | 2021-06-04T10:43:50 | 2021-06-04T10:43:49 | null | UTF-8 | Python | false | false | 149 | py | class Vault:
@classmethod
def create_attachment(
cls, file_contents, container_id, file_name=None, metadata=None
):
pass
| [
"alan.grgic@code42.com"
] | alan.grgic@code42.com |
bfee3d7f0d173050488e73bc4e33f45ce25bed58 | 9972d534eb10c47546385b9a8db520e639d9f029 | /kernel_svm.py | eb30a465b4b27d213723af1dd682c484f9b0c355 | [] | no_license | Yash482/Classification_Models | 757e2319d8c0324e4bd0c37e7e368919873936a0 | 6edc2ab6f1e19be152bc7e4e99fd123c6de86bc7 | refs/heads/master | 2022-11-13T17:09:58.558384 | 2020-07-03T12:32:28 | 2020-07-03T12:32:28 | 276,892,917 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | #import libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#get dataset
dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, -1].values
#splitting data
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = tra... | [
"agarwaly482@gmail.com"
] | agarwaly482@gmail.com |
d61041193914ae4891ecb1576ae6c66e1b215381 | 1b5b2df047080208d2649c7aae3c79e6f99cc23e | /Customer_managements/account/migrations/0002_auto_20210412_0502.py | 35fb002c0abfa6842283e073f99dd042515a38b6 | [] | no_license | Hardik0812/Customer_management_project | 57795936f52c2a51f5644d185373d87958eb5a69 | 39ab7c579af9f0ac85a8155f1750bd226eadb743 | refs/heads/main | 2023-04-13T14:31:28.665267 | 2021-04-14T18:57:16 | 2021-04-14T18:57:16 | 357,665,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # Generated by Django 3.1.3 on 2021-04-12 05:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='customers',
name='id',
fi... | [
"mail2hardikchandegara@gmail.com"
] | mail2hardikchandegara@gmail.com |
4aa5e17e1955bc88a72d692a188697cf9d737dc4 | 89c59980b4cb3eccedc56e8c8872bf789fd55787 | /DBapp/consumers.py | 975da7bf7147eeba627495aa982cbabf98bb09ef | [] | no_license | ChaosXYZ/Kilbearn | b6b139d859051b4c41c0a8794229c5d46c15ccbf | 241eff1945b6cd84f72246b889ed924800510f5b | refs/heads/master | 2023-07-13T01:31:08.196039 | 2021-08-23T19:18:01 | 2021-08-23T19:18:01 | 399,222,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | import json, time
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
# Join room group
... | [
"ChaosCodePractice@gmail.com"
] | ChaosCodePractice@gmail.com |
9ca2e6337d14d6e649e9d38da30e2d1da7e2ccde | 2bafce6fa0662a9c4b799a076dc08f1ad07f40be | /Contributions/basic-xor-encryptor.py | 88a365f4e52df83dc9f978fb864cad4e9707bc6a | [] | no_license | aryangulati/Hacktoberfest2021 | 70e12df69850dcd057e79e6881e8676f09b91919 | cdaf3f7082c841c9b03ffcf3521a8c60fd4f7fb9 | refs/heads/main | 2023-09-01T03:22:22.884520 | 2021-10-22T07:10:23 | 2021-10-22T07:10:23 | 300,351,216 | 4 | 48 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | text = "flag{be551b494eac9a69a4584b8e2db0bb20}"
def encrypt(text,key):
encrypted_txt = ''
hex_enc_txt = ''
for i in range(0,len(text)):
xored = ord(text[i]) ^ ord(key)
encrypted_txt += chr(xored)
hex_enc_txt += hex(xored) + '-'
li = list(hex_enc_txt)
li.pop()
hex_enc_tx... | [
"noreply@github.com"
] | aryangulati.noreply@github.com |
b1162025d76acd18de5a6ad6c14cd6f53341538e | 08b8f76a4d734c24d23d83cc23fa798e8ae9c809 | /domain/http_status.py | 4c58268c853c9764d641989775300b0316e439b1 | [] | no_license | vanchinathan83/ninjablog | 9e09433bcc0228be42527a4a4ff616e26d3f42a3 | 45e253bf906c0fd29c2f3dd6e4ee3f14749a2131 | refs/heads/master | 2016-09-10T18:51:12.966177 | 2015-06-12T04:17:54 | 2015-06-12T04:17:54 | 35,651,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | class http_status():
def __init__(status_code=200,message="Success"):
self.status_code = status_code
self.message = message
def __str__():
return self.status_code + '-' + self.message | [
"ac.vanchinathan@gmail.com"
] | ac.vanchinathan@gmail.com |
aa0c78b91142b0002b7981f71cf48f00bc2bf1fc | 9e4e8d69db7f440f4bb0110901bcca96f774b752 | /HandTracking.py | 3aebdcccd94c28a1eaa4f5354855ae9b46f24889 | [] | no_license | ankanp14/virtual-mouse | 1029344ba56c38f5fa7e1bb06b21d3118ac12dc4 | 38070463459dc630d001967a1dbb675ca78b4470 | refs/heads/main | 2023-08-30T23:18:59.908713 | 2021-10-12T05:50:11 | 2021-10-12T05:50:11 | 416,193,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | import math
import cv2
import mediapipe as mp
import time
class handDetector():
def __init__(self, mode=False, maxHands=2, detectionCon=0.5, trackCon=0.5):
self.mode = mode
self.maxHands = maxHands
self.detectionCon = detectionCon
self.trackCon = trackCon
self.mpHands = mp... | [
"apathak@gmail.com"
] | apathak@gmail.com |
63e4f8cf5a8098230e5b16812a052b656f55fdcc | 39dd67658cdf965a789b698af01837af5da17214 | /hlt7-json/ls.py | 5df42885cce3f835ec571889eb63dcd75d88629d | [] | no_license | aaditya9/zestl_work | 024284d27704ba6da60989124f9499f4f96760e0 | 3fffeb1b83fe9200e0c99572fa92a64e9abe70e3 | refs/heads/master | 2020-03-06T21:58:09.668652 | 2018-08-16T05:49:39 | 2018-08-16T05:49:39 | 127,091,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import os
dirlist = os.listdir("/home/adi/Desktop/zestl/hlt7-json/inputs")
# from pprint import pprint
# pprint(dirlist)
print(dirlist) | [
"aditya@zestl.com"
] | aditya@zestl.com |
07d7d00cabbdd38048ac62b9367315ed14ec597b | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /mas_nitro-python-1.0/massrc/com/citrix/mas/nitro/resource/config/ns/ns_visualizer_network_bindings.py | 451bd7a3c98e29df8fc73e2841f2c2d5c5e171c7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 9,643 | py | '''
Copyright (c) 2008-2015 Citrix Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
08f7eea4ec4d3f08ad17af56071e9c8f789b1eb4 | 49a15320cc98bf4f609d1ab3cd5090936aabd9c9 | /match_UI.py | 85ae765ba50ce0d0df7293a95d275e9915d0294b | [] | no_license | sparkbrains/buddymeup-backend | 6eed295d10665e794257664d3dc44cc05f23cb87 | 80059ea17e546d29d4a5c208b42d3e23f3c78439 | refs/heads/master | 2023-06-09T06:24:27.977418 | 2021-07-04T09:57:22 | 2021-07-04T09:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | import streamlit as st
import match_algo
import pandas as pd
def display_match_UI():
st.write("Load data from DB to dataframe:")
if st.button("Prep data"):
st.write("Preparing data...")
st.session_state.data, st.session_state.email_ids, \
st.session_state.fdf, st.session_state.idx_dict = match_algo.p... | [
"ryc.mak@gmail.com"
] | ryc.mak@gmail.com |
5b90ea66af48cddbcf91b005e887bda3142329f3 | b06978b6020ce3240912ba5c131c4f38a86d7996 | /Pycharm_files/Lists/rand_num_list.py | 5ff3c2ce16b490c9c4438705cc6590bbde38c7c1 | [] | no_license | mn4774jm/PycharmProjects | 95dc8ee6b89a85ba02d4134aa5b5bce11004647b | 886bcf2400abc9a1f797fe98d09241f99fa16322 | refs/heads/master | 2021-08-09T10:20:27.907847 | 2020-09-04T15:21:21 | 2020-09-04T15:21:21 | 219,878,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | """ M. Bock 6/17/2019 This program asks the user how many integers they would like to pick for their list,
The program randomly selects that number of integers, and saves each pick in a list. The program sorts and
adds the numbers, then determines min and max. It displays the information in different ways
- wit... | [
"mn4774jm@go.minneapolis.edu"
] | mn4774jm@go.minneapolis.edu |
55fd977c44b6f3678d972ff1d4ce0f76dd2fed9f | 4eff9da9c945bac23383c1911ffa8448bae12ab3 | /chapter 2/chapter2_problem1.py | 5da8d9c765ba2e28e82f2692e8355c850e2649b4 | [] | no_license | SoorejRB/Anandolody-python-exercises | 0490fe3027dda3f74241ef21dcc11fe83242a79e | 30397c4926e480a57dbc4c8ff8df6c7236931a7f | refs/heads/master | 2023-08-24T10:39:15.127918 | 2021-08-27T03:00:44 | 2021-08-27T03:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # a list contain another list as member
a = [1,2]
b = [3,5,6,a]
print(b)
# builtin range fn
x = range(1, 4)
print(x)
print(x[0])
print(x[1])
print(x[2])
print(len(x))
# + and * operators in list
a = [1,2,3]
b = [4,5,6]
print(a+b)
print(a*2)
# negative index
x = [1,2,3,4]
print(x[-1])
print(x[-2])
#list slicing
x =... | [
"soorejrb@gmail.com"
] | soorejrb@gmail.com |
e1d3dba25c73ce79845293cae302e1f57c6b0570 | 88854ce2e1a2c7342a074c5266165ce1934f46cf | /practice exercise 3_5.py | d470858bd555d652969914e1199995389d74503e | [] | no_license | patrick473/TCIT-V1PROG-15 | 0fe6803284a345b31133e4eba3e3ba69ecf9648d | 2d7279dfd3c5544c6b164aa977a4845694cd5b56 | refs/heads/master | 2020-05-29T09:12:41.011103 | 2016-10-11T12:43:44 | 2016-10-11T12:43:44 | 70,230,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import math
def kwadraten_som(grondgetallen) :
for i in grondgetallen :
if i < 0 :
grondgetallen.remove(i)
return sum([grondgetal**2 for grondgetal in grondgetallen ])
print(kwadraten_som([4,5,3,-81]))
| [
"patkottman@gmail.com"
] | patkottman@gmail.com |
5c53432d1ffc71cfc8c419bf6bd2c8048d9826e5 | df025f6d1168fbbe1d643278ca816eed2a25eaef | /hct/apps.py | 69a4f65e2a1771df479a030c45fee5316ac764c8 | [] | no_license | jorgeeecm/HazteConTodo | 68e4890b70a021ffebf989af512404ee61855917 | c759713f2c4993da22291a245d50a31dd12583f4 | refs/heads/master | 2020-03-21T13:35:19.200153 | 2018-06-25T15:34:02 | 2018-06-25T15:34:02 | 137,350,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from django.apps import AppConfig
class HctConfig(AppConfig):
name = 'hct'
| [
"jorgecastillamaldonado@gmail.com"
] | jorgecastillamaldonado@gmail.com |
e898cbf91adc561911b9c2f3d4986ddf8a4dbc1d | 23fd8d2525706f9679c5d8140363f3eb46444313 | /DiscOpt/screenname/screenname/solver.py | 25aa963c755c7eca717e2bbf7e754e308bd3df01 | [] | no_license | stevehaigh/MiscCourseWork | 6c8d4fa4b5950e7d4bcb53aeb6ad5f7cc78b7b1f | fbd4797ccdd5446187722dbe96d08680bc60661b | refs/heads/master | 2021-01-10T03:27:37.825996 | 2015-12-16T15:56:52 | 2015-12-16T15:56:52 | 48,120,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def solveIt():
# return a string that is the screen name you would like
return 'shaigh'
if __name__ == '__main__':
print 'This script submits the screen name: ' + solveIt() + '\n'
| [
"steve.haigh@ericsson.com"
] | steve.haigh@ericsson.com |
09f337fa9dd14abb02db74e77343480e6f404d70 | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /05PythonCookbook/ch11Network_and_WebProgramming/2tcp_server/1server_write.py | 81158a2d9b9a58cdeef3ee8d6799882b0eecdf04 | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 733 | py | from socketserver import StreamRequestHandler, TCPServer
class EchoHandler(StreamRequestHandler):
def handle(self):
print('Got connection from', self.client_address)
# self.rfile is a file-like object for reading
for line in self.rfile:
# self.wfile is a file-like object for wri... | [
"greatabel1@126.com"
] | greatabel1@126.com |
5439dfb116477a4beef14b119635147786c66780 | 6b3003db01237128168cac075f7283c5184cfc1c | /plot.py | ad7c3e91d9e31725881269bdd2c4c2af5db9ef0d | [] | no_license | muhumahucoorp/Data-Mining-Project-2 | e87cb3d9a223d0cb5622edb6d84201b2317651fb | 9c6aa09ac0cb6a8c688fd3e6b469b5676bc23d0e | refs/heads/master | 2020-12-03T03:54:20.898179 | 2017-07-26T21:52:14 | 2017-07-26T21:52:14 | 95,788,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | import pandas
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
import sys
print("Prepare data ...")
names = ["Id", "RI", "Na", "Mg", "Al", "Si", "K", "Ca", "Ba", "Fe"]
values = pandas.read_csv('glass.data', delimiter=',', header=None)
classes = ('building_windows_float_processed', 'building_wi... | [
"muhumahu@web.de"
] | muhumahu@web.de |
bd953833d28c7cc861dec244fed9c12b796aa056 | 980017a97a0373e7dde5afd100f2b82cbcfa4d18 | /bot.py | 54a9fa8ff5d03404765740e6720ccdaf8f883cec | [] | no_license | nimert007/aiogram-bot-template | 6298ee7c89f6ff8eb85b561031713bd7873300db | ebab1bf882566007c755684eba8f859c286b3a1f | refs/heads/master | 2023-03-27T13:53:24.380280 | 2021-04-04T15:04:41 | 2021-04-04T15:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | from typing import List
import aiojobs as aiojobs
from aiogram import Bot, Dispatcher
from aiogram.contrib.fsm_storage.redis import RedisStorage2
from aiogram.types import ParseMode
from aiohttp import web
from loguru import logger
from data import config
# noinspection PyUnusedLocal
async def on_startup(app: web.A... | [
"mr.i.lebedev2@gmail.com"
] | mr.i.lebedev2@gmail.com |
43981ac07cd22df75089d79929af3633bc60e54e | 56863ae0712a937bc469a3f9e50d56170ef2666d | /CourseWork/urls.py | a15fd8edab056ab907336edd5e9e5213ecdac1c9 | [] | no_license | BohdanM19/CourseWork | f79b5e716366c87583ac575e93e0a6d9dbf9db5d | ca3ed39b263b71185e14660f477496ffc0101031 | refs/heads/master | 2022-12-15T19:04:43.403578 | 2019-06-02T11:41:57 | 2019-06-02T11:41:57 | 175,252,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | """CourseWork URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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-ba... | [
"bogdanrichers@gmail.com"
] | bogdanrichers@gmail.com |
c8495d65ce9caa0795ab5e3f33e6d9e688f0e37c | aa44e7108b8f986e1bd23a3a6132c672cf185047 | /1_assignment/4_sorting_mapreduce/mapper.py | 0bb12fec3e4ed0f4eaa20f55d368c028fc5bda2c | [] | no_license | jonbichel/hadoopProjects | a008bce9917d4b57ef71f07f0d55e83d0b8069df | 6fe00fc4ded04cf97eec1d870105a078f0941fe3 | refs/heads/master | 2020-03-31T14:59:20.812357 | 2018-11-06T02:52:35 | 2018-11-06T02:52:35 | 152,318,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!/usr/bin/env python
#mapper.py
import string
import sys
for line in sys.stdin:
line = line.strip()
line = line.lower()
words = line.split()
for word in words:
for c in string.punctuation:
word = word.replace(c,"")
if word != '':
if len(word) == 1:
... | [
"jon@pkosund.ca"
] | jon@pkosund.ca |
7d417ecb524f386139a8882bd6a18ee49c18665e | 7fbe976af5d3d20d0d4b6130a95f59d7f7dbc6ef | /video/app/client/urls.py | 14821a4dc7be7ff66ec86f2d14dd40ba8ce064d1 | [] | no_license | wang122300090/muke_video_test | 0ac3ddf4854d04a13b89ccb947c2ed40b9793468 | 86acb441ecd36ce354530ec20f2262f12561e95a | refs/heads/main | 2023-05-31T04:38:30.352061 | 2021-06-12T07:35:30 | 2021-06-12T07:35:30 | 376,222,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # coding: utf-8
from django.urls import path
urlpatterns = [
] | [
"1561585776@qq.com"
] | 1561585776@qq.com |
5717ef3da2990fec63c5c42339244d2e9266bc96 | 7a535da0698c3933f6a3b642cf425b47287dd2c9 | /train_gan.py | 50f3008d13870bcb729e3a3bf0881dfe4ccef6ab | [] | no_license | xuehuiping/VGAN | 180969505489854ff9d5b88b6bb957ee6e403409 | 9c22bf333d33a13a48eea69b4772b558eb65bf81 | refs/heads/master | 2022-01-05T23:37:36.323380 | 2019-03-18T07:18:09 | 2019-03-18T07:18:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,255 | py | #! /usr/bin/env python
# encoding:utf-8
"""
The adversarsial training file
"""
import tensorflow as tf
import prodata
from load_data import Dis_dataloader
from reward1 import get_reward
import random
import numpy as np
from generator import Generator
from discriminator1 import Discriminator
import time
import numpy... | [
"2282821376@qq.com"
] | 2282821376@qq.com |
cc5f1b8f912672b465b323e9a72150043df31abe | d19ef5717555c67398f69f7ae26f8666cd64aa67 | /flask/bin/pyrsa-decrypt | 90e280353b3cfe8d8174179375f0436f1a6ea294 | [
"MIT"
] | permissive | abagh0703/Find-Retail-Stores | 4d421e1ea5e5bbcf4e45e629a5ddf549e6d16eab | cbca3c052523c52935066c5585e5dd2f1c6b4b1e | refs/heads/master | 2020-12-26T00:06:34.856475 | 2016-08-11T16:53:35 | 2016-08-11T16:53:35 | 59,902,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/Users/benjaminnewman/Documents/StuyHacks/RetailTrail/flask/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import decrypt
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(decrypt())
| [
"nlb9991@gmail.com"
] | nlb9991@gmail.com | |
7217341c53ebd4827a6ee7287feba14cdfbc09c3 | 5d5279a26c58538f47ec74efb7f66d43e07606e9 | /huffman_helper_tests.py | 362f371be5acdadfced9dd4332952deb82bccc4c | [] | no_license | clau2024/Encoding | 010e6506c13e4d5234b4332707697d630e34468c | d61fc327005e2ce50259ab4399673fac1871a8b9 | refs/heads/main | 2023-03-25T16:35:34.490516 | 2021-03-22T19:36:34 | 2021-03-22T19:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,150 | py | import unittest
import filecmp
import subprocess
from ordered_list import *
from huffman import *
class TestList(unittest.TestCase):
def test_cnt_freq(self):
freqlist = cnt_freq("file2.txt")
anslist = [2, 4, 8, 16, 0, 2, 0]
self.assertListEqual(freqlist[97:104], anslist)
def test_lt_a... | [
"noreply@github.com"
] | clau2024.noreply@github.com |
aaa2ceea09ad4ade20bef24175dab45ad8a2fc7a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/sieve/99c2a017b3484b88b8aeabf6dbd28122.py | 780ae85330f2f6d9871630b622399a77d4c92425 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 266 | py | def sieve(number):
end = number + 1
array = range(end)
array[1] = 0
for i in xrange(2, number/2):
if array[i] > 0:
for j in xrange(i+i, end, i):
array[j] = 0
return [x for x in range(2, end) if array[x] > 0]
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
9c064cd199d4fefac3d2a9e1087409073e1f8c6c | 84ed9a53237c703769df75e68f73ebca28900d73 | /src/union_find/union_find.py | 28f7e7e18128e8a4f20974cccf74474a3b1bbe2d | [
"MIT"
] | permissive | naoki85/algorithm_programs | 667be4d75f3e6c37fca64f6d7521f5c6058fc68e | 7da25547bb9eb515091104769912860244860184 | refs/heads/main | 2023-07-28T16:03:52.214019 | 2021-09-12T07:48:46 | 2021-09-12T07:48:46 | 334,637,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | class UnionFind(object):
def __init__(self, num_of_nodes=1):
self.__parents = [i for i in range(num_of_nodes + 1)]
self.__rank = [0 for _ in range(num_of_nodes + 1)]
def find(self, x):
if self.__parents[x] == x:
return x
else:
self.__parents[x] = self.fin... | [
"naoki.yoneyama.85@gmail.com"
] | naoki.yoneyama.85@gmail.com |
1a0e9db68c91b85962abc8429d257f6023ba63fb | 2b9cc67d4bbb5257b4c64bf6437bf7c589300c06 | /workspaces/Data_unconstrainedFpt/step2 | 889b74e2cadf04723a24cc47bddb47519876fedd | [] | no_license | gerbaudo/hlfv-fitmodel | 81bfe391a4a19af5268fa056319dc552f6b9e1cf | 17a44604fa860382f72e27a5ee5c1432677e40cd | refs/heads/master | 2020-06-07T09:34:42.487189 | 2015-05-25T09:44:23 | 2015-05-25T09:44:23 | 35,870,053 | 1 | 0 | null | 2015-05-25T09:05:46 | 2015-05-19T08:43:13 | C | UTF-8 | Python | false | false | 1,033 | #!/usr/bin/env python
import os
import sys
import ROOT
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-check', action='store_true')
args = parser.parse_args()
models = ["AllSYS",]
for model in models:
fname="results/ws_LFV_combined_%s_model.root"%model
if not os.path.exists(fname): continue... | [
"avitald@883ba7d9-fdd0-4202-9341-49aa55999ad8"
] | avitald@883ba7d9-fdd0-4202-9341-49aa55999ad8 | |
eb15e5e6b5e442c0e948dd3ec8456dec3d69731c | 2bac8043ec48f626617f2af625fc1258ddee40d9 | /mecab_parse_simple.py | eaa5f67b234ed991d5f7321bf83d1c79ac7803fd | [] | no_license | nagano16425/kadai2016 | 84648dd505096815ed071d84f450c822ebbe7090 | 5e76f3697f5931aedbead759d18796ece892d262 | refs/heads/master | 2021-01-21T04:53:58.275897 | 2016-06-29T12:15:31 | 2016-06-29T12:15:31 | 55,683,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | import sys # System
import MeCab # MeCab
if __name__=="__main__":
mecab = MeCab.Tagger("-Ochasen") # ChaSen互換形式
mecab.parse(" ") # UnicodeDecodeError回避(MeCabとPython3のバグ回避)
sentence = ("「豊工に行っています。」") # 形態素解析用の文章を入力
node = mecab.parseToNode(sentence) # 形態素... | [
"sd16425@toyota-ti.ac.jp.com"
] | sd16425@toyota-ti.ac.jp.com |
bb4a99e49dd0f91bad55759f5e8fbae63e93263c | e791c8d861241574264193a0a11d370f9f90725c | /node.py | cacf608c1a28789a76940b4ebc008499e1e592ff | [] | no_license | LinnikPolina/Compiler | 253f75c0f301c4ba7f04050694cb45658ea1a4eb | d1914025a0536f7d35fccf8a040ca27ac185ca06 | refs/heads/master | 2020-06-11T03:55:06.596908 | 2019-06-26T06:33:01 | 2019-06-26T06:33:01 | 193,843,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,879 | py | from value import Value
from symbol_table import SymbolTable as SymbolTableClass
class Node():
def __init__(self, value, children):
self.value = value
self.children = children
def Evaluate(self, SymbolTable):
pass
class BinOp(Node):
def same_type(self, value1, value2):
i... | [
"apoliina@outlook.com"
] | apoliina@outlook.com |
1244d88a20ed14f3b94d2619028165589628a562 | 1da5c37c2a356eaa2cdc912120937db9f80dfb1f | /costumers/apps.py | 3938f75d3fce2c4800a604704d1eec3a4090f215 | [] | no_license | pace-noge/django-bootstrap-kargo | 4303c296bc83ff03548dced176bd7ae8261572e2 | 5d1947b481c308990f324a8f328ebdef902df9d6 | refs/heads/master | 2020-04-07T15:43:04.278103 | 2016-06-27T01:22:23 | 2016-06-27T01:22:23 | 62,012,404 | 0 | 0 | null | 2016-06-26T23:12:00 | 2016-06-26T23:12:00 | null | UTF-8 | Python | false | false | 134 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class CostumersConfig(AppConfig):
name = 'costumers'
| [
"nasa.freaks@gmail.com"
] | nasa.freaks@gmail.com |
16effeca8f4cf8ea3950da947f8f8f576ad45be9 | 60046bdd6ee8bac2494970812f9dc7a34ca4f659 | /tests/test_database.py | 4c1a212d6dbf595d99b467f4df201c1db85ea212 | [
"MIT"
] | permissive | nameone/accounts | 7f2498aa8570e151281b697e4e9c3b5fa41a338b | 75ad3ccf849c1c80f380e6db1fcd9a41b8383f3d | refs/heads/master | 2020-12-14T06:11:03.659926 | 2014-10-21T03:23:28 | 2014-10-21T03:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # -*- coding: utf-8 -*-
import psycopg2
from psycopg2.extensions import STATUS_READY
import settings
from accounts.database import connect
def test_connect():
con = connect(settings.TEST_DB_PATH)
assert isinstance(con, psycopg2._psycopg.connection)
assert con.status == STATUS_READY
con.close()
def te... | [
"imiric@gmail.com"
] | imiric@gmail.com |
e732ce8e858fe101f891c48e34c95e282265a794 | 021d837c38901e6a4371dfa21019b5ce8c9e83e5 | /indic_glue_dataset_fixed/indic_glue.py | e8407084bd863ad303ead5ed05f6ee9044478f17 | [] | no_license | amankhandelia/roberta_hindi | bf9e6086ffcb25a9df32c7800836977d20c124d4 | be4b082d97443abd40fc61c4cf138a217d6baa16 | refs/heads/master | 2023-06-24T14:18:06.183093 | 2021-07-20T12:49:16 | 2021-07-20T12:49:16 | 382,264,438 | 4 | 0 | null | 2021-07-10T19:27:57 | 2021-07-02T07:20:20 | Python | UTF-8 | Python | false | false | 44,321 | py | """The IndicGLUE benchmark."""
import csv
import json
import os
import textwrap
import pandas as pd
import datasets
_INDIC_GLUE_CITATION = """\
@inproceedings{kakwani2020indicnlpsuite,
title={{IndicNLPSuite: Monolingual Corpora, Evaluation Benchmarks and Pre-trained Multilingual Language Models for Indian... | [
"kartik@deepklarity.com"
] | kartik@deepklarity.com |
03114e5bc681884e49cec60bf21af44cc401113f | 203db2e71e5bdd6cc5b9ba5f3012634c149de00f | /pythonex/0807/ex3.py | 0c309727eb3f016485f45ddc2c122efa4246fa5e | [] | no_license | NayoungKwon413/Python-study | c8401361585110a761cb02482a4fbd31f169f87a | ae8b1aae59f53bfa11c27578dea87c4f81f852fa | refs/heads/master | 2022-12-13T15:35:46.883063 | 2020-09-03T10:24:50 | 2020-09-03T10:24:50 | 292,536,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | '''
Created on 2020. 8. 7.
@author: GDJ24
간단한 계산기 함수
'''
def calc(var1,var2,oper):
if oper=='+':
return var1+var2
if oper=='-':
return var1-var2
if oper=='*':
return var1*var2
if oper=='/':
return var1/var2
oper = input("연산자를 선택하세요:(+,-,*,/)=>")
var1 = int(input("첫번째 수=... | [
"monika94@naver.com"
] | monika94@naver.com |
ff6d027135f24916c328e61afee061883d54d057 | f5b7b88c9b2fcfc344f5f11c3fb3ec9a7a9f64ef | /34-PCA.py | 89da2e0a7c33d43aa727b3b33e2e5f2cf28a7af2 | [] | no_license | vedavd/Machine-Learning-A-Z | 559c566c273f35daa760f93b5023e490aee50128 | 57b26f33ffa8644c1492ad894db10d66b40dfc3f | refs/heads/master | 2021-01-05T05:25:48.525693 | 2020-04-27T16:01:50 | 2020-04-27T16:01:50 | 240,896,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,159 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 08:58:57 2020
@author: vedav
"""
#import libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Read the data
dataset=pd.read_csv("34_PCA_Wine_Data.csv")
#Create the independent variable.(index 0 to index 12)
X=dataset.iloc... | [
"noreply@github.com"
] | vedavd.noreply@github.com |
3339d1eacd12e7530eff357b3cbf3e28a0855845 | dce96c94b93f8ed99e8ad1202065fc0923fc113b | /Question1.py | 436c131ea50bcd9cccaacccc08797450bb2c4839 | [] | no_license | dasha-pokutnaya/HPM573S18_Pokutnaya_HW7 | c2c96e21ebba329307699716b609cfbad815814e | 0c6cc96fa63f3e970211020b8d2e6eb830d1a3d9 | refs/heads/master | 2020-03-07T13:14:04.600736 | 2018-03-31T03:29:08 | 2018-03-31T03:29:08 | 127,495,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,605 | py | from enum import Enum
import numpy as np
import scr.StatisticalClasses as Stat
class HealthStat(Enum):
""" health status of patients """
ALIVE = 1
DEAD = 0
class Patient:
def __init__(self, id, mortality_prob, pop_size):
""" initiates a patient
:param id: ID of the patient
... | [
"noreply@github.com"
] | dasha-pokutnaya.noreply@github.com |
ca5e812fa90e6845444fddb52d48d6d9c7bd9d5c | 7832e7dc8f1583471af9c08806ce7f1117cd228a | /aliyun-python-sdk-ons/aliyunsdkons/request/v20170918/OnsTraceQueryByMsgIdRequest.py | 19b77d0b56fda4a2a169b69a18c6a06cce57c27e | [
"Apache-2.0"
] | permissive | dianplus/aliyun-openapi-python-sdk | d6494850ddf0e66aaf04607322f353df32959725 | 6edf1ed02994245dae1d1b89edc6cce7caa51622 | refs/heads/master | 2023-04-08T11:35:36.216404 | 2017-11-02T12:01:15 | 2017-11-02T12:01:15 | 109,257,597 | 0 | 0 | NOASSERTION | 2023-03-23T17:59:30 | 2017-11-02T11:44:27 | Python | UTF-8 | Python | false | false | 2,122 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
d63ebc6be1a001368b725fe8beea41e9b7ee9f53 | 0a40da80ee72f14050c713f9d5372670bef26bad | /standard_library/csv_file.py | c03db9288772d1ffa5c562b52dc164aa64442eb7 | [] | no_license | naimishbhagat/python3 | 17430adf788cc2bc6ed31b2b95e522939ed16d09 | a740229c00db83a2c7c69720340a7a619493139a | refs/heads/main | 2022-12-29T02:57:17.884417 | 2020-10-11T01:03:20 | 2020-10-11T01:03:20 | 303,016,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | import csv
# with open("data.csv", "w") as file:
# writer = csv.writer(file)
# writer.writerow(["transaction_id", "product_id", "price"])
# writer.writerow([1000, 1, 5])
# writer.writerow([1001, 2, 15])
with open("data.csv") as file:
csvreader = csv.reader(file)
# print(list(csvreader))
fo... | [
"naimish.bhagat@arq.group"
] | naimish.bhagat@arq.group |
e30bbcaf8bb08ef3829ba503bbe5745147e18756 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/test/multibytecodec_support.py | bd6b243293ba3fc0c45dc2a673595ef5b4f10719 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/python-3.7.7-oihhthdoxtgh4krvzpputn5ozwcnq2by/lib/python3.7/test/multibytecodec_support.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
ebc05e5c030cb186dcfb2743ad4e25a2601074ce | 904cbe01b3aa8ba4a5dadb42570cd5ffa0e20ed4 | /CX_LIFE_NEW/test_case/test_01.py | 61d95bf4009b73bc27171806d36616d58972ce2f | [] | no_license | DoraemonYzx/CX_LIFE_NEW | 7f09a5b235c5cc40f524a4e8d0d0bf2c094784d0 | 51c83f68aa3d462d8856d860c3efd4d3747a5b24 | refs/heads/master | 2021-01-07T10:36:20.333411 | 2020-02-19T16:33:16 | 2020-02-19T16:33:16 | 241,664,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,055 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author:余振新
@file: test_01.py
@time: 2020/02/14
"""
import unittest
from selenium import webdriver
from common.base_driver import base_driver
from common.base_action import BaseAction
from pages.wx_page import WxPage
from pages.home_page import HomePage
from pages.commo... | [
"1353520146@qq.com"
] | 1353520146@qq.com |
ffc6850ee4a7c07bc7fa57c305cebadb10c99d31 | 206a1dc4ba509e85221a755bb18b7e4abef89e84 | /retrofreud/moodmeter/views.py | 403cf7ca2ecbb7b1ce195b55f724b62ae76e5088 | [] | no_license | mmatchyn/retrofreud | d32e04fadaf01860b242afab49f2a26a9ad40d3a | 9923f2179dbf0f647fab8e25af960f1f03ac3aa9 | refs/heads/master | 2021-05-01T16:28:34.291006 | 2013-07-29T20:50:04 | 2013-07-29T20:50:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | from django.core.context_processors import csrf
from django.views.decorators.csrf import requires_csrf_token
#from django.utils.safestring import mark_safe
from django.shortcuts import render, render_to_response, get_object_or_404
from django.template import RequestContext
from moodmeter.models import MoodProfile
d... | [
"mateja.verlic@gmail.com"
] | mateja.verlic@gmail.com |
2d1d912843c65dfabe278497ecc3011b961bd530 | 244919911b21743e089d0a995cea7190a3e49ce4 | /caesar.py | 2db90c2daf7f61225127629629722c76fabd0b2b | [] | no_license | Tomcruseal/sage | 644683ec5779a2ca63c4d739cbf02e957be8a8ee | a66e21f018f73c815a59dd1b5d986c021f635917 | refs/heads/master | 2021-01-10T15:22:16.204150 | 2016-03-16T01:51:13 | 2016-03-16T01:51:13 | 53,791,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | letters=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
def get_index(char):
for i in xrange(len(letters)):
if char==letters[i]:
return i
def caesar(message,x):
cipher_message=[]
for char in message:
new_index=(get_index(char)+x)%26
new_char=letters[... | [
"lzb731@hotmail.com"
] | lzb731@hotmail.com |
bbd048b8f532b3ed17fdd7db6d0f506df6a58b48 | 0efb5aa14dae6ae061d5d45ab22a8c27de5fb1d6 | /maringaji/maringaji_api/models.py | e6568f77a1af8009d0fd3ad430ef26eec6356761 | [] | no_license | monabstudios/maringaji-mtc | 69a568e7699d1d5ebb2db2daee92a3a01fcef4fb | a18941e9cdd5673b100405a2de40ff4ad631e084 | refs/heads/master | 2020-03-18T00:33:26.691284 | 2018-05-22T14:56:28 | 2018-05-22T14:56:28 | 134,100,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | from django.db import models
from django.contrib.auth.models import BaseUserManager # Allows us to alter behaviour of creating UserProfiles
from django.contrib.auth.models import AbstractBaseUser # Base user that we are going to modify
from django.contrib.auth.models import PermissionsMixin # Allows us to easily set ... | [
"monabstudios@gmail.com"
] | monabstudios@gmail.com |
4cf46c7ea1c390ac0f4372c6439b29c2a2f92330 | 8498b874aa350922e6352254642a87560ebbb564 | /data/atmosphere_biogeochemistry/HadISDH_humidity_trend/code/process_relative_humidity.py | d9bb16ad580d4d88a573d25a3c1534e4a9e9da16 | [
"MIT",
"CC-BY-4.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | RPGroup-PBoC/human_impacts | bf023da546f88111b7b4b8717466c4635c57c14d | 41a1365a9ec01850d59f782de77984e7afad74af | refs/heads/master | 2023-04-10T04:44:07.774700 | 2023-02-17T16:39:07 | 2023-02-17T16:39:07 | 272,572,291 | 9 | 3 | MIT | 2023-01-20T06:42:53 | 2020-06-16T00:28:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,144 | py | #################
# This script converts the HadISDH data in .dat format to a CSV file in tidy format
# with the processed time series. The data provided are relative humidity anomalies
# with respect to a 1981-2010 reference in %rh. Uncertainty estimates are 2 sigma.
# The original data file contains 10 columns:
# Co... | [
"nsarai@caltech.edu"
] | nsarai@caltech.edu |
7b587126968e0ad3238e2e28260af160bc4e6212 | 31bf601e335c0e803b898faca7298d4cdfe0c3bd | /q22.py | 71a03f4f03b107429691c255fb46ff085cd0e03b | [] | no_license | ankushngpl2311/decision-tree | dbdfa8b35b1a2365b0a0317cba3ecc77333a0bef | 9c87db0f7e2e79f86b26759dcd1f65531ece9a31 | refs/heads/master | 2020-04-17T03:03:42.311615 | 2019-01-23T12:22:47 | 2019-01-23T12:22:47 | 166,164,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,047 | py | import pandas as pd
import math
# from tree import *
import copy
from sklearn.model_selection import train_test_split
import pickle as pk
from sklearn.metrics import precision_score
class node:
def __init__(self):
self.children ={} # {low:pointer to low,high:pointer to high}
def insert(self,name,value,positive... | [
"ankush.nagpal@students.iiit.ac.in"
] | ankush.nagpal@students.iiit.ac.in |
4f39adab863b233b15775cee2fd844f5c6e6acec | f1a20cf2d60bf16f0f39ec0e2fa696000f2d286d | /external/predictor/python/seldon/pipeline/util.py | d9a8cfdbe32875fdef27dc5cceaa77e1fa91dd96 | [
"Apache-2.0"
] | permissive | gutaljaard/seldon-server | 2767550fe15f101c4ec81ac103d9fe44619e18fa | 831ba837a7d66ba4a7eed4c921fade003d937b7a | refs/heads/master | 2021-01-21T19:58:06.349552 | 2015-11-18T11:09:12 | 2015-11-18T11:09:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,477 | py | import seldon.fileutil as fu
import json
import os.path
import logging
import shutil
import unicodecsv
import numpy as np
import pandas as pd
import random
import string
from sklearn.externals import joblib
class Pipeline_wrapper(object):
"""
Wrapper to allow dataframes to be created and saved from external d... | [
"cc@seldon.io"
] | cc@seldon.io |
6d3c3ed0fcf1a61750bdadbb045b155a0e049615 | 63fd8a67f1a2129544b41edeb26fea68f65c39c3 | /Connection.py | d14ede78517d2a578a372dbeff99234b68de9f13 | [] | no_license | arkariz/Object-Oriented-Programming-MYSQL | a4f00b9265ff7e0d7639a8a0482f3755c213629d | 2530e5cce2506fd9f8b70305bb3b43a31e912757 | refs/heads/master | 2022-11-13T11:31:20.271182 | 2020-06-28T03:23:13 | 2020-06-28T03:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import pymysql
import DB_Config as config
class Connection:
def open(self):
try:
connect = pymysql.connect(
host=config.host,
user=config.user,
passwd=config.passwd,
database=config.database
)
except pymysql.Error as err:
print(err)
else:
return connect
def close(self):
if s... | [
"44420394+MHDRizky0@users.noreply.github.com"
] | 44420394+MHDRizky0@users.noreply.github.com |
17f42a4ced64f871dce690819201ef6d88280259 | 34ff697bd7ef10e5586875c0f7eadaaaa46c7350 | /aleph/tests/test_view_util.py | 8082846ca1490d3f45ae4d1b424e6a7ba6a9c823 | [
"MIT"
] | permissive | gazeti/aleph | 0305db3fac56fd914e2e09972d479b859ab403ec | f6714c4be038471cfdc6408bfe88dc9e2ed28452 | refs/heads/master | 2021-06-27T11:10:40.798378 | 2017-12-26T19:27:40 | 2017-12-26T19:27:40 | 113,964,932 | 0 | 0 | MIT | 2019-07-04T04:00:21 | 2017-12-12T08:39:08 | Python | UTF-8 | Python | false | false | 664 | py | from flask import Request
from aleph.views.util import extract_next_url
from aleph.tests.util import TestCase
class ViewUtilTest(TestCase):
def setUp(self):
super(ViewUtilTest, self).setUp()
def test_extract_next_url_blank(self):
req = Request.from_values('')
self.assertEqual('/', ... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
d06efe39997e099a93dedae5554911e3a371c562 | 3d06eeebdd598efba25d29d7e3d03d90ede1bfbd | /1_lesson/venv/bin/easy_install | 3d4f5a7a30df321193516cd41c9ac23fceeaa6c7 | [] | no_license | duk1edev/itproger | 58bdd16088dec7864585d318935b118ce584874d | 786f94fff6d816f3f978bd8c24c3d985ffd5ffb2 | refs/heads/master | 2021-01-02T02:43:32.684100 | 2020-03-28T18:10:25 | 2020-03-28T18:10:25 | 239,443,309 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | #!/home/duk1e/code/itproger/1_lesson/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru | |
9ae11956faa91035b5dd81c4086bd1c86acccf07 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/exp-big-1308.py | 046fc60b5113296ee7329b6975527295dc6151a4 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | # Compute x**y
def exp(x: int, y: int) -> int:
a: int = 0
a2: int = 0
a3: int = 0
a4: int = 0
a5: int = 0
def f(i: int) -> int:
nonlocal a
nonlocal a2
nonlocal a3
nonlocal a4
nonlocal a5
def geta() -> int:
return a
if i <= 0:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
c3113677f757b0b05779ba4e7daf9073b87b7e03 | ab752a84ef38e2a30512743da599bf02308512cb | /User/admin.py | f6eceb282c29175947e99e9eff2f45f1e379b477 | [] | no_license | mikekeda/Classroom-Page | edd517ca0fe826559f1229f67d00e57578ad7141 | 9160a234b26faff3fc7c7c0883201617f5856dd7 | refs/heads/master | 2021-01-22T13:04:14.190468 | 2016-09-01T19:40:32 | 2016-09-01T19:40:32 | 66,929,961 | 0 | 0 | null | 2020-10-08T15:33:35 | 2016-08-30T10:13:01 | JavaScript | UTF-8 | Python | false | false | 95 | py | from django.contrib import admin
from User.models import Profile
admin.site.register(Profile)
| [
"mriynuk@gmail.com"
] | mriynuk@gmail.com |
55899503ba359db587de9e8e73f80cde9e2c3679 | c7beeaeb49ba32c673ce6b4772215ed7cc91565a | /taobao/orm/__init__.py | f6013fa203b4924e68c0a248fec0e12bd9540b0f | [] | no_license | py-wuhao/taobao_h5 | 55a074df5f4fd875949cb366ed38c54d32e18b19 | f8a996ee7caa30f0d88d30468dfe59713a7d3f05 | refs/heads/master | 2020-11-24T05:54:28.004208 | 2019-12-14T09:02:30 | 2019-12-14T09:02:30 | 227,994,309 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # -*- coding: utf-8 -*-
# @Time : 2019/11/7 14:58
# @Author : wuhao
# @Email : 15392746632@qq.com
# @File : __init__.py.py
# @Software: PyCharm
from .base import DB_Session, BaseModel, engine
from .goods_info import *
| [
"15392746632@qq.com"
] | 15392746632@qq.com |
c03b0245cff06e02284f63b62b6dd8cdf67a7e09 | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/4892py/a.py | e279817d4a65188b08c0b752da86103b06d0aba6 | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | T=1
while True:
a=int(input())*3
if a==0:break
f=a%2==0
b=(a//2 if f else (a+1)//2)*3//9
print(f'{T}. {"even"if f else"odd"} {b}')
T+=1
| [
"dwj1996@naver.com"
] | dwj1996@naver.com |
874ed34d896808bb93161b5c1af36900567fb962 | 42438f0c9ec4811a9164732fc702f78b5fe3b163 | /app/computation/risks/core.py | 27f3b96c360ede694c21d7b6ed4bdb80d00adcf3 | [] | no_license | jf2/hack | c1709fcea02a60d983a4233bc66df168ba365eff | 10dc38749d82eec7d97a8cd57fa8b610bc55630c | refs/heads/master | 2022-12-10T14:34:37.128855 | 2018-09-16T09:25:49 | 2018-09-16T09:25:49 | 148,686,906 | 0 | 1 | null | 2022-01-21T19:39:52 | 2018-09-13T19:23:51 | Python | UTF-8 | Python | false | false | 472 | py | from enum import Enum
class RiskType(Enum):
""" The type of risk """
INVALID = 1
FIRE = 2
FLOODING = 3
EARTHQUAKE = 4
class Risk:
""" A risk """
# general
risk_type = RiskType.INVALID
# region of interest
def __init__(self, risk_type):
self.risk_type = risk_type
... | [
"ralph.aeschimann@gmail.com"
] | ralph.aeschimann@gmail.com |
63199d388849cff873fe4fb6dc36519835546c23 | 067b4545e638e0e1f36aa31bc9e6a127be8764ea | /bubble-sort.py | 6ec92d155512290645bdabc045c191638d24a05a | [
"MIT"
] | permissive | cygnusss/algos | 41d5d6c1b175196c6ffb95a8aea7c9fbb6949033 | 52d1f3431fbd13ae9571a29aa4393ee78c74b94f | refs/heads/master | 2021-05-10T07:52:22.650150 | 2018-03-10T03:02:55 | 2018-03-10T03:02:55 | 118,862,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | '''
Bubble Sort algorithm for each iteration finds the greatest value and bubbles it up to the last index of the array
Every next iteration will have one less item since the last item becomes sorted
'''
def bubbleSort(list):
for i in range (0, len(list) - 1):
for j in range (0, len(list) - 1 - i):
if list... | [
"cygnidavid@gmail.com"
] | cygnidavid@gmail.com |
12713ea9f2e7d2ba55338d517df888939db8212b | 5b9eacd5d3af2bde20085931b2ca91b357f8b2e1 | /.qt_for_python/uic/bookwindow.py | 3c39a3a3f70395d0ab7b870e90e07b16c51ba728 | [] | no_license | brtkev/QtMediaPlayer | dc10cca7b1e14cfddd42ead34f6b7ac7827d8125 | 2883d63272d87d890b05adfce8a7d13e6d15cee5 | refs/heads/main | 2023-08-13T00:24:29.297016 | 2021-09-28T04:37:17 | 2021-09-28T04:37:17 | 352,264,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,058 | py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'bookwindow.ui'
##
## Created by: Qt User Interface Compiler version 5.15.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
###############... | [
"kbreto2911@gmail.com"
] | kbreto2911@gmail.com |
70b3dd584be3b9acb9555e13597af100f1df7520 | 9bdf9bb38d6ea628c71a901e85527f34a2b08f67 | /markov_chain_monte_carlo.py | 063219c6a5a3ad9064403f51122f7eb1167a75d2 | [] | no_license | physics-machinelearning/Bayes | fa493276eae6178108241ad72fe142c5f5fcc935 | d4d2769d73f88b605426fd1383bf069f5ad0d215 | refs/heads/master | 2020-12-04T12:51:36.532387 | 2020-01-13T13:16:33 | 2020-01-13T13:16:33 | 231,771,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,827 | py | import numpy as np
import matplotlib.pyplot as plt
class MetropolisHastings:
def __init__(self, epsilon, theta, NMCS, f):
self.epsilon = epsilon
self.theta = theta
self.NMCS = NMCS
self.f = f
def judgeacceptornot(self, theta, new_theta):
judge = self.f(new_theta) > self... | [
"kuroki.ryo.physics@gmail.com"
] | kuroki.ryo.physics@gmail.com |
1f4ef7c4157af9f3e05e20a8406db26ac6a1f60d | b345823e0a9df7190c9ffe2522590daa0ab30b6c | /MineMap.py | fd5a26ec2c7bf9b95cecc5ca6af96983096c0716 | [] | no_license | nhurtado/group6 | bf0448909c04b64e9bf9520f75073638772e028d | a764d9ee075a4ad79e05375ed2c0179b6d2722ac | refs/heads/master | 2020-05-03T17:03:33.998488 | 2019-04-01T16:01:15 | 2019-04-01T16:01:15 | 178,737,703 | 0 | 0 | null | 2019-03-31T20:18:55 | 2019-03-31T20:18:55 | null | UTF-8 | Python | false | false | 5,897 | py | # -*- coding: utf-8 -*-
import sys
import pickle
import os
import glob
model_loaded = None
def marvin_model(filename):
blocks_model_data = {}
with open(filename) as f:
for line in f.readlines():
data = line.strip().split(' ')
blocks_model_data[data[0]] = {
'x'... | [
"nhurtado@miuandes.cl"
] | nhurtado@miuandes.cl |
8b3724a773360254ffb8e6b3351328324b33ea95 | 30cfdd215a3a9e0490e0603337e0de0efd898a29 | /pharmAutoML/autoML_util.py | 8112c67199fe08208614f9f7d944a1faa9567af0 | [] | no_license | gengbo-genentech/Pharm-AutoML | 7c3c2f280fb0cc9c2515dfb34ff982252a84ca0d | bae09d59ff049b5eadff7dcff9191443579e2d8c | refs/heads/main | 2023-05-05T10:19:35.659844 | 2021-05-22T01:51:24 | 2021-05-22T01:51:24 | 348,850,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,498 | py | import os
from sklearn.model_selection import ParameterGrid
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn.metrics import roc_curve
from sklearn.metrics import auc
from sklearn.metrics import precision_recall_curve
from sklearn.metrics import average_precision_score
from hyperopt im... | [
"60203611+YoungGoodman@users.noreply.github.com"
] | 60203611+YoungGoodman@users.noreply.github.com |
993621681e8265e350db1ce0a5bdf55253dcc21c | a29bbae651a831343dc998bbdca64f2e308a239c | /analysis_plot.py | 2bac881752295afb862a5dd922700ffa144de2c6 | [] | no_license | RuiZhang-ICT/int-cyclegan-brats-energy | 0ccd644912db6198087e8c2fc1d519b3629ae76b | 67e4a6345424f7e1e31ec980d0381b5b6ba16c14 | refs/heads/master | 2020-03-26T13:33:52.818718 | 2018-08-23T02:56:29 | 2018-08-23T02:56:29 | 144,945,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
img1 = Image.open('Flair/0001_090.png')
img1_mat = np.array(img1, dtype=np.float)
img2 = Image.open('T1/0001_090.png')
img2_mat = np.array(img2, dtype=np.float)
plt.imshow(img1_mat, cmap='gray')
plt.show()
img1_prob = img1_mat/ 127.0 -1
img2_pr... | [
"zhangrui@ict.ac.cn"
] | zhangrui@ict.ac.cn |
ce7b5b0db92a2702183e98f1c974cc8df7a292a3 | a677159f2b4efa9e99a96fcccfc3c3cd95747eaf | /ziguangzhanrui/8955-scripts/v1_runner.py | 0a593e3d843ba149532b56af0a3fd9a7c07e072f | [] | no_license | Taomengyuan/Demo | 0c1f5c06daf776c22541500b84f0f19b854da2ea | 8e705c9cb45b9e3dfd3c4756c398b0265079b7e2 | refs/heads/master | 2020-09-12T10:52:36.289617 | 2019-03-12T02:14:39 | 2019-03-12T02:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from comm.atconfig import atConfig
from comm.atlogger import atLogger
if __name__=="__main__":
print(atConfig.com_port)
atLogger.case_start("AT")
atLogger.command_send("AT")
atLogger.get_res("OK")
atLogger.case_end("AT")
| [
"limengmeng004@ke.com"
] | limengmeng004@ke.com |
361237e78a1186eba941c6d8345459a396a8133d | fd5f52c0c5a4844f3f9dc0f8cd12ebed845fea67 | /change.py | 5ae993d8ce0fb92cd29157d7e68e8137076d3eb1 | [] | no_license | TataSatyaPratheek/AlgoToolbox | 77fbf50cb9e8eac7c6dbbc41c9c9a3212bef045e | 64674d03197c2406673ab3031e8eb17b38379954 | refs/heads/master | 2022-11-30T10:42:11.255288 | 2020-08-11T17:03:52 | 2020-08-11T17:03:52 | 286,720,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # Uses python3
import sys
def get_change(m):
#write your code here
a = int(m/10) + int((m%10)/5) + int(((m%10)%5))
return a
if __name__ == '__main__':
m = int(sys.stdin.read())
print(get_change(m))
| [
"noreply@github.com"
] | TataSatyaPratheek.noreply@github.com |
e9dbdafacf420c57b3aa907a62b3ff10c0b637f8 | 2fea90baaf526322ea87d42a64808e9596a0f4c2 | /1021.py | fc1cec4b79ba96c647add46a096c01a3a8935520 | [] | no_license | claudianoufrpe/URI | 2e69d6ade5a78333f2e79fa278cdc48513503fab | 969d23115a812bf4aa73d604fded6c19fbd9f584 | refs/heads/master | 2020-05-18T18:02:52.456005 | 2018-04-27T14:18:13 | 2018-04-27T14:18:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # @author Matheus Alves dos Santos
# TITLE: Notas e Moedas
# ID: 1021
dinheiro = int(float(raw_input()) * 100)
valores = [10000, 5000, 2000, 1000, 500, 200, 100, 50, 25, 10, 5, 1]
resultado = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
for i in range(len(valores)):
if dinheiro >= valores[i]:
resultado[i] = dinh... | [
"m.hollygard@gmail.com"
] | m.hollygard@gmail.com |
a1c753f9253ae42052bd4f7eee49c088120df1f4 | 0ba6e9398ae8592d84d7925d4947f44fa7550f5c | /Snake Game Redevelopment/Source/MainMenu.py | 511fd6294b1dbe155b3491e284c33cfd1ee0caf1 | [
"MIT"
] | permissive | MdNaushad12/python-animations | 20f73139b9461806a9d6fa1f7b980160091c7ec3 | ee0b4e7fe113f593d5cd9bef78500eb7d2c0707b | refs/heads/master | 2021-05-18T18:50:07.264845 | 2020-03-30T16:22:22 | 2020-03-30T16:22:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,658 | py | from PlayMap import *
import pygame
from GameOver import *
from GamePause import *
from GameInstructions import *
"""
Main Menu Class encapsulates the 'window' of the game
as the logic(backend) and decides what to send to Controller.py to display
"""
class MainMenu :
"""
MainMenu has state variables:
game... | [
"rabbass@mcmaster.ca"
] | rabbass@mcmaster.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.