blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c86702fea52479ec7efe1b1df32278e072c10d3c | 8bd6ab7b47dc046344f1cf7aec822a940e6a3a4d | /publishconf.py | 873f359ea4386d9cf72767fb27e20162cd049a01 | [] | no_license | matthew-brett/linuxiste-blog | 52cfd3af463ed9d9950df24ce5b5da287b5395be | 358d3f05413451c74e732e1a764edcfd7f003353 | refs/heads/master | 2016-09-05T11:17:40.058624 | 2013-05-13T03:01:56 | 2013-05-13T03:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://linuxiste.dynevor.org'
RELATIVE_URLS =... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
aeba527eb13936a0316c5e61d9571454901b95b6 | 0d1862ebf38405e4b4a1630a35ed97ee2129d64d | /fgsm-image-attacks/pyimagesearch/datagen.py | bf735d55bd0e05a9a7e2d8b3c997b93ef4a20b11 | [] | no_license | Mustafa744/pyimagesearch | 7521c86135da3109ae0ec805b8004700f523f21a | 637e5dc8860960a362bc4bfafa0e7ce5ef9280f4 | refs/heads/master | 2023-07-03T15:04:00.149972 | 2021-08-02T14:34:22 | 2021-08-02T14:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | # -----------------------------
# IMPORTS
# -----------------------------
# Import the necessary packages
from .fgsm import generate_image_adversary
from sklearn.utils import shuffle
import numpy as np
# -----------------------------
# FUNCTIONS
# -----------------------------
def generate_adversarial_batch(model... | [
"silva.mfpedro@gmail.com"
] | silva.mfpedro@gmail.com |
49ed09bb5a95960c1f557b42683f1e37d5d279a5 | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /ggulzam/add_sound.py | 3199becc56d5f0b14073551dd0c3df9a2c959605 | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from moviepy.editor import *
videoclip = VideoFileClip("c:/video/eight_acoustic_sketch_compress.mp4")
audioclip = AudioFileClip("c:/video/eight_acoustic_sound.mp3")
new_audioclip = CompositeAudioClip([audioclip])
videoclip.audio = new_audioclip
videoclip.write_videofile("c:/video/eight_acoustic_with_sound.mp4") | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
163e5ceb26e2596c7d50cb3f5589d7758da9827a | 5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda | /pcapkit/foundation/reassembly/data/__init__.py | bb300761367dc3a99ad82b2171cdc249402e9bf3 | [
"BSD-3-Clause"
] | permissive | JarryShaw/PyPCAPKit | 8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a | a6fe49ec58f09e105bec5a00fb66d9b3f22730d9 | refs/heads/main | 2023-08-29T12:49:58.611378 | 2023-08-28T14:05:43 | 2023-08-28T14:05:43 | 109,791,841 | 204 | 29 | BSD-3-Clause | 2023-09-11T17:09:06 | 2017-11-07T05:41:56 | Python | UTF-8 | Python | false | false | 1,924 | py | # -*- coding: utf-8 -*-
"""data models for reassembly"""
# IP reassembly
from pcapkit.foundation.reassembly.data.ip import Buffer as IP_Buffer
from pcapkit.foundation.reassembly.data.ip import BufferID as IP_BufferID
from pcapkit.foundation.reassembly.data.ip import Datagram as IP_Datagram
from pcapkit.foundation.reas... | [
"jarryshaw@icloud.com"
] | jarryshaw@icloud.com |
ac1f4b126010ac1cd4d62f274ea8d0de6f5521f4 | 706bc9414a7b27a3c26dbc4445ff5b1b6eb2a669 | /python_learning/for_advanced/for_enumerate.py | 584bddd82627b17fa65504a067446cdc395855c9 | [] | no_license | suiup/pythonProject | 4ae548cf8d42d75c508fb0e48f0e23eb76d8c938 | 8b52e2d4c66859f759b97680e2ab000f3af8af0d | refs/heads/master | 2023-06-24T20:47:02.544557 | 2021-07-21T16:15:39 | 2021-07-21T16:15:39 | 381,437,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | count = 0
l = [11,22,33,44]
for data in l:
if count == 2:
data += 11
l[count] = data
count += 1
print(l)
m = [11,22,33,44]
for index, num in enumerate(m):
if index == 2:
num += 11
m[index] = num
print(m)
n = [11,22,33,44]
d = {}
for index, num in enumerate(n, start=5):
d[index... | [
"931857499@qq.com"
] | 931857499@qq.com |
28e7aa624976d6b51f74a5db46e4a633ff426243 | c361f1be1d6d2507c5e2453d6f4d3afea4327798 | /web/config.py | ae089a33812e13d7220b47d3ee152dd1f2bc723e | [
"Apache-2.0"
] | permissive | flaneuse/biothings.crawler | 936ed16892f292ec23592861576113bb8576a4fc | 70e4eec45e44fb7300643b1fb64b0824ed6e7df2 | refs/heads/master | 2020-12-20T11:44:07.057270 | 2020-01-24T18:56:05 | 2020-01-24T18:56:05 | 236,063,857 | 0 | 0 | Apache-2.0 | 2020-01-24T18:55:33 | 2020-01-24T18:55:33 | null | UTF-8 | Python | false | false | 1,077 | py | ''' Biothings API Web Config '''
import os
from biothings.web.api.es.handlers import QueryHandler
from biothings.web.settings.default import *
from web.query_builder import MPQueryBuilder
from web.query_transformer import MPResultTransformer
# ************************************************************************... | [
"xzhou@scripps.edu"
] | xzhou@scripps.edu |
64491e00be4f0f1a87c8f3d688a6cf364d057278 | 7682d3f0efd7bd8acbf0caa0548e3fd8a863421b | /bot/commands/admn_channels.py | 672436804fe145d8fbbcdbbb0ecc83017a01cd06 | [
"MIT"
] | permissive | UCDPA-charlesomoarebun/GOF2BountyBot | 54abc3e7f972baa9005fd203d275cb4eb7976943 | 613ea19847b76dd433da11aab7cdd0ec140b8602 | refs/heads/master | 2023-04-13T05:32:56.307127 | 2021-03-16T17:30:10 | 2021-03-16T17:30:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,618 | py | import discord
from . import commandsDB as botCommands
from .. import botState
from ..cfg import bbData
botCommands.addHelpSection(1, "channels")
async def admin_cmd_set_announce_channel(message : discord.Message, args : str, isDM : bool):
"""admin command for setting the current guild's announcements channel
... | [
"1jasperlaw@gmail.com"
] | 1jasperlaw@gmail.com |
42deb5afd0ffb6659ebbe7033a95da2325053f9b | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/eventgrid/v20180501preview/list_topic_shared_access_keys.py | 0d75ad634a6dbefb4d312b6386a3f01d44d87749 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
7599f08acd48cf0a371cd6bafa6c39c5c64755cd | 35c76bf72d77ec05cc9699bb2c06718a612f1cbe | /behavioral/Observer/observer_1.py | 01f2d376329d3bc064c9197f11761379f94471f0 | [] | no_license | kimsehwan96/Design-Pattern | ba0faee40f994b2d51dc15a65e8317023a10f644 | f3576ab30b66fef9af73e8feaf1fd7bd8f87deea | refs/heads/master | 2023-02-26T23:38:34.548282 | 2021-02-12T11:09:24 | 2021-02-12T11:09:24 | 328,360,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | class Observer:
def __init__(self):
self.subscriber = []
self.msg = ""
def notify(self):
for sub in self.subscriber:
sub.msg = self.msg
# 등록된 옵저버들에 노티를 할 메서드, 순회하면서 노티 메시지를 전송한다,
def register(self, observer):
self.subscriber.append(observer)
# 옵저버를 등록하... | [
"sktpghks138@gmail.com"
] | sktpghks138@gmail.com |
2372ce796073be3352245a68200e0731906fbe94 | 71a28d4bc1c0f32dc9185332ba2142ba823d3e53 | /geo1/urls.py | 8c813ec05ff752dc71c96e5fb98a7cb164f28262 | [] | no_license | ekeydar/train_stops_map | 51b1e3a86967851ea16f2e822867f881b91d24fe | acbc1a1a250ca6c3e7f5dde8932301bd4b67c96d | refs/heads/master | 2016-09-12T21:17:13.771035 | 2016-05-27T12:54:46 | 2016-05-27T12:54:46 | 59,438,833 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | """geo1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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-based ... | [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
a09f28dfef1196cbb7b45cd54800a3d2235405d7 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2579.py | 4b05f57b12b472b68a38ee3c3ccdd68129624f96 | [
"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 | 4,112 | py | # qubit number=4
# total number=36
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
51f51043b276cbecf9a27c7981a9d66c93335a26 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /backend/sa_modules/components.py | ebd52899e592348d0a081e3f9155e8c1765a1996 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,080 | py | import numpy as np
import pandas as pd
import time
import decimal
import seaborn as sns
import csv
import scipy
import statsmodels.stats.weightstats as st
def integrated_ttest(result_path, test_variables, group_variables):
feature_list = test_variables.columns
ttest_results = pd.DataFrame({'Feature Name': [],'... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
d4203df7a7298b28db84ee6811b35b00d6470274 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch46_2020_04_13_15_17_50_209074.py | 3dc16dcc53bd56457a55c750f2876e45e6e8c84b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def numero_no_indice(lista):
lista = []
lista2 = []
i = 0
while i<len(lista):
lista[i] == i
lista2 = lista[i]
i += 1
return lista2 | [
"you@example.com"
] | you@example.com |
eac37b10a870cc613d9555a01bcd9151e46c50ce | d07834620562760dda49a03bbd2da88d7b2b8b6a | /Eric/lazyrunme4.py | e2cbaf5e9e4dfbf1a4353b55d0582837b9bc6cf3 | [] | no_license | ebylaska/ML_Potentials | d2eb888ed94fa9a36aeabd00fb721a5653e89bda | fd1b8fd5bd18763b000a121d60da5fd920926875 | refs/heads/master | 2022-04-30T09:44:41.269965 | 2022-04-11T16:22:20 | 2022-04-11T16:22:20 | 159,248,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | from __future__ import print_function
import fastatomfm as atomfm
#xyzfilename = "small.xyz"
#xyzfilename = "../eatomstructure.xyz"
feifilename = "h2-aimd.fei"
def isFloat(string):
try:
float(string)
return True
except ValueError:
return False
def read_in_lines(filename,nlines):
... | [
"bylaska@gmail.com"
] | bylaska@gmail.com |
b896d7d4be7375b1f2e60b2d389f4cb8bb295b52 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_170/ch14_2020_03_03_16_36_47_529189.py | 4d05681ada9a9d7517794a56fac2b3b8e2491e7a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py |
import math
g = 9.8
def calcula_distancia_do_projetil(v,a,y):
d = (v**2/2*g)*(1+(1+(2*g*y)/(v**2*(math.sin(a))**2)**(1/2)))*math.sin(2*a)
return d
b = calcula_distancia_do_projetil(2,3,4)
print(b) | [
"you@example.com"
] | you@example.com |
937d3d281a085b55b49ce3926c1bb8ade4b146e7 | d0eec1c5d0a3b6fca14b3d39cebfa34954457d2f | /nio/log.py | 6b4f8d36eb2b8da09638ddcd7aa0e05cf5a53c1a | [
"ISC",
"Apache-2.0"
] | permissive | djotaku/matrix-nio | 3edf49dd993eb7b593cc8d3fa964a02610fcec3c | fa5d887c76e51034c81197523cd505d3b2df1b3e | refs/heads/master | 2021-05-18T21:46:00.418646 | 2020-04-21T22:31:04 | 2020-04-21T22:31:04 | 251,437,177 | 1 | 1 | NOASSERTION | 2020-03-30T21:54:41 | 2020-03-30T21:54:40 | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Copyright © 2018 Damir Jelić <poljar@termina.org.uk>
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PR... | [
"poljar@termina.org.uk"
] | poljar@termina.org.uk |
aa6cc0969d78c01cbbb6d6b5e946d65ae759be88 | f7adda6c5ad3f8ab2ed05e1b0cb44ad36ba1e7a5 | /Django/class_views/class_view_demo/class_view_demo/urls.py | 5798bd5b2e0dcffd16aa79b5782f0ed60cf6334d | [] | no_license | wmm98/python333 | 20e864107ed3c6b9c2e0dedf82412c238f1d6059 | 57ecec2e349e4cf028cb208902c8c63bab323557 | refs/heads/master | 2020-04-28T16:13:09.791550 | 2019-10-09T03:51:58 | 2019-10-09T03:51:58 | 175,402,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | """class_view_demo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"792545884@qq.com"
] | 792545884@qq.com |
40b9de5961b15ed764ef92d86e99fe7a0277bef7 | cd0ad0e18fafc66bc39ac30adf30fc137178d859 | /12常用第三方模块/生成验证码.py | 01f9b6db6a59391f9db0e122a9eaa6777298aaf7 | [] | no_license | KlausQIU/liao.xuefeng2.7python-course | 938b23f905c71fd7b0d3a5f330d79e15a00dd1fc | 9d1f9921e4f769320f4f7ce897c2f2b39a6bacff | refs/heads/master | 2021-01-17T06:07:14.676813 | 2016-07-03T12:10:28 | 2016-07-03T12:10:28 | 52,960,541 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | # -*- coding:utf-8 -*-
from PIL import Image,ImageDraw,ImageFilter,ImageFont
import random
__author__ = 'Klaus.Qiu'
#随机字母
def rndChar():
return chr(random.randint(65,90))
#随机颜色1:
def rndColor1():
return (random.randint(64,255),random.randint(64,255),random.randint(64,255))
#随机颜色2:
def rndColor2():
return (random... | [
"moon.qiu198909@hotmail.com"
] | moon.qiu198909@hotmail.com |
d7686155582c1e04d781c16072b959844280169e | 7bc8807c261adccb2e71c97e01ce48b8c13d529d | /a.py | 064be1382a93f082e3ef18135d98fd70d697b1de | [] | no_license | yunhui21/CB_AI_3_NLP | 4e090f028123621978164ad29d9789767c1ec0b0 | 20485ce5bae472d1b63b58adf69207a2837bb96a | refs/heads/main | 2023-01-30T11:10:41.385293 | 2020-12-17T03:56:53 | 2020-12-17T03:56:53 | 309,216,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | print(int('10'))
print(int(10))
print(int(3.3))
print(int(5/2))
print(True and True)
print(True and False)
print(True or True)
print(True or False) | [
"yunhui21@gmail.com"
] | yunhui21@gmail.com |
f906cb975d9e4cfc821d90811a8d6799bfafefe7 | b3b39a553ec4f92d5631090090094348deddec3e | /python/practice/ml/start/gaussian naive bayes.py | e88a2988c7fa31769f507c56574cde908cfcb7e9 | [] | no_license | halloTheCoder/Algorithm | 1015dfcfecd97234d6984aad1126ce6dfee8af06 | 6b0ade9a4432e5dd96ab846fc42fdaa426cf207b | refs/heads/master | 2021-05-15T09:44:48.161700 | 2017-11-03T08:02:16 | 2017-11-03T08:02:16 | 108,151,138 | 1 | 0 | null | 2017-11-03T08:02:17 | 2017-10-24T16:03:15 | C++ | UTF-8 | Python | false | false | 315 | py | import numpy as np
from sklearn.naive_bayes import GaussianNB
x = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
y = np.array([1, 1, 1, 2, 2, 2])
clf = GaussianNB()
print(clf.predict([[-0.8, -1]]))
clf_pf = GaussianNB()
clf_pf.partial_fit(x, y, np.unique(y))
print(clf_pf.predict([[-0.8, -1]]))
| [
"akash.chandra8d@gmail.com"
] | akash.chandra8d@gmail.com |
f819579a9afe061110c713b7158d18adb6104732 | 92dfcce04efd5fb3254180bf7b0e24c010c7a637 | /src/punx/finding.py | 9921ee597b0f69af13c4e2d317540b4fb7bc3b43 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gitter-badger/punx | 5fd42b9ce9d39d5dba382e51571e635cce982463 | dd0f00d582e39097d7e28d5aadfd05e68836ff77 | refs/heads/master | 2021-01-22T19:40:42.615097 | 2017-03-12T07:21:39 | 2017-03-12T07:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py |
#-----------------------------------------------------------------------------
# :author: Pete R. Jemian
# :email: prjemian@gmail.com
# :copyright: (c) 2016, Pete R. Jemian
#
# Distributed under the terms of the Creative Commons Attribution 4.0 International Public License.
#
# The full license is in th... | [
"prjemian@gmail.com"
] | prjemian@gmail.com |
6c467bf9e7b50a0da433f4cabf04795e6cd79926 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day09/jiangyi/day09/code/keyword_give_args.py | 8d45f688ea58d668f2dd40f74b87695a2bdb5cfa | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py |
# 此示例示意 关键字传参
def myfun1(a, b, c):
"""这是一个有三个参数的函数"""
print("a =", a)
print("b =", b)
print("c =", c)
myfun1(c=3, b=2, a=1) # 关键字传参
myfun1(b=200, c=300, a=100)
myfun1(a=10, c=30, b=20)
| [
"442315617@qq.com"
] | 442315617@qq.com |
1479d52f7e7181dc1214afa911541b5994973f89 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ZZsnGAjYLyosG9zmH_21.py | 5398774a494953a8a8e34c7fdcd71e9a9c0ae398 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py |
def flash(flashcard):
if flashcard[2] == 0 and flashcard[1] == "/":
return None
elif flashcard[1] == "+":
return flashcard[0] + flashcard[2]
elif flashcard[1] == "-":
return flashcard[0] - flashcard[2]
elif flashcard[1] == "/":
return round(flashcard[0] / flashcard[2],2)
elif flashcard[1] == ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
67f8c05824545e1f5251080c9502ded1ee6d2b55 | eb33ebb7c144cce5a6a1b039a2cb5dd331bd7863 | /asl/util/torch.py | 30378b38e7b0602c6738e38ab090bf1a50b51b16 | [] | no_license | zenna/asl | aeaa2c3cb0f204cf42e03528765d660bd3799ea8 | 6753eb29f3b1826c40df2eae1dff0dad34629423 | refs/heads/master | 2021-09-10T12:11:22.304508 | 2018-02-08T16:02:10 | 2018-02-08T16:02:10 | 59,302,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import torch
def onehot(i, onehot_len, batch_size):
"Create a one hot vector from integer i"
# Dummy input that HAS to be 2D for the scatter (you can use view(-1,1) if needed)
y = torch.LongTensor(batch_size, 1).fill_(i)
# One hot encoding buffer that you create out of the loop and just keep reusing
y_onehot... | [
"zennatavares@gmail.com"
] | zennatavares@gmail.com |
42eb6681609012073eaf6e17dff1068788b1e5d9 | ae0f8ffce9b41d4833aec3f91dab74dbf28e0db9 | /app_aeronaves_light/grupos_modulos/migrations/0004_grupomodulo_slug.py | 70074eb28f0fe1fa334460b5782c065ad141cc04 | [] | no_license | gfcarbonell/app_aeronave_light | 19db35eb5b42657aab67b7895d3e50146f3df786 | 2730f88f0d5bf5603585dce705bb098e0fbd3f40 | refs/heads/master | 2020-06-10T23:52:09.479200 | 2016-12-21T15:32:52 | 2016-12-21T15:32:52 | 75,839,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.11 on 2016-11-30 02:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grupos_modulos', '0003_auto_20161129_2106'),
]
operations = [
migrations.Ad... | [
"r.gian.f.carbonell.s@gmail.com"
] | r.gian.f.carbonell.s@gmail.com |
fcb1ed8dec625f8b6b630fd4c3318b22ccf59ca4 | 5054c805be8bf94d660b806dc7ee5a9f426d49bc | /posthog/models/team/util.py | 9c86b724b404e8105e582df47f94e696d37d5820 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BElluu/posthog | 31a121ee1e690ee5d88cb268a3cd922031dcbee4 | 1e207230ba285c64ea8e7f58fd1f78ef7d7c160a | refs/heads/master | 2022-11-29T09:37:13.072632 | 2022-07-06T16:38:37 | 2022-07-06T16:38:37 | 254,587,554 | 0 | 0 | null | 2020-04-10T08:48:41 | 2020-04-10T08:48:41 | null | UTF-8 | Python | false | false | 2,298 | py | from typing import Any, List
import structlog
from posthog.client import sync_execute
from posthog.models.event.sql import EVENTS_DATA_TABLE
from posthog.models.person import Person, PersonDistinctId
from posthog.models.team import Team
from posthog.settings import CLEAR_CLICKHOUSE_REMOVED_DATA_SCHEDULE_CRON, CLICKHO... | [
"noreply@github.com"
] | BElluu.noreply@github.com |
14e96147d00cbeee3290e302779f2c3f068553be | d813d2fd748f534f75c55f0a174bb72bf872e47d | /tests/test_chrome_gdoc_update_undoredo_100.py | 8a7c1d7ba7bed53a33d181df37b3661367ff5615 | [] | no_license | MikeLien/Hasal | 7889bf50f8b80281607f20723ca9baa75e67f26f | 8049a67ee514bc49809326c7d1d2e6da1f9dac52 | refs/heads/master | 2020-12-25T22:58:25.064393 | 2016-04-21T06:35:40 | 2016-04-21T06:35:40 | 55,055,080 | 0 | 0 | null | 2016-03-30T10:43:33 | 2016-03-30T10:43:33 | null | UTF-8 | Python | false | false | 1,321 | py | import time
import lib.helper.captureHelper as captureHelper
from lib.perfBaseTest import PerfBaseTest
class TestSikuli(PerfBaseTest):
def setUp(self):
super(TestSikuli, self).setUp()
self.test_url, self.test_url_id = self.target_helper.clone_target(
self.env.TEST_TARGET_ID_100_PAGE_C... | [
"sho@mozilla.com"
] | sho@mozilla.com |
55f45aba554ef46de740741ecdfd9d740f8bf2b1 | e65a428ca7ee11d2f62d702842d4afbd493f08a4 | /list_advanced/electron_distribution.py | 4ef9fdcbdfafbcb334aca1e40427fe5bba9cec39 | [] | no_license | NikiDimov/SoftUni-Python-Fundamentals | d8ba24a06c4366e76bdc69f1c5225dca29fe955e | 5bb1bf5928e40f2bac867d33566c8b9dac13f566 | refs/heads/main | 2023-07-15T05:57:57.085880 | 2021-08-19T10:27:45 | 2021-08-19T10:27:45 | 323,631,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | sum_list = int(input())
new_list = []
index = 0
while sum(new_list) <= sum_list:
index += 1
new_list.append(2 * (index ** 2))
new_list.pop()
if not sum(new_list) == sum_list:
new_list.append(sum_list-sum(new_list))
print(new_list)
| [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
afd180b9a563f74f88362ddf28fac6eeac7b32ab | 89f4c66c4d3d40fdb843729403a3d44199a0fad2 | /utils/xmlWriter.py | 2d3cea12c585cabac3f0b93a648da067604dd5ef | [] | no_license | yangjiandong/mysite | 80911f08bc2f94c32b0de46f8b7a0c3eb96b2fca | 2db0444d9fac7b9bbf2da38ae03211c6cf0bba4a | refs/heads/master | 2021-01-15T17:29:29.396568 | 2012-01-04T08:33:08 | 2012-01-04T08:33:08 | 3,047,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py |
from xml.dom.minidom import Document
from xml.sax.saxutils import unescape
class XmlWriter:
def __init__(self):
self.doc = Document()
def createNode(self, nodeName, parentNode = '', withAttribs = {}):
node = self.doc.createElement(nodeName)
if parentNode == '': # create a parent node
... | [
"young.jiandong@gmail.com"
] | young.jiandong@gmail.com |
250b2e1e8b4474fd23b0803fbd34acc807d022ca | 3c099a78896ca4b775d28fccf38c2bfdf6a1a555 | /FileHandling/mode_r_reading.py | 4cf765a74230f48d134f93e65bf81d375d7f3d33 | [] | no_license | anmolparida/selenium_python | db21215837592dbafca5cced7aecb1421395ed41 | 78aec8bf34d53b19fb723a124ad13342c6ce641c | refs/heads/master | 2022-12-03T23:52:32.848674 | 2020-08-30T19:26:30 | 2020-08-30T19:26:30 | 282,207,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py |
with open("test.txt", mode='r', encoding='utf-8') as f:
# reads the first 5 chars of Second Line
print(f.read(5))
# reads the next 5 chars of First Line
print(f.read(5))
# read the rest of first line till end
print(f.read())
# f.read() returns a newline when end of the line is reached
... | [
"anmolparida@gmail.com"
] | anmolparida@gmail.com |
a75bd1d42031d214c8039b553b29e5df4907c64e | 3fe361cb8999b9efa39be9f474a43ae3717c38fc | /Leecode/leetcode83.py | aea0a1650ee2a232832e7dfac2f7c2f573ddb50d | [] | no_license | sjhhh3/Leetcode | bbacd124dcd165ae20f61ec165dce634ca75264d | 85b88da4aad86f86bff5c13de12e13069cda604f | refs/heads/master | 2021-01-02T04:13:35.914889 | 2019-03-12T17:31:18 | 2019-03-12T17:31:18 | 98,950,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def deleteDuplicates(self, head):
cur = head
while cur:
print(cur.val)
while cur.next and cur.next.val == cur.val:
cur.next = cur.next.nex... | [
"sjhhh33@gmail.com"
] | sjhhh33@gmail.com |
db21e5980443d214a3f00419927c75bed60ee819 | 8380b5eb12e24692e97480bfa8939a199d067bce | /Fuzzbunch/Resources/Pc2.2/PyScripts/Lib/pc2_2/__init__.py | 7a6f950358103d368b2c3dbfc16fbc1ce550843e | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | RamadhanAmizudin/malware | 788ee745b5bb23b980005c2af08f6cb8763981c2 | 62d0035db6bc9aa279b7c60250d439825ae65e41 | refs/heads/master | 2023-02-05T13:37:18.909646 | 2023-01-26T08:43:18 | 2023-01-26T08:43:18 | 53,407,812 | 873 | 291 | null | 2023-01-26T08:43:19 | 2016-03-08T11:44:21 | C++ | UTF-8 | Python | false | false | 2,449 | py |
# package pc2_2
import dsz
import pc2_2.payload
import re
#--------------------------------------------------------------------------------------
def IsValidIpAddress(addr):
# This is a rather inefficient way to find IPv6 addresses in particular...
if ((re.match("^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}... | [
"rui@deniable.org"
] | rui@deniable.org |
f7af7a31c5ad0016af2a0cd3432a557bbb5d7cce | 933ed73cdf117fc6c88c1ebba7a17b82807a16e8 | /docs/02.AI_ML/code-1905/day04/demo05_car.py | 048e94096fb88be5ddc27ec6703b32d5a1d42282 | [
"Apache-2.0"
] | permissive | wan230114/PythonNote | c4fff80f6f3849ed0b0346526d3c6197a4867d2c | f4989a44c03efdcea3f7aa3484e3470e7fd983eb | refs/heads/master | 2023-01-28T14:51:07.304066 | 2023-01-12T18:38:16 | 2023-01-12T18:38:16 | 242,367,069 | 5 | 6 | Apache-2.0 | 2021-01-05T23:35:10 | 2020-02-22T15:45:01 | JavaScript | UTF-8 | Python | false | false | 596 | py | """
demo05_car.py
"""
import numpy as np
import sklearn.preprocessing as sp
import sklearn.ensemble as se
import sklearn.model_selection as ms
# 读取文件
data = np.loadtxt('../ml_data/car.txt',
delimiter=',', dtype='U20')
# 整理训练集的输入与输出
data = data.T
train_x, train_y = [], []
for col in range(len(data)):
if col < len(da... | [
"1170101471@qq.com"
] | 1170101471@qq.com |
00a4bd25e4dddaedb1f91104585dd9990c6fb2b0 | ba1e90ae6ea9f8f74d9b542e159825341c717712 | /2014/cf48A.py | 7b2db70ff0fbc4da241f52d72f91263d40887ef7 | [] | no_license | sailesh2/CompetitiveCode | b384687a7caa8980ab9b9c9deef2488b0bfe9cd9 | 5671dac08216f4ce75d5992e6af8208fa2324d12 | refs/heads/master | 2021-06-24T22:39:11.396049 | 2020-11-27T05:22:17 | 2020-11-27T05:22:17 | 161,877,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | f=raw_input()
m=raw_input()
s=raw_input()
a=0
b=0
c=0
if f=="rock" and m=="scissors" and s=="scissors":
a=1
if f=="paper" and m=="rock" and s=="rock":
a=1
if f=="scissors" and m=="paper" and s=="paper":
a=1
if m=="rock" and f=="scissors" and s=="scissors":
b=1
if m=="paper" and f=="rock"... | [
"sailesh.ku.upadhyaya@gmail.com"
] | sailesh.ku.upadhyaya@gmail.com |
dc552108317ab78d3e98649a29f8a5c4cc13f79a | 729ee5bcb31708a82b08509775786597dac02263 | /coding-challenges/week08/day04/ccQ1.py | 172414ad618b5fffe34bad0d45a98e6eeb9f4e88 | [] | no_license | pandey-ankur-au17/Python | 67c2478316df30c2ac8ceffa6704cf5701161c27 | 287007646a694a0dd6221d02b47923935a66fcf4 | refs/heads/master | 2023-08-30T05:29:24.440447 | 2021-09-25T16:07:23 | 2021-09-25T16:07:23 | 358,367,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # - 1) Write a program to print sum of right diagonal of a matrix: (5 marks)
# Right diagonal is shown below:
# 1 2 3
# 4 5 6
# 7 8 9
def Right_diagonal(a,m,n):
sum_right=0
for i in range(m):
for j in range(n):
if i+j==n-1:
sum_right=sum_right+a[i][j]
return sum_rig... | [
"ankurpandey131@gmail.com"
] | ankurpandey131@gmail.com |
4a646f64c89b8ddebfaa75a096f2bf972a97d2f9 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22058.py | 09ece6776ffa5d1bf7a1f4e890e4cb05d40b068c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | # What should be the URL of my Django Application
WSGIScriptAlias /bias_experiment/ /var/www/bias_experiment/src/bias_experiment/index.wsgi
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
8a9925b214fa56be4b4d91d0419444bb58674977 | f5fbdb4080a38e20e7a165e07b8328cbb37270cb | /swimercamp0/questions/filters.py | cba7817809508c522b98514dcaaa443f4bc18425 | [] | no_license | ayoub-smayen/socialswimerv2 | 390d3742d0282c3ff7eee405f4fffd6adf8e69dc | 536b6c1b7f51e2f6ac449657a38a89cf49be7094 | refs/heads/master | 2023-06-29T16:42:07.153060 | 2021-08-01T20:05:48 | 2021-08-01T20:05:48 | 391,725,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from django.core.exceptions import ObjectDoesNotExist
from django.db.models import Count, Q
from django.shortcuts import get_list_or_404
def questions_filter(request, model):
request = request.GET
if 'q' in request:
query = request['q']
return model.objects.filter(
Q(ti... | [
"ayoubjobs.2019@gmail.com"
] | ayoubjobs.2019@gmail.com |
5395b5a2581151f6ead277cdc127ec59bbc5c228 | 6c79619f03732d4c1433ae6bea0e8e82549b16c9 | /0x0F-python-object_relational_mapping/5-filter_cities.py | b767d4622c15aa80bca2ccb75f573cc9e23fc67d | [] | no_license | wondus36/holbertonschool-higher_level_programming | 9a094556ef9cbfa907838dc279f78af881b73c4d | 78ad6501bc61c018b105dea229265a267ac6cde4 | refs/heads/master | 2023-04-08T01:13:24.988702 | 2019-10-01T08:01:30 | 2019-10-01T08:01:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!/usr/bin/python3
"""5-filter_cities
Takes in the name of a state as an argument and lists all cities of that state,
using the database hbtn_0e_4_usa
"""
if __name__ == "__main__":
import MySQLdb
from sys import argv
with MySQLdb.connect(host="localhost", user=argv[1], passwd=argv[2],
... | [
"tassavarat@gmail.com"
] | tassavarat@gmail.com |
6a755e2c36cf53897dd5d505673344fe688d02b9 | f13f336c42313b9e45a9a497d5737ecff8652731 | /Python/338.Counting Bits.py | 3e15ef696b03558da3e4036595d4cae7810bf251 | [] | no_license | whguo/LeetCode | 9b58bfbad07d9c3bfe8c48c74cd52fa6e019c2be | 74cc5aa3743d387213a36c7dcfd37e82ca60473a | refs/heads/master | 2020-02-26T16:02:39.172627 | 2017-07-28T01:59:20 | 2017-07-28T01:59:20 | 57,174,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #给一个正整数num,对于每一个i满足0<=i<=num,计算每一个i的二进制位共有多少个1,并按数组返回。
#如num=5,返回[0,1,1,2,1,2]
class Solution(object):
def countBits(self, num):
result = []
for i in range(num+1):
tmp = 0
while i!=0:
tmp += i & 1
i = i>>1
result += [tmp]
re... | [
"490216194@qq.com"
] | 490216194@qq.com |
cc4ecdfd746004815e3f123e9c0519f7023534c3 | a8499deff2fa4abde885891d655c3f53ab741d37 | /rotkehlchen/tests/fixtures/rotkehlchen.py | 0a6e91241b45eac1d9f28cd37b6ee5f9a795293e | [
"BSD-3-Clause"
] | permissive | georgerobescu/rotkehlchen | 4c6d2cadcf8b1a8a20f33bb7352b3924a492af54 | 817c880b771b8daf5635b02642861dd9949689e2 | refs/heads/master | 2020-06-25T00:22:20.442607 | 2019-07-26T11:42:13 | 2019-07-26T11:42:13 | 199,137,746 | 0 | 0 | BSD-3-Clause | 2019-07-27T08:25:06 | 2019-07-27T08:24:59 | Python | UTF-8 | Python | false | false | 5,343 | py | import argparse
import base64
from collections import namedtuple
from unittest.mock import patch
import pytest
from rotkehlchen.premium.premium import Premium
from rotkehlchen.premium.sync import PremiumSyncManager
from rotkehlchen.rotkehlchen import Rotkehlchen
from rotkehlchen.server import RotkehlchenServer
from r... | [
"lefteris@refu.co"
] | lefteris@refu.co |
0ba1b5b057f4c4f4960dcf05521b103c12df39bb | 6019a02e7010199b2a0e8045f1cb39b99ea15e4b | /main/apps/random_word_generator/urls.py | f17264f0431c1a7c9c43a2818fd40cb1164e8139 | [] | no_license | MovinTarg/random-word-generator | 16fc128b1fed4e3fe25160e798aa6e4c3fe17de3 | f0a4bfa4e0114a8b8164949409dff261e2c1bbc0 | refs/heads/master | 2021-04-06T19:09:13.850527 | 2018-03-14T13:39:34 | 2018-03-14T13:39:34 | 125,218,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^random_word$', views.random_word),
url(r'^reset$', views.reset)
] | [
"pbianchi192@gmail.com"
] | pbianchi192@gmail.com |
9049c04aec5cae934c076641de8a79ae32d24955 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_export_transport/models/res_partner.py | 86defc1a2fc3ec7ae86d3d620c6523450537dd67 | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
from odoo import api, fields, models, _
class ResPartner(models.Model):
_inherit = 'res.partner'
ruex = fields.Char('RUEX')
code_export = fields.Char('Codigo de Exportacion')
| [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
8c874bc4e80a96c94435631b01a518fe02252bd3 | 735418852bde5766a1b2847c5c9700ffb1d16d67 | /client.py | e2cb27299e0d67a707e8c951fb31b4d57699edda | [] | no_license | firchatn/systeme-reparti | 653b8fc255b4d87197ba3bb9c3ab224e22dfd682 | 491be2f80043a7f96dc4ec011a75e7b62314121c | refs/heads/master | 2021-05-06T19:15:08.287272 | 2017-12-28T21:42:44 | 2017-12-28T21:42:44 | 112,101,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import socket
server_conx = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_conx.connect(('10.30.252.225', 8008))
msg = server_conx.recv(1024)
msg = msg.decode()
print(msg)
server_conx.close()
| [
"firaschaabencss@gmail.com"
] | firaschaabencss@gmail.com |
b900d9f09174173a40a8152e3b64b8e3797cd324 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4155/codes/1585_2905.py | f4c78d0c6ce4de65c0fdfb0db255ff9ccf0e8b93 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from math import *
lado1 = float(input("valor: "))
lado2 = float(input("valor: "))
lado3 = float(input("valor: "))
s = (lado1 + lado2 + lado3) / 2
A = sqrt(s * (s - lado1) * (s - lado2) * (s - lado3))
r = round(A, 5)
print(r) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a2665c988434d1f6d8dbaa0ccb8cf923e333282e | e4d4f41a8eb3c399cb5c074c7f61d29e7a214557 | /has_unique_chars.py | 7b0d74503cedf96ab7f9837464199706223b870f | [] | no_license | akankshanayak2111/coding_practice | 5934b738e736f7069844443e11ee61969d88d398 | 0ead91a8b25cf37644cd0f9a5b664016a21f1b00 | refs/heads/master | 2021-07-06T04:08:17.425315 | 2017-09-28T21:49:20 | 2017-09-28T21:49:20 | 105,186,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | def has_unique_chars(word):
"""Does word contains unique set of characters?"""
count = {}
for letter in word:
if letter not in count:
count[letter] = 1
else:
count[letter] += 1
for value in count.values():
if value > 1:
return False
ret... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
0bc7a3a5c169c2c210406116949d53a217ffd90e | dce7ca1ebab403bf7c23b77368ee26a2dd4475b6 | /app/auth/views.py | 4b5da3ce142890d6aba17e9d1ce74f2dcc6f7df2 | [] | no_license | qcymkxyc/Graduate | 3b7e89b3f44141d9fd011c15690f902674a9e979 | 2afedacaaa3a0f4d9bbc13596d967ec8808d43d6 | refs/heads/master | 2022-12-10T12:32:37.326653 | 2018-11-10T07:49:13 | 2018-11-10T07:49:16 | 148,103,320 | 0 | 0 | null | 2022-12-08T01:14:09 | 2018-09-10T05:25:40 | Python | UTF-8 | Python | false | false | 2,529 | py | #!/usr/bin/python3
# coding=utf-8
"""
@Time : 18-8-30 下午7:38
@Author : qcymkxyc
@Email : qcymkxyc@163.com
@File : views.py
@Software: PyCharm
"""
from . import auth
from flask import render_template, redirect, request, url_for, flash, current_app
from flask_login import login_user, logout_user, logi... | [
"qcymkxyc@163.com"
] | qcymkxyc@163.com |
82a674aea6170f523715da4d996bc734f3997df9 | bf4f5e90fff95800f3ab944efcdb9aace29be71d | /banshee-master/api/act/act_.py | e4a280d86a4dd4dd73eebdb5c29a4c011ad9efa7 | [] | no_license | tanlu01/testfan | c77c833d4e164a4786f20d7f28ffbb99cd6dcb2e | de8cf936dc7e80a9e2847fa47ae5c909729675b1 | refs/heads/master | 2023-04-20T17:12:57.515484 | 2021-05-10T15:53:15 | 2021-05-10T15:53:15 | 365,418,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import os
from api.request import Request
from jsonschema import validate
class Act(Request):
host = os.getenv('API_GATEWAY_ACT_HOST')
headers = {'X-Token': 'mengtuisso'}
cookies = {'X-Token': 'mengtuisso'}
mock_status = 200
mock_data = {
'code': 60000,
'message': 'from mock'
... | [
"tanlu01@100.me"
] | tanlu01@100.me |
04a2ed6c380f77ad12cca588e7c29e5f4b7d2c25 | 94b3d196c8d9c5463505ac3e8b831d8e7f27a695 | /dayu_widgets_mvc/column.py | 983f00cef4393fac1065f644aaf73bd81cb4c781 | [
"MIT"
] | permissive | YanruMu-sunding/dayu_widgets_mvc | 88b52c7b0dd0be7c52c3f1e553ddc4a3e6a38b45 | 902766359caf6b5f9d0becf5e346569a26d5674d | refs/heads/master | 2022-02-18T01:18:06.800925 | 2019-09-06T11:40:27 | 2019-09-06T11:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,506 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###################################################################
# Author: Mu yanru
# Date : 2019.9
# Email : muyanru345@163.com
###################################################################
import collections
from dayu_widgets.qt import *
import utils
Cell = col... | [
"muyanru345@163.com"
] | muyanru345@163.com |
be4cfabf9d457f4ea0912df9ef9587fab2ab78e6 | 5fc66d4693064bd9100e9b8ebc18d268e43a5ea4 | /agent.py | de89a89c913353f8a61ae58c1f58593297490482 | [] | no_license | kiminh/Optimal-bidding-policy-using-Policy-Gradient-in-a-Multi-agent-Contextual-Bandit-setting | 9b499f40460ad73e7bd6414dc0a2c7c9969745fb | af305faa55673df9c7eda669da7426f2d4e4552e | refs/heads/master | 2020-12-27T07:50:15.376561 | 2018-03-09T03:10:57 | 2018-03-09T03:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | import numpy as np
import tensorflow as tf
from utilities import *
class Agent(object):
def __init__(self,env,n_layers,size,lr,name):
self.ob_dim=env.state_dim
self.ac_dim=env.action_dim
self.name=name
self.n_layers=n_layers
self.size=s... | [
"noreply@github.com"
] | kiminh.noreply@github.com |
8c1b797f92a7fd3ac7168e0b3888857e7091e38e | 9923e30eb99716bfc179ba2bb789dcddc28f45e6 | /apimatic/python_generic_lib/Samsara+API-Python/samsaraapi/models/drivers_summary_param.py | 0bdf7fca22d789af5b963ef05632766964768285 | [
"MIT"
] | permissive | silverspace/samsara-sdks | cefcd61458ed3c3753ac5e6bf767229dd8df9485 | c054b91e488ab4266f3b3874e9b8e1c9e2d4d5fa | refs/heads/master | 2020-04-25T13:16:59.137551 | 2019-03-01T05:49:05 | 2019-03-01T05:49:05 | 172,804,041 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | # -*- coding: utf-8 -*-
"""
samsaraapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class DriversSummaryParam(object):
"""Implementation of the 'driversSummaryParam' model.
TODO: type model description here.
Attributes:
end_ms (lo... | [
"greg@samsara.com"
] | greg@samsara.com |
cbff194f97c90ff899c697d5ccce8e5db91bf345 | d225ec04301d8abd681d68ad8d7316befc404bc1 | /ZShape/Paper/root/confSystSigBE.py | 99d6f2b9d1181239c4869f6e3f99275eb9764ec0 | [] | no_license | UMN-CMS/ZShape_Analysis | 372ea0083d6c0bda2dbba30322ef01269501afa8 | 83bff158b21210b048afbcff0af1e803780ad4bd | refs/heads/master | 2020-06-07T10:34:40.227684 | 2013-12-11T16:59:25 | 2013-12-11T16:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | # -*- coding: utf-8 -*-
#file = open('nothing2.txt')
import sys
B0=['TH1F','EffSystEE-EB','FinalEffSystEE-EB']
#B0=['TH1F','ZFromData/ECAL95EB-ECAL95EE/C08-m(70,110)/e1_P_t','EB_ET_Shape_Changes_EB-EE']
#B0=['TH1F','ZFromData/ECAL95EB-ECAL95EE/C07-HLT-GSF/e2_P_t','EE_ET_Shape_Changes_EB-EE']
B1={'RedCirc':['kRed','kF... | [
"klapoetke@physics.umn.edu"
] | klapoetke@physics.umn.edu |
876d82a4f1bdd50ee7430d39adb45ff79c2b4aac | 1dca948e273d94383e09c8c69a77d462d54db3d6 | /lastmile/leetcode/weekly/205/MinimumDeletionCostToAvoidRepeatingLetters.py | 44e985dcac349d7a5e99d6c251ad1d6fc8443525 | [] | no_license | m-sathya-reddy/DataStructuresAlgorithmsPython | b61c7495b98d7df9edc57c84a58ec914fcaee901 | 3be5236c98c87f6ec6b6a305c4ef514059271c76 | refs/heads/master | 2023-01-04T19:24:26.589663 | 2020-11-02T15:59:43 | 2020-11-02T15:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import itertools
from typing import List
class MinimumDeletionCostToAvoidRepeatingLetters:
# def minCost(self, s: str, cost: List[int]) -> int:
# if not s:
# return 0
# dp = [0] * len(s)
#
# for i in range(1, len(s)):
# if s[i]==s[i-1]:
# dp[i]=d... | [
"arun@arunma.com"
] | arun@arunma.com |
440fea24732199fa1b6612b4cf989121222f964f | d1637ff8a434e665b4a93f11233d445b6568c09f | /algorithms/89_GrayCode.py | c146580db429871a79f6a53ed5a294a503d02c23 | [] | no_license | yunkaiwang/LeetCodeSol | a395570a9b3e8312fd121264c7a726c2b7fe7e44 | 5c722710a1e0a23e105abd22b91c96a4fa4f4b3a | refs/heads/master | 2021-06-07T19:37:55.710471 | 2021-05-10T17:24:53 | 2021-05-10T17:24:53 | 163,915,409 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | class Solution:
def grayCode(self, n):
sol = []
for i in range(1 << n):
sol.append((i >> 1) ^ i)
return sol | [
"yunkaiwang1996@gmail.com"
] | yunkaiwang1996@gmail.com |
7913d7206005348214b82d61b7af7f54e79c25ac | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_072/ch28_2019_12_05_04_47_10_073734.py | 30cc15450936f0325ac8c6ef9e89e86a96719736 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | a=int(input('Qual a velocidade do carro? '))
if a<=80:
print ('Não foi multado')
else:
print ('Voce foi multado em R$ {0:.2f}'.format((a-80)*5))
| [
"you@example.com"
] | you@example.com |
6d47a2dcc1f77fbbf98b3e9ec88b817153106338 | 58959ee3e92cfb4dee217df94a1eb5d0fb4a238e | /qiskit/primitives/sampler.py | 5a833572f19c8a58182c44613ba01d81c8b49230 | [
"Apache-2.0"
] | permissive | AGaliciaMartinez/qiskit-terra | e5d143393ee31af28e7fefddc52219c375d54066 | e70ce504149b40287cfb8bff3ac525159dd46a40 | refs/heads/master | 2023-03-16T09:50:59.840070 | 2022-12-11T14:25:14 | 2022-12-11T14:25:14 | 219,828,601 | 0 | 0 | Apache-2.0 | 2023-03-06T13:15:22 | 2019-11-05T18:59:22 | Python | UTF-8 | Python | false | false | 6,174 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | AGaliciaMartinez.noreply@github.com |
a312f17878ced7624ae2ead27cd68268b26ca82e | 78a20d2ceac95d3afb55b215305a8c40670e873f | /QsimMaster/scripts/pulse_sequences/sub_sequences/single_qubit_gates/clifford_X.py | 808202dd700c4bcec30066a158821e1003258f10 | [] | no_license | johnpalsberg/John-Palsberg | 9957dd2fb2a6da62e5118c4e2a9a471d5e2f4c9b | 91aa6476bc319524c6f6a4bfc5561ca6aa95e6c4 | refs/heads/master | 2023-01-13T07:26:04.250541 | 2023-01-05T08:48:17 | 2023-01-05T08:48:17 | 206,402,363 | 0 | 0 | null | 2022-06-20T16:29:42 | 2019-09-04T19:57:25 | Python | UTF-8 | Python | false | false | 2,205 | py | from common.lib.servers.Pulser2.pulse_sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
class clifford_X(pulse_sequence):
required_parameters = [
('MicrowaveInterrogation', 'power'),
('MicrowaveInterrogation', 'ttl_switch_delay'),
('MicrowaveInterrogati... | [
"jpalsberg2023@chadwickschool.org"
] | jpalsberg2023@chadwickschool.org |
9007f43952159f625eceff55718da6bd3ffa509d | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/central/models/v2022_06_30_preview/template.py | 5e2c5c97d02bdc7792159bd618e5734e046bc5c3 | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 4,307 | py | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
ef31ab1e8118804e95c75c96ba5654d5a7acc7e4 | 43f78a4d51f441b4dbbc1a84537804123201a246 | /dataaccess/vixdao.py | 47b0e5074036faaabc49495fafd2b5536228cd14 | [] | no_license | shmyhero/data-process | 28d5bfb27999cb0d462453d4663f01f43a649386 | 63dac65b41333d6e81bf32ecaa6533b28975c985 | refs/heads/master | 2021-03-22T00:11:51.373193 | 2019-10-22T06:27:28 | 2019-10-22T06:27:28 | 98,510,392 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,763 | py | import math
import datetime
import pandas as pd
from utils.listhelper import list_to_hash
from common.tradetime import TradeTime
from entities.vix import VIX
from dataaccess.basedao import BaseDAO
class VIXDAO(BaseDAO):
def __init__(self):
BaseDAO.__init__(self)
def insert(self, records):
qu... | [
"elwin.luo@tradehero.mobi"
] | elwin.luo@tradehero.mobi |
af13f47ddc400bd324edc3d3cccf8f2a23a5dd1e | e11b2493f55c60685c3ea76f900be73e6a454b2f | /core_python_programming/2/2-15.py | 8ad5b9e8cc93680357501e0cf410e2523e16422c | [] | no_license | zpoint/Reading-Exercises-Notes | 29e566dd86d97eadb84d7bb6f8f640b85486557c | 31b38fe927232ba8e6f6a0e7ab9c58026eefcffb | refs/heads/master | 2021-06-04T08:12:42.777309 | 2021-04-19T02:12:22 | 2021-04-19T02:12:22 | 70,507,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | SortList = [1,2,3]
for i in range(3):
print 'Please enter num %d\n' %(i+1)
SortList[i] = raw_input()
print 'Before sort'
for i in range(3):
print 'SortList [%d] is'%(i), SortList[i]
#Sort
if SortList[0] < SortList[1]:
temp = SortList[0]
SortList[0] = SortList[1]
SortList[1] = temp
if... | [
"zp0int@qq.com"
] | zp0int@qq.com |
a581d601ff4038bab5e55df98adceddb150c491f | a8b311f6c579a70cdca12cdff73aca18ddf5e1f4 | /Nonconventional-algs/mandelbrot.py | 98325f3683afff296528e64837806b92f85a41f4 | [] | no_license | MarekUlip/CollegePythonScripts | ec09c7730752b7bd6b85fe523470acf9d124df53 | 9133a864ab301d9076394ce9345faa5c2c878adf | refs/heads/master | 2022-11-13T12:15:56.198341 | 2020-07-06T22:26:26 | 2020-07-06T22:26:26 | 277,658,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import matplotlib.pyplot as plt
import numpy as np
from PIL import Image
def mandelbrot(c, num_of_iterations):
z = c
for i in range(num_of_iterations):
if abs(z) > 2:
return i
z = z * z + c
return 0
def generate_mand_colors(num_of_iters, x_bounds, y_bounds, width, height):
... | [
"marek.ulip@gmail.com"
] | marek.ulip@gmail.com |
ee180e3d519725a8d9d64f65cbf39e11beea33d9 | 05973b7cf07eb03099e516f21f06a6e295086862 | /phoenix/settings/__init__.py | c454be7b14eaa37020e7e108341088c47910b100 | [
"Apache-2.0"
] | permissive | bird-house/pyramid-phoenix | 302a0a4339dfea0318cf4b2545f4005b940155b0 | 36737f95f0991661856f182ba35b850829ca401c | refs/heads/master | 2023-09-01T14:00:20.087987 | 2023-05-11T16:56:14 | 2023-05-11T16:56:14 | 23,655,239 | 7 | 18 | Apache-2.0 | 2023-05-04T12:20:44 | 2014-09-04T08:52:32 | JavaScript | UTF-8 | Python | false | false | 512 | py | from pyramid.events import NewRequest
from phoenix.events import SettingsChanged
import logging
LOGGER = logging.getLogger("PHOENIX")
def includeme(config):
# settings = config.registry.settings
config.add_route('settings', '/settings')
config.add_route('settings_processes', '/settings/processes')
... | [
"ehbrecht@dkrz.de"
] | ehbrecht@dkrz.de |
36d12d8062668c6b426def06275bda96aa6d041b | b142ea12326230204caeea6226df37e90be6b15c | /Scripts/level.py | 269a037f337ce88992bc0c6bc1142e2f38a7a13c | [] | no_license | ShantanuBal/Code | 5312409b80526e67b324f4aa6fca575e9b39a9b0 | 2524f90593f19260ee4a6293ecfde4fae9b5290d | refs/heads/master | 2021-01-25T10:43:48.163570 | 2015-08-22T01:19:19 | 2015-08-22T01:19:19 | 41,180,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | class BinaryTree:
def __init__(self, node_value):
self.left = None
self.right = None
self.value = node_value
def display(root):
print root.value
if root.left:
display(root.left)
if root.right:
display(root.right)
root = BinaryTree(1)
main_root = root
root.left = BinaryTree(2)
root.right = BinaryTree(3)
... | [
"shantanu.r.bal@gmail.com"
] | shantanu.r.bal@gmail.com |
6db62679d70dcdfc903f489a0c7d3f406f82cbd3 | 270ab1f1040cd4f24751a81e4816d3bbcbd472c0 | /algorithms/096.Unique_Binary_Search_Trees/Unique_Binary_Search_Trees.py | 2cebac42ba1c81d0f9c0638abc3ba2a4fe8db0ae | [] | no_license | svcgv/leetcode | dd61add37eac451559d92e5a5f3bb7ab7f93a09e | 5c2910e1f73b1ab8a63980f60ce8287a7fe86c96 | refs/heads/master | 2021-05-16T09:01:34.870483 | 2017-03-04T12:59:37 | 2017-03-04T12:59:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | <<<<<<< HEAD
# Time: O(n^2)
# Space: O(n)
class Solution:
# @return an integer
def numTrees(self, n):
counts = [1, 1]
for i in xrange(2, n + 1):
count = 0
for j in xrange(i):
count += counts[j] * counts[i - j - 1]
counts.append(count)
... | [
"1012351692@qq.com"
] | 1012351692@qq.com |
8e74c5115adfaed96c065744ddbfabf05ecd3347 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2154/60795/264232.py | bb8cb7719cce408cb1561f7cbd19f2d791409b4b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | num=int(input())
result=0
th,hu,de,fa=0,0,0,0
mark=0
if num<0:
num=0-num
mark=1
if num==10 or num==100 or num==1000 or num==10000:
result=1
elif num<10:
result=num
elif num>10 and num<100:
fa=num%10
de=num//10
result=fa*10+de
elif num>100 and num<1000:
hu=num//100
de=num%100//10
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f0a063fccdee4aa267bf5845d0e61fd8937e5dec | 9939b85be73ccf12ce54a99ca2623df0a7cb1c0e | /script/services/test_service.py | 5ebc0e3f7ecba409d474c19b1b641c1d3d3aeaad | [] | no_license | DamonHao/play_rpc | 20e627588bcbd2324e06c755aad17b661ccbb55e | 4d6a7f56daf64c262b2c1bbc41c742c98ed70507 | refs/heads/master | 2021-01-17T12:49:29.078673 | 2016-07-24T14:32:57 | 2016-07-24T14:32:57 | 56,332,640 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'damonhao'
from net.rpc import Rpc, RpcService
import helloworld_pb2
from tornado import gen
class GreeterServerImp(RpcService, helloworld_pb2.GreeterServer):
@Rpc
def SayHello(self, request, controller):
name = request.name
response = helloworld_pb2... | [
"haolinknight@gmail.com"
] | haolinknight@gmail.com |
fdd8f8f33a79b5bfa31273d30284cfb73c6fe462 | c3e4d0776f447d4a19ad83de03f99a296735c10d | /functions/common.py | 07d50dca8a36480b6555901c5133b1e400596670 | [] | no_license | lgarzio/comt-tools | f6696729972d31aa08571cbab5e0e1edf559f253 | 64bab3582b85a4223b19109accb319c5c3dda8e5 | refs/heads/master | 2023-03-27T19:18:14.533114 | 2021-04-02T00:48:01 | 2021-04-02T00:48:01 | 281,463,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | #! /usr/bin/env python
"""
Author: Lori Garzio on 1/7/2021
Last modified: 1/11/2021
"""
import numpy as np
import xarray as xr
import matplotlib.pyplot as plt
def crmse(data1, data2):
res = np.sqrt(np.nansum((((data1 - data1.mean()) - (data2 - data2.mean())) ** 2) / (len(data2) - 1)))
return res
def model... | [
"lgarzio@marine.rutgers.edu"
] | lgarzio@marine.rutgers.edu |
c976a18af2c1cc362d5ca5353f14209d7875700c | fb4e41a40d82427e3948549653cdf0405e6dba2b | /app/users/forms.py | ddcb6d5837e708e964e3d591bf4d3e0490b633e5 | [] | no_license | Axeh99/Axeh99s-Website | 5afeef75943722a7c3e67554da57daeb01c70f7a | 7704fbaae7aa26bb1c208fbc18bb6679ea9e3215 | refs/heads/master | 2022-12-10T21:37:16.296575 | 2020-09-01T16:12:27 | 2020-09-01T16:12:27 | 283,016,745 | 1 | 0 | null | 2021-03-04T20:03:07 | 2020-07-27T21:07:14 | HTML | UTF-8 | Python | false | false | 3,270 | py | from flask_login import current_user
from flask_wtf import FlaskForm
from flask_wtf.file import FileAllowed, FileField
from wtforms import BooleanField, PasswordField, StringField, SubmitField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
from app.models import User
class Regis... | [
"sralloza@gmail.com"
] | sralloza@gmail.com |
dacfdaf9030c56eb07009b5772861c87328a0a77 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/choroplethmapbox/_legendwidth.py | a6f64e2644088124d6f4ee652ae625027ebfb49b | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 471 | py | import _plotly_utils.basevalidators
class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name="legendwidth", parent_name="choroplethmapbox", **kwargs
):
super(LegendwidthValidator, self).__init__(
plotly_name=plotly_name,
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
d2859ee77fcf00e01ff9b13eddd74ca2f24f54bb | 7305127e14995404d6ca5653b50c43370b6af815 | /bookwyrm/tests/connectors/test_connector_manager.py | 783b5a276794a736879cd0113a7b48e0ddd6d884 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | nornagon/bookwyrm | 2cdda17b1fffd09c932cf09bfdc48021f24fbfb6 | 53e34cf7de47e988386c80933b59326667f7aa4b | refs/heads/main | 2023-02-10T04:24:24.528971 | 2021-01-07T00:05:46 | 2021-01-07T00:05:46 | 327,500,772 | 2 | 0 | NOASSERTION | 2021-01-07T04:16:36 | 2021-01-07T04:16:35 | null | UTF-8 | Python | false | false | 3,367 | py | ''' interface between the app and various connectors '''
from django.test import TestCase
from bookwyrm import models
from bookwyrm.connectors import connector_manager
from bookwyrm.connectors.bookwyrm_connector \
import Connector as BookWyrmConnector
from bookwyrm.connectors.self_connector \
import Connector ... | [
"mousereeve@riseup.net"
] | mousereeve@riseup.net |
45bb2e509a3e4e747aa70796fa78e5e7109a30ed | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /unittests/test_bookctrl.py | 08fd3c07aa642e21c4630757783045c79b1c7f13 | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import imp_unittest, unittest
import wtc
import wx
#---------------------------------------------------------------------------
class panel_Tests(wtc.WidgetTestCase):
def test_bookctrl1(self):
wx.BK_DEFAULT
wx.BK_TOP
wx.BK_BOTTOM
wx.BK_LEFT
wx.BK_RIGHT
wx... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
35bbfb0d781266cda6ed5b4175311bced3d3980c | a2e11ec88ef3c83b9f07129e76a3681a676d164f | /lofodemo/testapp/admin.py | cebb9353182751d425c627f94633f5f9cceae046 | [] | no_license | qwertypool/lofo | dadd7cd5b149a3a200b7111d803b1d0195d76642 | 3bc7bd125e7ea5a67f51dd6dd654e38a5f218055 | refs/heads/master | 2022-05-18T09:31:11.456634 | 2020-04-18T14:47:44 | 2020-04-18T14:47:44 | 256,773,858 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django.contrib import admin
from testapp.models import Lost,Found
# Register your models here.
class LostAdmin(admin.ModelAdmin):
list_display = ('name','uid','card')
class FoundAdmin(admin.ModelAdmin):
list_display = ('name','uid','card')
admin.site.register(Lost, LostAdmin)
admin.site.register(Found, ... | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
15c554639c28a7ba5fbe7bab64a396077ce18c26 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/services/patch/DEPS | ea7209ad8651bca58507d66d4dbfaea8cacc36c7 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 177 | include_rules = [
"+components/update_client",
"+courgette",
"+mojo", # By definition.
"+services/service_manager/public", # Every service talks to Service Manager.
]
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com | |
ad5a7d8f0777822964301c06281df61a484704d2 | d8ac2bae2e4b8261555b3490473e954194df402e | /pyLOPE/utils.py | e78c709ff0e411887ac942254d78f9a85fd52d59 | [
"MIT"
] | permissive | kylecomtw/pyLOPE | a1b4668d77ffeb35e45d6c469b732ba6efedd052 | 72d18c4185170aaa95b708deda1a94b01b6a7fea | refs/heads/master | 2020-03-27T03:12:01.333306 | 2018-07-03T06:39:56 | 2018-07-03T06:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from textwrap import dedent
def README():
msg = """
pyLOPE is a paedological package developed in NTU.
Its purpose is to conveniently show principles in programming,
or computers in general. In the same vein, it is also expected
to provide useful functions to be incorporated in
... | [
"seantyh@gmail.com"
] | seantyh@gmail.com |
d3837046fdfc10e95cef1f0a757173b8d2431ce6 | 15afc6a3270d9b42cc84a788853ce46456be01f2 | /section_i/chapter_05/exercise_05_02.py | 8a14217c1c3806569c3f189d5a92f28ae3377a3d | [] | no_license | xieqing0428/python_helloworld | 161c90564638dc49e3a82a00607a762b36a39212 | e08f63616aabe609ff1ac53b8e0ab32eaf2a472b | refs/heads/master | 2020-04-16T11:01:37.918248 | 2019-02-14T07:19:09 | 2019-02-14T07:19:09 | 165,521,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # -*- coding:utf-8 -*-
"""
@author: Alessa0
@file: exercise_05_02.py
@time: 2019-01-15 17:23
5-2 更多的条件测试:
你并非只能创建10个测试。
如果你想尝试做更多的比较,可再编写一些测试,并将它们加入到conditional_tests.py中。
对于下面列出的各种测试,至少编写一个结果为True和False的测试。
检查两个字符串相等和不等。
使用函数lower()的测试。
检查两个数字相等、不等、大于、小于、大于等于和小于等于。
使用关键字and和or的测试。
测试特定的值是否包含在列表中。
测试特定的值是否未包含在列表中
... | [
"849565690@qq.com"
] | 849565690@qq.com |
4a91777e756ff26ed8a6768dab2f89edcd93a01a | 16dcbf88ae9514109151fe5ff447b2b653ddf48b | /2015/010-Connect4/board.py | 8a622aaa700a17cd97135725613f292db6c984ec | [] | no_license | ChristerNilsson/Lab | efa55ef5e79dff84b232dfcf94473eacdb263175 | b1f730f45ec6e901bd14c1e4196aa5e0f591ecd2 | refs/heads/master | 2023-07-06T04:35:09.458936 | 2023-06-24T21:40:54 | 2023-06-24T21:40:54 | 48,474,249 | 8 | 8 | null | 2022-12-10T07:03:31 | 2015-12-23T06:51:11 | JavaScript | UTF-8 | Python | false | false | 6,664 | py | # -*- coding: utf-8 -*-
import random
M = 6 # antal rader
N = 7 # antal kolumner
DOT = '.'
def ass(a, b):
if a != b:
print("Assert failed")
print(a)
print(b)
assert a == b
class Board(object):
def __init__(self, moves=''):
self.clear()
for digit in moves:... | [
"janchrister.nilsson@gmail.com"
] | janchrister.nilsson@gmail.com |
14762e03ba4375e4a7a12f783205610ca53d0a49 | 23bdcb74f9c4d98ff790d140bea56fbb0fd7bbbd | /app/env/Lib/site-packages/jinja2/__init__.py | d9d23fce879abd728ce02386395347416e09cf05 | [
"MIT"
] | permissive | OswaldoCaleone/transporte_uniescolar | 85c680c062fa14d0bc90afa60f7434b059fdf245 | 1ef10869358457a6a9d0f04df891ce4eb0905887 | refs/heads/main | 2023-08-30T18:37:11.496451 | 2021-11-12T13:35:45 | 2021-11-12T13:35:45 | 429,673,776 | 1 | 0 | MIT | 2021-11-19T04:53:24 | 2021-11-19T04:53:24 | null | UTF-8 | Python | false | false | 2,205 | py | """Jinja is a template engine written in pure Python. It provides a
non-XML syntax that supports inline expressions and an optional
sandboxed environment.
"""
from .bccache import BytecodeCache as BytecodeCache
from .bccache import FileSystemBytecodeCache as FileSystemBytecodeCache
from .bccache import MemcachedBytecod... | [
"92728746+alexpls2021@users.noreply.github.com"
] | 92728746+alexpls2021@users.noreply.github.com |
2411b56b76550ec84b6248f365a334f123daf9f3 | ee81c67068a7b172a786a2ec9cd3b29af6f49d47 | /home/migrations/0002_load_initial_data.py | a07cdf08948800727724c947399dee4ff1173fac | [] | no_license | crowdbotics-apps/inlife-claims-15343 | 66d9e03436c77a954490364547f769ddd39da68e | b9863e02fc86ed4a70574a48cc8dbd0edf66ea49 | refs/heads/master | 2022-02-17T12:07:16.389646 | 2020-04-02T19:16:12 | 2020-04-02T19:16:12 | 252,545,178 | 0 | 0 | null | 2022-02-10T23:37:24 | 2020-04-02T19:15:53 | Python | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "InLife Claims"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
365a219f58f0701e693fcf63389716ff4d887ac5 | 84341d15f4b8d13b09c7dabe2b7286705ee86b7b | /bert_model/__init__.py | 6b305948380c8e19044b61d60a983eba577495f8 | [] | no_license | UMP-Healthcare-AI/Self-Training-MRC | 7a0ef0c52f0064cfc32a2bedb433608ed10328a7 | 0601158085bb11e454aee1ebaa987f5aa741ab3f | refs/heads/master | 2022-12-01T17:46:28.463777 | 2020-08-14T01:56:25 | 2020-08-14T01:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,970 | py | from bert_model.bert_cls_hierarchical import BertQAYesnoCLSHierarchical
from bert_model.bert_for_race import BertRACEPool, BertRACEHierarchical, BertRACEHierarchicalTwoView, \
BertRACEHierarchicalMultiple, BertRACEHierarchicalTwoViewMultiple, BertRACEHierarchicalTopK, BertRACEHierarchicalTwoViewTopK
from bert_model... | [
"jiaofangkai@hotmail.com"
] | jiaofangkai@hotmail.com |
dd53e77afa5ecd0b18a0c76a53b26103cfb669f2 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/QueryNotifyRequest.py | e47d3518e8b5d6f55e913ecb7d46817cfe28fe23 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,138 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
13077474309df84e2996cde7e7957a6f2b87b801 | 811e648c7ff5fdbf0734e1610a671540ab9fc766 | /clean_meta.py | 2e342fe1479bded620d2f5fba19a68d2117b7a0f | [] | no_license | Priyesh2000/ipynb2txt | 08a2e28395e9cdfb0ea0ae4c64c92bd45b4cf6aa | a29793a3bfe3c637b3ef52d474f9601a11a43f1f | refs/heads/master | 2022-10-09T20:01:01.478673 | 2020-06-09T16:29:07 | 2020-06-09T16:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import json
def read_ipynb(locfile):
"""
reads an ipynb file and returns a string
"""
f = open(locfile)
ipynb_str = f.read()
f.close()
return ipynb_str
def clean_meta_json(locfile):
"""
converts an ipynb to json. returns cell meta.
Parameters:
-> locfile: location of... | [
"pranjaldatta99@gmail.com"
] | pranjaldatta99@gmail.com |
01424d90e23622c7c2c7c093cb5653edb2295e06 | 5df5d4e887abd093579f92fc36399e3574cad071 | /client_transaction/views.py | 2c7240dc3e86b2ffcacc623c4cd368dabd3c3956 | [] | no_license | rushil02/Vidzert | 136cb3022d5135d3a06737be474f1842108cadf4 | c8698f7db1a89fff26a76d606272f438ebfc7d4e | refs/heads/master | 2021-01-10T04:33:01.470080 | 2016-03-22T19:21:26 | 2016-03-22T19:21:26 | 54,511,366 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | from django.core.exceptions import SuspiciousOperation
from django.shortcuts import render
from admin_custom.models import ErrorLog
from survey.models import Survey, SurveyState
from video.models import Video, VideoState
# Create your views here.
def success_video(request, video_uuid):
video = Video.objects.get_... | [
"rushil0195@gmail.com"
] | rushil0195@gmail.com |
1c140a256042159f57c345355cdda3246f07dcff | 8082431bf8e49f3ced45e7da46e43c741a17dd26 | /torchblocks/trainer/classifier_trainer.py | 782edfd09395b604f91fcffba4813f43641ba947 | [
"MIT"
] | permissive | Ares2013/TorchBlocks | 3624e01696a23c020dc8759ae6f5230f0af04e16 | a105f4742bcea36ba96a4f4487508c7ebe3ee7c4 | refs/heads/master | 2022-11-05T07:59:31.714135 | 2020-06-21T15:11:13 | 2020-06-21T15:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | import torch
from .base import TrainerBase
from ..callback import ProgressBar
from ..utils.tensor import tensor_to_cpu
class TextClassifierTrainer(TrainerBase):
def __init__(self, args, metrics, logger, batch_input_keys, collate_fn=None):
super().__init__(args=args,
metri... | [
"1436496575@qq.com"
] | 1436496575@qq.com |
e735fb31334fff49f37362048c8733f0720fa8b6 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /part/case/man/point/thing_or_company/company.py | fec5ebc218266f9793e781a4c1482899a442ef82 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def use_long_world(str_arg):
different_person(str_arg)
print('bad_number')
def different_person(str_arg):
print(str_arg)
if __name__ == '__main__':
use_long_world('old_fact')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e0b310ae4b6f5be9253ff71c4e244f162b2afd2c | f636e71f45170e6cf197bcfc14a50af45fd828ed | /Lesson 12/examples/example2.py | c48513e1b9fab9a5243ca525c8fcdf2c8d93ca72 | [] | no_license | mcgokable/Cources | 872640c62fdb82f19ec7f5d20700fed85c4a3447 | 960ef7d4e72af0ec29c9a78220b44873f2ef2d35 | refs/heads/master | 2022-04-06T23:35:30.477455 | 2019-11-29T13:22:40 | 2019-12-05T07:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from threading import Thread
from time import time
def factorial(n):
res = 1
for i in range(1, n + 1):
res *= i
return res
if __name__ == '__main__':
t1 = time()
factorial(100000)
t2 = time()
print('Single factorial: ', t2 - t1)
thread1 = Thread(target=factorial, args=(100... | [
"19941510metalhead@gmail.com"
] | 19941510metalhead@gmail.com |
4c52fbc8242d8155c5cb2d440368e8493430c03b | 904632bef612036dcf5538587636f7ad2e15e0bb | /language_programs/pubsub/publisher/main.py | 361c108e3dd0701b1207df57d462d0b1beb9a940 | [] | no_license | NirmalVatsyayan/python-revision | 1678d92dd281f6a6d183680b352ec3b6b235d8d3 | 0296d1dfb2b31f62e8b8c8c0cb09a8e3f7a6bbc9 | refs/heads/master | 2021-01-13T03:57:20.472019 | 2018-01-19T10:13:02 | 2018-01-19T10:13:02 | 78,177,053 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from publisher import Publisher
if __name__ == '__main__':
pub = Publisher(channel='foo')
for i in range(1000):
pub.send("sending %s "%i)
pub.close() | [
"nirmal.vatsyayan1990@gmail.com"
] | nirmal.vatsyayan1990@gmail.com |
34c8cbad16bab87a05fc54ba98bcb791bf823750 | 792588db469538c1f93efd2c26f0819d6e96aff5 | /comma-delimited-handlers/handlers_new/italy2.py | f2f187d52d1811fe9f7d03a12d0d0004646b565e | [] | no_license | fillingthemoon/go-cart-misc | 855696a3895ba5754a11ed0407069b6e35ee27e0 | 714513acfe2f5ad08442603443213c97f6bdae22 | refs/heads/main | 2023-08-21T23:08:48.686377 | 2021-10-05T11:08:42 | 2021-10-05T11:08:42 | 373,039,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import settings
import handlers.base_handler
import csv
class CartogramHandler(handlers.base_handler.BaseCartogramHandler):
def get_name(self):
return "Italy"
def get_gen_file(self):
return "{}/ita2_processedmap.json".format(settings.CARTOGRAM_DATA_DIR)
def validate_values(self, valu... | [
"phil.hsy@outlook.com"
] | phil.hsy@outlook.com |
988903fd4b59b2eebfcfa9a492dad343ad058f3b | 9eaa17f50df49e5c6d204a7a7ece52f94c10b30b | /tests/models/torch/test_v_functions.py | f9dfd4b0a5c9487bf09b2b4a005790f5d3fe16d1 | [
"MIT"
] | permissive | mchetouani/d3rlpy | 08d452ea2c8735b679a02474a3ae512caf91250a | 53ccf604298568b3a8322bb6f38bc33c0ac04ca2 | refs/heads/master | 2023-02-03T15:19:23.620608 | 2020-11-29T02:25:34 | 2020-11-29T02:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | import pytest
import torch
import torch.nn.functional as F
from d3rlpy.encoders import DefaultEncoderFactory
from d3rlpy.models.torch.v_functions import create_value_function
from d3rlpy.models.torch.v_functions import ValueFunction
from .model_test import check_parameter_updates, DummyEncoder
@pytest.mark.parametri... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
0c67cf895e0ba0b6e572a1ab8ec3e16b78100647 | 9c517c0d320c1c250cf53ae223a72e147f25caef | /model_movie_data/MoviesCreateTable.py | a4f34a71c0772160cf2b4b981f6c99ac68e729d0 | [] | no_license | yennanliu/DynamoDBHelloWorld | dc74b9da289e45e2a8ce99a175f9ead21ce2a0e8 | 9a00ef7a0355b69c17c55584cd4a5e4da5dc28c8 | refs/heads/master | 2021-07-02T10:24:11.016595 | 2021-05-01T15:59:41 | 2021-05-01T15:59:41 | 230,418,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | # Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# This file is licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# This f... | [
"f339339@gmail.com"
] | f339339@gmail.com |
df416e8611c56bf4dd2db23222015758641edd71 | f090c3e0faa70cf0ef7c4be99cb894630bce2842 | /scripts_201410/PulseSequences/subsequences/BlueHeating.py | ed1f64363565c9442f4b36b44cf2c63a10085ef5 | [] | no_license | HaeffnerLab/resonator | 157d1dc455209da9b7de077157bda53b4883c8b7 | 7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71 | refs/heads/master | 2021-01-09T20:48:03.587634 | 2016-09-22T18:40:17 | 2016-09-22T18:40:17 | 6,715,345 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from resonator.scripts.PulseSequences.PulseSequence import PulseSequence
from resonator.scripts.PulseSequences.subsequences.DopplerCooling import doppler_cooling
class global_blue_heating(PulseSequence):
def configuration(self):
config = [
'global_blue_heating_frequency_397',
... | [
"soenkeamoeller@gmail.com"
] | soenkeamoeller@gmail.com |
9a8a166811f4b01b152cb6552cca56afe3ef908d | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/1437855905/PySide/QtGui/QDoubleSpinBox.py | 3563e071b7bed3008a62cfbfc736ad5242c21e21 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | # encoding: utf-8
# module PySide.QtGui
# from /opt/python3/current/lib/python3.4/site-packages/PySide/QtGui.so
# by generator 1.136
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
from .QAbstractSpinBox import QAbstractSpinBox
class QDoubleSpinBox(QAbstractSpinBox):
# n... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
a283c9810085ce39593ad6da9261ba325e0b9fe8 | 306afd5282d9c24d58297478a1728a006c29e57e | /lintcode/lintcode_0192_Wildcard_Matching.py | 2a8fa310243ac4df9962bbef4c02061b3f5ba54e | [] | no_license | ytatus94/Leetcode | d2c1fe3995c7a065139f772569485dc6184295a9 | 01ee75be4ec9bbb080f170cb747f3fc443eb4d55 | refs/heads/master | 2023-06-08T17:32:34.439601 | 2023-05-29T04:33:19 | 2023-05-29T04:33:19 | 171,921,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | # 雙序列型 DP, 可行性 DP
# 轉移方程
# f[i][j] = f[i-1][j-1] 如果 B[j-1]=? 或是 A[i-1]=B[j-1] 時
# f[i][j] = f[i-1][j] 當 B[j-1]=* 且不用來匹配 or f[i][j-1] 當 B[j-1]=* 且有用來匹配
# f[i][j] = A 的前 i 個字元能不能和 B 的前 j 個字元匹配
# 初始條件
# f[0][0] = True 空字串和空的 wildcard 匹配
# f[i>0][0] = False 非空的字串和空的 wildcard 不匹配
# f[0][j>0] 可以匹配,用 f[i][j-1]
# T... | [
"noreply@github.com"
] | ytatus94.noreply@github.com |
08867a76fe4c0e790fb41df8e4ca86367b7289af | 4476502e4fed662b9d761c83e352c4aed3f2a1c2 | /GIT_NOTE/05_Tensoflow/chap04_Classification/exams/exam02_softmax_classifier.py | 04adc8dce10dfd775d1f7762ec04ee28ea3f60e0 | [] | no_license | yeon4032/STUDY | 7772ef57ed7f1d5ccc13e0a679dbfab9589982f3 | d7ccfa509c68960f7b196705b172e267678ef593 | refs/heads/main | 2023-07-31T18:34:52.573979 | 2021-09-16T07:45:57 | 2021-09-16T07:45:57 | 407,009,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,526 | py | '''
문) bmi.csv 데이터셋을 이용하여 다음과 같이 softmax classifier 모델을 생성하시오.
조건1> bmi.csv 데이터셋
-> x변수 : height, weight 칼럼
-> y변수 : label(3개 범주) 칼럼
조건2> 딥러닝 최적화 알고리즘 : Adam
조건3> learning rage : 0.001 or 0.005 선택(분류정확도 높은것)
조건4> 반복학습, step 단위로 loss : <출력결과> 참고
조건5> 분류정확도 출력
조건6> 예측치와 정답 15개 출력... | [
"yeon4031@naver.com"
] | yeon4031@naver.com |
e3c3daaa61bdb6a560cb65505d3eb91887c92399 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/13b122d1a057433eb102a868090d4af9.py | 228a5c009187dbfab7c83ad13d74e5384b3f0faf | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 189 | py | def is_leap_year(year):
if year % 4 == 0:
if year % 100 == 0 and year % 400 == 0:
return True
elif year % 100 != 0:
return True
return False
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
e9c097292c4ee2c6565c9f82d8cdb6aa6a04fee9 | 47eb3e5a0175183a5c04c3864a46b28cd7991ac4 | /make_images.py | 1c98b29ba5ad6b9f5b954b1633aaaaa938775c02 | [] | no_license | drschwenk/pdfextraction | 6b7542dabd701c91e94def8b5dc5c71832c37bb3 | be5c8af3ccc2bbcec98a1867ef7b3009a245a762 | refs/heads/master | 2021-01-16T23:56:00.476715 | 2016-11-14T02:40:10 | 2016-11-14T02:40:10 | 58,407,985 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import pdfextraction.ocr_pipeline
import pickle
with open('breakdowns.pkl', 'r') as f:
book_breakdowns = pickle.load(f)
with open('pdfs/page_ranges.csv') as f:
ranges = f.readlines()
range_lookup = {line.split(' ')[0]:[int(num) for num in line.strip().split(' ')[1:]] for line in ranges}
for book in book_brea... | [
"schwgit2@gmail.com"
] | schwgit2@gmail.com |
47b5f1bfc6a6d2ad0e303aa4acaee2b2adaffca6 | 4f0ceccea62d3c909af88a7e3f5e1d063ed94b2e | /24_swapPairs.py | 30702c281188662480132234a281d1604e923207 | [] | no_license | 0as1s/leetcode | d19c2ec4f96666a03227871b9b21b26adcd6b3b4 | c82d375f8d9d4feeaba243eb5c990c1ba3ec73d2 | refs/heads/master | 2021-05-09T21:30:35.378394 | 2021-02-01T15:37:37 | 2021-02-01T15:37:37 | 118,729,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def swapPairs(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if not head or head.next is None:
... | [
"still_crazy@qq.com"
] | still_crazy@qq.com |
1670f305787284ba8af1139062c589adf7aa4d28 | 56522d084c13138aa47b582615f3d2a4cb56e5e9 | /updatecustom.py | 850b1847d65ec64efc5209c531bcbf68e06df012 | [] | no_license | webgravel/userd-ssh | d684d42bdc09ae5daeb30aa9e4cce3f9c84a4301 | a47d5a4e8cc923bb59d4ec93130325bf52903b9b | refs/heads/master | 2016-09-10T01:33:09.914035 | 2013-09-08T21:27:18 | 2013-09-08T21:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | #!/usr/bin/env python2.7
# Updates mapping used by SSH server.
import sys
sys.path.append('/gravel/pkg/gravel-common')
sys.path.append('/gravel/pkg/gravel-userd')
import users
import ssh_info
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('uid', type=int)
args = parser.parse_args()
user = u... | [
"michal@zielinscy.org.pl"
] | michal@zielinscy.org.pl |
2d55f4d11899bd2a70dc149fc268df57c0bf2be1 | 26fb30283cca3beee7aca5c683819afd94063a13 | /story/views.py | bdde7ff5a5c5f864f0db594108f586ab4174d626 | [] | no_license | zhoomartq/HackerNewsClone | c919da32b66122e40c5e59e09764d6bef1ddd16b | c2c418da7bf8be1211c84a1e840dc8fcb0c07b1a | refs/heads/main | 2023-06-27T16:38:07.245941 | 2021-07-14T12:24:32 | 2021-07-14T12:24:32 | 385,863,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | import datetime
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from .forms import StoryForm, CommentForm
from .models import Story, Vote, Comment
def frontpage(request):
date_from = datetime.datetime.now() - datetime.timedelta(days=1)
... | [
"zhomart.osmonaliev@gmail.com"
] | zhomart.osmonaliev@gmail.com |
8df5c2090539b9dda3eebe0f37ad495dad107836 | 0755a5f8d821b2b02b7f087d26e1433156075f04 | /SW_Expert_Academy/역량테스트대비문제/SW문제풀이_IM/같은모양찾기simple.py | a1b75ac59236743bd019a24887634dcdbaba5d6e | [] | no_license | kimevanjunseok/Algorithm | 35fdfdd5a0c5c8ad1029429aba8d6c2320088993 | ea0883964e43779e569a1a2c8a879a246083ef0e | refs/heads/master | 2020-08-17T22:50:13.096789 | 2020-01-07T14:28:56 | 2020-01-07T14:28:56 | 215,720,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | M = int(input())
arr_M = [list(map(int, list(input()))) for _ in range(M)]
P = int(input())
arr_P = [list(map(int, list(input()))) for _ in range(P)]
result = 0
for i in range(M-P+1):
save = []
for j in range(M-P+1):
save = [arr_M[i+k][j:j+P] for k in range(P)]
if arr_P == save:
r... | [
"jnunseok@gmail.com"
] | jnunseok@gmail.com |
51510cc0426f03b05baa5d56f5cf738c82b90978 | 3de3dae722829727edfdd6cc3b67443a69043475 | /edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/smartinit/GlobalWave.py | 227bdad048edae8350a0acc2eb08726a47e3bfdb | [
"LicenseRef-scancode-public-domain",
"Apache-2.0"
] | permissive | Unidata/awips2 | 9aee5b7ec42c2c0a2fa4d877cb7e0b399db74acb | d76c9f96e6bb06f7239c563203f226e6a6fffeef | refs/heads/unidata_18.2.1 | 2023-08-18T13:00:15.110785 | 2023-08-09T06:06:06 | 2023-08-09T06:06:06 | 19,332,079 | 161 | 75 | NOASSERTION | 2023-09-13T19:06:40 | 2014-05-01T00:59:04 | Java | UTF-8 | Python | false | false | 1,500 | py | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to ... | [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
edc1a8a3b052aac55a4f1b8d754bab26d7b82d64 | 2f8556a9047a8586d92d56720c70655c9d61a81d | /0001-激活码/activation_code.py | 7feaabdb579a9394fc28c5dfe4e11d0a5b82e486 | [] | no_license | HuuBaa/show-me-the-code | 99d39313c2cc19df9fa8b262ef669f1ce4aeeee2 | 179b7aef87d75cfc96ea8cc803c3ae3ab25e476c | refs/heads/master | 2021-01-25T05:10:47.289250 | 2017-07-28T05:05:05 | 2017-07-28T05:05:05 | 93,522,918 | 0 | 0 | null | 2017-06-06T13:40:54 | 2017-06-06T13:40:54 | null | UTF-8 | Python | false | false | 820 | py | #目标:200个16个大小写英文、数字组成的激活码
#类似xxxx-xxxx-xxxx-xxxx
import random,string
CHRLIST=string.ascii_letters+string.digits
#test repeat
#CHRLIST='1234'
def single_code(lens):
code=''
for x in range(lens):
i=random.randint(0,CHRLIST.__len__()-1)
code+=CHRLIST[i]
return '-'.join(code[i:i+4] for i in... | [
"742790905@qq.com"
] | 742790905@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.