blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23ffd822cb9394060d8ed04bdd0e6a6f5ea26806 | 0df7f40b27cffe0b4e009041c35fc1e78e33f82d | /django_api/users/admin.py | c6a9e761a57586af5b9cd2a6a296661ba21db9e3 | [
"MIT"
] | permissive | ridwanray/tay-twitter-microservices | 5be11f166bd0e2dba298da1577549264315d0120 | d5bdb6b6d4fd8333efbb4c79752f8c5efaccb1f0 | refs/heads/master | 2023-01-09T13:22:46.917407 | 2020-11-20T01:16:06 | 2020-11-20T01:16:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | """Admin App Customization is done here"""
from django.contrib import admin
from .models import User
from django.contrib.auth.admin import UserAdmin
class CustomUserAdmin(UserAdmin):
"""Custom Admin Manager for Custom USer Model"""
fieldsets = UserAdmin.fieldsets + (
(None, {'fields': ("follower", "following")}),... | [
"tay2druh@gmail.com"
] | tay2druh@gmail.com |
e0cb3482e220a7aa286e901e4f7dd01c2b1d1501 | 75362fd30a8277d59ce0a36e66eee5eb07ae57a8 | /Inventory/models.py | 68695100d33f9a478b9c4e3f79824466fac88268 | [] | no_license | george-s/inventory | 724ae728200d923b6aa2c88f6669474b625c831f | 8fc5c58e50b2db8860ee3e0e844d7a2112fe1474 | refs/heads/master | 2020-12-02T01:05:06.238831 | 2016-09-16T00:27:24 | 2016-09-16T00:27:24 | 67,333,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.db import models
# Create your models here.
class Item(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
amount = models.IntegerField()
| [
"george-s@wrangler-mbp.home"
] | george-s@wrangler-mbp.home |
caf6a70abcffa08c53e861d8f071b63483a0f79e | 93e6c6bd2e8e6a3317bde5d562e169a70713def4 | /API.py | 7cb60b6e9eb7ebb8bf7f2cc5835739a561242759 | [] | no_license | Ostrowin/Engineer | 7e8d46883fffceb39fefaffdf8be4f825c72806a | c2a750b548c990955258afb8925ca676877a7e58 | refs/heads/master | 2020-09-04T11:11:25.624627 | 2019-11-05T10:25:30 | 2019-11-05T10:25:30 | 219,712,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | import requests
def checkPlate(plate, source):
payload = { 'license_plate': plate }
r = requests.get('http://localhost:3000/api/hasUser', params=payload).json()
if r.get('hasUser'):
print("[Detection type: " + source + "] User exists in database.")
else:
print("[Detection type: " + s... | [
"robertnowak747@wp.pl"
] | robertnowak747@wp.pl |
52ce30ae4dcbbe82166e02820e635f19950315a6 | c4334b380b628114e1bfc226a08ae475532a69c6 | /tomtom_scripts/pwms_tensor_to_txt.py | a31c8f8d958460412a5cfd3f7facd1d247c5fd9a | [] | no_license | tiffanymtang/deepsea-interpretability | ae7a1e0238e67ec938c8433c5bb522c3cbb70b7f | e838a977f1cbf2afa96614de43486e87f8041a11 | refs/heads/main | 2023-02-02T16:37:33.896601 | 2020-12-15T05:15:01 | 2020-12-15T05:15:01 | 302,767,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | import numpy as np
import torch
import sys
import re
# load PWMs or PFMs in tensor format
pwms = torch.load("../out/" + sys.argv[1] + ".pt")
# check if these are the PWMs direct and convert to between
# 0 and 1
if re.search("direct", sys.argv[1]) or re.search("filter3", sys.argv[1]):
pwms_tmp = np.zeros((pwms.... | [
"shuni_li@berkeley.edu"
] | shuni_li@berkeley.edu |
597b103795b30c96da1afeed5208edcf7cc4aafb | 408769d9e1f246c774b09f03ab95369d68335922 | /runSolve.py | c6c651d99c88dcec70a237fafafa87f54532dfa7 | [] | no_license | dverb20/DroneTruckSimulation | 242974b0412f162376558ab6330bc2b3b4d2b2b6 | 9554955323850667a99948aaf93bdae1769d6a54 | refs/heads/master | 2021-01-13T04:27:11.588298 | 2017-04-11T04:23:20 | 2017-04-11T04:23:20 | 79,865,115 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | import math
import time
import random
import argparse
import json
from NetworkGraph import NetworkGraph
from helpers import minToHour, directDistance
from RouteMatrix import RouteMatrix, solve
from DroneRoute import DroneRoute
from xlutils.copy import copy
import xlwt
import xlrd
import networkx as nx
def start():
... | [
"dverb20@users.noreply.github.com"
] | dverb20@users.noreply.github.com |
2e610648cd9fb047a28f7e2d76bec256eec5c645 | 55647258df0565f19179ffb97ac217708d84ba4a | /social/serializers/comments.py | 4ac4833bd46f2e9cefdd1058d793c2201b05038b | [] | no_license | beatonma/snommoc | 25de0e81af0d9940bdc3aa6420cb5764d50c6d11 | 0a9d37dcad112c5dd98609c1566e74176ae3d89d | refs/heads/main | 2022-03-11T07:53:33.038649 | 2022-03-05T17:03:56 | 2022-03-05T17:03:56 | 188,595,195 | 0 | 0 | null | 2022-02-18T17:54:30 | 2019-05-25T17:35:58 | Python | UTF-8 | Python | false | false | 1,696 | py | import bleach
from rest_framework import serializers
from social.models.comments import Comment
from social.models.mixins import get_target_kwargs
from social.models.token import UserToken
from social.views import contract
class CommentSerializer(serializers.ModelSerializer):
username = serializers.CharField(sou... | [
"beatonma@gmail.com"
] | beatonma@gmail.com |
5a507371a09afc9ccf3f5687c58647d33afbf277 | 806cea741521256ff625184d9359c2e0ef56a7d0 | /pyfermod/stats/stats_expon_cdf.py | 308c06cd9f9bf4e45094d6e4c23dc916b3d1fcd1 | [
"Unlicense"
] | permissive | NOAA-PMEL/PyFerret | 9f7b3336c0f7ceabc439a927a27d291bf2592053 | f21d878c776286ee333a44b99e0b31ad53d8917a | refs/heads/master | 2023-07-21T19:34:10.452113 | 2023-07-14T19:09:39 | 2023-07-14T19:09:39 | 48,462,280 | 61 | 26 | Unlicense | 2023-06-14T18:37:24 | 2015-12-23T01:29:24 | Fortran | UTF-8 | Python | false | false | 733 | py | """
Returns the array of cumulative density function values
for the Exponential probability distribution
using the given arrays for the abscissa or template
values and each of the parameters values.
"""
import numpy
import pyferret
import pyferret.stats
DISTRIB_NAME = "Exponential"
FUNC_NAME = "cdf"
def ferret_init(... | [
"ksmith@fdbf22ae-c210-0410-be80-ca943da6b8f8"
] | ksmith@fdbf22ae-c210-0410-be80-ca943da6b8f8 |
9f101795bd6af41bd18cf3edb07d4d432583a39c | b6d0c5b336a785ad26ae9d78cdc3745a4402d2c0 | /cp/dialogs.py | f20ac93efcabc9da51eb0043086a506cffd66902 | [] | no_license | jbittencourt/cooperativa_client | 5b70946474ee7da48f554e5eb15ab1550c0bf5dc | a297359b58708642ac5bc86e0c1ee24dc9fecaa8 | refs/heads/master | 2020-07-20T15:30:51.803082 | 2012-07-11T02:52:47 | 2012-07-11T02:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import pygame
import ui
class Dialog(ui.CPgui):
def __init__(self, evManager):
ui.CPgui.__init__(self, evManager)
self.__background = None
self.rect = pygame.Rect( (0,0,1,1) )
def setBackground(self, background):
if not self.__background==None:
... | [
"juliano.bittencourt@gmail.com"
] | juliano.bittencourt@gmail.com |
c5fa64d082c79e76c983683b96b872b39b9f7cbd | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch036/wiColorJ/Add2Loss/Sob_k05_s001_EroM_Mae_s001/pyr_Tcrop255_p20_j15/pyr_5s/L3/step09_5side_L3.py | 5fb954a0762d3b33eee11d933ad13a32e79db8b1 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,445 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
99986534cc72375d55b0eee79387e4f573b47991 | 2d576e550be897f2d8e67c86bf920a49720ec2f5 | /mlcomp/parallelm/pipeline/component_info.py | f82f72e08748f28b44cb15dc80989c5d645ed634 | [
"Apache-2.0"
] | permissive | jialeiwang/mlpiper | 24a7b5a52ce402b2812d6ec2733c7c489ecaf6aa | 0fd2b6773f970c831038db47bf4920ada21a5f51 | refs/heads/master | 2020-12-29T15:12:26.731707 | 2019-11-26T07:00:33 | 2019-11-26T11:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,135 | py | from parallelm.pipeline import json_fields
from parallelm.pipeline.component_connection_info import ComponentConnectionInfo
from parallelm.pipeline.component_argument_info import ComponentArgumentInfo
from collections import OrderedDict
import json
import six
class ComponentInfoEncoder(json.JSONEncoder):
def de... | [
"yakov.goldberg@gmail.com"
] | yakov.goldberg@gmail.com |
ee9351edc9798cbf2be112b528e98679d3da9e9c | 06b76dbde9e6b5699721bc3720fee83a21800aff | /dogdish/dispatcher.py | 14c2fbe95aca3ce272f844b3f898032660fb5911 | [] | no_license | mozilla-b2g/dogdish | 4c7c5d31e7952055256ae6c9c6bb3a26c0e01201 | 7eae711f2a246a60192fcd4043d64540263d170d | refs/heads/master | 2023-08-23T22:16:55.843834 | 2013-05-10T00:26:51 | 2013-05-10T00:26:51 | 9,971,091 | 1 | 2 | null | 2021-11-03T13:37:23 | 2013-05-10T00:05:30 | Python | UTF-8 | Python | false | false | 7,381 | py | #!/usr/bin/env python
"""
dogdish
https://bugzilla.mozilla.org/show_bug.cgi?id=800118
"""
import fnmatch
import hashlib
import os
import sys
from urlparse import urlparse
from webob import Request
from webob import Response, exc
from ConfigParser import RawConfigParser as ConfigParser
here = os.path.dirname(os.path.... | [
"jhammel@mozilla.com"
] | jhammel@mozilla.com |
78bea3cc0456f3438f360ddd24b147645ada65c9 | 9fdba15a3b58c286b9980552e3e9018f868eb1fa | /scons-builders/make.py | 98538bde473e2142ae382dbf665631ec2d8f983a | [] | no_license | nordlow/justcxx | 370a1a400796f0febb99788eeea4c4feea2b33ab | 1876bb4ffa108f03bddda9d65948226f12a59388 | refs/heads/master | 2021-06-09T04:33:42.152922 | 2020-10-22T19:37:23 | 2020-10-22T19:37:23 | 20,072,735 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | # -*- coding: UTF8 -*-
import os
import SCons
from subprocessbuilder import SubProcessBuilder, SubProcessString
def find_make_path(_dir):
path = None
for root, dirs, files in os.walk(_dir):
if "Makefile" in files:
path = root
break
return path
def guess_make_cmd():
i... | [
"per.nordlow@gmail.com"
] | per.nordlow@gmail.com |
08671289922426982fb8b0a87a5078fe68356c1d | 80d591e6ea1e97c74ad6935002a8815423124398 | /src/plotting.py | 5fc11bdf423141c11e9c9ce0eff98de0cd0b889f | [] | no_license | PaoloAE/paper_rl_thermal_machines | 5045afac280f66992459887760c018de17f72232 | 8c7123377261d786a4e96538c7e4501f821fced4 | refs/heads/main | 2023-08-26T16:20:46.916663 | 2021-11-09T17:54:55 | 2021-11-09T17:54:55 | 401,293,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,835 | py | from __future__ import print_function
import numpy as np
import itertools
import os
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.animation as ani
import matplotlib.gridspec as gridspec
from pathlib import Path
from IPython import display
from IPython.display import Video
import sys
sys.path.appe... | [
"paoloerdmn@gmail.com"
] | paoloerdmn@gmail.com |
d3cd8b8b3588f1ca0ce4d3fb776cf01f1247d89e | 433024b65db2e046eea29ef05c9d193e32d29307 | /aalmir_custom/wizard/__init__.py | 239b6f881a874d2202c5cd41e60cbc8a1b7ce0ae | [] | no_license | r-bhargavi/aalmir | 30cd0826a61a0347d265f19c0094b5c400b8bfdd | 75cf79113fa17c8459331cd125781ecd829c3b77 | refs/heads/master | 2020-03-30T01:36:32.513295 | 2019-04-30T06:39:33 | 2019-04-30T06:39:33 | 150,584,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | #import output
#import report_payment | [
"sagar.thakur39@gmail.com"
] | sagar.thakur39@gmail.com |
799a2ad2a3aed25738677f3c563458a4cd38017d | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /content/DEPS | e891ebc72b9fd7dbdb01980defa7890b1268ebd9 | [
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 3,816 | # Do NOT add chrome to the list below. We shouldn't be including files
# from src/chrome in src/content.
include_rules = [
# The subdirectories in content/ will manually allow their own include
# directories in content/ so we disallow all of them.
"-content",
"+content/app/resources/grit/content_resources.h",
... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
5789ad6516b93f9635e20b9f52b3a63c3d077fdf | b0221d5170cad653edda67f25892de62edcbba5e | /src/VXMain/controllers/__init__.py | 4c1b13bb591c081d8675be47b8677c52764d9ae4 | [] | no_license | ravenoak/VXWeb | 80dd875a0f7e2acfc374b683a35ff9365b0538fe | 891857ffd1d02b8ea45d37d9b513bacdbf53c725 | refs/heads/master | 2021-01-02T08:46:35.066725 | 2012-09-03T04:03:29 | 2012-09-03T04:03:29 | 3,755,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
"""Controllers for the VXMain application."""
| [
"ravenoak@gmail.com"
] | ravenoak@gmail.com |
0e88ff4988ed31374be2b2cda998ebadaf86e242 | f912cac8f57f7983de6b44b8684a4488fb93b49d | /main.py | f64097b93b976704a2eacf5d318a08f74c8b27b1 | [] | no_license | hydxqing/SegCaps-keras-chapter4 | 3da5e9ac4aefbb034aad241f3cb635f75ccd818c | 59ec4d359af5d1c7dacee35083f6193e95b57357 | refs/heads/master | 2020-05-04T22:15:04.605547 | 2019-04-09T03:15:19 | 2019-04-09T03:15:19 | 179,504,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,306 | py | '''
Capsules for Object Segmentation (SegCaps)
Original Paper by Rodney LaLonde and Ulas Bagci (https://arxiv.org/abs/1804.04241)
Code written by: Rodney LaLonde
If you use significant portions of this code or the ideas from our paper, please cite it :)
If you have any questions, please email me at lalonde@knights.ucf.... | [
"noreply@github.com"
] | noreply@github.com |
2e5c635c6287556be7c7a3d27148113be8a7791c | 3914c6b0a7913181cda205a60354e4f0cf2ec63e | /src/users/migrations/0001_initial.py | 3295499657fb88bc18b6e604432929ebce10de9c | [] | no_license | amado-developer/Voluntariado-API | 74c8cf8452b2616a9ce5131fae473440d6745d08 | ff7453ac53b0e1ae2988dc7a499731303e93755d | refs/heads/master | 2023-01-13T16:08:03.895866 | 2020-11-12T18:13:05 | 2020-11-12T18:13:05 | 287,809,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | # Generated by Django 3.1 on 2020-08-24 04:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('majors', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='User... | [
"amado_developer@hotmail.com"
] | amado_developer@hotmail.com |
c537d0bb4b9bee1c9cb01017777fb7f4bd6fafd8 | 3d9725eb0df0b04db89e1a8e81d4bde58dbbd876 | /python/settings.py | 0ad5a96d0fe3f1d4964832067b36726d920b29ea | [] | no_license | edwin-zhou/isthistwice | 018b49eacc7194d82ae83edd4af505b7851789e7 | b94e12ded6360c5f48f5a8b7dd67ef058d650a7d | refs/heads/main | 2023-07-27T19:51:07.989110 | 2021-09-04T02:04:12 | 2021-09-04T02:04:12 | 376,978,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | dir = "test1"
# class_names = ['Tzuyu', 'Chaeyoung', 'Dahyun', 'Mina', 'Jihyo', 'Sana', 'Momo', 'Jeongyeon', 'Nayeon']
class_names = ['Chaeyoung', 'Dahyun', 'Jeongyeon', 'Jihyo', 'Mina', 'Momo', 'Nayeon', 'Sana', 'Tzuyu']
class_names.sort()
| [
"edwin99@live.ca"
] | edwin99@live.ca |
18a36f5b3ea904fe1525f1277539e63c03c96851 | 25a0fc2aac2ed1b2643d24f2a9c948f507172514 | /Primes/main_prime_or_not.py | f189916330e1b93ea43feb95cb7dc9215734fbb3 | [] | no_license | smashingboxes/ML_Experiments | c5ab77c1a97e170d110eb32acc402d36032f082d | 5a97cc2089bafcd7aa90b180a6b61e0dee7657df | refs/heads/master | 2021-01-20T12:55:16.862713 | 2017-08-25T16:36:49 | 2017-08-25T16:36:49 | 90,424,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,616 | py | from keras.models import Sequential, load_model
from keras.layers import LSTM, Dense, Embedding, SimpleRNN
import numpy as np
import random
import time
import primes
import os.path
import primefactors
MAX_DIGITS = 400
DATA_LIMIT = 20000
STEPS = 3000
inData = list()
outData = list()
data_main = primefactors.factors(D... | [
"brown.keegan@gmail.com"
] | brown.keegan@gmail.com |
0a6fd8dfb39242cffd381fdfcc71e0250eb9ff86 | 36895a14cb9a15637be846fbaa64a5ff232f0cc7 | /5.9.py | 6acb4aeb1957bc35970b3a6c3545e5e1a807b0bd | [] | no_license | nitthitac/suwatchai4-5 | 1f1e542120f6df065b4a3db6a21a323911751866 | 85b04c9540b4a670c0d83182e1b90d660815770d | refs/heads/main | 2023-01-12T16:23:45.861237 | 2020-11-18T07:38:53 | 2020-11-18T07:38:53 | 313,856,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | import cv2
import matplotlib.pyplot as plt
def show_image(BGRimage, windowName=None):
plt.figure(windowName)
RGBimage = cv2.cvtColor(BGRimage, cv2.COLOR_BGR2RGB)
plt.imshow(RGBimage)
def show_gray(img, windowName=None):
plt.figure(windowName)
plt.imshow(img, cmap='gray')
img = cv2.imr... | [
"noreply@github.com"
] | noreply@github.com |
c10b500d2a4807224b8454aa0a268dbd212dec6e | 9d7f1cc90939810c5df41f7097b4f99d8719d836 | /venv/bussiness_on_pc/add_teacher.py | a4d34825a1a8dea7a93a3ca1cc1a1d625169230f | [] | no_license | Shaohui-Li/QRZ_API | 06e46d04ee0e4329f9b621f2b47b95e6f1d43b9b | 282604cc933241c1dc78c2a192d09d686684b01a | refs/heads/master | 2023-03-09T10:26:16.704110 | 2021-03-02T07:07:35 | 2021-03-02T07:07:35 | 271,685,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | #coding=utf-8
from handle import excel_handle
from handle import Way_of_request
from cookie_handle import cookie_action
from handle import action
import json
import os
import time
import unittest
import random
from selenium import webdriver,common
from selenium.webdriver.support.wait import WebDriverWait
from selenium... | [
"756142128@qq.com"
] | 756142128@qq.com |
76b64a69a7507cb0a52e563202381569e2c75ae3 | 734dc9ff039b60cd8a73956ac48e6cf34688f7c5 | /lib/ccf/structural_preprocessing/SubmitStructuralPreprocessingBatch.py | 120c294b4caa8808cb8ea73fdfc9d8df15838006 | [] | no_license | junilc/HCPpipelinesXnatPbsUtils | 5c2192bf441325fc6a4f76f5da37dd0bdeacead6 | 19d6278d9baa52f99a45535b98039e4f0788e47f | refs/heads/master | 2020-04-02T18:01:27.322991 | 2018-10-25T13:36:57 | 2018-10-25T13:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | #!/usr/bin/env python3
# import of built-in modules
import logging
import logging.config
import os
import random
# import of third-party modules
# import of local modules
import ccf.archive as ccf_archive
import ccf.batch_submitter as batch_submitter
import ccf.structural_preprocessing.one_subject_job_submitter as o... | [
"junilc@wustl.edu"
] | junilc@wustl.edu |
a3f8bde72496e9b464ce228a2d862429620305ee | e9a737a6a9101d201e1ddf4292b31da9c6ed5919 | /ytree/frontends/rockstar/io.py | d16beae61c4767f34351067299f63bb27c35f7ae | [
"BSD-3-Clause"
] | permissive | brittonsmith/ytree | fd1305fc3f35c33741d5441e2c8b6a09cce2bb54 | 0c6a331f38c9758cca663ffd6e740183d359f7aa | refs/heads/main | 2023-05-25T06:02:19.020508 | 2021-04-19T14:35:18 | 2021-04-19T14:35:18 | 203,828,654 | 0 | 0 | NOASSERTION | 2019-08-22T16:01:34 | 2019-08-22T16:01:34 | null | UTF-8 | Python | false | false | 2,804 | py | """
RockstarArbor io classes and member functions
"""
#-----------------------------------------------------------------------------
# Copyright (c) ytree development team. All rights reserved.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | [
"brittonsmith@gmail.com"
] | brittonsmith@gmail.com |
2ff06a22caf04d6abf9ee0dadb6a814e357ba72f | 48832d27da16256ee62c364add45f21b968ee669 | /res/scripts/client/gui/scaleform/daapi/view/lobby/clans/search/clansearchinfo.py | effd5375670fa8314a02b23ce4895ec79def0848 | [] | no_license | webiumsk/WOT-0.9.15.1 | 0752d5bbd7c6fafdd7f714af939ae7bcf654faf7 | 17ca3550fef25e430534d079876a14fbbcccb9b4 | refs/heads/master | 2021-01-20T18:24:10.349144 | 2016-08-04T18:08:34 | 2016-08-04T18:08:34 | 64,955,694 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,782 | py | # 2016.08.04 19:50:21 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/clans/search/ClanSearchInfo.py
import weakref
import BigWorld
from adisp import process
from gui import SystemMessages
from gui.clans import formatters as clans_fmts
from gui.clans.clan_controller import... | [
"info@webium.sk"
] | info@webium.sk |
2b94fd3458409fccf77f859829d0ddd697b0dc01 | fd185c08621399601c5850bb10691f9de5fc248c | /jagoda.py | 5425964526ff3c8fd26f278ce67a99b2e6937079 | [
"Unlicense"
] | permissive | Daniel-Jedrysik/strip_exponentiation | 28a0320021f5b46e82856bd2559b8b8a5bd2693f | 950a5f630dba48779bbf338899f4561f758f3e71 | refs/heads/master | 2020-05-18T14:18:54.383798 | 2019-04-30T16:17:24 | 2019-04-30T16:17:24 | 184,466,542 | 0 | 0 | null | 2019-05-01T19:02:02 | 2019-05-01T19:02:01 | null | UTF-8 | Python | false | false | 878 | py | # coding: UTF-8
from flask import Flask, render_template, request
from rozbierz_potegowanie import rozb_pot
app = Flask(__name__)
#calculation and result generation
@app.route('/potegowanie', methods=['POST'])
def do_potegowanie():
liczba = "'" + (request.form['liczba']) + "'"
potega = request.form['potega']
... | [
"noreply@github.com"
] | noreply@github.com |
bd123698aba61de4b62ed5308f12197a35982b28 | aff006ea5c9f72ac20f23b8745eb3c2eae846cc3 | /RLAssignments/assignment3trial.py | 5c04a04be4ec8329610ff82f8534cd36487e7fe1 | [] | no_license | ymittal23/IISC_RL | 2376bcae32c17acbdea1eb13944c97ada691b9db | 36b861411f6ef7efee44a78047c63c4933df654f | refs/heads/master | 2020-08-02T19:38:57.286253 | 2019-09-28T15:56:17 | 2019-09-28T15:56:17 | 211,482,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
# world height
WORLD_HEIGHT = 7
# world width
WORLD_WIDTH = 10
# wind strength for each column
WIND = [0, 0, 0, 1, 1, 1, 2, 2, 1, 0]
# possible actions
ACTION_UP = 0
ACTION_DOWN = 1
ACTION_LEFT = 2
ACTION_RIGHT = 3
# probabi... | [
"noreply@github.com"
] | noreply@github.com |
60d687809ff38290243b5409c2605e9def6dacb6 | 18c06e6caa02f1bed60dab374d85f83db3e269f9 | /FirstClassifier/KNNClassifier.py | 61bd94c6443f33de6ce6339203feb0d6e4a4278f | [] | no_license | sethips/MachineLearningRecipes | f578ff3b36ff9719015b92c3593fde0f4e6730fb | c859ffd6f44407c1e88352d0f78895c05a3798e9 | refs/heads/master | 2020-06-04T04:33:28.423186 | 2017-05-24T08:08:50 | 2017-05-24T08:08:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | """
Randomly predict the point of differentiation
find the nearest neighbor to the point.
consider the point of differentiation have same feature as its nearest neighbor.
if 2 neighbors are equidistant, use more neighbors.
which is K - number of neighbors to consider.
vote the no. of nearest neighbors.
to find the str... | [
"shreyasdaniel2001@yahoo.co.in"
] | shreyasdaniel2001@yahoo.co.in |
aae6b3d17de02303fa69d1f4b14b00d9569e5af2 | 9bd9a4de73338bf3f9bc338622b92d56c52329ac | /reducer_thread.py | e709a2e59dc202d9b03574c7345da99a4f890c4f | [] | no_license | zhilongzheng/flow-reader | 049c8b9340b0c0faa7b0f5ceb9a3728b61185d68 | 53e38d599c0f5f7b1313d944a5054d532d6cb818 | refs/heads/master | 2021-09-01T21:11:15.121431 | 2017-12-28T16:24:06 | 2017-12-28T16:24:06 | 115,640,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author : Zhilong Zheng
# @Email : zhengzl0715@163.com
# @Date : 2017-12-28 22:03
# @Description :
import queue
import threading
import datetime
import json
import os
class ReducerThread(threading.Thread):
def __init__(self, file_path, with_decompress, thread_id, ... | [
"zhengzl0715@163.com"
] | zhengzl0715@163.com |
68b6c2d90c206abf5733573344a57fa3692b2dd8 | e6ff2f843e9b981bdc216b05e517695dd0e538f3 | /Spark_EMR/advanced/popular-movies-nice-dataframe.py | 6982f0865a6f9f56e8e70bda8fe5df242c6e8c55 | [] | no_license | liangxiaoxuan/Algorithm-training | cabf138138244b68d84476cf78f85c28605510c3 | 6d3bdf12322b2e3978b050692227d2d3b6665f61 | refs/heads/main | 2023-02-16T21:30:57.155475 | 2021-01-19T13:40:10 | 2021-01-19T13:40:10 | 310,027,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 7 15:28:00 2020
@author: Frank
"""
from pyspark.sql import SparkSession
from pyspark.sql import functions as func
from pyspark.sql.types import StructType, StructField, IntegerType, LongType
import codecs
def loadMovieNames():
movieNames = {}
# CHANGE THIS TO ... | [
"410983834@qq.com"
] | 410983834@qq.com |
b1ad2582245f045c6dcbc4be07e3e4d8e9749c61 | aac5982c8dcf26221419086fb90c399b9f4324ef | /DFTB/SlaterKoster/slako_tables/n_cl.py | dd88b37045a4b15c7246ef3a8903f2924b9fa709 | [] | no_license | by-student-2017/DFTBaby-0.1.0-31Jul2019 | 99184d3fa2976d4e02f7f1bddee97e56526d9365 | 92cb73f1a6472f88588986561349d7f2ad1b1c15 | refs/heads/master | 2022-12-12T00:12:50.449505 | 2020-09-01T21:05:59 | 2020-09-01T21:05:59 | 290,116,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,481 | py | # This file has been generated automatically by ./generate_slakotables.py
# from /home/humeniuka/DFTB-0.1.0/DFTB/SlaterKoster/confined_pseudo_atoms/n.pyc and /home/humeniuka/DFTB-0.1.0/DFTB/SlaterKoster/confined_pseudo_atoms/cl.pyc.
from numpy import array
Z1 = 7
Z2 = 17
# overlaps S[(l1,l2,i)] and hamilton matrix elem... | [
"studentsctest@gmail.com"
] | studentsctest@gmail.com |
251b8dd115bfc42d8d17a793737a758586ad7229 | 1938e9d9ff1b2e8a90d75642893de82731fa0dbf | /test/flow/flow_0009/s_1.py | 6eb334ea025bba391adbd5f8249c1e7e141bed05 | [
"MIT"
] | permissive | unix-beard/swen | 7bcc5e55728d77408f2d67668d6914abf589d203 | 33d76ea1977c791a657c6f64fcbcd5beeb17ca1f | refs/heads/master | 2021-07-11T18:19:32.811664 | 2017-10-16T19:23:58 | 2017-10-16T19:23:58 | 103,662,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!/usr/bin/env python3
import sys
MODULE = "STEP 1"
def main():
for l in sys.stdin:
assert "test with args" in l
if __name__ == '__main__':
main()
| [
"nekto.shvonder@gmail.com"
] | nekto.shvonder@gmail.com |
359f4e23b3ef1e9e4e2aec0b35aeccbd462a008b | 99c6e64c0bf533e702576c516c3092bf5e641637 | /server.py | c4ec64b92fe2f6b3466ab170489f3924ceec64fd | [
"MIT"
] | permissive | rjc-development/remote-desktop-control | 67ff0f1ae3d7c507f269d982540bacfa666dd322 | c138d6665a25053b4001c4e0c12ff851e401dc3f | refs/heads/master | 2022-12-22T02:26:46.556215 | 2020-09-25T20:01:02 | 2020-09-25T20:01:02 | 298,668,093 | 3 | 1 | null | 2020-09-25T19:59:46 | 2020-09-25T19:59:45 | null | UTF-8 | Python | false | false | 1,761 | py | from starlette.applications import Starlette
from starlette.websockets import WebSocketDisconnect
import json
import logging
import uvicorn
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
app = Starlette()
websockets = {
'web': {},
'desktop': {},
}
async def receive_json(websocket):
... | [
"fvoron@gmail.com"
] | fvoron@gmail.com |
dabe9f0eb1396e60343673240eb8f15805d31ce9 | eb810160de1745715ad748778d9eca2faab8a815 | /src/scripts/dev_tools/xmss_test_vector_from_reference.py | 753f93e6c2e93d970fa871565585af4b2ddfe917 | [
"BSD-2-Clause"
] | permissive | Roboauto/botan | 389314952fa7daab4342e3a8d24bb904aa3f3412 | 8460ca2b769f0e8a06b0bf2cc5169244011c9815 | refs/heads/master | 2023-04-03T16:02:51.375919 | 2023-03-17T07:17:53 | 2023-03-17T07:17:53 | 195,002,235 | 0 | 0 | BSD-2-Clause | 2020-10-08T11:20:07 | 2019-07-03T07:28:54 | C++ | UTF-8 | Python | false | false | 6,801 | py | #!/usr/bin/env python3
"""
This is a wrapper around the XMSS reference implementation CLI tools
to generate test data readable py test_xmss.cpp
Uses the XMSS reference implementation from here:
https://github.com/XMSS/xmss-reference
(C) 2023 René Meusel (Rohde & Schwarz Cybersecurity)
Botan is released under the... | [
"rene.meusel@rohde-schwarz.com"
] | rene.meusel@rohde-schwarz.com |
ebae87e4ebe049feeab55b921197bbfd0ad6f1a5 | bdeb62827a70d3ffbbdf24ff216d09577577e251 | /plonetheme/colldiaz/upgrades.py | 9dd49d38035e8bbcf2514c3c1bb16fd89fde5df3 | [] | no_license | smoussiaux/plonetheme.colldiaz | 8bcaa00a31e51892ab980c25dca9433f32f2cb45 | 94b23d6703006a1596b46b01176d0bb4916b623c | refs/heads/master | 2016-09-05T23:28:54.446792 | 2012-09-26T09:24:03 | 2012-09-26T09:24:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from Products.CMFCore.utils import getToolByName
PROFILEID = 'profile-plonetheme.colldiaz:default'
def common(context):
setup = getToolByName(context, 'portal_setup')
setup.runAllImportStepsFromProfile(PROFILEID)
| [
"smoussiaux@cirb.irisnet.be"
] | smoussiaux@cirb.irisnet.be |
294636258c2d0c16eda8eebc1460b1c2b8febfb3 | 8cf3a19eb3d0f69e5c0237fc504977330e95aac2 | /workflow/scripts/manticore-plotvcf.py | 6fc8c870e989714519620809b58213b502db8b43 | [
"MIT"
] | permissive | NBISweden/manticore-smk | 0c46ab5da5cdf7a40806bfef5ea05558efea8c5e | fd0b4ccd4239dc91dac423d0ea13478d36702561 | refs/heads/main | 2023-08-13T05:44:36.125066 | 2021-10-19T19:12:55 | 2021-10-19T19:12:55 | 308,556,800 | 1 | 2 | MIT | 2021-05-13T07:15:20 | 2020-10-30T07:33:11 | Python | UTF-8 | Python | false | false | 3,059 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import shutil
import argparse
import random
import numpy as np
import allel
import zarr
import numcodecs
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style("white")
sns.set_style("ticks")
populations = ["CHS", "YRI"]
pop_colours = ... | [
"per.unneberg@scilifelab.se"
] | per.unneberg@scilifelab.se |
bcfbb1cb35ffe06285c93dfcd1696415aa992814 | 522a8f318944481e30ae9dc16b518cab7e85f702 | /test_events_examples.py | f57809cc3820c3e0cc58970b2be06381ef7724f7 | [] | no_license | lzenczuk/serverlessexp | 9401c14471ea66c5ea75b168a687b80d67906cfe | 21cff5b098f4db64aa3cd00f501153a3226d83f0 | refs/heads/master | 2021-01-23T00:21:31.324057 | 2017-03-21T15:04:48 | 2017-03-21T15:04:48 | 85,724,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,907 | py | import json
def get_unknown_event():
return {}
"""
Encoded data: u'{"jsession":"qwerty123","id":245}'
"""
sns_event_string = """{
"Records": [
{
"EventVersion": "1.0",
"EventSubscriptionArn": "arn:aws:sns:eu-west1:123456:sns_sth",
"EventSource": "aws:sns",
"Sns": {
"Signatu... | [
"lucjan.zenczuk@gmail.com"
] | lucjan.zenczuk@gmail.com |
53a75d7fee04ccc6d004106ce8bf0b0fa10b30be | c6fce1721a80545855bcfa572f37e99c09060350 | /main.py | e9a0982110eb658642d6f00e60b89420b4293caf | [] | no_license | MrCipher29899/Bulk-Image-Downloader | ce97b013930f17ba405f9c4633564c88199d12e8 | bfeee14d46379fa4f95466c7f639c15402171aac | refs/heads/main | 2022-12-28T12:35:11.367432 | 2020-10-16T15:42:12 | 2020-10-16T15:42:12 | 304,669,505 | 0 | 0 | null | 2020-10-16T15:38:56 | 2020-10-16T15:38:55 | null | UTF-8 | Python | false | false | 6,550 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import os
import shutil
from os import system, name
import urllib.request
from selenium.webdriver.support.ui import WebDriverWait
class img:
name=""
def __init__(self,name):
self.name=name
... | [
"noreply@github.com"
] | noreply@github.com |
04a32fdbcaab117da4470c9d3c719480d49fa953 | ba8efc376136dfd1ef326e4125377c15126b29ed | /Flask_practice/flash.py | 9335e005a91a8798917a98022c8f2ae2adea9373 | [] | no_license | xinjiempolde/spider | 45007c7660fa4cf74813642cd6bee1e5f7a238e8 | dbc1c81fa10e5ec3b7bc1ac97bc2f17bec3ef3ab | refs/heads/master | 2020-04-05T15:36:44.592624 | 2018-11-28T13:47:09 | 2018-11-28T13:47:09 | 156,976,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from flask import flash,Flask,redirect,url_for
app=Flask(__name__)
@app.route('/')
def hello():
return redirect(url_for('index'))
@app.route('/login')
def index():
flash('this is a test')
if __name__=='__main__':
app.run(debug=True) | [
"2252767663@qq.com"
] | 2252767663@qq.com |
992ad12a575aa28017fbf8115beb2a0579bad5bb | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0065_auto_20210223_0054.py | 007d402317fba9799fbecce80a479a8fe0db8323 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.7 on 2021-02-23 00:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0064_auto_20210223_0034'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
1a187ec7a6af8c21c72e02a6ffa634adb1cc9a51 | af36b4bc1d9d246f974c41ec4f6bc1bea54f1161 | /exercise01.py | 01d56e89112ca4dc5968ffc9a901c060577d48ad | [] | no_license | dajik50/Guns-and-Roses | ab256b7deb5849e4c0698fd95327e489a66c38ec | 8c86b703b4732be05a5ed23c2f498f2aada17c29 | refs/heads/master | 2020-08-25T05:53:41.076167 | 2019-10-28T01:17:46 | 2019-10-28T01:17:46 | 216,971,240 | 1 | 0 | null | 2019-11-18T01:10:52 | 2019-10-23T04:57:48 | HTML | UTF-8 | Python | false | false | 438 | py | from socket import *
# 创建tcp套接字
sockfd = socket() # 默认参数
# 链接服务端
server_addr = ('176.209.104.60', 11235)
sockfd.connect(server_addr)
with open('test.txt','rb+')as f:
data=f.readline()
for i in data:
# 发消息
if not data:
break
sockfd.send(data) # 转换为字节串
msg = sockfd.recv(1024)
print('服... | [
"noreply@github.com"
] | noreply@github.com |
45ca9cc72fa45ff7b0a84bbc77ffcd7fca95ab7a | de96db1343932257755068538ffe4cdddd516198 | /app.py | 00e3519f39e9e9e4c12db5d628123f98caedea6d | [
"MIT"
] | permissive | anonkyuhuu/QuranWeb | 771cc0982a1cdaa81ae333178b8e41d60bd13b85 | a0d32a550de351f2c6c9c47d4f9d0c963b5cc0f6 | refs/heads/master | 2023-03-06T19:26:58.650248 | 2021-02-10T14:02:58 | 2021-02-10T14:02:58 | 337,714,666 | 0 | 1 | MIT | 2021-02-22T04:35:17 | 2021-02-10T12:17:21 | HTML | UTF-8 | Python | false | false | 1,065 | py | from flask import Flask
from flask import render_template
from flask import url_for
from flask import request
import requests
import json
import os
import shutil
app = Flask(__name__)
@app.errorhandler(404)
def not_found(e):
return render_template("404.html")
@app.route("/surah/<id>")
def surah(i... | [
"irsyad.swasono@yahoo.com"
] | irsyad.swasono@yahoo.com |
07a7d45fec8d571d8759e6df1d08da58798b7bea | 221dd06a157859984b083facf884d82f6cb36ff2 | /libraries/botbuilder-community-middleware-activity-type/botbuilder/community/middleware/activity/type/__init__.py | 54e1b79f98171005ed169c93ce763f7e34c40db6 | [
"MIT"
] | permissive | BotBuilderCommunity/botbuilder-community-python | e0b3026da11684bd6fadc3da0298bf1d5ed81a0e | de106ab4bbbbb9e88717b11c146b8c2a722a9b38 | refs/heads/develop | 2021-06-05T08:35:11.396746 | 2020-07-15T17:51:22 | 2020-07-15T17:51:22 | 145,617,108 | 22 | 9 | MIT | 2020-07-25T15:19:47 | 2018-08-21T20:41:03 | Python | UTF-8 | Python | false | false | 166 | py | from .about import __version__
from .activity_type_middleware import ActivityTypeMiddleware
__all__ = [
"ActivityTypeMiddleware",
"__version__"
] | [
"noreply@github.com"
] | noreply@github.com |
91ce02750b794a3130410af64093df760bb02268 | ff1daac1ebac7a2cb03d717a189fe1edf3f4e4c2 | /Lecture 18. An Introduction to Django/homepage/mysite/mysite/urls.py | a62a68de1cfd60bc04046b7fff205626f080f7dc | [] | no_license | hejibo/Python-for-Psychologist | bf17c50c49cced2f6933ab3337d6a0c52eb508ed | 0ef5a2a618b30b87ecb390757c456681957b313c | refs/heads/master | 2021-01-12T17:06:19.364305 | 2016-12-07T21:54:18 | 2016-12-07T21:54:18 | 71,505,777 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"hejibo12"
] | hejibo12 |
eb2ca5d1b00bedc68345d9103057a0bd38c3425f | a79da24bda658f588fd8e71c7e63f01931c1a694 | /bigapple/venv/lib/python3.7/site-packages/plotly/graph_objs/bar/_stream.py | 8f528873536d267aa02021460ab7bf8155d2a086 | [] | no_license | replicantdeca/bigapple-insys | 60519b486f13e1a3eb18b5ba637e45deaf8e1d8e | 5e7328fb94362fbb04a71c2e297bffd83443eebc | refs/heads/master | 2020-03-27T12:57:31.894182 | 2019-12-01T11:25:13 | 2019-12-01T11:25:13 | 146,580,916 | 0 | 1 | null | 2018-08-29T10:00:28 | 2018-08-29T10:00:27 | null | UTF-8 | Python | false | false | 3,812 | py | from plotly.basedatatypes import BaseTraceHierarchyType
import copy
class Stream(BaseTraceHierarchyType):
# maxpoints
# ---------
@property
def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, onl... | [
"mgfcrespo@gmail.com"
] | mgfcrespo@gmail.com |
372e1219d31abf9f99b59880f6ce2367a2ea253a | 0a8726c3e8bbd87f0d1f719eab690f817f76811f | /Lesson2/Lesson2_2.py | d27f2590a88dbd9276cdfcc1c53e2cb1ea884c93 | [] | no_license | Maximus20171/python | 51ddcfde1d946f75a573529667f706e2f4030c7c | 2af2384f14715cca0d79d2bb7b29ffb8d30ed0f2 | refs/heads/master | 2021-01-06T21:21:55.221864 | 2021-01-04T19:22:27 | 2021-01-04T19:22:27 | 241,482,969 | 0 | 0 | null | 2020-03-16T19:48:56 | 2020-02-18T22:39:31 | Python | UTF-8 | Python | false | false | 488 | py | kol = int(input('Сколько будет элементов в списке? '))
my_list = []
i = 0
# Заполнениение
while i < kol:
s = input(f'Введите {i}-ый эл-нт списка: ')
my_list.append(s)
i += 1
print('Вот такой список', my_list)
# обработка
i = 0
while i + 1 < kol:
my_list[i], my_list[i + 1] = my_list[i + 1], my_list[i]
... | [
"maximus2017@mail.ru"
] | maximus2017@mail.ru |
9c01a459e92db06236c93061ba4510630204a5df | d767dbb6beee14072fadd045872950d3fb278e90 | /SeleniumAutomation/WalmartItemPage/steps/interaction.py | de9a5d45449b976baafd7416bf5ad14031ebeb36 | [
"MIT"
] | permissive | atulchauhan89/RobotFramework_E2E | eda03c8cc16714263606673581af604e9138722a | 449d7eec4683b58eeed9410e126c41868f5969e6 | refs/heads/master | 2020-09-15T03:58:48.608881 | 2020-08-01T06:55:18 | 2020-08-01T06:55:18 | 223,342,902 | 0 | 1 | MIT | 2020-08-01T06:55:19 | 2019-11-22T06:57:43 | Python | UTF-8 | Python | false | false | 1,017 | py | from behave import *
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from SeleniumAutomation.WalmartItemPage.locators.item_page import ItemPageLocators
from selenium.webdriver.support import expected_conditions as EC
use_step_matcher('re')
@when('click on add to c... | [
"Atul6101989@gmail.com"
] | Atul6101989@gmail.com |
92108883e03e44c0b266ef7a49d9dea628e31e41 | 61b475c33745dbe11d88ea288cbdee279f89c610 | /src/izi/apps/dashboard/widgets.py | 8fe3723a9b44c00ad92a5dec957228dfddf69ec0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | izi-ecommerce/izi-core | a092ea285d0dbd83d17427de3157a9f1e77d6c51 | 21176be2d41f0cf54ca954f294209c585f643dba | refs/heads/master | 2020-03-30T08:37:39.045514 | 2018-10-08T02:58:46 | 2018-10-08T02:58:46 | 151,029,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | import copy
import re
from django.forms import Widget
from django.urls import reverse
class RelatedFieldWidgetWrapper(Widget):
"""
This class is a wrapper to a given widget to add the add icon for the
IZI dashboard.
"""
template_name = 'izi/dashboard/widgets/related_widget_wrapper.html'
IS_P... | [
"diepdt@izi.asia"
] | diepdt@izi.asia |
411e8160fa633fee9650fda54c0078f8af778b18 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5011/404005011.py | fca6c0597cac9c112b926b948f6c0cd9e7cdd1ee | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 3,993 | py | from bots.botsconfig import *
from records005011 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'SR',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'ZC1', MIN: 0, MAX: 1},
{ID: 'BX', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
314b6ffd748d50de216c8e6e96562bb70ee9ab99 | cb9aedc7ef92c192bb87f90af35e75cfaf463c5b | /clustering/k_means/k_means_plt.py | 662a087bbe89453bae8a1e9ed0331abbf4ff31c5 | [] | no_license | IljaNovo/ProjectOfDataMining | 4d0dabfbd598677a0ccb19b00ece85055fb81a22 | 49ec2998304f665e1c80b1dd81cba71f799eae67 | refs/heads/master | 2021-01-21T19:20:05.531357 | 2017-11-07T15:22:30 | 2017-11-07T15:22:30 | 92,136,735 | 3 | 3 | null | 2018-03-06T09:18:12 | 2017-05-23T06:19:54 | Python | UTF-8 | Python | false | false | 4,662 | py | # Code source: Gael Varoquaux
# Modified for documentation by Jaques Grobler
# License: BSD 3 clause
import numpy as np
import matplotlib.pyplot as plt
# Though the following import is not directly being used, it is required
# for 3D projection to work
from mpl_toolkits.mplot3d import Axes3D
from sklearn.cluster impo... | [
"vladimir.kornilov@accenture.com"
] | vladimir.kornilov@accenture.com |
432cef3d9ef1599b9267887ee395aad1f4693792 | 205f3c1fcc42ff8764a842268417598063548a7c | /learning_logs/migrations/0003_topic_owner.py | 7f4cd2ee851bd22f714490e8299c05546f61f4b7 | [] | no_license | Mohammadhussain257/learning_log | c1547117abea7a1dc53cf57adcdcceed1f1eafcc | fec6d6aa6e289c92bc20009a15cdd58837f8631e | refs/heads/master | 2021-06-10T19:16:15.490102 | 2020-04-16T05:37:08 | 2020-04-16T05:37:08 | 254,341,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # Generated by Django 3.0.4 on 2020-04-13 08:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('learning_logs', '0002_en... | [
"mohammadhusen257@gmail.com"
] | mohammadhusen257@gmail.com |
dfb4aafe897b5263ebd18b74bb4a504d4d203e7f | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/go/util_rules/embedcfg.py | d2ed6cc938823c9793be977e5ede6db43a726bc2 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 4,141 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import json
from dataclasses import dataclass
from typing import Any, Iterable, Mapping
from pants.util.frozendict import FrozenDict
from pants.util.st... | [
"noreply@github.com"
] | noreply@github.com |
6c966509d697a980eefc09fd22b4048efb1c4df9 | 22f2205d6d0fef9ff29dc383b276538167a70c9d | /shit.py | 93bd8c924ea9073e045de42e8c3ba3cfec7e71fc | [] | no_license | tanya-ling/avtobreja | 8bc15eda438c0ddc64751a43e3f1dd093d261694 | 00183cef16c57259c9fa4b1f161ad59fc0925853 | refs/heads/master | 2021-01-16T19:13:53.854163 | 2017-03-09T21:30:34 | 2017-03-09T21:30:34 | 79,028,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py | import codecs
from pymystem3 import Mystem
letters = {
'й': 'q',
'ц': 'w',
'у': 'e',
'к': 'r',
'е': 't',
'ё': 't',
'н': 'y',
'г': 'u',
'ш': 'i',
'щ': 'o',
'з': 'p',
'х': 'O',
'ъ': 'P',
'ф': 'a',
'ы': 's',
'в': 'd',
'а': 'f',
'п': 'g',
'р': 'h'... | [
"tanya96gavrilova@yandex.ru"
] | tanya96gavrilova@yandex.ru |
ba36aac9528bdf390600221ea3a2a9d0988284ff | 644572abade27776f135b547717d9893abd86f3a | /Problem-3.py | d712c72642a94421be8b8e93ffaf214b564c3234 | [] | no_license | osamamohamedsoliman/Hashing-2 | 50883292b10fe5f4f2ef5a27f62b317057d2c262 | cb48ffa649650400f03a4301683974910c5f083f | refs/heads/master | 2022-10-01T00:32:36.433945 | 2020-06-02T05:23:45 | 2020-06-02T05:23:45 | 268,645,753 | 0 | 0 | null | 2020-06-01T22:25:15 | 2020-06-01T22:25:14 | null | UTF-8 | Python | false | false | 1,046 | py | # Time Complexity :O(n)
# Space Complexity :O(n)
# Did this code successfully run on Leetcode : yes
# Any problem you faced while coding this : no
# Your code here along with comments explaining your approach
from collections import Counter
class Solution(object):
def longestPalindrome(self, s):
"""
... | [
"osama.soliman@sjsu.edu"
] | osama.soliman@sjsu.edu |
cd3a08ff1ada9b33859a3cfb263f0d08aa8a4bf5 | 73130803d19c599fa8e12f78c071ec3d5a439c5c | /taskconnect/taskconnect/api_urls.py | 4db88080635aa60c7aadcaed50e3667847d45b7f | [
"MIT"
] | permissive | jayoshih/net-work | 0e5601a4bd9c26bedc8a409870f9a2d34dc52691 | 3cbbc83ed399c2b6236f27558a0b1fa90ec651ab | refs/heads/master | 2021-01-10T08:54:09.785539 | 2016-02-02T06:09:30 | 2016-02-02T06:09:30 | 51,804,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from taskconnect.models import *
from taskconnect.serializers import *
from rest_framework.renderers import JSONRenderer
from django.conf.urls import patterns, url, include
urlpatterns = patterns( #... | [
"jayoshih@ucsd.edu"
] | jayoshih@ucsd.edu |
0b204718eca22cde25f016fd81e1c05eac09ff44 | abf135229a76859a9ab9aa751e09af25bc9d6f0b | /example4_calculator.py | 844161a031020fa55d6efa75f571df1f696f1513 | [
"MIT"
] | permissive | jlollis/python-for-grade-8 | 3fa76d3ba436e2805aef3e7310896f08d2e815b7 | 16ac976f68b5fc80b4e9ebb86cdb9b15d9b5d503 | refs/heads/master | 2020-04-14T09:28:43.340261 | 2018-12-02T16:51:46 | 2018-12-02T16:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | def add(x, y):
result = x + y
return result
def mult(x, y):
result = x * y
return result
print "1. Add"
print "2. Multiply"
action = raw_input("Pick a number: ")
a = raw_input("First number: ")
a = float(a)
b = raw_input("Second number: ")
b = float(b)
if action == "1":
result = add(a,b)
elif a... | [
"henrik.warne@trioptima.com"
] | henrik.warne@trioptima.com |
d0910dfd7897758e8aaa038ce631fe18e0e42f6f | cac63dfa3d523533322c649b2572e4c466e72960 | /calc.py | ff3c398b376e11fc77d51394451b282166ac9bd8 | [] | no_license | sidduGIT/pytest_examples | 703fcbf01ed87fd90c34a3ebfc21b4a0f5c7ea84 | f0a41982fdf597e7f8b1126711ad020c0675cc60 | refs/heads/master | 2020-12-28T01:31:10.868966 | 2020-02-04T06:22:10 | 2020-02-04T06:22:10 | 238,137,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def add(a,b):
return a+b
def sub(a,b):
return a-b
def mul(a,b):
return a*b
def div(a,b):
return a//b
| [
"siddu.bagewadi@gmail.com"
] | siddu.bagewadi@gmail.com |
5e8e8b493149ecc266f9ce5211896708a826725a | f1749e403fb8e1e900c2a740deaee2dafd41b194 | /models/newModelres5.py | 7d8dc78fd9bd93db965e68bbb201578a42e4110d | [
"MIT"
] | permissive | lynch829/GAN-for-Synthesizing-CT-from-T2-Weighted-MRI-data-towards-MR-guided-Radiation-Treatment | d16127779af5eac8b27948d38acd0cfa524794e4 | 021024330bde2ce50bb3691e7730483f32cbf408 | refs/heads/main | 2023-07-07T22:57:57.529257 | 2021-08-19T20:26:40 | 2021-08-19T20:26:40 | 454,561,291 | 1 | 0 | null | 2022-02-01T21:44:51 | 2022-02-01T21:44:50 | null | UTF-8 | Python | false | false | 6,369 | py | import torch
#batch normalization is set to False & instance normalization is true
#5 residual layers
class ConvBlock(torch.nn.Module):
def __init__(self, input_size, output_size, kernel_size=4, stride=2, padding=1, activation=True, batch_norm=True,inst_norm=True):
super(ConvBlock, self).__init__()
... | [
"amitranjan717@gmail.com"
] | amitranjan717@gmail.com |
6b499cac5d5cd4c56464e27cb6bbc90bc70ff7da | ef2f684d8b2bbbb6e13e18596b05f72173541c49 | /List_stuff/listpart.py | 88094d469aeedd9f17d8a3bfa4740d6825e33c54 | [] | no_license | Ramluk/Pythonstuff | 33fcba267a955dee9e415e2a919e7aefcb95959d | 9408f0f96ce2fe36bd677a9299974a98638a86fe | refs/heads/main | 2023-02-07T16:47:09.712105 | 2020-12-15T23:50:49 | 2020-12-15T23:50:49 | 320,962,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | #To work with a specific part of a list, you slice
#Slicing a list
#specify the index of the first and last element you want to work with, but as with the range function, it'll stop one before the 2nd index you specify.
players = ['charles','cindy','mike','kyla','florence','eli']
print(players[0:3]) #prints 0,1,2
... | [
"noreply@github.com"
] | noreply@github.com |
c3d9ab21c69f69f0dccf5ba227cc80e1ffe66dfd | 7b080378dd0de9284c97f349e925b8e562b6142d | /script/forms.py | 61e81141136ddfa49f20429c554f32f048537d4f | [
"MIT"
] | permissive | satamame/pscutil | 14c9a7d0692014e2df476250120bcc552d9c6c33 | fd7786a142c0691296013e49c139a6104e8cbadf | refs/heads/master | 2023-04-16T10:24:10.751462 | 2021-05-03T09:20:34 | 2021-05-03T09:20:34 | 300,319,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django import forms
class PredictForm(forms.Form):
file = forms.FileField(
widget=forms.FileInput(
attrs={'accept': 'text/*'}
)
)
| [
"satax@nifty.com"
] | satax@nifty.com |
428fd895b27a1f734fd2e2787a1c5b69adba6b19 | fa0b16e37b825f40fcb2ee565fc4d9edb182f901 | /mysite/settings.py | b0abfa0e0d62faeecc0a276d07243126445bdad6 | [] | no_license | gnm3000/django-python-tutorial | e7c224f5d2ca4a0fd32f0beffbf90096a8da7cf2 | 0b383df2360ff60a3fbe73d086e472b64fc74f70 | refs/heads/master | 2022-04-14T03:34:05.774401 | 2020-04-12T07:04:23 | 2020-04-12T07:04:23 | 255,027,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"gnm3000@gmail.com"
] | gnm3000@gmail.com |
58162151d5e120146e89fe22b02e7fcce5d8ba0c | 99a1753c8c7558d6a1c3e66173ad45e791e1ee96 | /Day3/Connect four.py | e17817e4e364cb1ad69bbb974fef4602b67163dc | [] | no_license | YunjinJo/PythonProject1 | 16fb7ed2d512cb5c7b12394699f9606da1d33236 | f4cb6ecec410dc766b61214880d48875a83bd267 | refs/heads/master | 2023-06-12T09:07:10.679735 | 2021-07-09T02:24:58 | 2021-07-09T02:24:58 | 380,867,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,427 | py | from tkinter import*
class MainGUI:
def check(self): #가로 4개씩 세로 4개씩 대각선 4개
#가로 4개씩 검사
for r in range(6): #모든 행에 대해서
for c in range(4): #c = 0,1,2,3 (연속인 4열 검사, c==c+1==c+2==c+3)
ch = self.matrix[r][c]['text']
if ch != ' ' and ch == self.matrix[r][c+1... | [
"black44jo@naver.com"
] | black44jo@naver.com |
4e405ef6bdfad15be95e6417d736f6253929c733 | a42584df70e2bfa309b65bc927b5b37b9be9efb2 | /PythonCode.py | d1da8f069c427c18f214bf7eff7da78a1b072a21 | [] | no_license | bradbucher/Week_7_5_C-with_Python_code | cfbdc62b02d4aa4ee09f921ae361e365faeeab8f | 0d86c3ebd4dbce383195981348d47d3207033c1b | refs/heads/main | 2023-08-28T00:24:23.693242 | 2021-10-23T21:02:57 | 2021-10-23T21:02:57 | 417,668,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import re
import string
def frequency_of_each_item(filename):
frequencies = {}
with open(filename, 'r') as f:
for word in f.read().splitlines():
frequencies[word] = frequencies.get(word, 0) + 1
with open('frequency.dat', 'w') as f:
for word, freq in frequencies.items():
print(word, freq, file=f)
retu... | [
"noreply@github.com"
] | noreply@github.com |
123c82047ad6fa722106d9b5a0228e6387ddbb05 | 85cbe30feedee5b37021f0c629dcf24085f868a6 | /spider/beautifulsoup1.py | fdf3c2e76230c7329c9e953068cc8014736b20d0 | [] | no_license | slientfly/python | 92dd68c3ab475b0020d980932e57dc2767d05213 | 9137ccca85ac3c70d6a5a5285cc18a6be94caf62 | refs/heads/master | 2021-01-21T00:05:12.442006 | 2017-08-30T08:56:45 | 2017-08-30T08:56:45 | 101,843,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import requests
import re
from bs4 import BeautifulSoup
res=requests.get('http://www.cabi.org/isc/search/?q=China&types=7&rows=10&sort=Relevance&facets=2&facet1f=Datasheet+Type&facet1v=Invasive+Species&facet2f=Geographical+Location&facet2v=China&page=1&s0=0&s1=0')
res.encoding='utf-8'
soup=BeautifulSoup(res.text,'... | [
"noreply@github.com"
] | noreply@github.com |
dc887a739154a41f53a09cfecb82d73290334763 | 319be2d4a6bd8fc4b180ca594189b607af8006b0 | /inventory.py | f1072223ff87530d1c1fbd7b15fa967286e3f3f4 | [] | no_license | chippy20/automate-the-boring-stuff---inventory | 59a5b54cb2e70311147c6196902b7fbe70a3d406 | ffa0cd7f4c5b60d4f49e5c259a1decf7fd425a64 | refs/heads/master | 2022-11-21T01:23:07.547362 | 2020-07-03T10:28:41 | 2020-07-03T10:28:41 | 276,872,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | stuff = {'rope':1, 'torch':6, 'gold coin':42, 'dagger':1, 'arrow':12}
def displayInventory(inventory):
print("Inventory:")
item_total = 0
for k,v in inventory.items():
item_total = item_total + v
print(str(v)+ ' ' + k)
print("Total number of items: " + str(item_total))
displa... | [
"noreply@github.com"
] | noreply@github.com |
0b995641de9fc06d91312f23266b776fdd796ed3 | 0cab08620863cf0be85c1ec20069842e101ed98c | /load_data.py | 2f82cefc7c8622725a11f22fad9ec7fd394b2602 | [] | no_license | PankajWorks/datagen | 918d7d5f807f95b81018b4c830c2e78b1377acec | 69172f44aabb6b86e460d798d80ea38dd9de2ef9 | refs/heads/master | 2023-09-04T02:53:14.213482 | 2021-10-25T10:29:35 | 2021-10-25T10:29:35 | 43,934,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import sys
import random
import subprocess
GB = 1024 ** 3
def du():
p = subprocess.Popen('hadoop fs -du -s /ngrams', shell=True, stdout=subprocess.PIPE)
return int(p.stdout.read().split()[0])
# generate list of URLs
base_url = 'http://storage.googleapis.com/books/ngrams/books/googlebooks-eng-all-%igram-200907... | [
"pankaj.singh@hortonworks.com"
] | pankaj.singh@hortonworks.com |
7e01927d48a5e224bfa1e3ab914ab39fa1d3a19f | 47c1a85431aaac9ec800e1a1fb941f5754ce4682 | /code/chp4/myvenv/bin/pip | be4697d536667df8ba6c4dd3c83b09abf93884e2 | [] | no_license | qianzhaicun/webscrape | 98302147588f875686172b70100ea6b80d751848 | 93aaf70ab19aa7548e6f7d47f2f88daa4461b651 | refs/heads/master | 2020-06-25T09:47:39.004277 | 2017-07-29T07:10:45 | 2017-07-29T07:10:45 | 98,715,236 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/home/caicai/webscrape/code/chp4/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qianzhaicun@163.com"
] | qianzhaicun@163.com | |
d5707c8369d9f88e304434b12c062d60bb4ee901 | da684d30fc5d4ec66f42863000d9a4f76c4f3866 | /cloudasr/worker/test_vad.py | 19c5ba547f50b21bb90bed8b9a015f1661b0352b | [
"Apache-2.0"
] | permissive | ffais/cloud-asr | 48b80acee7eb0ecfa3bf4d80128ab788cdd57c22 | 31d6d8858cbf6dd188295081edee31a3b5b113d2 | refs/heads/master | 2020-03-30T17:11:36.744647 | 2018-10-22T15:37:03 | 2018-10-22T15:37:03 | 151,445,396 | 0 | 0 | Apache-2.0 | 2018-10-22T15:37:04 | 2018-10-03T16:35:48 | Python | UTF-8 | Python | false | false | 684 | py | import unittest
import audioop
import math
import wave
from vad import create_vad
from lib import AudioUtils
class TestVAD(unittest.TestCase):
def test_vad(self):
vad = create_vad(16000)
utterances = 0
for original_chunk, resampled_chunk in self.chunks():
_, change, _, _ = vad... | [
"ondrej.klejch@gmail.com"
] | ondrej.klejch@gmail.com |
ea14573f4991a3e6267118f88ee1bf406e2f5d0d | 2d5df12784d2e50835e63f17c0d76ee7ae2e85c9 | /Svxcard-test-scripts/test-temperature.py | 0c4122b2ec1d88238f466290be8414f66753772a | [] | no_license | Dloranger/Svxlink-Custom | 0df3db29d359acc6ab22c6755639d5d61d758da8 | efa70e38075ade7159792d90d2ad5c9467529e97 | refs/heads/master | 2021-01-16T19:59:18.970267 | 2017-06-05T15:58:57 | 2017-06-05T15:58:57 | 100,191,290 | 1 | 2 | null | 2017-08-13T16:55:38 | 2017-08-13T16:55:38 | null | WINDOWS-1252 | Python | false | false | 866 | py | #!/usr/bin/python
# - * - coding: utf-8 - * -
sensorids = ["10-00080109d8c4"] #Indicate the serial number of your 18b20 here : ls /sys/bus/w1/devices/
for sensor in range(len(sensorids)):
temperatures = []
while True:
text = '';
while text.split("\n")[0].... | [
"r.neese@gmail.com"
] | r.neese@gmail.com |
0335276760f16d38edf1600091a884f0a2bde9c6 | ad8a33f6f76d79eabfeb55dfcdd221e1805340d6 | /dict.py | b9a85a4a9c551ad5bbaf47971bddda36b42907fd | [] | no_license | RodneyMarumo/recipes | c65f9bfc1be3f41369f515bce5948f0b2e757d4e | 3555001c89d16ba9ac35c587d79942dac60dcbd0 | refs/heads/master | 2021-01-19T00:43:24.056798 | 2017-04-04T13:50:16 | 2017-04-04T13:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,821 | py | '''
Recipes involving dictionaries
'''
import collections as coll
from .iter import flatiter
#====================================================================================================
class Invertible():
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"hannes@saao.ac.za"
] | hannes@saao.ac.za |
c9453c19a2e6aca70c29f5ce3b608ce41200621b | 4ecddbbf14617354d88e5f012ab77fdb4a9f7491 | /djb/djb/wsgi.py | 5e56d3c6477cfedd0788f9c248ae50afe5ba7cf3 | [] | no_license | ysyfff/djb | ed8acfa3dc80db46fbecc4736d37671371cb205c | 218cae76eaa5bdaaf938a2dc7781057372ba2f26 | refs/heads/master | 2020-05-26T01:40:49.344802 | 2013-05-17T06:50:23 | 2013-05-17T06:50:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | """
WSGI config for djb project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` sett... | [
"1156546473@qq.com"
] | 1156546473@qq.com |
09b1a7c1ecfb46ca6934999e321724ff57b971b9 | 6910ab142ec7b86be00fe0a7b1af2c922c38c576 | /lib/modules/situational_awareness/network/get_sql_server_info.py | e65c388a61128a0f7e0d5035a0792bcad216788f | [
"BSD-3-Clause"
] | permissive | 0xbadjuju/Empire | bcb6048c6ed3a938dc11073be996cb6473b8454a | f6ab06a14511fa49e92bf88f68ceb37c7ed36910 | refs/heads/master | 2021-01-22T09:17:07.871909 | 2017-01-12T21:51:28 | 2017-01-12T21:51:28 | 71,599,541 | 2 | 1 | null | 2016-10-21T21:51:05 | 2016-10-21T21:51:05 | null | UTF-8 | Python | false | false | 3,845 | py | from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Get-SQLServerInfo',
'Author': ['@_nullbind', '@0xbadjuju'],
'Description': ('Returns basic server and user information from target SQL Servers.'),
'... | [
"Alexander@gegitech.net"
] | Alexander@gegitech.net |
cf7003a96795ac941e196feb0ba340851ebef983 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cse/huaweicloudsdkcse/v1/model/engine_reference.py | f492745795a7c0b25ba3bb1a8314bd1147a93b69 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,145 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class EngineReference:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute na... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6cf43634d63d694c950aa4304c90bea3248be9bc | 2e83e004d8a69a773d1e305152edd16e4ea35ed8 | /students/rfelts/lesson03/list_lab.py | f116a89edd9ab456bc09a511273f95384d14430e | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_PY210 | 9b170efbab5efedaba8cf541e8fc42c5c8c0934d | 76224d0fb871d0bf0b838f3fccf01022edd70f82 | refs/heads/master | 2021-06-16T20:14:29.754453 | 2021-02-25T23:03:19 | 2021-02-25T23:03:19 | 161,077,720 | 19 | 182 | null | 2021-02-25T23:03:19 | 2018-12-09T20:18:25 | Python | UTF-8 | Python | false | false | 4,879 | py | #!/usr/bin/env python3
# Russell Felts
# Assignment 3 - List Lab Exercise
# Series 1
def series1():
"""
Create a list and modify it by:
Asking the user for another fruit and adding it to the end of the list
Adding another fruit to the beginning of the list using “+”
Adding another fruit to the be... | [
"rfelts@adobe.com"
] | rfelts@adobe.com |
5b3d7a86142ca1e96291cb8b7355a821f2d2b495 | 3e7cce8dc203bcdbd35fccfaf974a9af0613d838 | /profilemaker/views.py | 5bb04d58dafd44c0f3899b259bb47bc561694b2d | [] | no_license | MdReyajuddin/blog | 146ac2b0b6967261b943535c819b403817390cd5 | 7da318865cef3116d50bcf0eb20d800e57290b90 | refs/heads/master | 2022-12-15T15:44:30.969717 | 2020-01-25T08:07:37 | 2020-01-25T08:07:37 | 236,128,083 | 0 | 0 | null | 2022-11-22T05:16:03 | 2020-01-25T05:06:16 | Python | UTF-8 | Python | false | false | 892 | py | from django.shortcuts import render
from .forms import Profile_Form
from .models import User_Profile
# Create your views here.
IMAGE_FILE_TYPES = ['png', 'jpg', 'jpeg']
def create_profile(request):
form = Profile_Form()
if request.method == 'POST':
form = Profile_Form(request.POST, request.FILES)
... | [
"md.reyajuddin45@gmail.com"
] | md.reyajuddin45@gmail.com |
ff131d5fea0ba01e244ca696d7d1c796629e8173 | cb5719d2e21f02be07368790ae5649b249c9a20e | /apps/tests/log_databus/test_collectorhandler.py | 60505d52d55ea82f8d6a149d6e5a34ee771aba5b | [
"MIT"
] | permissive | Toread-jxj/bk-log | fff57337cc39fdd6a85890bf84baff8aa23539be | 7d68cad3a2c78511141c9af2a016fcd603f62707 | refs/heads/master | 2023-07-15T01:22:47.200423 | 2021-08-19T03:08:25 | 2021-08-19T03:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,559 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG 蓝鲸日志平台 is licensed under the MIT License.
License for BK-LOG 蓝鲸日志平台:
------------------------------------------------... | [
"zxz@zhuxingzhao.com"
] | zxz@zhuxingzhao.com |
dc5f16a21eaf87f548dcafd572e064bea67e1b04 | 928508a85d16987a1382b7adcd7142dee7ac986f | /Practice_Python/6.String_lists.py | 0d9f652a42a79e534901e740e8c4129af9c11942 | [] | no_license | TheoRobin76/Data_Engineering22 | ed29798d0660d6ac73985f510ef7cea942ab77ad | 26299a61a8b4372d9ed2664d4ad623c9d12d23d0 | refs/heads/main | 2023-06-17T05:43:40.347544 | 2021-07-14T13:23:23 | 2021-07-14T13:23:23 | 378,177,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | word = input("Please enter a word and I will tell you if it is a palindrome: ")
if word == word[::-1]:
print(f"Congratulations, {word} is a palindrome")
else:
print(f"My Condolences, {word} is not a palindrome")
| [
"you@example.com"
] | you@example.com |
4e4ba1cb745fbdb81fa35fb906ac4640c74754e5 | 21a82223831e5c8a51809a4d384e2de26c42b84e | /Solutions/136_Single_Number.py | e877c3fe6ee083d18838e35e033093245b080b81 | [] | no_license | xtymichael/Leetcode_python | 91ef24adf174cb8d2a3e99f2784995a7439987a1 | be47b1e0d22174043a2596eae6f141912573c67f | refs/heads/master | 2021-06-15T23:46:57.335941 | 2017-04-24T05:46:28 | 2017-04-24T05:46:28 | 39,522,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | class Solution:
# @param {integer[]} nums
# @return {integer}
def singleNumber(self, nums):
d = dict()
for i in range(len(nums)):
if nums[i] in d:
d.pop(nums[i])
else:
d[nums[i]] = nums[i]
if len(d) == 1:
re... | [
"xiangt@bc.edu"
] | xiangt@bc.edu |
e516493b77004a907bb16ef524f73968b6760fc5 | 8cf633e92a0671c8201268620a0372f250c8aeb2 | /204.计数质数.py | dc347d29caae6593e34a2ccf06dfa29044656b36 | [
"Unlicense"
] | permissive | SprintGhost/LeetCode | 76da5c785009d474542e5f2cdac275675b8e60b8 | cdf1a86c83f2daedf674a871c4161da7e8fad17c | refs/heads/develop | 2021-06-06T04:04:28.883692 | 2021-01-01T14:09:26 | 2021-01-01T14:09:26 | 230,635,046 | 0 | 0 | Unlicense | 2020-12-11T14:55:36 | 2019-12-28T16:34:39 | Python | UTF-8 | Python | false | false | 607 | py | #
# @lc app=leetcode.cn id=204 lang=python3
#
# [204] 计数质数
#
# Accepted
# 20/20 cases passed (124 ms)
# Your runtime beats 85.76 % of python3 submissions
# Your memory usage beats 28.36 % of python3 submissions (36.8 MB)
# @lc code=start
class Solution:
def countPrimes(self, n: int) -> int:
if n < 2:
... | [
"864047435@qq.com"
] | 864047435@qq.com |
1b3fc34fcf1f0f825a6780be614421d4f414219f | 6e4351defca46f48ba75a5f85470b3bac9acb80d | /type02.py | 4cbd0de46b1cf94ad8c96224e7bdb5843436847c | [] | no_license | pelowok/potato-webscraper | e1e34dc2da84d17ef608c85b05862395e69c75e5 | 0b02ca7bee1678bcf58576eb142744e67436fad9 | refs/heads/master | 2021-03-27T16:52:26.489589 | 2017-02-15T16:53:01 | 2017-02-15T16:53:01 | 68,972,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | import re
from bs4 import BeautifulSoup
from get_product_name import get_product_name
from get_page_language import get_page_language
from get_page_title import get_page_title
def type02(site_url='', soup='', arr=[]):
"""scrape type 2 templates and return arr for data push to workbook"""
# marketo_template
marke... | [
"zak@mynameiszak.com"
] | zak@mynameiszak.com |
69c8613e89b0b70ecdbf7d9a9cc3558b46d87771 | 7f7bf9a5827d1441f18f568fc75ed5bf0159ca6c | /Декоратор/2/2функцию-декораторv41.py | f7a19566515c70ee88069f9c42bb8055b942a228 | [] | no_license | KorsakovPV/yandex_contest | 08bcff4eaf38d46a8348ac3abbb5f496857fe8e4 | f67917ef710f5b138142b11ec4e6e4678b23e408 | refs/heads/master | 2023-01-06T13:04:07.955570 | 2020-10-24T20:22:41 | 2020-10-24T20:22:41 | 290,097,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | def cache3(func):
cache = {'res': func(), 'counter': 0}
def save_three_times():
if cache['counter'] == 3:
cache['counter'] = 0
cache['res'] = func()
return cache['res']
cache['counter'] += 1
return cache['res']
return save_three_times
@cache3
de... | [
"pavelkpv@gmail.com"
] | pavelkpv@gmail.com |
5b0c6c8143496697f9208e536c66c6a31934f7f2 | 96d3e1604548c5e3f46dbd575b584b550d9fac60 | /content_blocks/content/urls.py | 02b6860f2f1d25f92a878f8d181b9bf77444beb6 | [
"BSD-3-Clause"
] | permissive | zaleksandrne/content_bloks | 71096a80f22d2e47a0471ef86b5f948f5ff3031b | 23e59bc7fdf66f13fc33692a7a919cecddfef1e1 | refs/heads/main | 2023-04-10T16:54:43.800477 | 2021-04-22T00:01:35 | 2021-04-22T00:01:35 | 359,732,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.urls import path
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
)
from . import views
urlpatterns = [
path("", views.index, name="index"),
path("senf_email/",
views.send_email,
name="send_email"
),
path('api/v... | [
"zaleksandrne@gmail.com"
] | zaleksandrne@gmail.com |
407ffaca0c524d5e9969632f790a01bb35840de1 | 6b6b67c162432a410da11a0596566c42fe4170cc | /Test14.py | 561eac3390e3986f0632d938d3b49b2c8e81073c | [] | no_license | joelpierredupont/Python | 2e9a6f398ce5cd35cc837d1fe61684c3685db556 | 5b2d0189fb17a20f2e05928d3219b2c42152169b | refs/heads/master | 2021-07-23T02:21:47.342661 | 2021-06-27T15:12:16 | 2021-06-27T15:12:16 | 139,849,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import time
import matplotlib.pyplot as plt
import libpipong
fig, ax = plt.subplots()
canvas = ax.figure.canvas
animation = libpipong.Game(ax)
# Désactive les raccourcis par défaut.
if fig.canvas.manager.key_press_handler_id is not None:
canvas.mpl_disconnect(fig.canvas.manager.key_press_handler_id)
# reset ... | [
"noreply@github.com"
] | noreply@github.com |
673f80764601f3e1a00f9754cb985992468fff2c | aad3716c14ebac4316a21c8d747af030993c6e53 | /src/steps/fusion.py | 066a6f643ef96d8b09cd2d3f277a7f62b0de3675 | [] | no_license | avlab-auth/avlab-multimodal-speaker-diarization | 4e6d545715629232d3f8da180fe3eac00c5f3cda | d243aeed825ca3e06bdf2125cdaaa03e67ab0973 | refs/heads/master | 2020-03-25T22:10:35.003462 | 2019-02-20T21:34:53 | 2019-02-20T21:34:53 | 144,209,089 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,501 | py | import os
import json
from collections import defaultdict, Counter, OrderedDict
import operator
from sac.util import Util
class Item:
def __init__(self, start_seconds, end_seconds, image_class, audio_class):
self.start_seconds = start_seconds
self.end_seconds = end_seconds
self.image_class... | [
"nicktgr15@gmail.com"
] | nicktgr15@gmail.com |
5e034aa33708e97b5aedbcbf1bba6cf51df4c4f9 | e06c7fd594c52425ab7fc5498c07ae14daf9578b | /api/admin.py | cafd7a142d565ea707d870d9d0d7f3375129165e | [] | no_license | rwheeler-7864/simplenight-api | bc35560eca1e1c25092a1bcdc4af1633367413b8 | 602646911a0155df5b70991d1445c10cee18cd33 | refs/heads/master | 2023-03-12T03:10:51.516499 | 2021-02-25T20:40:44 | 2021-02-25T20:40:44 | 342,370,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from django import forms
from django.contrib import admin
from django.forms import TextInput
from api.models.models import (
Booking,
OrganizationFeatures,
PropertyInfo,
Venue,
VenueMedia,
VenueContact,
VenueDetail,
PaymentMethod,
# ProductMedia,
ProductHotelsMedia,
Products... | [
"randmwheeler@gmail.com"
] | randmwheeler@gmail.com |
f7fdd03c72c561aba4e76d654c7d5f3267c4d3e8 | eafced651cb83c6d325b146dfc4e7ecde236cb24 | /實用代碼/轉置二維陣列.py | b1ea38f36c87d28d4d11f88baecd8dab2e46d927 | [] | no_license | zxc83147759/pythonObject | 7bb1bc3888c730dd4c84e338a085be037511e3db | 4e8bbcceb41d3d17168ef8efa8c789fdbabe4d1d | refs/heads/master | 2020-11-29T21:58:04.139765 | 2020-04-19T14:25:15 | 2020-04-19T14:25:15 | 230,224,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | original = [['a', 'b'], ['c', 'd'], ['e', 'f']]
transposed = zip(*original)
print(list(transposed))
| [
"32771813+zxc83147759@users.noreply.github.com"
] | 32771813+zxc83147759@users.noreply.github.com |
5aa57daf3cc68ef88f14f8f3ba7cba5f03636d50 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_8/34.py | 13a5dbdcd1c07973c0fd5e97e7a59e2773a1dde9 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | """The grouper class has been reciped from:
http://code.activestate.com/recipes/387776/
"""
class Grouper(object):
"""This class provides a lightweight way to group arbitrary objects
together into disjoint sets when a full-blown graph data structure
would be overkill.
Objects can be joined using .join(), tested fo... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f3ff45256bbea619dbbf64fd88fabf51d085e602 | 0c15310c93117c916211b214bf5e87bdb05e768b | /hyperion/__init__.py | f1feff3c2c50c50e70b91d7fb71f52e9b778df21 | [
"BSD-2-Clause"
] | permissive | hyperion-rt/hyperion | 553efc0bd2c279409f65381d769546770b728236 | 743e085dd03ac8f92796773e55a69fd5b50700c1 | refs/heads/main | 2023-08-30T20:57:38.751726 | 2023-08-25T20:41:29 | 2023-08-25T20:41:29 | 1,442,240 | 41 | 19 | BSD-2-Clause | 2023-08-25T20:41:31 | 2011-03-05T04:43:44 | Python | UTF-8 | Python | false | false | 2,344 | py | from __future__ import print_function, division
from .version import __version__
# Set up the test function
_test_runner = None
def _get_test_runner():
from .testing.helper import TestRunner
return TestRunner(__path__[0])
def test(package=None, test_path=None, args=None, plugins=None,
verbose=Fal... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
166dddf96b00ea6bffb98ee29444b8efcfa58ff5 | da8d0c0c5cadcc82c5245a45a8a0151a7506bfaa | /log_date.py | a1f47bc474ef56055022f46cc73a4d975172ccfe | [
"MIT"
] | permissive | JI511/Automated_Tasks | f0de154d8e860664be2d750b7483f16e58cd6580 | 17a0009a45f818919c3e683ac0aa8f90af056fdf | refs/heads/master | 2020-07-09T05:08:29.756980 | 2020-04-10T06:00:02 | 2020-04-10T06:00:02 | 203,887,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import datetime
import logging
date = datetime.datetime.now()
logging.basicConfig(filename="update_log.ini", level=logging.INFO)
logger = logging.getLogger(__name__)
logger.info("Updated at: %s" % date.now().strftime("%y%m%d_%H%M%S"))
| [
"johningwersen11@gmail.com"
] | johningwersen11@gmail.com |
3b07c2b690f51c118d146d044512658c6011641b | 5c084e2577a7b03dfa3dcecdbcac32100424a8c7 | /predict_test_mixed_hyperparameters.py | eb6324a5d24e737690223440c71c6429c3b0d2ba | [] | no_license | pig7788/nccucs-graduate-experiment | 6260340b5099f96a112a03c7daca5e4700aef94f | 52ad61331dd65fd9c782c3d08eaed805ff4ff7a1 | refs/heads/master | 2023-08-10T14:58:16.276945 | 2021-09-14T16:54:25 | 2021-09-14T16:54:25 | 406,417,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,991 | py | # -*- coding: UTF-8 -*-
import utility
from utility import (CRF, BertConfig, T5Config, TFBertForTokenClassification,
TFT5ForConditionalGeneration, argparse, ast, datetime,
math, os, sys, tf, time, timedelta, tqdm)
def predict_by_t5_based(tensors, encoder_type, src_dataset, ... | [
"108753206@g.nccu.edu.tw"
] | 108753206@g.nccu.edu.tw |
0d6be2d20aad56dc93e13e89dae8a30e5c924f42 | e1eaed6dde62fc54eb317d28dbd18e0740e3e8f3 | /official/projects/yt8m/configs/__init__.py | 2785613f22bdd5886332e53a03d96f3d529b7fd9 | [
"Apache-2.0"
] | permissive | nlpming/models | cf5008d2e66d2b66b6d61423e214f2f9f9fbe472 | 3cbf0748529d787dd09fa3ed031e557f0ddfa268 | refs/heads/master | 2021-12-03T03:29:16.042489 | 2021-11-23T14:09:10 | 2021-11-23T14:09:10 | 206,007,973 | 0 | 0 | Apache-2.0 | 2019-09-03T06:47:46 | 2019-09-03T06:47:46 | null | UTF-8 | Python | false | false | 692 | py | # Copyright 2021 The TensorFlow Authors. 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 required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
506003b3dae22a077719c309c33a12355ed13292 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /codeforces/cf251-275/cf260/a2.py | a83e5ffe122cda371ad06555dc20bfd8fbd03eb2 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
n = int(raw_input())
for loop in xrange(n):
a, b = map(int, raw_input().split())
if a < b:
print "Happy Alex"
break
else:
print "Poor Alex"
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
90b2905a4539ad7a46f43b3a66f95cfdf080024d | 72542d0db7ec390f58299cba0f51433cf744d4ba | /Puppygenerator.py | 7bf0080506daa47a560273c71a7572188811f82d | [] | no_license | Mullykitten/FantasticOtter | 89fc36cd4a82093773a1b80fd2dce7d2d3cc6c5b | d762657d87f1344aa1b550d4fe616d9e4cd6c154 | refs/heads/master | 2021-05-13T11:25:46.691641 | 2018-03-07T16:36:00 | 2018-03-07T16:36:00 | 116,736,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | import random
from PIL import Image
class Dog:
def __init__(self,):
self.Breed = random.choice(Breed)
self.Gender = random.choice(Gender)
self.Age = random.randint(1,12)
self.Name = random.choice(Name)
self.Personality = random.choice(Personality)
Breed = [
"German Shepherd",
"Da... | [
"32171347+Mullykitten@users.noreply.github.com"
] | 32171347+Mullykitten@users.noreply.github.com |
2294983d4c71a846b601f32e5a89b10271428ff2 | e0cec4ab456cfe72cb991b1fcb3fa31648ec0db7 | /xml_file.py | 013dedd44fba1b0bfa5d07b12c415625f9de3a3e | [
"MIT"
] | permissive | Infosys/High-Availability-Hadoop | e9c3fe4569b885ad7c62e3ac8c940b2f61fc72cc | c3284cb1601ad4981eb36d8d4f59189e89cec223 | refs/heads/master | 2021-01-10T17:51:28.627352 | 2015-11-26T09:43:35 | 2015-11-26T09:43:35 | 46,915,340 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | # The MIT License (MIT)
# Copyright (c) 2015 Infosys Ltd
# 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 restriction, including without limitation the rights
# to use, copy, modify,... | [
"sreeram_v@infosys.com"
] | sreeram_v@infosys.com |
f498abf0fe0f198e9b09160f1d573facb6333344 | f7c5906c63842c7f4f57b8cbc0d7329f73c1e727 | /home/migrations/0014_contant_email.py | cd6cfb35ea7569a67a4e16ca381a9bab7d8496a1 | [] | no_license | Munyu-Dennis/tanuri | 2b50c6c9bed4d1c3e39f69be4b48c61d01fba46f | e426d58159ca269566bc85e378c794169ac1d937 | refs/heads/master | 2023-01-06T08:15:42.463009 | 2020-11-02T12:59:33 | 2020-11-02T12:59:33 | 293,053,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 3.0 on 2020-09-05 01:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0013_auto_20200905_0410'),
]
operations = [
migrations.AddField(
model_name='contant',
name='email',
... | [
"ituromunyu@gmail.com"
] | ituromunyu@gmail.com |
a31b2e898704f88a491e8a27830377fb48f17ce9 | 7a598111f1ff0008189755288e9e248c929554be | /currency_converter.py | 524efcd4170de5c537164a0eea1dd9803ffb2b2c | [] | no_license | Kamou01/lottery-project | dca1f2b784ec310978886062bad475a86f143a55 | 4373bbb74150cfa754dae07e7593309959155172 | refs/heads/main | 2023-06-02T21:05:07.909907 | 2021-06-21T14:37:39 | 2021-06-21T14:37:39 | 378,948,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from tkinter import *
from tkinter import messagebox
from tkinter.ttk import Combobox
import requests
from playsound import playsound
gui = Tk()
gui.title("Currency Converter")
gui.geometry("600x600")
gui.config(bg="green")
# playsound('')
def convert_curency():
get_rates = "https://v6.exchangerate-api.com/v6/21... | [
"noreply@github.com"
] | noreply@github.com |
066630c5fc08c6a3f8d7aea2d8c7356f89559c49 | afc677459e46635ceffccf60d1daf50e62694557 | /ACME/utility/isskinny.py | b174ab247419e98a7beff22f70e10383e0180265 | [
"MIT"
] | permissive | mauriziokovacic/ACME | 056b06da4bf66d89087fcfcbe0fd0a2e255d09f3 | 2615b66dd4addfd5c03d9d91a24c7da414294308 | refs/heads/master | 2020-05-23T23:40:06.667416 | 2020-01-10T14:42:01 | 2020-01-10T14:42:01 | 186,997,977 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from .row import *
from .col import *
from .ismatrix import *
def isskinny(*tensors):
"""
Returns whether or not the input tensor is a skinny matrix
A fat matrix is a matrix where the number of columns is smaller than the rows
Parameters
----------
*tensors : Tensor
a sequence of ten... | [
"maurizio.kovacic@gmail.com"
] | maurizio.kovacic@gmail.com |
b548144cbea5bfa89e439e9720a806f5b4e08fe8 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts_tests/tests/google/nr/sa5g/Sa5gSmsTest.py | 011062f94542ad88a258d6dd33ea3382f50f7a21 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | #!/usr/bin/env python3.4
#
# Copyright 2021 - Google
#
# 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 appl... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
4b4d8c198f9124069450c7c6ed0d3b6afe4053b0 | d3f2eac527a4690726497e1d1f083d6ed456b7df | /include/decoder_conv.py | 0d96a8c3b0d66469e38c26846b745ec52516f365 | [
"Apache-2.0"
] | permissive | NebiyouTen/Robustness-CS | 36056c2191572fa1b8d02eca639e6b9f29001cc5 | 8ef26795ffd02824a2cf0f9496887554484a8b08 | refs/heads/master | 2023-06-22T09:24:06.833516 | 2021-07-12T21:29:24 | 2021-07-12T21:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,571 | py | import torch
import torch.nn as nn
import numpy as np
from copy import copy
def add_module(self, module):
self.add_module(str(len(self) + 1), module)
torch.nn.Module.add = add_module
class conv_model(nn.Module):
def __init__(self, num_layers, strides, num_channels, num_output_channels, hidden_size, upsample_... | [
"m.zalbagi@gmail.com"
] | m.zalbagi@gmail.com |
0d33a0cde606a79fea98f163c4e4d8d0e8fb32d9 | a229d1d81e0092a9a4e05ccb8e20d930b1ea550d | /ITERATIVE STATEMENTS & LOOPING exercises/Oct 29 loops challenge/I. 7.py | 3701c7c792a4510b467b8d657b286b0702969bd9 | [] | no_license | poisonivysaur/LOGPROG | bf81c06a92500c239e497f53730fd3f3d8a15d09 | 1798ccd2137225aedbe827660920e4d7f6841747 | refs/heads/master | 2021-08-24T15:23:55.669917 | 2017-12-10T07:08:50 | 2017-12-10T07:08:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | n=int(input("n: "))
copy=n
k=1
while k <= n:
j=1
cnt=1
while j <= n:
if j >= copy:
print(cnt,"",end="")
cnt+=1
else:
print(" ",end="")
j+=1
copy-=1
k+=1
print()
print()
copy=1
k=1
while k <= n:
j=1
cnt... | [
"ivana_lim@dlsu.edu.ph"
] | ivana_lim@dlsu.edu.ph |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.