blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca30c61d529defb6e21e782cba161535f29b1a71 | c538092a01585082ecfdf8845886faea3985f067 | /duckietown_utils/rllib_callbacks.py | 85090a0f568738d85d21c62e0f49e1f851cce444 | [
"MIT"
] | permissive | BoAi01/Duckietown-RL | ef3fdd8205e499b1a68d592fed0934a8c9cba3e7 | 434787a1caf1e5a8ec1d45a30c1ec8eb35ff91ba | refs/heads/master | 2023-04-11T02:15:32.067588 | 2021-04-23T15:30:33 | 2021-04-23T15:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,969 | py | """
RLlib callbacks used to log custrom metrics and a hack to save trajectory data.
"""
__license__ = "MIT"
__copyright__ = "Copyright (c) 2020 András Kalapos"
import logging
import numpy as np
import ray.rllib as rllib
from ray.tune.logger import pretty_print
from ray.tune.result import TRAINING_ITERATION, TIMESTEPS_... | [
"kalapos.andras@gmail.com"
] | kalapos.andras@gmail.com |
4e98cba026ffbfa488d602586ed1fb56b70a4b3e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/117/usersdata/168/26292/submittedfiles/al2.py | 2636de789a2d58357263296f2d1affdab045e0ff | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | from __future__ import division
#INICIE SEU CDIGO AQUI
n=float(input('Digite n'))
n1=int(n)
n2=n-int
print('%.2f'%n1)
print('%.2f'%n2)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
db1dce711edcbeb35ad6b34bcd858cc7e5978198 | ffb6a79786b1446a2f1ed66e44f9d2225b2eb463 | /calculate_hours_google.py | 78a61e392b3adc1db07ab6fb7d5fdc042fc3ca76 | [] | no_license | rborgwald/calculate-hours | eeb15d5c47fca2a81ac2ca1766b96843f2ec57f9 | a58bd7e5237600e99c372fe332290586801ccf39 | refs/heads/master | 2020-03-14T03:51:57.788622 | 2018-05-26T21:55:28 | 2018-05-26T21:55:28 | 131,428,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,430 | py | #!/usr/bin/python
# To set this script up, follow instructions at https://developers.google.com/calendar/quickstart/python
# Also, you might need to run: pip3 install --upgrade google-api-python-client
from __future__ import print_function
from apiclient.discovery import build
from httplib2 import Http
from oauth2cli... | [
"rborgwald2885@gmail.com"
] | rborgwald2885@gmail.com |
857cffe6d12559c9007f01ee6dc6f8354189063e | 93c55344aa8e527600a906e118b7db45f7e3f208 | /10-matplotlib/labels.py | 0913636d7521c7a1e972838cbaa630fa8be5ec32 | [] | no_license | skolakoda/ucimo-data-nauku | 5b6642894967bc5f460b6d509a826bacfc66928c | 0e1530d5654b49706e1a34b38e288cf972ad23fa | refs/heads/master | 2021-09-19T18:33:45.194310 | 2018-07-30T13:08:56 | 2018-07-30T13:08:56 | 114,565,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import matplotlib.pyplot as plt
year = [1950, 1951, 1952, 2100]
pop = [2.538, 2.57, 2.62, 10.85]
plt.plot(year, pop)
plt.xlabel('Year')
plt.ylabel('Population')
plt.title('World Population Projections')
plt.show()
| [
"mudroljub@gmail.com"
] | mudroljub@gmail.com |
7246a717056fa85a8c381a15a40d9fff59077e68 | 9e4fc18f267f49e1efeb69f2e95e4c4a00ce8ce6 | /Python Practice/3.1-2_FizzBuzz.py | 8a04e6282dd558c98d016cb2446bc1d3ec41931a | [] | no_license | cookiewho/IPS_Workshop_2020 | 1de50e80abbedafeb48f7907ffca8461d2d2bd4a | 4dda2febb7dfa6645042e8e7a6d1138465ad12cf | refs/heads/master | 2022-12-25T02:59:16.436013 | 2020-10-09T17:31:31 | 2020-10-09T17:31:31 | 284,307,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | '''
Given an integer, print "Fizz" if it's divisible by 3, print "Buzz"
if divisible by 5, "FizzBuzz" if divisible by both 3 & 5, "Not fizz
or buzz" otherwise (without the quotes).
'''
a = int(input())
s = ""
if a%3 == 0:
s+=("Fizz")
if a % 5 == 0:
s+=("Buzz")
if len(s) > 0:
print (s)
else:
print("Not fizz o... | [
"dinkwho@gmail.com"
] | dinkwho@gmail.com |
9ed2a579f1ddb1d50c17e4406c162616c1ca964f | 7162dbf9809c05c67e6d0569f1644a236ee1049b | /Exercises/Daxita/Class & Object/count_object.py | cca1fb1f815f7ec9dbe48d6e8185dd2f4985b7e1 | [] | no_license | yogi-katewa/Core-Python-Training | acc20bf388b2ee664209926cbddda5db86d26682 | a30e62092f5455531a0ee8d18168f5ba39968a56 | refs/heads/master | 2021-01-13T16:36:27.151828 | 2017-01-18T07:39:38 | 2017-01-18T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class Foo(object):
counter = 0
def __call__(self):
Foo.counter += 1
return (Foo.counter)
foo = Foo()
a=foo()
a=foo()
a=foo()
print("Object Called : ",a) | [
"daxita2013@gmail.com"
] | daxita2013@gmail.com |
1872c2b02787510ea089a882647d262201237e43 | e7f708af4b599ec6763e0d3b311e2cb47cc155d8 | /payments/admin.py | f69953885eba02d24436b82c8477468a8e0d0cfd | [] | no_license | dmontoya1/tu-licencia | d48bc8779d8cda50c7a382cb1c14e2ae3668ebc8 | d436d665ba797d7b90fcdcc58bcef3e79b917682 | refs/heads/master | 2023-05-14T16:38:52.408066 | 2020-06-08T20:24:39 | 2020-06-08T20:24:39 | 371,433,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# from .models import Invoice
# class InvoiceAdmin(admin.ModelAdmin):
# list_display = ('__unicode__', 'user', 'release_date', 'is_discharged', 'payment_status')
# readonly_fields = ('release_date', )
# sea... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
015f94220909b436deb31345160eebc80132c586 | 3ab1f37b4372d0796c85ef24343dd8c03accb6ef | /OddEvenLinkedList.py | 5004fdb3d7cf1ccbd577d641dc11c9e1fe6a488c | [] | no_license | Blossomyyh/leetcode | 2be6a99534801fc59fe9551317ca49c3704b1c3d | 38615779eb43d147587467e11dc22761ac0726cb | refs/heads/master | 2023-01-22T16:56:26.624677 | 2020-11-20T13:47:43 | 2020-11-20T13:47:43 | 266,845,278 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
if not head or head.next == None: return head
odd, even, second = head, head.next, head.... | [
"blossomyyh@163.com"
] | blossomyyh@163.com |
3ddfc499ca5c451fb47020aa62fc4830e9025699 | 51de2f4d75b645827a466a92160c69f5a5aa27cb | /Code/intermediatary codes/code_cross_correlation.py | ab14fb2f3784959e8895d9c99c1ef290da158cb4 | [] | no_license | agc-shubham/speechAnalysisAndSynthesis | 399e58ff71443abdb3233278a96532aa10a9098b | f308d9f9d23d2a6097fe31126d535ad1d25d7b97 | refs/heads/master | 2020-07-30T07:23:20.058568 | 2019-09-22T12:41:59 | 2019-09-22T12:41:59 | 210,133,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | import numpy as np
from scipy.signal import butter, lfilter, freqz
from matplotlib import pyplot as plt
from scipy.io import wavfile
from scipy.fftpack import fft,fftfreq
from matplotlib import pyplot as plt
import plotly.plotly as py
import peakutils
x=np.array([1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5])
y=... | [
"agc19shubham@gmail.com"
] | agc19shubham@gmail.com |
aed1f7d9aa11a49f7656442d5d5040bfb80df6b3 | 262655fd203a91cd533f8ecec893f821de8b4c84 | /src/features/build_features.py | bb82e8218c19928ffb8372d7d40a17c3661164f8 | [
"MIT"
] | permissive | GeorgesAlkhouri/bikeshare | a73bcddf30a8f68f4db4a0fe3368c81e3bf70d4c | 8dfd83bc062d2c557d5d14f303b3377de9df4353 | refs/heads/master | 2020-11-25T00:06:15.590043 | 2020-01-08T12:43:39 | 2020-01-08T12:43:39 | 228,397,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | def cast_column_type(df):
category_features = ['season', 'holiday', 'mnth', 'hr',
'weekday', 'workingday', 'weathersit']
df[category_features] = df[category_features].astype('category')
return df
def drop_columns(df):
df = df.drop(columns=['dteday', 'instant'])
return df
... | [
"alkhouri@informatik.uni-leipzig.de"
] | alkhouri@informatik.uni-leipzig.de |
d50572d4090c707e69adf085200b9658c585e677 | d9803bd42d8edc8fd089b89588fdd2033cfb3fb0 | /GISJob/items.py | f6727c91947caf098c54d563ca06722592793253 | [] | no_license | pengshaowei/GISJob | d718a66a1dacbc5dbac1084594cb572205d0d457 | 8d94f1fe25d41880d643923233b2569dfc7bd91e | refs/heads/master | 2020-03-27T06:15:38.437874 | 2016-06-29T06:43:08 | 2016-06-29T06:43:08 | 62,027,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class GisjobItem(scrapy.Item):
url = scrapy.Field()
job = scrapy.Field() #岗位名称
location = scrapy.Field() #工作地点
salary = scrapy.Field() #薪资
ins = scr... | [
"www.pengshaoweip@qq.com"
] | www.pengshaoweip@qq.com |
cd77c134d12365a252030bc1ea72ea577fe53e8a | 91ee7224de43029922f1396592bdf7802fe1e15e | /TrainingPadaX/python-flask-login/app.py | 4ced875ee0672caa28a2879a13fa6d2f89dcd994 | [] | no_license | Soniafish/Soniafish.github.io | 83aefae6b0180fa0e2f39c8dbdcbb799889d7cec | 1174dbd87a7aeae3489cfbd899752c3517ffe20a | refs/heads/master | 2021-09-13T01:13:56.406930 | 2021-08-17T14:04:16 | 2021-08-17T14:04:16 | 72,912,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # !/usr/bin/python2
# coding:utf-8
from flask import Flask
from flask import request
from flask import redirect
from flask import render_template
from flask import session
app=Flask(__name__)
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
@app.route("/")
def index():
if 'username' in session:
... | [
"sonia.lin@kantech.com.tw"
] | sonia.lin@kantech.com.tw |
a9ea1d708b1afa66b221cc8119ea3d36a1a87fed | 75669eaa1f249beefa8f0b23beb1edbe72e6e92f | /function_practice.py | 9e0e5765e9a9fd8abaa21abf8ce619b4a019289f | [] | no_license | faryalj/HighSchoolCamp | 0859d70e6050a1d15185c2adccc7d601057b246d | f30fa2b05982cf8a4fbed71901f6f9bac8d2d25c | refs/heads/master | 2020-06-03T14:22:32.632876 | 2019-06-14T19:21:31 | 2019-06-14T19:21:31 | 191,602,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | """
title: function_practice
author: Faryal
date: 2019-06-12 11:22
"""
#Age_calculator
def age_calculator(current_date, birth_year):
return current_date - birth_year
current_date = int(input("What year is it?"))
birth_year = int(input("When were you born?"))
print(f"You are " + str(current_date - birth_year) + "... | [
"faryalmjabbar@gmail.com"
] | faryalmjabbar@gmail.com |
8d33dfc0c8f80b0f4cd63f78511920a1f5adc4ab | ca0b950d4232132c340c75513809fa4f72c52b0e | /animations/color/base.py | 219dfc936d7e23b3c1ae58d7bc9b918f5d57462e | [
"MIT"
] | permissive | LeLuxNet/GridPy | e32cebd157823669b001499263e1788993c0cf13 | 5f4d02d2b254be1f0682b724a96a99009a415308 | refs/heads/master | 2022-12-21T08:20:03.913594 | 2020-09-23T18:31:44 | 2020-09-23T18:31:44 | 260,533,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | class ColorGeneration:
def generate(self):
return None
def generate_list(self, amount):
colors = []
for i in range(amount):
colors.append(self.generate())
return colors
class IndexColorGeneration(ColorGeneration):
def __init__(self, max_index):
self.m... | [
"ginnythecat@lelux.net"
] | ginnythecat@lelux.net |
a0ab444893ad20b5e907d2942d6ab465c68323c3 | 053441eba6ecf082d48f76807ad097e89d31b94c | /paddlevideo/modeling/losses/cross_entropy_loss.py | 325ee35b569b2d542b6fe215f04f4338fb9adab6 | [
"Apache-2.0"
] | permissive | shippingwang/PaddleVideo | 9cf4ff7c8b7f9c60fe6309c4a719698bfdba00b5 | 48e6bb5f67ad44f7ef3c5cd683e8e7b8c50f0918 | refs/heads/main | 2023-03-17T10:38:39.257643 | 2020-12-01T06:19:41 | 2020-12-01T06:19:41 | 312,490,608 | 1 | 0 | Apache-2.0 | 2020-11-13T06:21:55 | 2020-11-13T06:21:54 | null | UTF-8 | Python | false | false | 1,293 | py | # Copyright (c) 2020 PaddlePaddle 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 applic... | [
"shipeng1108@163.com"
] | shipeng1108@163.com |
1a00af2d94457d9d773df82a3718628355f690e3 | 51c4288732642aa75b173c9efa25c02968aa5406 | /src/book/forms.py | 8ea6d15f3dfed41737d6182ea82ba16aa914c020 | [] | no_license | EvgPol19/Book | ae16276d5d41cf50ab9038b93a308c4be84c8280 | beeffe3c2fd55920239003b28b5b63cd1ad9d924 | refs/heads/main | 2023-07-17T01:29:32.698177 | 2021-08-17T07:13:29 | 2021-08-17T07:13:29 | 369,847,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django import forms
from . import models
class CreateBook(forms.ModelForm):
class Meta:
model = models.Book
fields = '__all__'
| [
"elulbako@list.ru"
] | elulbako@list.ru |
a1f30bad67e95432f8ac7e765fea90b9672f1617 | af314ff8e16565cc826e2cf747605da645c631c9 | /Project/urls.py | e86b975ad118c8a2847ef0a280d5899607ac158d | [] | no_license | cutlerwater/django_blog | 8bbcc7a5b51109650dad80eebb32a4ae7c85c690 | 6c7e71f82af59e9bd28c5315428457d678d62aa5 | refs/heads/main | 2023-08-21T17:57:53.783259 | 2021-09-30T20:51:51 | 2021-09-30T20:51:51 | 411,458,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """Project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-based... | [
"cutlerwater2@live.com"
] | cutlerwater2@live.com |
b3955108d2bd467190ee0f8b33b6c7dae412e68a | 7b84f6ace903337a3a5894ea70c564ac6bc324be | /quiz-w7-2-densenet/datasets/download_and_convert_cifar10.py | 9711adc55b485f221751dd287481890fa33cf643 | [] | no_license | zhouzhiqi/Deep-Learning | 8d17359d7f66c46292e89a86f44326310b723052 | 416abd68737cd81e5d8bf15507d59bbd560d1c1a | refs/heads/master | 2021-09-14T16:57:29.203381 | 2018-05-16T08:38:41 | 2018-05-16T08:38:41 | 126,123,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,588 | py | # Copyright 2016 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... | [
"zhouzhiqi1234@outlook.com"
] | zhouzhiqi1234@outlook.com |
b4aec3c94de4ef1c9d0804e58f30aa47e9eeb51c | 22c6303398fe9d3a01ea2e2dee56a7c51ffb8106 | /src/StyleVarPane.py | caec6f9ba7540e07c20e8041d2bf85d34f9bbcfc | [] | no_license | prrg/BEE2.4 | 07c3d96b58bda8d7b4383d46778d01bcf970a5e4 | ffd30eb140e04db781229b27992aaed4385b438b | refs/heads/master | 2020-04-01T18:45:12.625402 | 2018-10-04T05:28:13 | 2018-10-04T05:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,859 | py | from tkinter import *
from tk_tools import TK_ROOT
from tkinter import ttk
from collections import namedtuple
import functools
import operator
import img as png
from BEE2_config import GEN_OPTS
from SubPane import SubPane
import packageLoader
import tooltip
import utils
import itemconfig
from typing import Union
s... | [
"spencerb21@live.com"
] | spencerb21@live.com |
a305c45934f4cccda3f2ff9cda3ac07315b86ddb | a1f00428cf522c8e51ff05101ab2a1024cf04248 | /python/matrix/matrix.py | 55438e97e1b764bbae2543bc8f394c06bc7f247d | [] | no_license | siddharthisaiah/exercism | c994132d9f59fa5c6b11cb28c10806aed41a1c30 | b4ce66543fdc70073916028c6bdd6f70ae1cc7a2 | refs/heads/master | 2023-01-05T23:35:48.341670 | 2019-07-09T17:42:52 | 2019-07-09T17:42:52 | 186,884,684 | 1 | 0 | null | 2023-01-05T02:14:45 | 2019-05-15T18:47:35 | Python | UTF-8 | Python | false | false | 298 | py | class Matrix(object):
def __init__(self, matrix_string):
self.matrix = [[int(n) for n in row.split()] for row in matrix_string.split("\n")]
def row(self, index):
return self.matrix[index-1]
def column(self, index):
return [row[index-1] for row in self.matrix]
| [
"siddharthisaiah@gmail.com"
] | siddharthisaiah@gmail.com |
b2fd156cbb5144ba90084307461364a83221c543 | 8feb451342837ba72967d06f339536e9b2dd6213 | /2018/Python/puzzle45_46.py | 17e5d209be95a13826f588c01ddda9b6d4684827 | [] | no_license | csvila/AdventOfCode | bcecfcfd404d10ee36b9f0c6a82561154cc2958d | 807ffba369b7a64167851e76a7edd632c7150e06 | refs/heads/master | 2020-04-16T06:06:17.851824 | 2019-12-10T16:18:15 | 2019-12-10T16:18:15 | 165,333,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | import re
def get_bots(values):
r = re.compile("pos=<([0-9-]+),([0-9-]+),([0-9-]+)>, r=([0-9]+)")
bots = []
for cur in values:
if cur.startswith("#"):
print("# Note: " + cur)
else:
m = r.search(cur)
if m is None:
print(cur)
bo... | [
"cesar.vilarim@hotmail.com"
] | cesar.vilarim@hotmail.com |
4e69526e2f22b9e6ead9e0673d893c9460e3b570 | fc1cc515a65e844705cc6262a70cd0a12ce1d1df | /math/0x00-linear_algebra/2-size_me_please.py | f9800d2c3bc375d8df09bd35e4d0cfd25402da82 | [] | no_license | yulyzulu/holbertonschool-machine_learning | 4f379a4d58da201e8125bd8d74e3c9a4dfcf8a57 | d078d9c1c5bd96730a08d52e4520eb380467fb48 | refs/heads/master | 2022-12-26T12:01:25.345332 | 2020-10-03T03:19:05 | 2020-10-03T03:19:05 | 279,392,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | #!/usr/bin/env python3
""" Module to execute function """
def matrix_shape(matrix):
"""Function that calculates the shape of a matrix"""
shape = []
shape.append(len(matrix))
while type(matrix[0]) == list:
matrix = matrix[0]
shape.append(len(matrix))
return shape
| [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
9ca06377d8cd9fbe39082bfb3d7983c1eb7ddd2c | 6b27c39edc10b1353104043b7a523f4981c99ef2 | /pytype/tools/merge_pyi/test_data/stars.pep484.py | 56d6529efedb9cc54e761bdb5952bafc66cde7b3 | [
"Apache-2.0",
"MIT"
] | permissive | google/pytype | ad0ff0b6c1083b4f0a1af1747869d422f2b5f4d8 | bda0b9547af9a084bb2bd1427f58dcde968e48b5 | refs/heads/main | 2023-08-26T17:52:23.546035 | 2023-08-24T22:48:00 | 2023-08-24T22:48:00 | 32,483,713 | 4,595 | 367 | NOASSERTION | 2023-09-13T04:40:45 | 2015-03-18T20:52:08 | Python | UTF-8 | Python | false | false | 288 | py | def f1(*a):
pass
def f2(**a):
pass
def f3(a, *b):
pass
def f4(a, **b):
pass
## arg with default after *args is valid python3, not python2
def f5(*a, b=1):
pass
def f6(*a, b=1, **c):
pass
def f7(x=1, *a, b=1, **c):
pass
def f8(#asd
*a):
pass
| [
"rechen@google.com"
] | rechen@google.com |
9b1c4cf2eb86462a040f6f3f3d50654cb43b7469 | df0849fb516ae123a8031f5830fe55b5341391df | /test/test_binaryreply.py | abf58df752c5c35f5a6ed4981f49cee6659c3cce | [
"Apache-2.0"
] | permissive | duncanmcbryde/zaber.serial | e5380eafcb0ca7ab8817118a28999edaf06f8265 | 3edeec2703f6266fe13d300b61c46782171e1287 | refs/heads/master | 2016-08-11T09:44:37.235121 | 2015-12-01T13:29:40 | 2015-12-01T13:29:40 | 47,191,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import pytest
from zaber.serial import BinaryReply
def test_init():
br = BinaryReply([1, 56, 10502])
assert(br.device_number == 1)
assert(br.command_number == 56)
assert(br.data == 10502)
def test_init_with_message_id():
br = BinaryReply([2, 44, 21231, 12])
assert(br.device_number == 2)
a... | [
"duncan.mcbryde@ttp.com"
] | duncan.mcbryde@ttp.com |
862ba01f331fad15fbd5638250d0613e8136b898 | 606d56d4dfe3eff3f34caa43091b725db06b885d | /src/productos/views.py | 95fdb6b404d32c98069129b37218835847c74b01 | [
"MIT",
"Apache-2.0"
] | permissive | Sublime441/inventario-api | 8b6a45fdba2e7076750a9d1b06630fbe7e8af93b | e084b18908f65a481fcca0cbd44a9c2e7236e18a | refs/heads/master | 2021-09-05T13:49:18.583407 | 2017-10-20T11:21:46 | 2017-10-20T11:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from rest_framework import viewsets
from .models import Producto
from .models import Categoria
from .serializers import CategoriaSerializer
from .serializers import ProductoSerializer
class CategoriaVista(viewsets.ModelViewSet):
queryset = Categoria.objects.all()
serializer_class = CategoriaSerializer
class ... | [
"cercadocarlos@gmail.com"
] | cercadocarlos@gmail.com |
acda56ee78a8132344cc053561886c569a3f64fd | 61fa09e50752022ee57553f1af4dd84b201b4aff | /0x00-python-hello_world/6-concat.py | 7c492b9d7fa2f0c5c7c0cfa14012dcdd748e2c0c | [] | no_license | ellio-hub/holbertonschool-higher_level_programming | 184880bbb99c59d1d64d8f650d4addbec41321db | 96ddcd43889b9df5e8497669e14ef85e9494cbb0 | refs/heads/master | 2023-06-18T20:22:57.871905 | 2021-07-14T14:08:20 | 2021-07-14T14:08:20 | 270,609,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | #!/usr/bin/python3
str1 = "Holberton"
str2 = "School"
str1 = str1 + ' ' + str2
print('Welcome to {}!'.format(str1))
| [
"1421@holbertonschool.com"
] | 1421@holbertonschool.com |
eacef7a09f8311f33624a9f5acb965d5ec877336 | 7d8022661a756f77f715ee4d099fb17cb9da671a | /engine/data_loader.py | 6e92e9d69aff6df248ddbe721e11db9904459073 | [] | no_license | lxj0276/Quant-Util | a7d70d88fc47eb16a08149faefa7b128c01c670e | 2706ecba72a293ee01105ad22508a8d6b20e1394 | refs/heads/master | 2020-04-25T13:40:36.700892 | 2018-10-15T04:35:54 | 2018-10-15T04:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import os
from collections import OrderedDict
import pandas as pd
from engine.cons import *
from engine.utils import get_calendar
from feature.time import TimeRange
from mongoapi.get_data import get_day_trade_data
from redis_cache.rediscache import cache_it_pickle
class pricing_data_loader:
def __init__(self, lo... | [
"zhangzc@pku.edu.cn"
] | zhangzc@pku.edu.cn |
91c02459d4b5116db0e911aeeb9585e3e2c177d5 | 0a7a2941602ceeb819fad3f222a7b3950452d304 | /zeus/controller/BusinessController.py | 4fbd01d8f9a720253ea74c7b4e089b8257d087fb | [
"Apache-2.0"
] | permissive | flyliufu/PythonDemo | 3b9ed3c74181ad7f46257655bba03c389d870eec | 9f31998a53e94b4036c6e96d80748945845b82b6 | refs/heads/master | 2022-04-26T10:54:42.543061 | 2022-03-11T07:51:29 | 2022-03-11T07:51:29 | 147,266,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | from zeus.util.MsgUtil import MsgUtil
# 微信服务器推送消息是xml的,根据利用ElementTree来解析出的不同xml内容返回不同的回复信息,就实现了基本的自动回复功能了,也可以按照需求用其他的XML解析方法
import xml.etree.ElementTree as et
import logging
logger = logging.getLogger("django.request")
class BusinessController:
def auto_reply(self, body):
xml_data = et.fromstring(bod... | [
"flyliufu@sina.com"
] | flyliufu@sina.com |
7c38dda3f18562b3df7eecb78e86f2712b212369 | b5d72e68c3976766a7adfd1fa33f778a5268c84a | /Regex/ex1.py | 35628e29ded201a4fa05a049420dc39525ee29d4 | [] | no_license | LizinczykKarolina/Python | 4a2fb0e7fb130c86239b2666fb346bf35a8e655b | 7f4a3a9cba15fd2b4c7a104667461b3c49f8b757 | refs/heads/master | 2021-06-18T21:43:52.983557 | 2017-06-17T21:24:01 | 2017-06-17T21:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #1. Write a Python program to check that a string contains only a certain set of characters (in this case a-z, A-Z and 0-9).
import re
email_address = 'wieczorek.karolina1@o2.pl'
searchObj = re.search(r'[a-zA-Z0-9.]', email_address, re.M | re.I)
if searchObj:
print True
else:
print False
"sxdupa1" -match ... | [
"wieczorek.karolina1@o2.pl"
] | wieczorek.karolina1@o2.pl |
f3ae22f885b78d753d9dbc851fea38a065e80d88 | 9fc768c541145c1996f2bdb8a5d62d523f24215f | /code/HomeWork/ch5/H_5_4.py | a92df699ef2667ea9bcb8c973b7297b29db61309 | [] | no_license | jumbokh/pyclass | 3b624101a8e43361458130047b87865852f72734 | bf2d5bcca4fff87cb695c8cec17fa2b1bbdf2ce5 | refs/heads/master | 2022-12-25T12:15:38.262468 | 2020-09-26T09:08:46 | 2020-09-26T09:08:46 | 283,708,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # H_5_4.py 功能:輸入數字後判斷是否為11的倍數
num_even = 0 # 儲存偶數位數字暫存
num_odd = 0 # 儲存奇數位數字暫存
number = str(input('請輸入數字 : '))
l = len(number) # 判斷輸入數字之長度
x = int(number) # 轉換成數值型態
for n in range(l,0,-1):
y = x//(10**(n-1)) # 計算奇偶位數字
x = x - (y*(10**(n-1)))
if n%2 == 0: # 判斷若是偶數位數字則儲存在偶數位暫存,反之存奇數位暫存
num_even = nu... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
672a4e70022ac965ccb9167e465218b4afb9d018 | 3efc0c578c5136d83eeab69dc3e5fd565de05c31 | /Assignment 3/P1_Baseline/p1/baseline.py | 5e4ea735ca9db4350f25a51ac22f38f53193240e | [] | no_license | Rshcaroline/UCSD-CSE256-Statistical-NLP | 34ccc690ec3e7f1e7e41a176a46350e8bddbeaf6 | 57d3f2081d7aa46d44b096669ca2d6c9e242c5c2 | refs/heads/master | 2023-04-01T14:27:20.390827 | 2019-12-13T06:36:07 | 2019-12-13T06:36:07 | 213,223,407 | 6 | 5 | null | 2023-03-25T00:11:32 | 2019-10-06T18:40:57 | JavaScript | UTF-8 | Python | false | false | 2,212 | py | '''
@Author:
@Date: 2019-11-01 19:48:16
@LastEditors: Shihan Ran
@LastEditTime: 2019-11-01 20:41:28
@Email: rshcaroline@gmail.com
@Software: VSCode
@License: Copyright(C), UCSD
@Description:
'''
import sys
from collections import defaultdict
import math
def read_counts(counts_file, word_tag, word_dict, uni_tag):
... | [
"RshCaroline@163.com"
] | RshCaroline@163.com |
932a26342f04be288d55af4acb34cfe86fc29623 | 5258f5997ad9d2d75a5a0b950abb41b122c2a2d2 | /source/Mlos.Python/mlos/Optimizers/ExperimentDesigner/UtilityFunctionOptimizers/UtilityFunctionOptimizerFactory.py | 07c4da47b756ec8ca0b90a0a4dc3a21b35801b91 | [
"MIT",
"GPL-2.0-only"
] | permissive | amueller/MLOS | 49c0d361aeaffabce20d5b31ab44ad180d8dd13d | 8f79bfa27a6fd09c3e00187bae8d7177eaf55247 | refs/heads/main | 2023-07-07T23:46:03.028439 | 2021-06-14T20:09:09 | 2021-06-14T20:09:09 | 290,320,526 | 4 | 1 | MIT | 2020-11-06T01:12:17 | 2020-08-25T20:49:13 | Python | UTF-8 | Python | false | false | 2,789 | py | #
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
from mlos.Optimizers.ExperimentDesigner.UtilityFunctions.UtilityFunction import UtilityFunction
from mlos.Optimizers.ExperimentDesigner.UtilityFunctionOptimizers.GlowWormSwarmOptimizer import GlowWormSwarmOptimizer, glow_worm_swarm_optimi... | [
"noreply@github.com"
] | amueller.noreply@github.com |
d13484b16678129c6aaeb00750fcd04de43e2ed3 | 0228a6aefd7dcedb16bb6baf2152bb893b0a7c4e | /externalapiproject/settings.py | 6441bbd7eac8a52a31de11e8614fec179ed1ce49 | [] | no_license | balaji2245/django_project_externalapi | 7cf7d950cbdfb7c396f194f5b2df4d7390a58e56 | 4fdecbfd7f2a6863c77ab9c98348d16f5a199f4c | refs/heads/master | 2023-08-30T09:58:25.551883 | 2021-11-15T19:45:21 | 2021-11-15T19:45:21 | 428,282,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,019 | py | """
Django settings for externalapiproject project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
im... | [
"balajidavangavem@gmail.com"
] | balajidavangavem@gmail.com |
66c913bf07d18f0b0788b67fdd65aaa861d80416 | 771856a4f24b8a4ff0cb627a316e825f6364db5f | /04_conditional_statements/ifelifelse.py | c977dd4c830f8f79818f21cc6daf6c9f7f6ec492 | [] | no_license | rafaelgramoschi/pythontuts | f3cd8df91cdfda40910c3946f9018cdf29659b4a | b7b3145658e9b38f30d7579b0b031e4abdc916ac | refs/heads/main | 2023-02-06T11:47:36.488737 | 2021-01-02T15:32:42 | 2021-01-02T15:32:42 | 326,212,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | """
if-elif-else
"""
zero = 0;
one = 1;
if one > zero:
#Indentation is important!
#it makes python understand that if something happens
#it must follow the indented code,
print("one is greater than 0")
elif one == zero:
print("number are the same")
else
print("one is less than 0")
str = 'str'
if str is '... | [
"gramoschi.rafael@gmail.com"
] | gramoschi.rafael@gmail.com |
11a9a10ba5f3266f862981818c7a0334b636af87 | 294dd0d3534d95479348d0fc7c03f1dd0f4c1e42 | /RemitaBillingService/EncryptionConfig.py | 8fd57202a8bcc2dabed8e0b5ed1ce406915628e0 | [] | no_license | RemitaNet/billing-gateway-sdk-python | 7827c9a16fd81ce48ca0206c350aba762c2a5cfe | d051f24cdce99b5f3c4acf96d19fcbd5d3da2aa8 | refs/heads/master | 2023-02-22T23:23:53.064169 | 2023-02-20T20:30:28 | 2023-02-20T20:30:28 | 207,595,239 | 4 | 1 | null | 2023-09-12T13:49:35 | 2019-09-10T15:25:56 | Python | UTF-8 | Python | false | false | 1,320 | py | import hashlib
from Responses.BaseResponse import BaseResponse
class EncryptionConfig(object):
empty_credential_msg: str
empty_credential_code: str
def sha512(input):
hashed_input = hashlib.sha512(input.encode('utf-8'))
hex_dig = hashed_input.hexdigest()
return hex_dig
def c... | [
"ilesanmi@Systemspecs.com.ng"
] | ilesanmi@Systemspecs.com.ng |
6e954ce6187d1273920eca965ab0db30375857bf | 60f88b58500abed3e01b67dd519506b6e0e6e491 | /PasswordKeeper/PasswordKeeper/PasswordKeeper/wsgi.py | d6dbb1e0e6e4378a0fab8d42ab8ac4e44886db9a | [] | no_license | gouravgarg48/PasswordKeeper | 61008339982192a766c50597cdb28f88c41f5d4d | 439770004100ca32e9cb494fb177d5c642906565 | refs/heads/master | 2022-12-09T08:15:38.592805 | 2020-08-25T13:21:28 | 2020-08-25T13:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for PasswordKeeper project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"gauravgarg4000@gmail.com"
] | gauravgarg4000@gmail.com |
7903bebf11136419ad1380585a837c763047ba50 | 16f9e5c65d309bb3d3f0da90bd2a3ffa6dfbb922 | /labs/lab3/mysiteS20/myapp/migrations/0004_auto_20200623_1522.py | 293c9fe8f3a20fcc0f30ae5b71d0a787257fff65 | [] | no_license | datqlam/internet-app-distributed-sys | e8ffaa8eeec0a808d07f8f3d3ba9095c0ae63189 | 3e5fe41282023b8678710d7805765b00cecb2b38 | refs/heads/master | 2022-12-10T16:29:45.596137 | 2020-08-20T21:08:22 | 2020-08-20T21:08:22 | 268,125,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Generated by Django 3.0.7 on 2020-06-23 19:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0003_auto_20200619_1833'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='course',
... | [
"lqdat2n@gmail.com"
] | lqdat2n@gmail.com |
6eeb30afedb9faf5956630200d67199cef30815d | 2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703 | /BGP3D/Chapter11/WorldClass_00.py | 2cd366287c64b1790280d87dd425c04951cc0271 | [] | no_license | kaz101/panda-book | 0fa273cc2df5849507ecc949b4dde626241ffa5e | 859a759c769d9c2db0d11140b0d04506611c2b7b | refs/heads/master | 2022-12-19T09:36:05.794731 | 2020-09-16T19:04:10 | 2020-09-16T19:04:10 | 295,784,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | ''' World Class
This class is the launching point for the game.
This is the file that needs to run to start the game,
and this class creates all the pieces of the game.
'''
import direct.directbase.DirectStart
from direct.filter.CommonFilters import CommonFilters
from HUDClass_00 import HUD
from RaceClass_0... | [
"kaz101130@gmail.com"
] | kaz101130@gmail.com |
37142c60c2f8e5880e54185a549c7cc27bbc1105 | 34fe072f9dc15728f3d8be00a1654499bfbc9c5b | /check_json | ebc96db0236ce43d641bb148fb12e75b9d664e78 | [] | no_license | mmaschenk/docker-nagios-full | 13b5c28cb5a44d8b69c9f86516549251d5626121 | 5f8d8ea54132ebd2cd49ec6ff1255f924694d820 | refs/heads/master | 2023-01-05T11:19:46.511130 | 2020-11-06T14:15:39 | 2020-11-06T14:15:39 | 309,425,110 | 0 | 0 | null | 2020-11-06T14:15:41 | 2020-11-02T16:13:42 | Shell | UTF-8 | Python | false | false | 2,265 | #! /usr/bin/env python
"""
Nagios plugin to check a value returned from a uri in json format.
Copyright (c) 2009 Peter Kropf. All rights reserved.
Example:
Compare the "hostname" field in the json structure returned from
http://store.example.com/hostname.py against a known value.
./check_json hostname buenosai... | [
"m.m.a.schenk@tudelft.nl"
] | m.m.a.schenk@tudelft.nl | |
bc65a3921d29d115fa2d05902808f18552cb33e5 | 94efbd46bec43b07f29f8718b378834f28cfa18c | /env/Lib/site-packages/dotenv/__init__.py | 1867868f719e0edd17ad0cc144fa680c9e273bf4 | [
"Apache-2.0"
] | permissive | BiceCold/Citadel_of_Ricks | 2a9d1fc45fe36098dc61f2e00c55cedfd1dd22b7 | 72f1a447accc2c11d1fa1cbf3c3342913913e50e | refs/heads/master | 2021-06-15T17:52:35.999378 | 2019-06-15T18:29:55 | 2019-06-15T18:29:55 | 129,338,382 | 2 | 0 | Apache-2.0 | 2021-02-26T02:29:49 | 2018-04-13T02:45:19 | Python | UTF-8 | Python | false | false | 1,276 | py | from typing import Any, Optional
from .main import load_dotenv, get_key, set_key, unset_key, find_dotenv, dotenv_values
def load_ipython_extension(ipython):
# type: (Any) -> None
from .ipython import load_ipython_extension
load_ipython_extension(ipython)
def get_cli_string(path=None, action=None, key=No... | [
"bice.jeremy@outlook.com"
] | bice.jeremy@outlook.com |
f4d4ad5fffdbd3200bfabf4936fb900e12376a50 | ec2075fc61f622a0ddf11744d67222d10d7582ea | /pickle.py | f918870478bc477f88030a65c7a293ee31f3a522 | [] | no_license | Aravinthanucep/Python-program | f3b2f4df8b6f53d049db062852af7a5ddb435546 | 3502fdf2755ade6c735f8478e5c31730688f68a7 | refs/heads/master | 2021-05-08T14:56:25.438546 | 2018-02-11T17:08:19 | 2018-02-11T17:08:19 | 120,101,252 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #-------------------------------------------------------------------------------
# Name: module2
# Purpose:
#
# Author: Deepa
#
# Created: 19/01/2018
# Copyright: (c) Deepa 2018
# Licence: <your licence>
#-------------------------------------------------------------------------------
d... | [
"noreply@github.com"
] | Aravinthanucep.noreply@github.com |
748bd141851012ae41c1d7935ee35c81843e1b35 | 22dc5935a022e23d053cca14357b5b0732d96a63 | /DataScie/tuts/pd_intro.py | 18b715277127112b19a636a33662be70d361bcb7 | [] | no_license | deaninous/playground | 3aa548db543e2e1620793dea15d1c934967c6976 | fe43d0e97a188b3f368114c0a295b34ded396760 | refs/heads/master | 2021-01-02T23:03:46.557197 | 2017-08-09T00:06:05 | 2017-08-09T00:06:05 | 99,456,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,261 | py | from pandas import Series, DataFrame
import numpy as np
stock = Series([4, 3, 8, 9])
#stock
#Out[12]:
#0 4
#1 3
#2 8
#3 9
#dtype: int64
# stock.values
# DataFrame, think csv
# pandas, think linear values
# numpy, think spreadsheets
data = {'state': ['Ohio', 'Ohio', 'Ohio', 'Nevada', 'Nevada'],
'year': ... | [
"ouedinous20@gmail.com"
] | ouedinous20@gmail.com |
bb4e4bd748283b521eb43cbfc3512f14cc5a6fd9 | 8d39bfe6bbe1f30077b69d92745eac067d4619c4 | /parserInvoke-Mimikatz.py | f42deb1e197310e3173d734c97d8181d347b75b9 | [] | no_license | Ne0nd0g/scripts | f987f416070dfd60425ce83598cc02ece191bc81 | 5b8f989c88860bbe663a81c489c3baff82b81ee9 | refs/heads/master | 2021-01-17T12:21:56.836062 | 2018-12-07T16:41:01 | 2018-12-07T16:41:01 | 30,088,779 | 20 | 11 | null | null | null | null | UTF-8 | Python | false | false | 5,337 | py | #!/usr/bin/python
#!/usr/bin/env python
"""Parse files generated by piped output from Invoke-Mimikatz.ps1"""
import logging
import argparse
import sys
import os
import readline
#################################################
# Variables #
########################################... | [
"rcvt@sses.net"
] | rcvt@sses.net |
cdccf29b8a2c7760740db2afacb752d2876105f2 | f8bc86843e8904404940fb37d1b153e8aa28e180 | /crop_microstructure.py | 0eef73b0e1399d28ec813e90d7913b8e16356ebd | [] | no_license | pkarira/Cascade | 621ad8ee20825ca1cd77bbebd7e9be1917e49ab0 | d32d77f78131e158092225d9df16ef6ef161137d | refs/heads/master | 2020-04-26T09:31:53.286493 | 2019-04-09T11:36:14 | 2019-04-09T11:36:14 | 173,458,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import glob
import numpy as np
from skimage.io import imread, imsave
import os
def quad_crop(image, w=224):
""" crop out four panels from the center of the image """
labels = np.array([['UL', 'UR'], ['LL', 'LR']])
center = (np.array(image.shape) / 2).astype(int)
x, y = center
crops = []
for i... | [
"pulkit5208@gmail.com"
] | pulkit5208@gmail.com |
cf2b8cbadeba4fa6168e63817f67c1570428e5b9 | 0ab04927cda34b384044d5d827a0043a5db0105d | /projects/data science/college_admission_poly.py | 0c7b806c3e7c229db7fb0ac731bdd607299acce1 | [] | no_license | anishd513/projects | 49b6a03b5d60db71dde0bdb3a9c99d37e3afa752 | 6c85b7c7e2b9ed6b71e8244204ec355bb26edbd9 | refs/heads/main | 2023-06-08T23:14:32.861369 | 2021-06-29T15:20:28 | 2021-06-29T15:20:28 | 305,082,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 16 20:34:45 2020
@author: Admin
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
dataset=pd.read_csv("Admission_Predict.csv")
x=dataset.iloc[:,1:-1].values
y=dataset.iloc[:,-1:].values
from sklearn.model_selection import train_test_sp... | [
"noreply@github.com"
] | anishd513.noreply@github.com |
94a6049bd0b29f745ad759a26578f79218888ef5 | b25f9a671d57616d359ed1885fc7c96009af0984 | /uuv_control/uuv_trajectory_control/src/uuv_control_interfaces/dp_pid_controller_base.py | af563bdb5a244caf02552b74f7d33d880de65750 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | AbdelazizAssem/VAUV-simulator | 8bb55c6e59307efdf2d27dd8dead348cb354e486 | 1ef4078de239a05fbdb050cc64e735897a31b3b7 | refs/heads/main | 2023-04-03T23:45:36.803280 | 2021-04-11T19:02:27 | 2021-04-11T19:02:27 | 356,694,933 | 0 | 0 | Apache-2.0 | 2021-04-10T21:07:56 | 2021-04-10T21:07:56 | null | UTF-8 | Python | false | false | 5,539 | py | # Copyright (c) 2020 The Plankton Authors.
# All rights reserved.
#
# This source code is derived from UUV Simulator
# (https://github.com/uuvsimulator/uuv_simulator)
# Copyright (c) 2016-2019 The UUV Simulator Authors
# licensed under the Apache license, Version 2.0
# cf. 3rd-party-licenses.txt file in the root direct... | [
"engibrahimhabib@gmail.com"
] | engibrahimhabib@gmail.com |
94d174ed0e5896823a43d4869acc725f51bd70f3 | e306eb3fc110dee0e3f5e68eb375c55704b3642f | /personel_portfolio/urls.py | 3a0c2409023554b1730c7ac42d3244152c9166dd | [] | no_license | Yeet2006/personel-potfolio | 446cc22f7a678b64aa6a01267878d9ebff5c41e3 | 9ecbfc58504654cb043aedffddc44e3b13cd6db9 | refs/heads/main | 2023-01-28T11:42:27.880185 | 2020-12-14T13:48:38 | 2020-12-14T13:48:38 | 321,355,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | """personel_portfolio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
... | [
"yeetkamakazi@gmail.com"
] | yeetkamakazi@gmail.com |
cfa3e6dd807a8829414f580e7847edd533b53527 | dfee236b3f4bf66e52d50b0226b7773a745d8d34 | /structure/validator.py | 21f68f8c5d9deec430c12ffe98c0d815eb8bb1ca | [
"MIT"
] | permissive | ayush5harma/ECS-Hiring-Challenge | 43409aadf69d58addd9ffd8818b30adaff4eb20f | ccab72645026c311aee74ac68c69503d187740ff | refs/heads/main | 2023-08-06T06:23:36.939623 | 2021-09-23T20:12:43 | 2021-09-23T20:12:43 | 352,643,716 | 0 | 0 | null | 2021-09-23T20:12:43 | 2021-03-29T12:57:40 | PowerShell | UTF-8 | Python | false | false | 914 | py | from marshmallow import Schema, fields
from marshmallow.validate import Length
class DataModel(Schema):
""" /api/note - POST
Parameters:
- title (str)
- note (str)
- user_id (int)
- time_created (time)
"""
title = fields.Str(required=True, error_messages={
"r... | [
"47772616+ayush5harma@users.noreply.github.com"
] | 47772616+ayush5harma@users.noreply.github.com |
07956246e6818d61ad5c4214d016aa49af201c8e | 58185d7c1684d4ed78fdf7702578d88f9fe97c0c | /nires/dez.py | 70a5ddfb5ab71797593fc7f25630f46725639734 | [] | no_license | jmel/NIRES | 51a6086e590833fd3d4bf8bb22db9a712891027b | fbd62ac18412595924c537e54e160a8721fd509e | refs/heads/master | 2021-01-21T04:35:14.098096 | 2016-07-08T17:20:12 | 2016-07-08T17:20:12 | 11,027,957 | 0 | 0 | null | 2016-07-08T17:20:13 | 2013-06-28T14:12:46 | Python | UTF-8 | Python | false | false | 2,340 | py | #!/usr/bin/env python
# Take difference between two fits files
import sys
import numpy
import readcol as rc
import pyfits as pf
import string
import ds9
import globals
z = sys.argv[1]
unit = open(globals.calibrationpath + 'z_emission.reg','w')
wsol = pf.open(globals.calibrationpath + 'tspec_wavesol.fits')[0].data
s... | [
"jason.melbourne@gmail.com"
] | jason.melbourne@gmail.com |
8f7d8ba80dc18fa7a18f4b34c9b016bd9aee0260 | 49f73eaf29d3e9427216b44ed519cb8b0b9c6ef4 | /products/models.py | 32473adb2498dbc4f85c0b5f48f06db99a3341bf | [] | no_license | zauribrahimkhalilov-zz/python-django-shoppinlistapp | dc5797d4d49f07d226b90129322442af6e5ca8b4 | ffd1f1cf84e2ab2f57dbd675271fa96a9e278f5c | refs/heads/master | 2021-09-20T18:16:55.112863 | 2018-08-13T17:18:56 | 2018-08-13T17:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from django.db import models
from datetime import datetime
from django.urls import reverse
class Products(models.Model):
name = models.CharField(max_length=200)
created_at = models.DateTimeField(default=datetime.now, blank=True)
def __str__(self):
return self.name
class Meta:
verbose_n... | [
"zibrahimov95@gmail.com"
] | zibrahimov95@gmail.com |
93770b04b06cc4bee60b772d822f418ad8a272c9 | faca8866b3c8aca30a915d8cb2748766557ed808 | /object_detection_updata/metrics/tf_example_parser.py | 510e6917fa9838e9282ec6f561e50cb77a7b5ff9 | [] | no_license | yongqis/proposal_joint_retireval | 6899d80f8fb94569c7b60764f6e7de74bcfa9cc8 | 97b086c62473ab1a5baf45743535fce70c3f8c20 | refs/heads/master | 2020-05-25T19:07:22.946008 | 2019-06-03T07:09:04 | 2019-06-03T07:09:09 | 187,943,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,294 | py | # Copyright 2017 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... | [
"syq132@live.com"
] | syq132@live.com |
e599a060cadc68ae4d18deb51d3ae77921ac74f9 | 11c2e2360666ea02196ff0973ba3340f8f327a17 | /clearlog.py | 7678e00655e1b659083799ca790fca92a7fc3670 | [] | no_license | KingDarkness/clear-old-file | 456a3eeab0e56142320f0ba0fda9cf1d85960cf6 | 50a55684cdd56b39c9e4ce4c2bf61b2447b981a1 | refs/heads/master | 2020-06-03T20:37:13.225193 | 2019-06-13T09:34:54 | 2019-06-13T09:34:54 | 191,722,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import time
from datetime import datetime
import argparse
def clear_directory_older_than(directory, days):
print "Xoá dữ liệu tạo trước %s ngày thư mục %s " % (days, directory)
now = time.time()
cutoff = now - (days * 86400)
files = os.listdir(di... | [
"noreply@github.com"
] | KingDarkness.noreply@github.com |
1faa06888f69e06de3d838ad15e8f59de008c405 | a2f72e29393a2613bf4c869d6618d256d202e57e | /Tpu/GanV2/Tpu_GanV2.py | 6bcc03a5bacb7cf47ebbbb82ac85c9de8f4716cc | [] | no_license | eladshabi/Acgan | 937b7c01bd5c1b64d4228b831cf82d7ed7b8ecd7 | c8073d275db253b306e097d16442d7a7b0f95a67 | refs/heads/master | 2020-04-17T22:55:14.480906 | 2019-02-24T13:00:51 | 2019-02-24T13:00:51 | 167,007,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,889 | py | import numpy as np
import time
from tensorflow.contrib.mixed_precision import FixedLossScaleManager, LossScaleOptimizer
from tensorflow.examples.tutorials.mnist import input_data
from Tpu.GanV2.Generator import Generator
from Tpu.GanV2.Discriminator import Discriminator
from Tpu.GanV2.losses import *
from Tpu.GanV2.dt... | [
"elad.eladsh@gmail.com"
] | elad.eladsh@gmail.com |
4b90e720e1c60a9af54132d8db1f4f2a10f0e5d0 | 5aa3fd7dbad807c12fdecf9504e9a1580ab24768 | /ctopy.py | e465eb04bba5b9be97183b7fb950969455d7eee9 | [
"BSD-3-Clause"
] | permissive | sunnybesunny/CtoPy_Gillespie_Brute | 3ca2030943c7a1bd58af3a45f67bb9dba8e44e6a | 8d2e59d5893502cf09d8d963d97928ea56c996c0 | refs/heads/master | 2021-01-10T03:12:39.127213 | 2018-05-13T00:26:39 | 2018-05-13T00:26:39 | 55,079,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,780 | py | #!/usr/bin/env python
"""
ctopy -- a quick and dirty C-to-Python translator.
Libraries not mapped that theoretically could be: curses.panel, dbm,
md5, popen2, pty, resource, sha, subprocess, syslog, time. Some of these
would need more elaborate machinery for method translation.
Python library bindings are as of 2.6a... | [
"mskang@mit.edu"
] | mskang@mit.edu |
36e77a80aeb9667fa8fbfe256dc23efc4a5d068a | 4637dcdfbfa4eeaefaa9c2ffc5e537ab21171fff | /main.py | 9a4f557401b411bd11c83084e9fda8003013177f | [
"MIT"
] | permissive | gabriel-farache/homautomation | 98321a2c6ddc8ead60a6cc89a7917619a5743fdb | c2bd6a18deb2699242d543bc0eeaf386c2b6296a | refs/heads/master | 2020-04-06T07:57:21.459828 | 2018-02-25T17:02:30 | 2018-02-25T17:02:30 | 64,056,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # main.py -- put your code here!
import pycom
import time
import sendData
from machine import RTC
pycom.heartbeat(False)
try:
sendData.connectLocalBox('/flash/config.json')
rtc = RTC()
rtc.ntp_sync('fr.pool.ntp.org')
pycom.rgbled(0x00FF00)
time.sleep(0.2)
pycom.rgbled(0)
tim... | [
"gabi.matamu@gmail.com"
] | gabi.matamu@gmail.com |
d83ff9d35756aa203096778316d1f1840a266b4c | d9f6f439300d298246c37ccfb881e8e8af4fda22 | /cfp/migrations/0021_profile_name.py | 814cb2ed2021c677ece96c65e1671b44cb2a0824 | [
"MIT"
] | permissive | ajlozier/speakers | e62b8d346a58a034998860d1b42a38b00cbdbd23 | d7d87c99b1cfa5f9df5455f737385115d9d5279c | refs/heads/master | 2021-09-08T19:33:08.894305 | 2018-03-12T00:54:10 | 2018-03-12T00:54:10 | 122,101,157 | 0 | 0 | null | 2018-02-19T18:08:18 | 2018-02-19T18:08:18 | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cfp', '0020_auto_20150218_0802'),
]
operations = [
migrations.AddField(
model_name='profile',
name='... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
e5d51b840f9d3e61bbf612efe4cb4e6c26e84ce6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_actor.py | 04e32c50a329bba627e107500de9e8bd1c6b493f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
#calss header
class _ACTOR():
def __init__(self,):
self.name = "ACTOR"
self.definitions = [u'someone who pretends to be someone else while performing in a film, play, or television or radio programme: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'noun... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bef9c9db13ccd2fe5d3bc2eaad4f4e2d1b933af0 | 8dfa84f10fbcb9e16ff266675bc6c8c5aad48085 | /uebung3/djangoProject/vorlesung3/wsgi.py | 05b181c233da97525a3524277f0c192c5e1ddf69 | [] | no_license | mharidy/python-WS2021 | 3ce5ea3891fe745498fb003995e74fd15b0b42b2 | 0c0316fd51d2236b2fe5429c21983f13c0632f7d | refs/heads/master | 2023-02-27T04:46:29.625128 | 2021-02-07T08:48:54 | 2021-02-07T08:48:54 | 304,264,579 | 0 | 0 | null | 2021-01-25T03:58:56 | 2020-10-15T08:47:49 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for vorlesung3 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"mohamed.haridy@avy.health"
] | mohamed.haridy@avy.health |
7c121797cad965fbc6295c3de5455d4268684abb | 09f630e6550c067238677879c01724a511d73470 | /awsutils/sqs/queue.py | c5f3696586e2945fed2ed25420cafced6d5eb451 | [
"MIT"
] | permissive | morgothdz/awsutils | 638803c01a986b688cfb1fbc2bc7112e26dfc896 | 3bff36b8c8fb400f6066b4c749ca502e7a04acf7 | refs/heads/master | 2021-01-17T05:51:51.197683 | 2013-02-20T20:54:05 | 2013-02-20T20:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,229 | py | # awsutils/sqs/queue.py
# Copyright 2013 Sandor Attila Gerendi (Sanyi)
#
# This module is part of awsutils and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import time, logging
from awsutils.exceptions.aws import UserInputException
from awsutils.sqs.message import SQSMessage
... | [
"sanyi@fake.com"
] | sanyi@fake.com |
752c2a30035856ddab6654f7db9b32d5874bd910 | d90200c658360b455092f9124211b5da8f2caf0d | /6.py | 0fb73f44320ff20d6eb8eaa84ae553f34bb72b1f | [] | no_license | Shreemay/FP | 797abdaeea286718ea9caddc2d1040827a15533d | 783542cdb2aa9a59d997c8e038278f0ab2a14bea | refs/heads/master | 2016-09-09T21:22:40.457124 | 2014-12-10T09:58:49 | 2014-12-10T09:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | def low(li):
li = map(fun,li)
print li
def fun(x):
return x.lower()
lst = ['Hello World','abc','NaMo','INDIA','python']
low(lst)
| [
"shreemay1993@gmail.com"
] | shreemay1993@gmail.com |
6541bd8abead9b63b701593616ed08cc40c2325a | 2ef60bfe78bdc963da9512b98c763ef65b5f033a | /converter.py | 96d5bd5da44610044d91ddb85087b22844497c91 | [] | no_license | moritzschaefer/back-to-earth | 5c264d16535b1acf0f4a288e5fc749c5096ed248 | 6f641c74c5452197507fbaf170ebcc6625e90805 | refs/heads/master | 2021-01-22T10:07:43.289137 | 2014-10-25T19:03:44 | 2014-10-25T19:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
# <codecell>
# <codecell>
import sys
prefix = 'public int[,] level = new int[,]{'
suffix = '};'
f = open ("spaceship.txt" , "r")
tr={'.':'0' , '-':'1' , '#':'2' , 'A':'3' , 'G':'4'}
# <codecell>
# <codecell>
# <codecell>
def translate (line... | [
"senexger@gmail.com"
] | senexger@gmail.com |
1a89d48503fba5a5f596dc365fc645417e63c887 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/battle.py | cb3cb78844254b812459a7a4b3f4ed98dac52a20 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 39,654 | py | # 2016.02.14 12:38:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/Battle.py
import weakref
import BigWorld
import GUI
import Math
import SoundGroups
import VOIP
import constants
import BattleReplay
import CommandMapping
from ConnectionManager import connectionManager
from account_helpe... | [
"info@webium.sk"
] | info@webium.sk |
6497fdc892b607d8e24d743723cfcec4d261b1f9 | 259cc507d97bfeff84d21de3a0ab56640676a9eb | /venv1/Lib/site-packages/tensorflow/contrib/gan/python/eval/python/sliced_wasserstein_impl.py | 7b2c9927975fe036db777a8f6ded43cb2aa7ca72 | [
"MIT",
"Apache-2.0"
] | permissive | Soum-Soum/Tensorflow_Face_Finder | c3ef71b6f718f6720b80f8760d28b6ca6e11e6d2 | fec6c15d2df7012608511ad87f4b55731bf99478 | refs/heads/master | 2020-03-22T20:31:39.606644 | 2018-07-12T13:47:56 | 2018-07-12T13:47:56 | 140,607,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,341 | py | # Copyright 2017 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... | [
"pes.carceller@gmail.com"
] | pes.carceller@gmail.com |
be907c727984cfab702dce79e342cc787711db91 | f121b8c1ace10068da592fe76607f4f2af62728d | /genspirasi/wsgi.py | 1090cd1a995f0c117b5fb60efd5204df423c0010 | [] | no_license | bajjol/websitetest | f8e289a78d7cc2747841678c8a675e83ae8cf6b7 | a6a82001fe687c94bf7a7215566689f610cb77be | refs/heads/master | 2020-04-30T06:48:03.641942 | 2019-03-30T09:31:38 | 2019-03-30T09:31:38 | 176,663,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for genspirasi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"noreply@github.com"
] | bajjol.noreply@github.com |
7d9b13742e9ffbb7203c8dcddb9174cf144b5264 | 617b88b30b82d422f67f0b474a42586c3bc57279 | /solution.py | 0780b674351b62d58d7639099258852296def536 | [] | no_license | gilbertduenas/hackerrank---itertools.product- | 51835068112279b9b36f4584235c0dc724c16111 | 24ba35d36a1a67bdcb481540d209a97cdf25e304 | refs/heads/master | 2022-11-26T03:00:28.119239 | 2020-08-02T22:46:31 | 2020-08-02T22:46:31 | 284,551,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | # learn to splat
from itertools import product
x = list(map(int, input().split()))
y = list(map(int, input().split()))
print(*product(x, y))
| [
"noreply@github.com"
] | gilbertduenas.noreply@github.com |
19c02720487d050d98b087fa4a3eff70b39034f9 | 9c2d4ca98df937fcaa8879e44ef1f3e5fe93876b | /SciGen/__init__.py | 3de4372d820f1f2d98f6b622bbdcc3d25459c300 | [
"MIT"
] | permissive | SamuelSchmidgall/Machine-Learning-from-Scratch | 500b80b1cd4944df2b75c9feb15e220064ae2a1b | d030b71ab87a034f9d59c5a53f501e96411dc0b2 | refs/heads/master | 2021-06-22T15:50:13.457129 | 2021-01-02T23:19:36 | 2021-01-02T23:19:36 | 132,190,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #!/usr/bin/env python
__name__ = "SciGen"
__author__ = "Samuel Schmidgall"
__license__ = "MIT"
__email__ = "sschmidg@masonlive.gmu.edu"
| [
"AbstractMobius@gmail.com"
] | AbstractMobius@gmail.com |
feeedca4690352677357ee4f6a4fd44bdc23359e | 39a1da7d6e302bc22d6dc9053d32c0a8b587b178 | /engine/metrics/tests.py | bf490fecaa927cc4eb0b0780d9bc7ef432c65913 | [] | no_license | jinchuuriki91/whats-the-mosam | f1e3ed8c4e1f2a81e0a776680f3d51060fdbcb64 | 9af79bb2888af227e94877d87f152cb404eae0bf | refs/heads/master | 2020-04-08T00:11:04.115839 | 2018-11-30T11:39:51 | 2018-11-30T11:39:51 | 158,840,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # Python imports
import requests
# Django imports
from django.test import TestCase
# Engine imports
from metrics.constants import REGION_INT
class APITestCase(TestCase):
url = "http://localhost:8000/api/v1/metric/"
metric_type = "Rainfall"
location = "England"
def test_post(self):
try:
... | [
"gandhar.pednekar15@gmail.com"
] | gandhar.pednekar15@gmail.com |
75af3c206ddd4f8e25574cabd71067f19214176c | 4170ed62059b6898cc8914e7f23744234fc2f637 | /CD zum Buch "Einstieg in Python"/Programmbeispiele/GUI/gui_check.py | 5f2ffb98025c0f74ac7ab1c38d5a0295e3aeec43 | [] | no_license | Kirchenprogrammierer/Cheats | 9633debd31ab1df78dc639d1aef90d3ac4c1f069 | 0b71c150f48ad1f16d7b47a8532b1f94d26e148e | refs/heads/master | 2021-05-08T10:42:39.927811 | 2018-02-01T17:29:11 | 2018-02-01T17:29:11 | 119,858,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import tkinter
def ende():
main.destroy()
def anzeigen():
lb["text"] = "Zimmer " + du.get() + " " + mb.get()
main = tkinter.Tk()
# Anzeigelabel
lb = tkinter.Label(main, text = "Zimmer ", width=40)
lb.pack()
# Widget-Variablen
du = tkinter.StringVar()
du.set("ohne Dusche")
mb = tkinter.Stri... | [
"noreply@github.com"
] | Kirchenprogrammierer.noreply@github.com |
c1a6112f2cab90786e3b5cd0ded693d7946074e3 | 14ac1cd2a1e1d5366ef06e26fadc3d34ff5d5fad | /apps/news/forms.py | 3c43fc6e77f7b85acd06118b3639b0741797dfa8 | [] | no_license | wangdawei0515/django_project | 1c5b2384eaab112cf65da032ed3d5fccd7e27c70 | 7834237a8c19b4b854e8450e2d64458a17584d36 | refs/heads/master | 2020-03-24T02:50:46.708396 | 2018-07-29T14:31:21 | 2018-07-29T14:31:21 | 140,164,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #encoding: utf-8
from django import forms
from apps.forms import FormMixin
class AddCommentForm(forms.Form,FormMixin):
# 在表单中,CharField和TextField唯一的区别
# 就是在表单渲染成模板的时候会有区别。
# CharField会被渲染成Input标签
# TextField会被渲染成Textarea
content = forms.CharField()
news_id = forms.IntegerField() | [
"wangdawei_@outlook.com"
] | wangdawei_@outlook.com |
8f95dcb9c22025b63932cb30e24ae18203a9dc38 | ce48d74eb28ec153573cd42fe58d39adc784c85c | /jdcloud_sdk/services/xdata/models/DwDatabaseInfo.py | bedf36eee3a80637f1aaf4c87b6493744b5f6c2c | [
"Apache-2.0"
] | permissive | oulinbao/jdcloud-sdk-python | 4c886cb5b851707d98232ca9d76a85d54c8ff8a8 | 660e48ec3bc8125da1dbd576f7868ea61ea21c1d | refs/heads/master | 2020-03-16T22:22:15.922184 | 2018-05-11T10:45:34 | 2018-05-11T10:45:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # coding=utf8
# Copyright 2018-2025 JDCLOUD.COM
#
# 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 agr... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
be63af58864e0d9a3c0117f2cb0652068ab7729d | 7fdef65f58dbe5ce5a0a660e3f7db9a7a215c17e | /ldif/torch/sif_test.py | 0c4f6be9a869f522ade976a6eb9591dab6439862 | [
"Apache-2.0"
] | permissive | hpp340/ldif | e7c73fbc6b6bcbded6192418eff1a5e5b88b545e | ed5bcaa10bf1614f148b94d6b9bdad248b8ccf48 | refs/heads/master | 2022-11-27T19:44:47.923034 | 2020-08-08T01:08:21 | 2020-08-08T01:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | # Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"kgenova@princeton.edu"
] | kgenova@princeton.edu |
230f3f86dd3cbe8b70cccfa1db296bdc5283e8a1 | dcfdc9822308c21824b27c051f221a971864e637 | /desafio2 aula4.py | 7f2a0e50aa677da8a05c309c580a503e9ab5c6d2 | [] | no_license | renato29/python3-mundo-1 | 04d5f23bcf8e0f5558cd6db129896ce09e14cc6f | a7d92d5b620d56efbcaeced8e00ff4a5fb80ae23 | refs/heads/master | 2020-04-23T05:10:21.013030 | 2019-02-15T21:54:29 | 2019-02-15T21:54:29 | 170,931,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | dia=input(print("digite seu dia de nascimento"))
mes=input(print("digite o mes de nascimento"))
ano=input(print("digite o ano que vc nasceu"))
print('Você nasceu no dia', dia, 'de', mes, 'de', ano, '. Correto?')
wait
| [
"noreply@github.com"
] | renato29.noreply@github.com |
087c70a2155e879d896447289bfc2e295a84c7fb | 585f3bd3b846512b058ae1e48a29afc8ab11eae3 | /Week2P3/Week2P3(with wabble).py | f0b25e4e4aab74e8d9841ce8ddda0168ac5f4054 | [] | no_license | johntraben/ENG209-CR | 05bb1584ecbbb0eb8db0359967a60dd1fd9832f8 | d927d264fbe24b86c6a5e11d0affdba412530e4d | refs/heads/main | 2022-12-31T23:53:18.695963 | 2020-10-29T19:33:42 | 2020-10-29T19:33:42 | 306,501,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,184 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 20 17:42:44 2020
MDP problem
@author: fishy
"""
class MDP(object):
def __init__(self,Xmax,Vmax,Pw):
self.Xmax = Xmax
self.Vmax = Vmax
self.Pw = Pw
def startState(self):
return [self.X0,self.V0]
de... | [
"noreply@github.com"
] | johntraben.noreply@github.com |
9bbf035b5e759603277ab311b08da9172cf22559 | cd40fd66338bab16c3cac360ec68d0410daf85dc | /asyncio_study/event_loop/utils.py | 039087d9261d78679ca8a895731fe964988d7754 | [] | no_license | suhjohn/Asyncio-Study | c74a95c37d6ce1d0983b5626a4f68d2b80d7ec79 | d9c5a092924a32f18849787fd30cb322a0ff8b15 | refs/heads/master | 2021-05-12T12:28:15.749447 | 2018-01-14T17:25:22 | 2018-01-14T17:25:22 | 117,414,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | from functools import wraps
from time import time
def log_execution_time(func):
"""
Decorator function that prints how long it took to execute the function
:param func:
:return:
"""
@wraps(func)
def wrapper(*args, **kwargs):
start = time()
return_value = func(*args, **kwarg... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
0ba626c1cb0e67582804291760036684180e9aac | 3faeae950e361eb818830ad210f30a6232e5d7f1 | /wepppy/_scripts/lt_runs_low.py | efdeb5b5aecc5bf4b8561c6458f160bf05309335 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rogerlew/wepppy | 401e6cee524073209a4445c680b43ea0c6102dfc | 1af4548d725b918b73ee022f2572a63b5194cce0 | refs/heads/master | 2023-07-21T12:56:26.979112 | 2023-07-13T23:26:22 | 2023-07-13T23:26:22 | 125,935,882 | 10 | 6 | NOASSERTION | 2023-03-07T20:42:52 | 2018-03-20T00:01:27 | HTML | UTF-8 | Python | false | false | 46,439 | py |
import os
import shutil
from os.path import exists as _exists
from pprint import pprint
from time import time
from time import sleep
import wepppy
from wepppy.nodb import *
from os.path import join as _join
from wepppy.wepp.out import TotalWatSed
from wepppy.export import arc_export
from osgeo import gdal, osr
gdal.... | [
"rogerlew@gmail.com"
] | rogerlew@gmail.com |
f881b852d96988139088e6ec681f7e3666dff200 | 76277abda6d4f5dea18209a2e362a2725c154055 | /bentoml/exceptions.py | 850b95e0289fd86b61c509070e1d143e98090b1b | [
"Apache-2.0"
] | permissive | joychen0103/BentoML | eb77e30d434e05b69e8cb44a6be93b38de537044 | e7d05d5f32adb3cbb90bd165ed2f45871052c192 | refs/heads/master | 2020-08-05T06:12:54.126786 | 2019-10-02T19:23:14 | 2019-10-02T19:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | # Copyright 2019 Atalaya Tech, 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 writing, ... | [
"noreply@github.com"
] | joychen0103.noreply@github.com |
44931ba564f7deaf02d0a94267264fb6b8edf874 | 87f4634d4a5a3287871765f77cabd2dcc37284a3 | /setup.py | 7c0f5314842f8a754ee3727381e78c8e3a2a20d6 | [] | no_license | yangyushi/yaggie | 2792a8ca61b4093ff2d80c5493f9f6d9e47ddc50 | 1cb928a014e8393e5852d20a4b8df76f9206f28b | refs/heads/master | 2021-03-24T13:19:37.060445 | 2019-08-28T13:37:07 | 2019-08-28T13:37:07 | 117,542,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from distutils.core import setup
setup(name='yaggie',
version='0.1',
packages=['yaggie',
'yaggie.engine',
'yaggie.engine.colloids',
'yaggie.engine.mytrack'],
py_modules=['yaggie.analysis',
'yaggie.render',
'yaggie.uti... | [
"yangyushi1992@icloud.com"
] | yangyushi1992@icloud.com |
124795f3a26f9782d34d258bac83edde79ca6dab | 76c70ae75cef1ec0e97859e52fbae406d9e6c9db | /ESOP/settings.py | 447a2e66883792a24e7eefd677acc81a9368ab06 | [] | no_license | Abhinavjha07/ESOP | 57ff9eca47baff8bd74d73c29dcd9f7d8a1f6ef7 | 1894c07dee0a6abb8570e35037858cebf87eeaef | refs/heads/master | 2022-12-11T01:23:32.176067 | 2020-01-21T05:41:36 | 2020-01-21T05:41:36 | 182,563,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for ESOP project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
imp... | [
"jhaabhinav1998@gmail.com"
] | jhaabhinav1998@gmail.com |
ef84877ff5bc598bf1ca12ec0dd579f441b351b3 | 328a69af8c40cad52274edfda118cc8d3926e74f | /tests/conftest.py | 8784801df4b408468d64b1f8422f4cdce7b0f508 | [
"MIT"
] | permissive | hydrogen602/settlersPy | 49c1ed6b41660606bdab7e6c24889ab72fa56c97 | 5a1df6162d35b6ae9eeefd11c9a0a9ba7a19019c | refs/heads/master | 2022-12-01T23:46:17.633117 | 2020-08-15T14:57:17 | 2020-08-15T14:57:17 | 247,985,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | # content of conftest.py
# https://docs.pytest.org/en/latest/example/simple.html
from typing import Dict, Tuple
import pytest
# store history of failures per test class name and per index in parametrize (if parametrize used)
_test_failed_incremental: Dict[str, Dict[Tuple[int, ...], str]] = {}
def pytest_runtest_ma... | [
"32135041+hydrogen602@users.noreply.github.com"
] | 32135041+hydrogen602@users.noreply.github.com |
7b758e318532e9262ef0816f41982476f0035b5c | 265a903707573862c5f786dff014c276d2560407 | /exercise54.py | 16c0b6cc017a726cbfbcb2308293522706142d34 | [] | no_license | kailichama/dev-sprint1 | 877a4855dfee8c2eb65e97a859b5139cbef42e7f | 56086d8b96ca44f4bd254b13dc4543e05fd83d4d | refs/heads/master | 2021-01-15T21:43:56.323504 | 2013-05-01T15:54:24 | 2013-05-01T15:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # This is where Exercise 5.4 goes
# Name: Kelly Chiang
def is_triangle(a, b, c):
if a + b < c:
print "no"
if a + c < b:
print "no"
if b + c < a:
print "no"
else:
print "yes"
is_triangle(29, 11, 12)
is_triangle(10, 11, 12)
| [
"chiang.kellymimi@gmail.com"
] | chiang.kellymimi@gmail.com |
8db3d4c9d758b5bd397cc8c7c6ed56d2302b981f | d415f387170b564eccc0c01b386c4eff4b709066 | /CalculadoraSimples.py | efb956605969cea22f4c993dd562202bc678f1a9 | [] | no_license | alessandradiamantino/Estudo | ae53130909d9339bac08948b6bfea9637942e9c0 | b3fff6aeeae0e7dbb824593f655d2d87f79c1bfb | refs/heads/master | 2022-12-19T15:00:21.259636 | 2020-09-14T21:54:24 | 2020-09-14T21:54:24 | 295,545,117 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | print("1 - soma\n")
print("2 - subtração\n")
print("3 - multiplicação\n")
print("4 - divisão\n\n")
c = int(input(" "))
import os
os.system('clear') or None
a = int(input("Digite o primeiro numero\n"))
b = int(input("Digite o segundo numero\n\n"))
if c == 1:
print(a + b)
elif c == 2:
print(a ... | [
"noreply@github.com"
] | alessandradiamantino.noreply@github.com |
d932abbee00bae52a08077fa165348144d5dab19 | 92bce619c4fccc60601ab613b6b87e6eb336c9c8 | /Python/contrast.py | 323b30409248e5a0fb4249d55212c7f3551ab1c2 | [] | no_license | nealbayya/Dehaze | 152373f6b44a099bb4dadb5259050fe96f16af28 | a13ae01a26864e4b944154f2177b1604a644bdba | refs/heads/master | 2020-06-18T11:25:07.677255 | 2019-07-10T22:45:57 | 2019-07-10T22:45:57 | 196,284,750 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import numpy as np
import cv2 as cv
img = cv.imread('rocks0.jpg', 1)
#img = cv.blur(input, (3, 3))
print(img.shape)
nimg = np.zeros((img.shape[0], img.shape[1], 3))
T = 20
a = 7
b = 7
h, w, d = img.shape
for i in range(h):
for j in range(w):
avg = np.mean(img[max(0, i-a):min(h, i+a), max(0, j-b):min(w, j+... | [
"gtangg12@gmail.com"
] | gtangg12@gmail.com |
0021af907a58a0843f7c18e83c58a1abb80bf758 | 83a765b6cfc99b65b4fb317d55f34ce426996fd7 | /chp4/bot_v_bot.py | 57651c8678c57d719f5c834f4f2e6b10172fd325 | [] | no_license | Guyuena/dlgo-deep-learning-and-chess | c9e67ee5ad1675a029fee06cafd64d3cd7ead14f | b051c46d1dda74587000cb228357b175d72f3ee2 | refs/heads/main | 2023-06-09T15:11:03.125581 | 2021-07-02T02:37:43 | 2021-07-02T02:37:43 | 378,629,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from __future__ import print_function
# tag::bot_vs_bot[]
from dlgo.agent.navie import RandomBot
from dlgo import goboard as goboard
from dlgo import gotypes
from dlgo.utils import print_board, print_move
import time
"""":argument
机器自对弈脚本
"""
def main():
board_size = 9
game = goboard.GameState.new_game(b... | [
"428106418@qq.com"
] | 428106418@qq.com |
119b52b10b3fa591bba1e1f716e73d8db86a9d0b | 41c0f6d4dac27558138924c3122a3ca790fd2dea | /set1/test_challenge7.py | 409b4bdb27ad783df6f03ff6da8f3d5d47823b51 | [] | no_license | kevinmel2000/cryptopals | 541f1b20e21461586fe45a8467cdd5fd9cdc828e | 0756cd5d2152425b085e81043e3474d6fbb4f0a2 | refs/heads/master | 2020-03-26T21:01:39.744070 | 2016-06-07T09:54:48 | 2016-06-07T09:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | '''
Challenge 7:
AES in ECB mode
'''
from set1.challenge7 import *
import unittest
class Challenge7TestCase(unittest.TestCase):
def test_aes_ecb_decrypt(self):
from base64 import b64decode
ciphertext = b64decode(file('data/data_7.txt').read().replace('\n', ''))
key = "YELLOW SUBMARINE"
... | [
"muhammad.abrari@gmail.com"
] | muhammad.abrari@gmail.com |
d2ef8b0ff9076684e5a93e502c80273ff56384c2 | c5fe83f61f96a5997a46799005f87a7eb2e75582 | /versione_senza_encoder/system_conf.py | 07e169c398fc69eacd05a4f37afd66fcda8780a0 | [] | no_license | Elena-Umili/RL-Planning-Robots | 0d4c7e43b4b721ce2378a0ecf81c311707a390b0 | 523ac1da5bd7e03048c35053436729be9e92455c | refs/heads/master | 2023-04-06T16:28:45.537739 | 2021-04-01T09:23:11 | 2021-04-01T09:23:11 | 329,588,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py |
##################### ACROBOT
STATE_SIZE = 3
INPUT_SIZE = STATE_SIZE
ACTION_SIZE = 3
CODE_SIZE = 200
DISCRETE_CODES = False
REW_THRE = 2000
WINDOW = 20
MODELS_DIR = "models/acrobot/"
Q_HIDDEN_NODES = 256
BATCH_SIZE = 64
MARGIN = 1 / CODE_SIZE
PREDICT_CERTAINTY = False
| [
"ema.antonioni@gmail.com"
] | ema.antonioni@gmail.com |
a414e93bf6a93d7ea9d9d9fafad47934f70567b8 | 271c7959a39f3d7ff63dddf285004fd5badee4d9 | /venv/Lib/site-packages/ncclient/devices/h3c.py | 17e98b5a38712d3469fac56fcd86aaac22fcbffa | [
"MIT"
] | permissive | natemellendorf/configpy | b6b01ea4db1f2b9109fd4ddb860e9977316ed964 | 750da5eaef33cede9f3ef532453d63e507f34a2c | refs/heads/master | 2022-12-11T05:22:54.289720 | 2019-07-22T05:26:09 | 2019-07-22T05:26:09 | 176,197,442 | 4 | 1 | MIT | 2022-12-08T02:48:51 | 2019-03-18T03:24:12 | Python | UTF-8 | Python | false | false | 1,936 | py | """
Handler for Huawei device specific information.
Note that for proper import, the classname has to be:
"<Devicename>DeviceHandler"
...where <Devicename> is something like "Default", "Huawei", etc.
All device-specific handlers derive from the DefaultDeviceHandler, which implements the
generic information need... | [
"nate.mellendorf@gmail.com"
] | nate.mellendorf@gmail.com |
4465a47f36c248e586fd89f8135164aa44745ffb | a2c5591e2c3f362d1cf1cdea0cac492330c43bad | /printre.py | 14241c616e1dd6bcf9a7964c655f43a342de354e | [] | no_license | sowmiyavelu17/geet | 7b62c975e49f2f7c199882de3db33e71f060b1c4 | 9f6aaf35712d6da980d8428af8401b8188bae703 | refs/heads/master | 2020-07-02T04:50:26.525866 | 2019-08-09T10:53:06 | 2019-08-09T10:53:06 | 201,420,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | counter = test_str.count('e')
print ("Count of e in GeeksforGeeks is : "+ str(counter))
| [
"noreply@github.com"
] | sowmiyavelu17.noreply@github.com |
71d2dd398ee838fa80d1528cb2d96542fb693907 | 1c596a3d21b0346a46751cbe89cb15cb3cd1177f | /Session1/hw_3.py | 0f37040195171df07055acaca280fa3dac097672 | [] | no_license | minhphuong1804/truongminhphuong-fundamentals-c4e25 | e4449687dd0d6c8484d87100186e1fddf1b877cf | ec630be8ce531308667aa84f35148d11d1d10766 | refs/heads/master | 2020-04-17T07:44:15.647436 | 2019-01-18T12:21:03 | 2019-01-18T12:21:03 | 166,381,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | n = int(input("Enter the temperature in Celcius?"))
r = float(n)
degree = (r*9/5) + 32
print(n, "(C)", "=", degree, "(F)") | [
"minhphuongtruong1804@gmail.com"
] | minhphuongtruong1804@gmail.com |
5e190cb9273f15764a6e53b5d5f884e17dd9e3b8 | 9a995cd9312fd343ce9ba44f2d091ff791f76236 | /Solver.py | ffab89eaa321a935688e561d554cad1d62b1a929 | [] | no_license | sytan98/Sudoku-Generator-Solver | 8da9d012b9a3b9e8938b150e1e5bfce66121e7ef | 9472355799ab13f17b5cbe3d47afb6cf8c5c9381 | refs/heads/master | 2021-05-17T13:07:21.107194 | 2020-03-31T06:00:11 | 2020-03-31T06:00:11 | 250,791,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | def backtrack(sudokuobj):
#base cases
if sudokuobj.check_grid():
print("solved")
return True
#horizontal wise needs to be unique
for idx, i in enumerate(sudokuobj.flatlist):
if i == 0:
for j in range(1,10):
row = idx//9
column = idx%9
... | [
"tan.siyu@dhs.sg"
] | tan.siyu@dhs.sg |
1ac0b215a67ef3e113fd1ccf8e1ac0319a3d6200 | d3e299214d97149bcb2e10393e9c9ec1a63497b7 | /Barnet.py | 7d5f07b0a02e734a9779596a67c18194d1170985 | [] | no_license | M00-M00/BoroughScrape | 68bd9a5729bfaab96a66c89fe9fdee0cf2066c36 | 36f1ff82547bd9afc56d09e6b9adbee55f7af3e7 | refs/heads/master | 2023-05-12T03:02:32.275844 | 2021-06-08T11:25:05 | 2021-06-08T11:25:05 | 291,691,221 | 0 | 0 | null | 2020-09-01T19:02:59 | 2020-08-31T11:01:24 | Python | UTF-8 | Python | false | false | 507 | py | import requests
from bs4 import BeautifulSoup as bs
import csv
from Scraper2 import Scraper
import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-S', '--Start_Data', help='delimited list input', type=str)
parser.add_argument('-E', '--End_Data', type=str)
args = parser.parse_args()
a = ... | [
"edimchenko@gmail.com"
] | edimchenko@gmail.com |
0c0edac82221a10cdd16bca3b52020df36b734b2 | c8dea2ed440fd3f937d96a468ec4e5f1f4fd9de4 | /Part Seven/Exp1.py | 02fc04a3cdf3ebc560b99cf80d88e84448da205f | [] | no_license | chnlmy/python | 1def0414d46f447af61219830598cb26fda7dcab | b1981de93dc8a69c4b93eea782412d4415842121 | refs/heads/master | 2023-06-20T02:20:41.760800 | 2020-11-20T08:00:16 | 2020-11-20T08:00:16 | 293,464,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | linenum = 0
file = open("/Users/liumingyi/github/python/Part Seven/latex.log", 'r')
for line in file.readlines():
if len(line) == 1:
continue
else:
linenum = linenum + 1
file.close()
print("共{:}行".format(linenum)) | [
"chnlmy@gmail.com"
] | chnlmy@gmail.com |
f1a703e8a9a0d640da215f4b818d4aa7dc419291 | a424323a34a2fc5700d690829752d3e30032a1e6 | /routelanta/swagger_client/api/running_races_api.py | 36fb88060b123482bbc68d58707be9943f0ffc92 | [] | no_license | jackrager/jackrager.github.io | 884747803fa44063372efdbf46e36e979474d2fe | 50b9b62ca7a7fae6744796c1aa032f16cfad5898 | refs/heads/master | 2023-03-09T22:08:53.059755 | 2023-02-20T22:30:23 | 2023-02-20T22:30:23 | 228,740,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,501 | py | # coding: utf-8
"""
Strava API v3
The [Swagger Playground](https://developers.strava.com/playground) is the easiest way to familiarize yourself with the Strava API by submitting HTTP requests and observing the responses before you write any client code. It will show what a response will look like with differe... | [
"noreply@github.com"
] | jackrager.noreply@github.com |
07573412e81359a8769586309efc67f4597edaa7 | be4fc3aac9d41e52e799cc366376e611fe726f90 | /reading_comprehension/model/base_model.py | a99aeb0dc25f2c9e397569854c5077ed1086596b | [
"Apache-2.0"
] | permissive | Hope247code/reading_comprehension_tf | 235fac5eee98183e021d8c315b8193f4a1a33ba3 | 6cd4ac78c6c93900458ac75c774766b56125891d | refs/heads/master | 2023-06-28T14:50:26.802641 | 2019-07-14T06:30:30 | 2019-07-14T06:30:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,095 | py | import collections
import os.path
import numpy as np
import tensorflow as tf
from util.default_util import *
from util.reading_comprehension_util import *
from util.layer_util import *
__all__ = ["TrainResult", "InferResult", "BaseModel"]
class TrainResult(collections.namedtuple("TrainResult",
("loss", "learnin... | [
"mizheng@microsoft.com"
] | mizheng@microsoft.com |
68333b91ab1080bd3102141d3e24622cadc72097 | 858dfa9bcec66eae9fe4a4008b5c7bf575767efc | /src/metrics/divergences.py | 4e0daefa0d69fffab72750702533ffb2b4bea987 | [] | no_license | Danial-Alh/TextGenerationEvaluator | 766f06f687d8ad5f4e5060aca99425f9cc6820ae | fbad8e35859d9252cd22a8cb04bc42304c2560dd | refs/heads/master | 2023-06-24T02:43:58.398691 | 2020-08-20T19:55:18 | 2020-08-20T19:55:18 | 160,636,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | # from scipy.special import logsumexp
import numpy as np
from scipy.misc import logsumexp
def logmeanexp(inp):
# log(mean(exp(x)))
l = inp.shape[0]
assert inp.shape == (l,)
return logsumexp(inp - np.log(l))
def log1pexp(inp):
# log(1 + exp(x))
return np.logaddexp(0., inp)
def lndiff(nllp_f... | [
"danial.alihosseini@gmail.com"
] | danial.alihosseini@gmail.com |
33280c23ce326b75e21f7c1e6b655ba9c1896cde | 9680ba23fd13b4bc0fc3ce0c9f02bb88c6da73e4 | /Bernd Klein (520) ile Python/p_20404a.py | bc54c21d16cad7c304cceedabad9a88e4a32d34d | [] | no_license | mnihatyavas/Python-uygulamalar | 694091545a24f50a40a2ef63a3d96354a57c8859 | 688e0dbde24b5605e045c8ec2a9c772ab5f0f244 | refs/heads/master | 2020-08-23T19:12:42.897039 | 2020-04-24T22:45:22 | 2020-04-24T22:45:22 | 216,670,169 | 0 | 0 | null | null | null | null | ISO-8859-9 | Python | false | false | 683 | py | # coding:iso-8859-9 Türkçe
# p_20404a.py: İnternet ip adresleriyle iletişim kontrolü örneği.
import os, re # threading/ipsiz kontrol...
alınanPaketler = re.compile (r"(\d) alındı")
durum = ("cevapsız", "canlı fakat kayıp", "canlı")
for sonek in range (20,30):
ip = "192.168.178." + str (sonek)
kontrol... | [
"noreply@github.com"
] | mnihatyavas.noreply@github.com |
f0d53247787de483a8157978732687647973de62 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class651.py | dd0dd8db9096c5bbae3a183ddb1975f869ce8a2d | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=24
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
37359538a19f04c13b9e9e200eef0fa7be950791 | fd451cb1a829c72ea51a93168eba81a475f983a1 | /python/class2.py | d6084276f55b907ea10df3e39e7c64d63f4e80e6 | [] | no_license | shapigou123/Programming | e9fd63f509fb2b45ba9792b13092da6aa8abe935 | 64215eb0f333b583690e32cd9fcce02236713603 | refs/heads/master | 2021-06-26T02:33:56.623872 | 2017-09-07T07:12:11 | 2017-09-07T07:12:11 | 94,725,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | #coding=utf-8
'''
class Person(object):
def __init__(self, name, gender):
self.name = name
self.gender = gender
class Student(Person):
def __init__(self, name, gender, score):
super(Student, self).__init__(name, gender)
self.score = score
def __str__(self):
retur... | [
"563594467@qq.com"
] | 563594467@qq.com |
d780ebeb1d6e59ceaf5520b60be0ebd357fe4938 | 970f3b8a80cb941cb72e7ebfbf2199ac75b0f5dc | /app.py | b6a6f937b53946f9fe75aeefee64ade6e5d46ce1 | [] | no_license | vincenth520/tusou-python | 22c4f00681bf3aed1154dc4e1268c1312a5a567c | c4ab8eedbfa01b3a8b7c83c2b6cc7e3d76085ffd | refs/heads/master | 2021-01-19T13:15:27.640132 | 2017-08-20T04:07:18 | 2017-08-20T04:07:18 | 100,837,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2016-04-07 16:46:00
# @Author : Vincent H (1091986039@qq.com)
# @Link : http://luvial.cn
# @Version : $Id$
import os,random,json,threading,zipfile,base64,urllib.parse
from flask import Flask
from flask import request,redirect,url_for,send_from_directory,ma... | [
"1091986039@qq.com"
] | 1091986039@qq.com |
165f0ac619c8d4cf21a08ce53f6979e0046631a8 | cb42eef9aba4fc1a0dc808aae00e73cd5b44d7c0 | /webapp/urls.py | d551ca7b6274835ff783a112707d1685d2c7fcf0 | [] | no_license | xintao222/talkcode | 9ad997533699698933a3339e2c644be3d827942f | 28533b00036b6c0931f44aa63988679f601db502 | refs/heads/master | 2021-01-22T00:19:32.823257 | 2011-03-23T22:59:08 | 2011-03-23T22:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout
from django.views.generic.simple import direct_to_template
from talkcode.views import register, index
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r... | [
"disbeat@gmail.com"
] | disbeat@gmail.com |
156c46403266268d942b197c55ec383227d63858 | 290d6fd35fd5433ef03bfcc1ec14108a1e8e10ed | /unittest1_task_perf.py | ed6c3d3fbd2180982107da0bcf232d07b551b8e8 | [] | no_license | PlumpMath/pyos | 3103e2c878f579aa10c32f8a3c3430b4d11de209 | c5b6e3fdb8e4d4615a5d098130a6e34c92217c65 | refs/heads/master | 2021-01-20T09:54:24.953803 | 2014-01-29T10:42:58 | 2014-01-29T10:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py | #!/usr/bin/python2
# Perf and Unit tests
#
# Test what happens with large numbers of tasks
# Simon Ryan 2014
from pyos9 import *
import sys,random,time,threading
mode = sys.argv[1:2] and sys.argv[1] or None
num = sys.argv[2:3] and sys.argv[2] or None
if not (mode and num):
print('usage: %s [pyos|threads] numberof... | [
"simon@smartblackbox.com"
] | simon@smartblackbox.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.