blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7b881d3fd3b5a0506e690102189326ec26164212 | 46bd3e3ba590785cbffed5f044e69f1f9bafbce5 | /env/lib/python3.8/site-packages/pip/_internal/operations/freeze.py | 4173161009fc9748ecc149d7cd925afb5657aad9 | [] | no_license | adamkluk/casper-getstarted | a6a6263f1547354de0e49ba2f1d57049a5fdec2b | 01e846621b33f54ed3ec9b369e9de3872a97780d | refs/heads/master | 2023-08-13T11:04:05.778228 | 2021-09-19T22:56:59 | 2021-09-19T22:56:59 | 408,036,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4f22ef5d3e19aa9222f31f17fd34ec80127be881b9e0289d265c4620705b9813
size 10556
| [
"[email protected]"
] | |
1fe809787c4d22f427ef3c91f31a6d7b5004f8a3 | 3ca30ff28e4233ff815ebc2525ba6409dbf7ade6 | /changelogs/custom/pypi/django.py | a0b30a1bc3ab3f9b485cb6575052bc4a75a497b5 | [
"MIT"
] | permissive | hackebrot/changelogs | e29b7ce1b6b799fc1a5f1871e29d7d7ac787ad48 | c5bf363a5b7efd2640ba404b217a37661ef220c1 | refs/heads/master | 2021-01-20T02:07:27.028697 | 2017-04-25T15:05:19 | 2017-04-25T15:05:19 | 89,375,742 | 1 | 0 | null | 2017-04-25T15:18:14 | 2017-04-25T15:18:14 | null | UTF-8 | Python | false | false | 392 | py | def get_head(line, releases, **kwargs):
for release in releases:
if "Django {} release notes".format(release) in line:
return release
return False
def get_urls(releases, **kwargs):
urls = []
for release in releases:
urls.append("https://raw.githubusercontent.com/django/djan... | [
"[email protected]"
] | |
fc7a978cdca9b14608013239456e0f1fea702e7b | f57529f95a0fd10676f46063fdcd273fb5a81427 | /boj/03001-04000/3181.py | 0cf1f7d1f5d5af6ca60a5dd002df336fe82466ba | [] | no_license | hoyasmh/PS | a9b83b0044e483586590c9b7c6bf8a77236b67e7 | 6bbaa0ce77b2726f6af782af049d73720820f761 | refs/heads/master | 2023-04-23T10:43:27.349785 | 2021-05-17T13:43:53 | 2021-05-17T13:43:53 | 311,239,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | l=['i','pa','te','ni','niti','a','ali','nego','no','ili']
s=input().split()
for i in range(len(s)):
if i==0 or s[i] not in l:
print(s[i][0].upper(),end='')
| [
"[email protected]"
] | |
b6e50f0069a0ad20140650a86266d623d882464d | 167eb71c690e43e06b943a04a031f9e662ac7521 | /acq4/devices/Scanner/scan_program/step.py | 78e088f79c49f0e555d3506b82810b3513d8e648 | [
"MIT"
] | permissive | histed/acq4 | 8e0a5dedc74c2ea063477e4b0027fbade3a72e61 | ea0242d49245b81ab218d8d3e0187138b136ded5 | refs/heads/develop | 2021-01-19T23:46:54.999081 | 2017-03-24T22:48:52 | 2017-03-24T22:48:52 | 89,023,143 | 0 | 6 | null | 2017-04-21T20:58:33 | 2017-04-21T20:58:32 | null | UTF-8 | Python | false | false | 589 | py | import numpy as np
import acq4.pyqtgraph as pg
from .component import ScanProgramComponent
#class StepScanComponent(ScanProgramComponent):
#"""
#Steps the laser once to a specific position.
#"""
#name = 'step'
#def generateVoltageArray(self, arr, startInd, stopInd):
#pos = cmd['p... | [
"[email protected]"
] | |
e564a35ab740baf58a12135b49025e9f1ac47b4b | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/desktopvirtualization/v20201102preview/_inputs.py | 91b02e54c08da8927105e2cb9d80bf145a1f5552 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,215 | 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
from ... import _utilities, _tables
from... | [
"[email protected]"
] | |
eda7057bb4a064142794dc4168db8c4c3d7075ef | 18825807a4cf373f00419e46ac70566d17115e9e | /problems/algo/convert_a_number_to_hexadecimal.py | b8d4588cc5bd2a0833c3299792178830a61a9c56 | [] | no_license | StefanRankovic/leetcode | 51154d7297b4674c62e481c6c13016097207b4d0 | bbed81b50acaef025186648c61110dbf65e5f6cb | refs/heads/master | 2023-02-20T06:16:02.913457 | 2021-01-24T09:42:50 | 2021-01-24T09:42:50 | 266,200,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | class Solution:
def toHex(self, num: int) -> str:
if num < 0:
num += 2 ** 32
elif num == 0:
return '0'
mapping = { 0:'0', 1:'1', 2:'2', 3:'3', 4:'4', 5:'5', 6:'6', 7:'7', 8:'8', 9:'9', 10:'a', 11:'b', 12:'c', 13:'d', 14:'e', 15:'f' }
res = []
while num... | [
"[email protected]"
] | |
599d2ccb94c5166eb0e397169f084f8ac3d1816c | 0f234d1029e89309994331a68a999e2359bb08b0 | /tslearn/neural_network/__init__.py | 1eed30502447a5b9d10b18cf9d50d8c3bec683cf | [
"BSD-2-Clause"
] | permissive | tslearn-team/tslearn | 8282698361bfb42183466eaaa4c6da1d107e9513 | e9b3ecca5f56bc8ffab5a0106e2d41f17ae89109 | refs/heads/main | 2023-09-01T02:03:19.814166 | 2023-08-21T13:22:42 | 2023-08-21T13:22:42 | 90,264,407 | 1,687 | 198 | BSD-2-Clause | 2023-09-13T20:39:47 | 2017-05-04T13:08:13 | Python | UTF-8 | Python | false | false | 415 | py | """
The :mod:`tslearn.neural_network` module contains multi-layer perceptron
models for time series classification and regression.
These are straight-forward adaptations of scikit-learn models.
"""
from .neural_network import TimeSeriesMLPClassifier, TimeSeriesMLPRegressor
__author__ = 'Romain Tavenard romain.tavena... | [
"[email protected]"
] | |
e3b7eb1b3827edcba78060e3051438f29d691b58 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02404/s960425293.py | 0de2e292bdd90651c2ea9948ed854c3590feb3e8 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | while 1:
(H,W) = [int(i) for i in input().split()]
if H==W==0:
break
print('#'*W)
for i in range(H-2):
print('#'+'.'*(W-2)+'#')
print('#'*W)
print('')
| [
"[email protected]"
] | |
eda67a4d9a32dddcbfdbcf77327db29c4d47aaab | e2c120b55ab149557679e554c1b0c55126e70593 | /python/imagej/IsoView-GCaMP/lib/nuclei.py | 4aa3f3f0ade0c4510dc82814f55affa08fc27364 | [] | no_license | acardona/scripts | 30e4ca2ac87b9463e594beaecd6da74a791f2c22 | 72a18b70f9a25619b2dbf33699a7dc1421ad22c6 | refs/heads/master | 2023-07-27T14:07:37.457914 | 2023-07-07T23:13:40 | 2023-07-07T23:14:00 | 120,363,431 | 4 | 5 | null | 2023-05-02T11:20:49 | 2018-02-05T21:21:13 | Python | UTF-8 | Python | false | false | 10,474 | py | import os
from lib.dogpeaks import createDoG
from lib.synthetic import virtualPointsRAI
from lib.ui import showStack
from lib.util import newFixedThreadPool, Task
from lib.io import writeZip, ImageJLoader
from lib.converter import makeCompositeToRealConverter
from net.imglib2 import KDTree, FinalInterval
from net.imgli... | [
"[email protected]"
] | |
849c162af41131a106cdda454b6af428f8cac483 | 11aac6edab131293027add959b697127bf3042a4 | /isToeplitzMatrix.py | 39560dbb5a486627bf54e486fb6cac79f90fe046 | [] | no_license | jdanray/leetcode | a76b3436002b31865967b757b73c85992636383b | fd736af3e79899b86dac89d4d925d5bd985944ad | refs/heads/master | 2023-08-15T01:20:05.110565 | 2023-08-14T00:25:58 | 2023-08-14T00:25:58 | 148,686,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # https://leetcode.com/problems/toeplitz-matrix/description/
class Solution:
def isToeplitzMatrix(self, matrix):
for i in range(len(matrix) - 1):
for j in range(len(matrix[i]) - 1):
if matrix[i][j] != matrix[i + 1][j + 1]:
return False
return True
| [
"[email protected]"
] | |
e25bebd643efbb70ced24082356761148e85ce8c | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/InstanceAttrOtherMethod.py | f13ebe6f3c2cee60520647fea746506037441e69 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 115 | py | class C:
def f(self):
return self.foo
# <ref>
def g(self):
self.foo = 1
| [
"[email protected]"
] | |
da4f9f021fd019d5ef18dbd2e821d201de06d002 | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts/framework/acts/controllers/chameleon_controller.py | b9965cf69fdfc8d09502e15d02627a0fdb1751c4 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,175 | py | #!/usr/bin/env python3
#
# Copyright 2017 - The Android Open Source Project
#
# 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
#
# ... | [
"[email protected]"
] | |
20b035cb4df2c7e31ca09b0df3a8484d28292617 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5020/180005020.py | 3ebd718b508dadfdbe85804be5bfc4ff1cde6abc | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,675 | py | from bots.botsconfig import *
from records005020 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'AN',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'RDR', MIN: 0, MAX: 1},
... | [
"[email protected]"
] | |
a452d8c8be8214679e4821b0ad93f0e586261b5e | c9fe9f52d70ad5308d19664e82081233f1bc6d9a | /app/views.py | 4f04a92d6305eafbcd88315cf2b9d14c4a415af4 | [] | no_license | arifbd2221/ResumeParser | 9f48f97528588cde6fa7b5507d8ac3364a6c016b | 4508465e21e9a362018c84ac0370dcd35df98a7f | refs/heads/master | 2022-12-10T21:06:50.429742 | 2020-03-18T18:21:07 | 2020-03-18T18:21:07 | 248,309,886 | 0 | 0 | null | 2022-12-08T03:50:02 | 2020-03-18T18:19:53 | Python | UTF-8 | Python | false | false | 1,578 | py | from django.shortcuts import render
from .models import Resume, Candidate
from django.core.files.storage import default_storage
import os
from pyresparser import ResumeParser
def home(request):
top_candidates = dict()
candidates = Candidate.objects.all()
candidates = list(candidates)
candidates.sor... | [
"[email protected]"
] | |
3fc99cb24ddecebaf07b6bdc249560f5cc586b4c | b9e99a828952ffeab9767e625c0061cb3ea5b670 | /Python编程从入门到实践/learning_log/learning_log_2.1_让用户能够输入数据/learning_log/urls.py | 1eb20c51f860bd491ba4e3b501449aa4cf335e2c | [] | no_license | ZGA101421/Python3_Project | 95d95e23858ef92f6825f018605089c105303ad3 | fa30f876fd13890743bc81d1521534c340575132 | refs/heads/master | 2022-04-03T07:03:46.369710 | 2019-12-30T15:22:21 | 2019-12-30T15:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | """learning_log URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-... | [
"[email protected]"
] | |
7b5282cb4880ed7331be6c50b7b9bde16fe209cb | b9b06d86d43e738b62ab9289fc13aae4c2b2670b | /nsd1807/devops/day04/smail2.py | 51a4e856461309c72f18ac3c1d64e75aafe8f38f | [] | no_license | MrZhangzhg/nsd_2018 | 31a7a8d54e2cb3ff4f4eb5c736fbd76601718356 | 458a1fef40c5e15ba7689fcb3a00baf893ac0218 | refs/heads/master | 2020-04-08T19:08:48.237646 | 2019-09-08T04:31:07 | 2019-09-08T04:31:07 | 159,642,127 | 5 | 7 | null | 2019-01-04T05:33:40 | 2018-11-29T09:37:27 | Python | UTF-8 | Python | false | false | 904 | py | from email.mime.text import MIMEText
from email.header import Header
from smtplib import SMTP
import getpass
def send_mail(text, subject, sender, receivers, server, user, passwd, port=25):
message = MIMEText(text, 'plain', 'utf8')
message['From'] = Header(sender, 'utf8')
message['To'] = Header(receivers[0]... | [
"[email protected]"
] | |
261e0eb698524a65c64f509f16fc005825678a85 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5709773144064000_1/Python/DayBit/probB.py | 89a1ba67f2f5762b9bdf723758fef3336e9985fe | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | '''
Created on 12/04/2014
@author: david
'''
fIn=open("B-large.in")
T=int(fIn.readline())
P=[]
for i in range(T):
c,f,x = [float(x) for x in fIn.readline().strip().split()]
P.append((c,f,x))
fRes = open("res.txt", "w")
case = 0
for c,f,x in P:
case += 1
cps=2.0
timetobuy = c/cps
bestTim... | [
"[email protected]"
] | |
27f71acc6181f6b40de7037f107d718970c210e8 | 24532cc3eb0e489415a08457b454c454abf66525 | /object-maker/copy-dataset-files.py | 295761788c3e67586d04717102ac11cacb0d8a08 | [] | no_license | glygener/glygen-backend-integration | 7a4c8e45dd9af6b0424946fcc7e11e9aef39d9a6 | 526775496f860680df2dbfdfc42b3ba35c69cfea | refs/heads/master | 2022-09-22T03:56:35.116497 | 2022-09-09T16:56:59 | 2022-09-09T16:56:59 | 151,144,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,122 | py | #!/usr/bin/python
import os,sys
import string
import csv
import json
import glob
import requests
import subprocess
import pymongo
from optparse import OptionParser
import libgly
from Bio import SeqIO
__version__="1.0"
__status__ = "Dev"
def get_master_file_list():
file_name_list = []
ds_obj_list = json.lo... | [
"[email protected]"
] | |
ec95968a7b2df86a07137f7e6e672b71302ae50a | 7834e55df20cd3b0fb629a137dd2671cf53f484f | /tests/test_encoding.py | 8fb4b5e646be000a21d9ac4265648f9e54c2c5af | [
"MIT"
] | permissive | mapbox/mapbox-sdk-py | ca23c0f5cbbadd654b53683ff3f8918f504e0ff6 | 0329ccb17e7d3f4123da1534417bd21aa31bc2eb | refs/heads/master | 2023-06-05T11:46:38.434644 | 2022-08-01T22:31:37 | 2022-08-01T22:31:37 | 39,404,445 | 335 | 150 | MIT | 2020-02-04T16:25:14 | 2015-07-20T19:34:47 | Python | UTF-8 | Python | false | false | 4,221 | py | import pytest
import copy
import json
from mapbox.encoding import (read_points,
encode_waypoints,
encode_polyline,
encode_coordinates_json)
gj_point_features = [{
"type": "Feature",
"properties": {},
"geometry": {
... | [
"[email protected]"
] | |
94a7c9bb205a5af9de7c09c8beb9796010b2cc71 | b059c2cf1e19932abb179ca3de74ced2759f6754 | /S20/day04/03作业.py | 89601d4d3d9c179bb55fbfb29fee50ae4e4ba7d1 | [] | no_license | Lwk1071373366/zdh | a16e9cad478a64c36227419d324454dfb9c43fd9 | d41032b0edd7d96e147573a26d0e70f3d209dd84 | refs/heads/master | 2020-06-18T02:11:22.740239 | 2019-07-10T08:55:14 | 2019-07-10T08:55:14 | 196,130,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,864 | py | # li = ["alex", "WuSir", "ritian", "barry", "wenzhou"].
# a.计算列表的⻓度并输出
# b. 列表中追加元素"seven",并输出添加后的列表
# c. 请在列表的第1个位置插⼊元素"Tony",并输出添加后的列表
# d. 请修改列表第2个位置的元素为"Kelly",并输出修改后的列表
# e. 请将列表l2=[1,"a",3,4,"heart"]的每⼀个元素添加到列表li中,⼀⾏代码实现,不
# 允许循环添加。
# f. 请将字符串s = "qwert"的每⼀个元素添加到列表li中,⼀⾏代码实现,不允许循
# 环添加。
# g. 请删除列表中的元素"ritian",并输出... | [
"[email protected]"
] | |
9d75f4f664eb0f368c443272ef6b096804e26e20 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /test/legacy_test/test_numel_op.py | 5c8c477877c3261829732e495a4f3679b18d2316 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 4,760 | 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 app... | [
"[email protected]"
] | |
96c96b1cbf1f744df9693030c13335e0783a3353 | 1af6958461af6257264ace2a6d13385b47104606 | /pyscf/semiempirical/umindo3_grad.py | f9223d6afa0b11f546adc5c837174e722f4b0638 | [
"Apache-2.0"
] | permissive | tmash/pyscf | ac9a86c078170044b52be71e5d00fa5f680f55af | 89c101c1c963e8247808635c61cd165bffab42d6 | refs/heads/master | 2020-12-04T04:41:23.456744 | 2020-01-02T18:05:16 | 2020-01-02T18:05:16 | 231,615,690 | 1 | 0 | Apache-2.0 | 2020-01-03T15:33:33 | 2020-01-03T15:33:32 | null | UTF-8 | Python | false | false | 2,099 | py | #!/usr/bin/env python
import copy
import numpy
from pyscf import lib
from pyscf import gto
from pyscf import scf
from pyscf.grad import uhf as uhf_grad
from pyscf.data.elements import _symbol
from pyscf.semiempirical import mopac_param
from pyscf.semiempirical import mindo3
from pyscf.semiempirical import rmindo3_grad... | [
"[email protected]"
] | |
510ae73b72ae1dfb9680491782b111449bfd44ff | d7b9b490c954c7a9160b69f8ce2c907ef4681ecb | /sponsors/migrations/0006_auto_20201016_1517.py | ff9d137547f788af7cd2e185b1028bb98733f640 | [
"Apache-2.0"
] | permissive | python/pythondotorg | 00db93a4b1789a4d438806d106d9cee3349ad78c | c4ee749942227ca75c8e670546afe67232d647b2 | refs/heads/main | 2023-08-28T20:04:24.735314 | 2023-08-03T19:12:29 | 2023-08-03T19:12:29 | 6,127,047 | 1,131 | 646 | Apache-2.0 | 2023-08-24T15:57:04 | 2012-10-08T16:00:15 | Python | UTF-8 | Python | false | false | 2,459 | py | # Generated by Django 2.0.13 on 2020-10-16 15:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sponsors", "0005_auto_20201015_0908"),
]
operations = [
migrations.RenameModel(
old_name="SponsorshipLevel",
new_na... | [
"[email protected]"
] | |
0510146ef6fac9025dff91e4eeac1220c8281527 | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/com/link/scotiabank.py | cb1391598e9dac9c05f05ebfd3b07cae11ae06a6 | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | import re, urlparse, mechanize
from neekanee.jobscrapers.jobscraper import JobScraper
from neekanee.htmlparse.soupify import soupify, get_all_text
from neekanee_solr.models import *
COMPANY = {
'name': 'Scotiabank',
'hq': 'Toronto, Canada',
'home_page_url': 'http://www.scotiabank.com',
'jobs_page_ur... | [
"[email protected]"
] | |
21f276b882cd9006b94371de31160164730f6994 | 99f851bc034bdedd61ff673b4ca1d294e9451d04 | /iprPy/records/LAMMPS-potential.py | bbade6130a0a6bfafae083165ae1d8893d518f71 | [] | no_license | njisrawi/iprPy | c583ba92b2537ce449c3fb6a832a06036dc1918f | 5ce6c14b1cc889069495a2f29db19d5d78e29ede | refs/heads/master | 2021-01-20T09:00:24.709510 | 2017-01-25T20:28:54 | 2017-01-25T20:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from DataModelDict import DataModelDict as DM
import atomman as am
import atomman.unitconvert as uc
import numpy as np
def schema():
dir = os.path.dirname(os.path.abspath(__file__))
return os.path.join(dir, 'record-LAMMPS-potential.xsd')
def todict(record):
model = DM(record)
pot = model['LAMMPS-po... | [
"[email protected]"
] | |
eab0f37861eb12d0b3543cafdd7136150516b581 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2285/60598/260635.py | 6ae600bba2a2f7ddba8115e36439a621e275c9fc | [] | 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 | 558 | py | times = int(input())
for i in range(times):
length = int(input())
nums = list(map(int, input().split(" ")))
j = 0
finish = False
result = []
while j < length-1:
start = j
while j < length-1 and nums[j] < nums[j+1]:
j += 1
if start != j:
result.appe... | [
"[email protected]"
] | |
d3f26c05d3402fa44b20bfa369d5f437432ac93a | ce4a7ef82cf2146647714c7887c581bc0971f83e | /account/migrations/0001_create_sites.py | ceafd6dc51e23aae38c15ae11ea569fd78f6ee07 | [] | no_license | fbenke/BeamRemit | d15d8467c17ca15a1afc10c6bc23d756e3b13f75 | 2b894f56e3b1711334115085b6cd9379bd5bf1aa | refs/heads/master | 2021-01-10T12:12:16.289891 | 2014-12-05T11:36:45 | 2014-12-05T11:36:45 | 52,040,642 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | from south.v2 import DataMigration
from django.conf import settings
class Migration(DataMigration):
def forwards(self, orm):
orm['sites.site'].objects.all().delete()
site = orm['sites.site'].objects.create(
id=0,
domain=settings.ENV_SITE_MAPPING[settings.ENV][settings.SIT... | [
"vagrant@precise64.(none)"
] | vagrant@precise64.(none) |
8d48d5283041505a2efe6dd502d7cefd20c39f93 | 6baf192a289f602407044e3b2100aeffc60e3897 | /microblog.py | 3d8c0872b222e8d7023fe352aaa3889b9d5f61fd | [] | no_license | HaoREN211/hao_read | 798adcb0c6bdd2372b050112e76b858e3a212276 | ed126ffb424f4e128be02cbc06807f1e5c863a69 | refs/heads/master | 2023-05-12T18:20:20.315328 | 2020-02-03T14:23:43 | 2020-02-03T14:23:43 | 236,145,154 | 0 | 0 | null | 2023-05-01T21:20:55 | 2020-01-25T08:38:31 | JavaScript | UTF-8 | Python | false | false | 1,255 | py | # 作者:hao.ren3
# 时间:2019/11/5 14:34
# IDE:PyCharm
from flask import send_from_directory
from app import create_app, db
from app.models.User import User
from app.models.Post import Post
from os.path import join
app = create_app()
# 为网站添加图标
def favicon():
return send_from_directory(join(app.root_path, 'static'),
... | [
"[email protected]"
] | |
4f36cb2a52bc750cf728f622b4d832bbc4cfdf9b | 70cc96b55c202245691463ee59e42e9801cde858 | /python/rtypes/types/subset.py | 5638f2520dcf59172857df76e81b5dcdca8f347a | [] | no_license | rezafuru/spacetime | ad1da33fbcf9c358cf1b379507f0178155354f92 | 3b4b58775d41c75f103278c5e1553e5b36542d72 | refs/heads/master | 2023-03-08T09:01:48.286203 | 2019-10-14T18:07:15 | 2019-10-14T18:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from rtypes.attributes import PredicateFunction
from rtypes.metadata import SubsetMetadata
from rtypes.utils.enums import Rtype
def set_metadata(cls, parent):
cls.__r_table__ = parent.__r_table__
pred_func = None
for attr in dir(cls):
if isinstance(getattr(cls, attr), PredicateFunction):
... | [
"[email protected]"
] | |
6e8292163311f9d2d6a1c5cb60d88ddcffd2cf58 | 015383d460fa4321391d964c4f65c4d0c044dcc1 | /.venv/lib/python3.7/site-packages/faker/providers/person/dk_DK/__init__.py | 2b739525bda88b354c41c2ee0642b1e1f9a3a170 | [
"Unlicense"
] | permissive | kobbyrythm/temperature_stories_django | 8f400c8d3c8190b0e83f7bcfece930d696c4afe9 | 552d39f1f6f3fc1f0a2f7308a7da61bf1b9b3de3 | refs/heads/main | 2023-07-03T21:28:46.020709 | 2021-07-20T09:44:29 | 2021-07-20T09:44:29 | 468,728,039 | 3 | 0 | Unlicense | 2022-03-11T11:41:47 | 2022-03-11T11:41:46 | null | UTF-8 | Python | false | false | 7,565 | py | from .. import Provider as PersonProvider
class Provider(PersonProvider):
formats = (
'{{first_name_male}} {{last_name}}',
'{{first_name_male}} {{last_name}}',
'{{first_name_male}} {{last_name}}',
'{{first_name_male}} {{last_name}}',
'{{first_name_male}} {{last_name}}-{{las... | [
"[email protected]"
] | |
f8482f84e76853cc7b2a70e7460d1e2cd3e290db | 6ac77834909c485686638d27c0bf41e6d1765cf7 | /src/database/module_user.py | b042699456da0a2849bcae55811c5f87ed51da84 | [] | no_license | YangXinNewlife/gears | 4144e451861efb0f3ae1d738eb5fcd6cec46a833 | 486b1ce5a7b8d8682bb1394be8f5dd6ae0fca837 | refs/heads/master | 2021-01-20T01:41:30.074696 | 2017-05-26T08:17:45 | 2017-05-26T08:17:45 | 89,316,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | #-*- coding:utf-8 -*-
__author__ = 'yx'
from module_base import *
import sys
reload(sys)
class ModuleUser(ModuleBase):
def __init__(self, table="t_user"):
self.schema = "ehc"
self.table = table
self.table_name = "\"%s\".\"%s\"" % (self.schema, self.table)
# def __init__(self, table_... | [
"[email protected]"
] | |
62a3e940766f49a1361fa806c29ca65246258810 | a6da9040a6dad7db109cc163b76acd3e6c8be56f | /hafta01/ders06.py | 8dfdb173da15c242146905782db437de1c0a0502 | [] | no_license | sinanurun/Python_8181 | f04677ada7f1f6daadddaaf49211b20e8197ad7f | 710b2bc4573d22988376fd3680c5be0dc011f5bc | refs/heads/master | 2020-04-27T13:14:14.544839 | 2019-04-15T04:50:33 | 2019-04-15T04:50:33 | 174,362,253 | 21 | 10 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | # ad = input("adınız nedir")
#
# if ad == "fatih" or ad == "serhat":
# print("bilişmcisin")
# else:
# print("farklı branştasın")
cinsiyet = input("cinsiyet")
meslek = input("mesleğiniz")
if cinsiyet =="kadın" and meslek =="bilisim":
print("8 Mart dünya kadınlar gününüz kutlu olsun")
else:
print("her g... | [
"[email protected]"
] | |
19842f088f7b8feaf1c34853366f4f1851fb997b | 9303910239ca531d512460553e291960f3b0bd1c | /setup.py | 866ecd51fea15b427bb5e38717130887e781a264 | [
"BSD-3-Clause"
] | permissive | basnijholt/pyfeast | 2c81e67b221a2450f514b7da853342d91eae54bd | b6d8832b3a101900ed8b50127c1884ef74b34750 | refs/heads/master | 2020-03-18T08:06:20.356311 | 2018-05-23T18:08:54 | 2018-05-23T18:33:48 | 134,490,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | #!/usr/bin/env python3
import configparser
import sys
import os.path
import numpy
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
from create_cython_files import create_feast_pxd, create_feast_pyx
def guess_libraries():
"""Return the configuration fo... | [
"[email protected]"
] | |
710bafb6e75878a0ed6c139caf4c0f43bac256d9 | 66f4c011237e9fcad12d5f5508589b01a66a2a91 | /neural_sp/models/modules/attention.py | 23eead75b60255abae0090078e2902d3e3121e7e | [
"Apache-2.0"
] | permissive | nikhil-garg/neural_sp | 5004624ed1c23ff1ce5fefba1538e25eabab1e8c | 0df9107bf2515f6fba6d2a5910c6878daa06193f | refs/heads/master | 2023-01-22T14:44:17.338339 | 2020-10-31T13:49:50 | 2020-10-31T13:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,022 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Single-head attention layer."""
import numpy as np
import torch
import torch.nn as nn
class AttentionMechanism(nn.Module):
"""Single-head attention... | [
"[email protected]"
] | |
bc728071d8ce05a274be6f3ab7e50341062153cc | a127d0feb3bcf4f2581f385bb24f2b789c771c9c | /2syo/17.py | 81b2851a04ffe18296b8930111e36f4c0080e7e3 | [] | no_license | NgoVanDau/nlp100knock | 01383e4cc5a1470508744668103b9ea1a238b892 | 3ef63c0d2dfb55c0e6a31aced645f284325a98a5 | refs/heads/master | 2023-03-22T13:19:23.932429 | 2018-08-05T05:27:11 | 2018-08-05T05:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | '''indexが入ってしまうので少し意図とずれますが,とりあえず先に進みます'''
import pandas as pd
# f = open('hightemp.txt', 'r')
# lines = f.readlines()
# f.close()
# hightemp = pd.read_table('input/hightemp.txt')
# print(hightemp)
cols = ['prefecture','city','degree','date']
hightemp = pd.read_table('input/hightemp.txt', header=None)
hightemp.colum... | [
"[email protected]"
] | |
5555d92655b3c29e89c2358b93be0e313d1b0343 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03103/s900243702.py | 79c2efdabaa3a89657cec5473f6e626b9bfafc0b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py |
n,m = map(int,input().split(" "))
li = []
for i in range(n):
a,b = map(int,input().split(" "))
li.append((a,b))
li.sort()
result = 0
count = 0
flag = False
for i in range(m):
for j in range(li[i][1]):
result += li[i][0]
count += 1
if count == m:
flag = True
... | [
"[email protected]"
] | |
9d762fd0e7c422218e547c5cb69f8b1a0f8bdd98 | ca1151bb86a2445d74b24e6ec27c353a36cc511e | /setup.py | d932b3a8d81634b19ad4eeaced1b1a66de5c8646 | [
"MIT"
] | permissive | williamfzc/stagesep2 | 6739c8f32a5fb81f4907e92aa953b2b2d437cbdd | 20c00187c86e8b807bbb3373f58918a575c2ccc9 | refs/heads/master | 2020-04-06T22:06:21.683906 | 2019-08-17T10:07:31 | 2019-08-17T10:07:31 | 157,824,967 | 22 | 3 | MIT | 2019-03-13T07:55:29 | 2018-11-16T06:49:13 | Python | UTF-8 | Python | false | false | 865 | py | from setuptools import setup, find_packages
setup(
name='stagesep2',
version='0.2.6',
description='Analyse, and convert video into useful data.',
author='williamfzc',
author_email='[email protected]',
url='https://github.com/williamfzc/stagesep2',
packages=find_packages(),
license='MIT... | [
"[email protected]"
] | |
31d37ea5367ad2ba461b4028cc146828551bad82 | 131ccf66fb787e9b1f0773a25fa518d1f2a3c5d0 | /gui_programming/menu_demo.py | 4621009871473d50b9017a2adab00a3842a40797 | [] | no_license | jocogum10/learning-python-programming | a0ba62abde49fd79762bcb7ba4a94bf8126afa77 | 035858bd332e3970d95db8bce7b1175e450802db | refs/heads/master | 2020-07-07T17:08:00.743196 | 2019-12-13T05:32:47 | 2019-12-13T05:32:47 | 203,416,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | #!/usr/local/bin/python
"""
Tk8.0 style main window menus
menu/tool bars packed before middle, fill=X (pack first=clip last);
adds photo menu entries; see also: add_checkbutton, add_radiobutton
"""
from tkinter import *
from tkinter.messagebox import *
class NewMenuDemo(Frame):
def __init__(self, parent=None):
... | [
"[email protected]"
] | |
4ba22a2cd9579de26bad0952e3b979925435e5ce | 1763b41a702b8e8b15e3767676fb201de927cca6 | /Yelp_CF.py | 09913bdba4902eb3c7adf26662e19e3115f1eda4 | [] | no_license | chixujohnny/Yelp_project | fe81701d642729cf850c1a4adf5734cc052561d3 | 844da018885b107246c39c1942cec0575e051b59 | refs/heads/master | 2021-01-12T06:23:22.318169 | 2017-05-11T10:42:10 | 2017-05-11T10:42:10 | 77,352,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # coding: utf-8
#####################
# 基于协同过滤的推荐 #
#####################
import json
def CF_Data_Preprocess(review_path):
# 搞一个 dict
# {'user_id':['business_id', 'stars', 'date']}
User_Rate_Dict = {}
lines = open(review_path)
for line in lines:
line_json = json.loads(line)
... | [
"[email protected]"
] | |
420b7dde5c7f879259a4d295a2879d5337315c01 | 38433574de70ccc0472daeabb614b491ac8526c0 | /sqlalchemy-stubs/dialects/firebird/fdb.pyi | d4d08d972401a15e71addb27f7142773657389cf | [
"MIT"
] | permissive | Parnassius/sqlalchemy2-stubs | 28fd7611a50b60415062fdb6d367da14c9a69462 | 68f8417888456588714fcced1c6799f3eb00ff2d | refs/heads/main | 2023-09-01T18:03:58.568139 | 2021-10-14T17:54:15 | 2021-10-14T17:54:15 | 363,415,451 | 0 | 0 | MIT | 2021-10-14T20:29:03 | 2021-05-01T13:22:32 | Python | UTF-8 | Python | false | false | 402 | pyi | from typing import Any
from .kinterbasdb import FBDialect_kinterbasdb as FBDialect_kinterbasdb
from ... import util as util
class FBDialect_fdb(FBDialect_kinterbasdb):
def __init__(
self, enable_rowcount: bool = ..., retaining: bool = ..., **kwargs: Any
) -> None: ...
@classmethod
def dbapi(cl... | [
"[email protected]"
] | |
e5f65f77df2260dd3efa5fb59971d518f10a7410 | 481641e0179b5d416a7c48481455874767ae2575 | /Course Schedule.py | c2898ffbfd7fa05912babe048fa6ac2bbf524b85 | [] | no_license | nixonpj/leetcode | 776dad03a9de43a8c046b1ea1bbb3dd5e9f256ca | de756337b11e578e25f6d0cc0c70a22ae0b8fdc5 | refs/heads/main | 2023-05-01T11:38:44.530120 | 2021-05-17T15:13:16 | 2021-05-17T15:13:16 | 304,484,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | """
There are a total of numCourses courses you have to take, labeled from
0 to numCourses - 1. You are given an array prerequisites where
prerequisites[i] = [ai, bi] indicates that you must take course bi first
if you want to take course ai.
For example, the pair [0, 1], indicates that to take course 0 you
ha... | [
"[email protected]"
] | |
0b53643e6c106365bda081bdb298e397550c27bd | c40d1eb90464fa61c7c290ccd4f4a6416d7ed2ff | /1094. Car Pooling.py | 3cdb8a616a16184f9f22f3d0baaab05d4e69970d | [] | no_license | mh-rahman/Programming-Practice | 2bebdd5c68490882efefa9e262d2a90bb0da51fa | e4ceb275a6c9a56999289751f13e74548d9cd185 | refs/heads/master | 2021-07-26T12:48:43.158183 | 2020-09-19T22:34:25 | 2020-09-19T22:34:25 | 219,614,371 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | class Solution:
def carPooling(self, trips: List[List[int]], capacity: int) -> bool:
trips.sort(key = lambda x: (x[1],x[2]))
passengers, dropHeap = 0, []
heapq.heapify(dropHeap)
for nPassengers, startLoc, endLoc in trips:
#Drop passengers
while dropHeap and dr... | [
"[email protected]"
] | |
397ef26f523edeb63c9bc75e90425a4be6ca01c7 | 149e9e52304a970ffb256f290fce5f614c9e20c4 | /Python Programming language/DataCampPractice/Intermediate Python for DS/DictionariesAndPandas/DeP2.py | 2c6e6d638adfb8dd2b65d73c8fa29af218c8603c | [] | no_license | Pasquale-Silv/Improving_Python | 7451e0c423d73a91fa572d44d3e4133b0b4f5c98 | 96b605879810a9ab6c6459913bd366b936e603e4 | refs/heads/master | 2023-06-03T15:00:21.554783 | 2021-06-22T15:26:28 | 2021-06-22T15:26:28 | 351,806,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # Definition of dictionary
europe = {'spain':'madrid', 'france':'paris', 'germany':'berlin', 'norway':'oslo' }
# Add italy to europe
europe["italy"] = "rome"
# Print out italy in europe
print(europe["italy"])
print("italy" in europe)
# Add poland to europe
europe["poland"] = "warsaw"
# Print europe
print(europe) | [
"[email protected]"
] | |
8bb252afb4067b58069f6b9377b10913461f63c5 | c0ec8563efa462cbcdbfba55552fd50f994f6cb0 | /gitee/models/code_forks_history.py | 250e04dc60ae647d80ecb7af6ccc93de3971694f | [
"MIT"
] | permissive | kingreatwill/pygitee | 191487e208f42a42efb3f10d69fe0e40229de768 | 7622314a4dbb08cf2f729b6cdd0a2887b96e394e | refs/heads/master | 2022-12-18T08:10:06.079301 | 2020-09-10T09:05:34 | 2020-09-10T09:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,982 | py | # coding: utf-8
import pprint
import re # noqa: F401
import six
class CodeForksHistory(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
... | [
"[email protected]"
] | |
864cfe6ca7cb9e8a0d840fa7b0fd3f5bb4df3542 | c7d4b0a7278df76c65108a637be0ee144f3b0edd | /graphite_api/finders/__init__.py | 4b4f76a120412c53cbd1f6dfeaef5925ff3e0f34 | [
"Apache-2.0"
] | permissive | dkulikovsky/graphite-api | e21f0441319e9a58a6f06bfee8369e8d0f13cab8 | f42d14eb2bd8112f12212318f8ca5b6f859b12f0 | refs/heads/master | 2021-01-23T00:25:39.428369 | 2015-07-08T23:27:09 | 2015-07-08T23:27:09 | 38,269,511 | 2 | 1 | null | 2015-06-29T20:26:27 | 2015-06-29T20:26:27 | null | UTF-8 | Python | false | false | 1,546 | py | import fnmatch
import os.path
def get_real_metric_path(absolute_path, metric_path):
# Support symbolic links (real_metric_path ensures proper cache queries)
if os.path.islink(absolute_path):
real_fs_path = os.path.realpath(absolute_path)
relative_fs_path = metric_path.replace('.', os.sep)
... | [
"[email protected]"
] | |
ea400d3b5f0ad457cae4af10cb257e224a88cc0a | 9d41f4df737dc2e6fd3fcf4c6f50028fd483cdd0 | /python_Django/fc_community/board/migrations/0002_auto_20200430_1106.py | 66d148799c461106ca4773eddece35b4ca8a41f6 | [] | no_license | Ha-Young/byte_degree_python | 33a730f4c1f4a99fea03fb923ad73edee2dd1d48 | 7fcbfed832dec3d7cb8503b86d9457e1f2ae0ccf | refs/heads/master | 2022-11-16T16:54:52.978443 | 2020-07-04T14:32:16 | 2020-07-04T14:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.0.5 on 2020-04-30 11:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('board', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='board',
name='registered_dttm',
... | [
"[email protected]"
] | |
2fa05b1d216249b5cab111a5a004c50d74328970 | cc43149992c5f79718279ee47e5db4617b1b42e9 | /pytorch_toolkit/nncf/examples/common/models/classification/squeezenet.py | 8bac5c962959fb4ff1fec14ff7328bba41855a48 | [
"Apache-2.0"
] | permissive | tongni1975/openvino_training_extensions | 174be009bb2fedf6bc774426f340960a90635600 | 3ff9796a2fc413564726916d5c11b42738bb40ef | refs/heads/develop | 2020-06-07T19:06:46.120350 | 2020-04-17T11:27:08 | 2020-04-17T11:27:08 | 193,077,317 | 0 | 0 | Apache-2.0 | 2020-04-17T11:47:00 | 2019-06-21T10:12:20 | Python | UTF-8 | Python | false | false | 5,531 | py | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"[email protected]"
] | |
e295f4546f92d704e963f88e2f69e970dcdbf3df | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_gainsay.py | 0939ed1baa146c43e3236b450df317cc19978b75 | [
"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 | 325 | py |
#calss header
class _GAINSAY():
def __init__(self,):
self.name = "GAINSAY"
self.definitions = [u'to refuse to accept something as the truth: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return self.json... | [
"[email protected]"
] | |
217e3f356c285d0b8b0da2c8c12ff234b8ca8f10 | 1064db5dfd154c4bc600e0e03841b0f73f0eefbc | /home/api/v1/urls.py | 68d0f35d9043e634ceb843ff272945032f9cd6ae | [] | no_license | crowdbotics-apps/web-29-dev-5196 | 3303921a0e5c8794e8e67f55c9841f3ec7610c16 | 7beda8f7d57ce9b9858a46f7e3940d6eed4b5725 | refs/heads/master | 2023-05-26T23:00:23.271209 | 2020-05-29T12:47:07 | 2020-05-29T12:47:07 | 267,768,914 | 0 | 0 | null | 2021-06-13T04:08:30 | 2020-05-29T04:59:18 | Python | UTF-8 | Python | false | false | 614 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import CustomTextViewSet, GgfhgfhViewSet, HomePageViewSet
from home.api.v1.viewsets import (
SignupViewSet,
LoginViewSet,
HomePageViewSet,
CustomTextViewSet,
)
router = DefaultRouter()
router.register... | [
"[email protected]"
] | |
98661a7646afcda1edc0dedb83f90e8b72a50dc0 | 650b516b1214c4d44fd6f04941e87e28e9049cde | /addons/plugin.video.fanfilm/resources/lib/libraries/cleandate.py | 85151cc3c8bb936f60ac45d4dfad364b8b419655 | [] | no_license | MultiWu/build | b85cc45a33b871f4ade58de8457fcd094761f385 | f50a64f674b6499668e0a5758fe0879b016f5c38 | refs/heads/master | 2022-10-31T20:35:53.382826 | 2019-12-20T22:50:16 | 2019-12-20T22:50:16 | 228,462,984 | 0 | 3 | null | 2022-10-07T08:47:18 | 2019-12-16T19:46:39 | Python | UTF-8 | Python | false | false | 1,884 | py | # -*- coding: utf-8 -*-
'''
Covenant Add-on
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This prog... | [
"[email protected]"
] | |
7000364dbe6d566f301d1972a2bebd9c1f7666da | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/others/DeepFM_for_PyTorch/deepctr_torch/layers/interaction.py | d6e7ba6d8917cface0acbf225497622269efc13f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 30,854 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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 o... | [
"[email protected]"
] | |
8decbdca81e3e4b91373b7e04f95168420879c90 | 98d9305b1717642bcfb842eecd84d63b6eeaf759 | /Funtions/Favorite Book.py | e2892efd0cc0ff10b3dc5face5cc9e96c6f9880e | [] | no_license | er-aditi/Learning-Python | 5ceb020f4df8db9e34df78edfaecca3e1854c8a9 | 297eda435ee2e1cee643f94ea4c5de6a82e3c8a7 | refs/heads/master | 2020-03-24T17:22:22.129081 | 2019-06-19T05:47:26 | 2019-06-19T05:47:26 | 142,856,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #Parameter
def favorite_book(title):
print("One of my favorite books is Alice in " + title)
#Argument
favorite_book("Wonderland")
| [
"[email protected]"
] | |
416be490276271568c133407975891c44a56e873 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/countingE_20200723125242.py | ee2eed06a056b5d20bc8221422b9c32e3af0b259 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | def counting(arr):
# keep count of the occurrences
m = max(arr)+1
counts = [0 for i in range(m)]
outputs = [0 for i in range(m)]
# we keep the record of the occurences of the various numbers
for i in range(len(arr)):
counts[arr[i]] +=1
# now to get the running sum
total = 0
... | [
"[email protected]"
] | |
04640dde560910e0832261ea2972e720f222af3c | c0b6f77fce4a35001ac75d9375eac682780c72cd | /experiments/heli/plotting/plot_trajectories.py | 5e11cf21d79a94fe0198595dcd8167631e0f9ca0 | [
"MIT"
] | permissive | sisl/CEEM | aef7854211887939f582fef9ce4fa9ac23a30567 | 6154587fe3cdb92e8b7f70eedb1262caa1553cc8 | refs/heads/master | 2023-07-19T17:56:31.222617 | 2021-03-16T15:59:43 | 2021-03-16T15:59:43 | 266,781,728 | 6 | 1 | MIT | 2023-07-06T21:36:26 | 2020-05-25T13:07:42 | Python | UTF-8 | Python | false | false | 2,885 | py | import matplotlib.pyplot as plt
import torch
import numpy as np
from ceem.data_utils import *
from ceem.smoother import EKF
import pandas as pd
import click
import matplotlib
matplotlib.rc('text', usetex=True)
matplotlib.rcParams['text.latex.preamble'] = [r"\usepackage{amsmath}", r"\usepackage{siunitx}"]
ttl = [
'... | [
"[email protected]"
] | |
1096ceab5c58b730c11c204555f2b606334dfd5b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /hzQ6dEJ2GfscAZzND_23.py | 6d6b618bba5d6f707d882f094ff6b102bf50e42f | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | """
Create a function that takes a number as its parameter and returns another
function.The returned function must take a list of numbers as its parameter,
and return a list of the numbers divided by the number that was passed into
the first function.
### Examples
first = factory(15)
// returns a function ... | [
"[email protected]"
] | |
7791443a22dfd1c3fc5ec4d1ed8346c1da591f42 | d6183f3762b0ecc4b580642fac8db9707a94679a | /cluster/server/app/conftest.py | e7f1ec17c423166f5cbe35ce1f1346e698b6f69c | [] | no_license | luke-zhu/blueno | 4c5fd8b66df5c75e2d28f0cc9e32b45c75386beb | 09fbb603468a4de8567e0fe4debd575da81672b2 | refs/heads/master | 2022-12-02T10:16:23.693589 | 2019-05-31T21:16:12 | 2019-05-31T22:20:12 | 184,935,571 | 2 | 0 | null | 2022-11-22T03:33:43 | 2019-05-04T19:20:07 | Python | UTF-8 | Python | false | false | 1,789 | py | import datetime
import random
import string
from typing import Tuple
import psycopg2
import pytest
import testing.postgresql
from werkzeug import security
from app import env, db
@pytest.fixture(scope='session')
def test_user() -> Tuple[str, str]:
created_at = datetime.datetime.now(datetime.timezone.utc)
te... | [
"[email protected]"
] | |
68516eb8465dd0d6a43d17922aeacc2e62549fc3 | b3ab2979dd8638b244abdb2dcf8da26d45d7b730 | /test/test_update_request_permission_set_request_model.py | 1cd01805888beee5d37b87cb5335ebce540773ae | [] | no_license | CU-CommunityApps/ct-cloudcheckr-cmx-client | 4b3d9b82c5dfdaf24f8f443526868e971d8d1b15 | 18ac9fd4d6c4ae799c0d21745eaecd783da68c0c | refs/heads/main | 2023-03-03T19:53:57.685925 | 2021-02-09T13:05:07 | 2021-02-09T13:05:07 | 329,308,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | # coding: utf-8
"""
CloudCheckr API
CloudCheckr API # noqa: E501
OpenAPI spec version: v1
Contact: [email protected]
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import cloudcheckr_cmx_client
from cloudcheckr... | [
"[email protected]"
] | |
7c0c761e0eb874e87225b67b92c6c871ca3ea0aa | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_cat-207.py | 53a36c0c4f2221975566cc4362fa0f79bd194121 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | a:str = "Hello"
b:str = "World"
c:str = "ChocoPy"
def cat2(a:str, b:str) -> str:
return a + b
def cat3(a:str, b:str, c:str) -> str:
return a + b + c
print(cat2(a, b))
print(cat2("", c))
print(cat3(a, " ", c))
print(len(a))
print(len(cat2(a,a)))
print(len(cat2($Exp,"")))
| [
"[email protected]"
] | |
44ec356d33a6eeb229f8a08e5c38a02ca2b32098 | 75a179e8ddba54442697de87a3846f1711a30bae | /custompermission/api/views.py | a22c47ef90caba6c8771d00567decb8b3d0a670d | [] | no_license | amanlalwani007/drftutorial | 2b5a5338b3146b1feb88c4d815fbf996dd49cb9d | 4f5c651f4dee98a359b7a6e34d0ae9a8f8630e68 | refs/heads/master | 2023-07-09T01:28:04.921042 | 2021-08-21T10:59:06 | 2021-08-21T10:59:06 | 392,457,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from .models import Student
from .serializers import StudentSerializer
from rest_framework import viewsets
from rest_framework.authentication import SessionAuthentication
from rest_framework.permissions import IsAuthenticated, AllowAny, IsAdminUser, IsAuthenticatedOrReadOnly, \
DjangoModelPermissions
from .custompe... | [
"[email protected]"
] | |
567854f29d38416103ec3318189d55778dbeb556 | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /suvari/gtk2chain/gtk2deps/libXinerama/actions.py | c2c1791cced00ef75b6b069b187e330f85971b39 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.autoreconf("-vif")
autotools.configure("--... | [
"[email protected]"
] | |
b5862c54903294ec07c26c54d450861018205faf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_blitzes.py | 605e73b62180965fa4fde07a03eb8b38914f2909 | [
"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 | 233 | py |
from xai.brain.wordbase.nouns._blitz import _BLITZ
#calss header
class _BLITZES(_BLITZ, ):
def __init__(self,):
_BLITZ.__init__(self)
self.name = "BLITZES"
self.specie = 'nouns'
self.basic = "blitz"
self.jsondata = {}
| [
"[email protected]"
] | |
e05939b877ab8b45dd5f02bdaecaea04224c8ed5 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/sys/platform_basic/platform_basic.py | c0e0d961147716015348a902c79c19714d02ab8e | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,862 | py | #
# Copyright Qwilt, 2013
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: Shmulika
#
import os
import json
import a.infra.format.json
import platform_base
class PlatformBasic(platform_base.PlatformBase):
""" TODO(shmulika): do... | [
"[email protected]"
] | |
8c5fc38935a674117b20cbd3f6a3038786d0fc2a | 76769ef4394477046f646cd4195f5ffe30091d10 | /Problems/Counting unique/task.py | ea694370acdd2174bdfc3c1cf580d4ac52838058 | [] | no_license | Hemie143/Hangman | 10b01c18fa6cbfc275d3758774b1455f2229f84e | cb82a82bb937b917e515b93ad5fb7b634eaca6aa | refs/heads/master | 2022-04-25T00:54:51.078640 | 2020-04-28T20:34:33 | 2020-04-28T20:34:33 | 259,745,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # please, work with the variables 'Belov', 'Smith', and 'Sarada' | [
"[email protected]"
] | |
61478897225f0fdf30d0bea7d3d211beeb1d1c41 | 2d38b91d42de3d209bf5a011193d3b76d24476c7 | /ExpensesTracker/ExpensesTracker/wsgi.py | 128c7a208b401edafccfa6c8175046aede000df3 | [] | no_license | dhariskov/python-web | 88143fe2c733a7f8149cd014e9a99d630875bd46 | 8de6ca0eb05576dfcd6723aa2d7ce0933074612c | refs/heads/master | 2023-01-23T07:08:36.349211 | 2020-11-29T12:44:26 | 2020-11-29T12:44:26 | 316,788,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for ExpensesTracker 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('DJAN... | [
"[email protected]"
] | |
7bbe58a925f858deabcb88cfe329c58ff4da3f6d | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/N/narphorium/canadian_charities.py | b127dd024b64b13a4a719a865d73f8ac0e00bf51 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | import scraperwiki
from string import Template
import re
from math import ceil
from BeautifulSoup import BeautifulSoup
start_page = scraperwiki.sqlite.get_var("current_page", 1)
page = start_page
num_pages = 1
max_pages = 500
for p in range(1, max_pages):
page = start_page + p
if page > num_pages:
p... | [
"[email protected]"
] | |
eb8e4a117c13531cce84262fa88ef50c79dff1be | ee3d8e233370d5a890ba61b00b768f743c979e67 | /baekjoon/1904.py | 3e6a0c99876563e3fe760c5e26fcfe350281dd62 | [
"MIT"
] | permissive | alinghi/PracticeAlgorithm | 50384fd12a29964e5aa704784a8867046693eff2 | dea49e17337d9d7711e694059e27ceefb4b9d5d5 | refs/heads/master | 2023-01-23T06:03:40.314459 | 2020-12-09T14:20:09 | 2020-12-09T14:20:09 | 285,253,698 | 0 | 0 | null | 2020-08-13T05:25:44 | 2020-08-05T10:19:42 | Python | UTF-8 | Python | false | false | 129 | py | N=int(input())
#111 001 100
#001+1 00+00 100+1 11+00 111+1
a,b=0,1
for i in range(N):
a,b=b%15746,(a+b)%15746
print(b%15746)
| [
"[email protected]"
] | |
322d29fe0931fd88622b497e37f99ea0d0d93cf8 | 13ce3959fca0e51d5d17b4bf5b99d55b4a3d8ee0 | /setup.py | e84b1d4bdd1371f6a1b0b7bdfbced243bda9212f | [
"MIT"
] | permissive | guadagn0/flavio | 2b4d4bb450dfcbd21a92f55c5dfdbf6488cbf331 | 5a9b64e38b828fcd7907fd6fe7eb79b1dcefd4d3 | refs/heads/master | 2020-04-05T12:29:25.207810 | 2019-03-12T22:32:29 | 2019-03-12T22:32:29 | 156,872,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | from setuptools import setup, find_packages
with open('flavio/_version.py', encoding='utf-8') as f:
exec(f.read())
with open('README.md', encoding='utf-8') as f:
LONG_DESCRIPTION = f.read()
setup(name='flavio',
version=__version__,
author='David M. Straub',
author_email='[email protected]... | [
"[email protected]"
] | |
413bc5ab7c9a5eeea98c1310fcf21c955a3b899d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /qwDPeZeufrHo2ejAY_5.py | dd2776cc8868b371d82d76aca6a7ce2578b301f3 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | """
Given a _string_ containing an _algebraic equation_ , calculate and **return
the value of x**. You'll only be given equations for simple **addition** and
**subtraction**.
### Examples
eval_algebra("2 + x = 19") ➞ 17
eval_algebra("4 - x = 1") ➞ 3
eval_algebra("23 + 1 = x") ➞ 24
### Notes
... | [
"[email protected]"
] | |
ca6a14711f5fbc121792986501439f1f313ec357 | a4186aadd9de84de34cde0d9bf443f802117260d | /scrapenews/spiders/news24.py | 20561989efbb09f476923702ccff8a4ccb499508 | [
"MIT"
] | permissive | public-people/scrape-news | bf1bd414d0c94d591aed0c515befaa7a76069093 | b057f100e4db567dbadba26e18728d4ff5cd5fb3 | refs/heads/master | 2023-05-29T13:41:14.181360 | 2020-04-18T20:52:02 | 2020-04-18T20:52:02 | 123,028,777 | 10 | 20 | MIT | 2023-05-22T22:28:35 | 2018-02-26T20:50:29 | Python | UTF-8 | Python | false | false | 2,256 | py | # -*- coding: utf-8 -*-
from .sitemap import SitemapSpider
from scrapenews.items import ScrapenewsItem
from datetime import datetime
import pytz
SAST = pytz.timezone('Africa/Johannesburg')
class News24Spider(SitemapSpider):
name = 'news24'
allowed_domains = ['www.news24.com']
sitemap_urls = ['https://w... | [
"[email protected]"
] | |
050c6d64a7e34ab1e92d1ca8a82c006208da4b2e | 32e0dcfe03fc8a54fd218bfb5fe8741a5ea8fc39 | /UserCode/jzhang/sbc_run6_mergeall.py | 013b5ffbce8389c2ccc782914a093247c85589c1 | [
"MIT"
] | permissive | RunzZhang/SBCcode | e480ab85d165b42de060b1778a2e2af38b2f511e | e75b8e751cec5fb2c28950edef0c82f005caedcb | refs/heads/master | 2021-09-08T03:41:56.222249 | 2019-06-17T19:52:32 | 2019-06-17T19:52:32 | 192,990,370 | 0 | 0 | MIT | 2019-06-20T21:36:26 | 2019-06-20T21:36:26 | null | UTF-8 | Python | false | false | 7,163 | py | import numpy as np
import SBCcode as sbc
import os
import re
from SBCcode.DataHandling.WriteBinary import WriteBinaryNtupleFile as wb
# import ipdb
modules = [
'AcousticAnalysis_',
'DytranAnalysis_',
'EventAnalysis_',
'HistoryAnalysis_',
'ImageAnalysis_',
'TimingAnalysis_',
'PMTfastDAQalign... | [
"[email protected]"
] | |
730ad7c52a87d68667cc6d4ef736c84998330595 | e17ab8f50b8a1f13b52aa770269eb469c87161b8 | /apps/contact/forms.py | 61cca7b816d64ca24e3016b278acd325dd385140 | [] | no_license | masterfung/bond | 6baa84a4322801aeb3f466d8f83e7e18c1d91731 | bc283ec1bd7a52f77b6fc788d5e818bd7233fc1d | refs/heads/master | 2022-12-09T17:45:47.243471 | 2015-03-08T19:29:21 | 2015-03-08T19:29:21 | 22,904,060 | 0 | 0 | null | 2022-12-07T23:22:59 | 2014-08-13T05:42:10 | Python | UTF-8 | Python | false | false | 598 | py | __author__ = '@masterfung'
from captcha.fields import ReCaptchaField # Only import different from yesterday
import floppyforms as forms
class ContactForm(forms.Form):
def __init__(self, *args, **kwargs):
super(ContactForm, self).__init__(*args, **kwargs)
for field_name, field in self.fields.item... | [
"[email protected]"
] | |
2b80e991998881a815ef8d991d0d1747dd9a3be1 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/apimanagement/azure-mgmt-apimanagement/generated_samples/api_management_list_diagnostics.py | 9c7e8d5fde159226518502a2d34c5ee855e982f4 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,587 | 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.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
63cdacc5b1a7bf38a597105b8ec6af5aa9c3117b | bc441bb06b8948288f110af63feda4e798f30225 | /resource_package_tools_sdk/model/ops_automation/job_details_pb2.pyi | 3a118c77a835875581e4960eaa7aa1f7fb4251e6 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,971 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from resource_package_tools_sdk.model.ops_autom... | [
"[email protected]"
] | |
a04fcffa8e327209c8e04feb7c9e4aec49f1d73b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /fRB5QRYn5WC8jMGTe_10.py | ad1e01971694e69b65bc1bfc1f4ba58bef2fe277 | [] | 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 | 721 | py |
import datetime as dt
def time_difference(city_a, timestamp, city_b):
gmt = {"Los Angeles": {"h": -8,"m":0},
"New York": {"h":-5,"m":0},
"Caracas": {"h":-4,"m":-30},
"Buenos Aires": {"h":-3,"m":0},
"London": {"h":0,"m":0},
"Rome": {"h":1,"m":0},
"Moscow": {"h":3,"m":0},
"Tehran": {"h":3,"... | [
"[email protected]"
] | |
7d7d9e3f4ee38535b9909b2b3168a029ffb5622e | e63c1e59b2d1bfb5c03d7bf9178cf3b8302ce551 | /uri/uri_python/matematica/p1198.py | 26ea0741bc55d2e35e7fe6e038e30ff4b41afddf | [] | no_license | GabrielEstevam/icpc_contest_training | b8d97184ace8a0e13e1c0bf442baa36c853a6837 | 012796c2ceb901cf7aa25d44a93614696a7d9c58 | refs/heads/master | 2020-04-24T06:15:16.826669 | 2019-10-08T23:13:15 | 2019-10-08T23:13:15 | 171,758,893 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import math
while True:
try:
entrada = input().split(" ")
A = int(entrada[0])
B = int(entrada[1])
print(int(math.fabs(A-B)))
except EOFError:
break | [
"[email protected]"
] | |
60925646feb8473a3fff7eec5ed67860e4efff65 | aea8fea216234fd48269e4a1830b345c52d85de2 | /fhir/resources/STU3/tests/test_episodeofcare.py | 2a6f7c5f3886e9275ff0a301dc3bf923e2cac14a | [
"BSD-3-Clause"
] | permissive | mmabey/fhir.resources | 67fce95c6b35bfdc3cbbc8036e02c962a6a7340c | cc73718e9762c04726cd7de240c8f2dd5313cbe1 | refs/heads/master | 2023-04-12T15:50:30.104992 | 2020-04-11T17:21:36 | 2020-04-11T17:21:36 | 269,712,884 | 0 | 0 | NOASSERTION | 2020-06-05T17:03:04 | 2020-06-05T17:03:04 | null | UTF-8 | Python | false | false | 4,568 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/EpisodeOfCare
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import io
import json
import os
import unittest
import pytest
from .. import episodeofcare
from ..fhirdate import FHIRDate
from .fixtures... | [
"[email protected]"
] | |
f383d554c135fc392f72f27540010b2c2a96e753 | 743da4642ac376e5c4e1a3b63c079533a5e56587 | /build/lib.win-amd64-3.6/fairseq/modules/adaptive_softmax.py | 1c60d09568cbafd7a449a66bea1936644528f85f | [
"MIT"
] | permissive | tmtmaj/Exploiting-PrLM-for-NLG-tasks | cdae1b6e451b594b11d8ecef3c1cd4e12fe51c9b | e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5 | refs/heads/main | 2023-06-16T08:26:32.560746 | 2021-07-14T17:50:19 | 2021-07-14T17:50:19 | 371,899,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,028 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import operator
import functools
import torch
import torch.nn.functional as F
from fairseq.modules.quant_noise import quant_noise
... | [
"[email protected]"
] | |
d17cf53c623fa6d7bd0d5d74da87667c85fca93f | f730a1fc0fe7021d68cec973125d605c10ac7a64 | /code/camera.py | b9bfb55be94621c6619c04db7f15b9de8a045fcd | [] | no_license | wwxFromTju/TJU_AR_alpha0.1 | 47a248b6861dfcdc47a9eefd86250d616a4d71f8 | e435424943846a7812e22afb7ca66a5065d70aec | refs/heads/master | 2021-04-12T11:29:44.434154 | 2016-07-27T10:20:59 | 2016-07-27T10:20:59 | 64,299,053 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
# encoding=utf-8
from scipy import linalg
class Camera(object):
"""
相机的类
"""
def __init__(self, P):
"""
初始化相机类
"""
self.P = P
# 标定矩阵
self.K = None
# 旋转矩阵
self.R = None
# 平移矩阵
self.t = None
# ... | [
"[email protected]"
] | |
9eaa19c9d5828a8c9d3014e6f598ade1b040dc26 | 8be39cae865fa2163c131a34051c4867ad0350a0 | /examples/quickhowto2/app/views.py | 965acaaf1bbf79ecf7beb5b956b8ac0d380fcf32 | [
"BSD-3-Clause"
] | permissive | ben-github/Flask-AppBuilder | fd13f694457ef4fbc8c73f8b0b90083dc5b978bc | e52947f3e4494a84017bf101b19823df91a41448 | refs/heads/master | 2021-01-17T17:52:19.125926 | 2015-01-09T18:13:30 | 2015-01-09T18:13:30 | 25,661,891 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,050 | py | import calendar
from flask import redirect
from flask_appbuilder import ModelView, GroupByChartView, aggregate_count, action
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder.models.generic.interface import GenericInterface
from flask_appbuilder.widgets import FormVerticalWidget, Fo... | [
"[email protected]"
] | |
6e820d1d5f5954963c01bd964aa9c66f883d00d7 | 61dcd9b485bc5e6d07c4adf14f138eabaa9a23b5 | /evennumberedexercise/Exercise6_24.py | 2b58b016281f39f12c87f0eed9c9473c43981ad8 | [] | no_license | bong1915016/Introduction-to-Programming-Using-Python | d442d2252d13b731f6cd9c6356032e8b90aba9a1 | f23e19963183aba83d96d9d8a9af5690771b62c2 | refs/heads/master | 2020-09-25T03:09:34.384693 | 2019-11-28T17:33:28 | 2019-11-28T17:33:28 | 225,904,132 | 1 | 0 | null | 2019-12-04T15:56:55 | 2019-12-04T15:56:54 | null | UTF-8 | Python | false | false | 946 | py | def main():
count = 1
i = 2
while count <= 100:
# Display each number in five positions
if isPrime(i) and isPalindrome(i):
print(i, end = " ")
if count % 10 == 0:
print()
count += 1 # Increase count
i += 1
def isPrime(... | [
"[email protected]"
] | |
25bc3be33edf11b325941a166313b77fcd34b28a | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Machine-Learning-Python/9781118961742_all code files/06/simpleBagging.py | 72c83810c832b413e58d7f6b9fbb92e5a85022e9 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 2,973 | py | __author__ = 'mike-bowles'
import numpy
import matplotlib.pyplot as plot
from sklearn import tree
from sklearn.tree import DecisionTreeRegressor
from math import floor
import random
#Build a simple data set with y = x + random
nPoints = 1000
#x values for plotting
xPlot = [(float(i)/float(nPoints) - 0... | [
"[email protected]"
] | |
b4524a2c6c4dec9afdd81e0de0712e0042927eb8 | 3950cb348a4a3ff6627d502dbdf4e576575df2fb | /.venv/Lib/site-packages/numba/np/ufunc/sigparse.py | a54df0e25537c1d62b56201d92da6306fa0fa4ba | [] | no_license | Bdye15/Sample_Programs | a90d288c8f5434f46e1d266f005d01159d8f7927 | 08218b697db91e55e8e0c49664a0b0cb44b4ab93 | refs/heads/main | 2023-03-02T04:40:57.737097 | 2021-01-31T03:03:59 | 2021-01-31T03:03:59 | 328,053,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | import tokenize
import string
def parse_signature(sig):
'''Parse generalized ufunc signature.
NOTE: ',' (COMMA) is a delimiter; not separator.
This means trailing comma is legal.
'''
def stripws(s):
return ''.join(c for c in s if c not in string.whitespace)
def tok... | [
"[email protected]"
] | |
bc0ad0f7ec39d42a50304cbfb1480cfe527a4b4f | d4df738d2066c5222080e043a95a9b230673af81 | /course_512/3.6_API/problem_3.6.4.py | fd758a474fa3c86d4e73a0aa1cafbcef08e81973 | [] | no_license | kazamari/Stepik | c2277f86db74b285e742854f1072897f371e87f5 | bf0224a4c4e9322e481263f42451cd263b10724c | refs/heads/master | 2021-05-04T19:06:02.110827 | 2018-03-26T09:06:09 | 2018-03-26T09:06:09 | 105,513,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,756 | py | '''
В этой задаче вам необходимо воспользоваться API сайта artsy.net
API проекта Artsy предоставляет информацию о некоторых деятелях искусства, их работах, выставках.
В рамках данной задачи вам понадобятся сведения о деятелях искусства (назовем их, условно, художники).
Вам даны идентификаторы художников в базе Artsy... | [
"[email protected]"
] | |
c2471403aa320202deac3015c37cb0a0ac6e08a3 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/storage/v20190601/get_private_endpoint_connection.py | 198ad11aa90ab756d8d0907c319a4050996605d9 | [
"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 | 6,983 | 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
fro... | [
"[email protected]"
] | |
b3cbcb1d5bbbf22e60bf51058c034822d2297c4c | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/search_beta/azext_search_beta/vendored_sdks/search/_configuration.py | 76b296b982dacd86747b02dc4fa3d3ca51ea1334 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | 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.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
4b2fa6673d63d5e719510a8281c35d5055a55f66 | b3d552675b36cb88a1388fcfc531e497ad7cbee9 | /qfpython/apps/news/templatetags/news_filters.py | 3a666825994e57a123163079c2f8ecd8013170d7 | [
"LicenseRef-scancode-mulanpsl-1.0-en",
"MulanPSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gaohj/1902_django | 3cea1f0935fd983f25c6fd832b103ac5165a2e30 | 822af7b42120c6edc699bf97c800887ff84f5621 | refs/heads/master | 2022-12-11T10:02:50.233398 | 2019-11-26T08:33:38 | 2019-11-26T08:33:38 | 209,241,390 | 2 | 0 | null | 2022-12-08T07:28:24 | 2019-09-18T07:05:48 | Python | UTF-8 | Python | false | false | 957 | py | from datetime import datetime
from django import template
from django.utils.timezone import now as now_func,localtime
register = template.Library()
@register.filter
def time_since(value):
if not isinstance(value,datetime):
return value
now = now_func()
timestamp = (now-value).total_seconds()
i... | [
"[email protected]"
] | |
6b30fe3caac3fffcc402a8552c72efc350f09b96 | ccdeae68e468ad399a89181c37bba4490bcdc259 | /scripts/bestExpressions_L_TOP26_WM_LASSO_1.py | a7b9e93f86d34a509b96ab60a1ac2df818dabe1d | [] | no_license | jameshughes89/NonlinearModelsFMRI-2 | 19262d4494aa6adc0e9bd9592069ad6b757dda6b | a507a41d0a0a728d02616023aea0e66fafc1c387 | refs/heads/master | 2021-09-06T17:05:38.086733 | 2018-02-07T15:19:23 | 2018-02-07T15:19:23 | 109,417,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,587 | py | from math import *
def funcL_WM_100307(v0,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29): return -3.09574729849e-13 * 1 + 0.0 * v0 + 0.0 * v1 + 0.0 * v2 + 0.0 * v3 + 0.0897641196145 * v4 + 0.0 * v5 + 0.0 * v7 + -0.0 * v8 + 0.0 * v9 + 0.0 * v11 + 0.0 * v12 + ... | [
"[email protected]"
] | |
156130cd7d52ce78d3ffe0cfb0f1316f7548cdbf | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/functional/intfunc/math/test_ceil_01.py | 97611af9f2cd0d2d47f57bfbf85d1844845159dc | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 707 | py | #coding:utf-8
"""
ID: intfunc.math.ceil
TITLE: CEIL( <number>)
DESCRIPTION:
Returns a value representing the smallest integer that is greater than or equal to the input argument.
FBTEST: functional.intfunc.math.ceil_01
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script =... | [
"[email protected]"
] | |
4496d5f07d39a193ef3fbfd8710da46756d19ecc | c62dbc5715fe80e106a666a8f7a6aeb051d0b40e | /analytical_solution.py | 016425a97e584c740f05ad933c74f8b757d5a4e2 | [] | no_license | mishaukr7/MM_LAB_5 | 14ebb2c8553cfb1f1b13293e6160294fb2684a9c | 610a623d1a63ddf0c231575c2b78c4fc1bb4a454 | refs/heads/master | 2021-08-23T15:16:34.096484 | 2017-12-05T09:03:46 | 2017-12-05T09:03:46 | 113,076,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | import math
def analytical_method_find_solution_free(t0, N0, r, T):
N = []
time = []
for t in range(t0, T+1):
N_new = N0*math.exp(r*(t-20))
N.append(N_new)
time.append(t)
return time, N
def analytical_method_find_solution_limited(t0, N0, r, k, T):
N = []
time = []
... | [
"[email protected]"
] | |
e92090672df6dbc77947cca8dd3f20b98894a501 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/rffada002/question2.py | 5ad1e0412877bdf376192722edcf2c9130f0adb5 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | print ("Welcome to the 30 Second Rule Expert")
print ("------------------------------------")
print ("Answer the following questions by selecting from among the options.")
seen=input("Did anyone see you? (yes/no)\n")
if (seen == 'no'):
sticky=input("Was it sticky? (yes/no)\n")
if (sticky == 'no'):
... | [
"[email protected]"
] | |
6d164cfc391db5ee4400cf4280c951a39b8e146a | 443585e4fc146308b18bc2f9234d0947da38d3e5 | /practice/yj/csv/Quiz2.py | cc4f15f0435d1e5ad3b650c79dc1a5fe19b07be9 | [] | no_license | ggyudongggyu/20201208commit | b524c4a7fb241cacaacffa5882c55d1d0ccba11f | fbb58a8ed06f454a2a79a9b8c75deabaec62b317 | refs/heads/master | 2023-02-02T21:59:51.518218 | 2020-12-24T14:32:21 | 2020-12-24T14:32:21 | 319,578,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from matplotlib.pyplot import *
title('plot graph')
plot([1, 2, 3, 4], [10, 20, 30, 40], marker='.', color= 'green', label = '1st')
plot([1, 2, 3, 4], [30, 15, 25, 10], marker= '^' ,color = 'pink', label = '2nd')
# plot([1, 2, 3, 4], [15, 25, 15, 25], linestyle= '-.' ,color = 'red', label = '3rd')
# plot([1, 2, 3, 4], ... | [
"[email protected]"
] | |
dd1baa59268b60d7d8e6c9a30dd4be4fd8fe01c2 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/infra/rtclusterpol.py | 1b736c601de6b4c7027d78510986ca0e568afc10 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,589 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
daaf7110d0464d08291fb7f7a191cb8182631fa6 | 27040f0d537c1898c9f1fce4db68b24588840987 | /7. Reverse Integer.py | 834d39db9bf66caba7c2392e1009abf6fb37a850 | [] | no_license | xtanmaygarg/LeetCodeSolutions | 0197474e92d4ef14676342d00933e764f8b29581 | 5fd06d2f0da222977c1ae6e4d219a682b3596341 | refs/heads/master | 2021-06-14T09:39:37.795785 | 2020-12-04T10:44:07 | 2020-12-04T10:44:07 | 254,488,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def reverse(self, x: int) -> int:
if x >= 0:
res = int(str(x)[::-1])
else:
res = -int(str(x)[1:][::-1])
if -2**31 <= res <= (2**31-1):
return res
return 0
| [
"[email protected]"
] | |
7cd5bf667dfd5853848da023118f67243641925b | e1adcd0173cf849867144a511c029b8f5529b711 | /ros_ws/Archive/ProductFiles20180213/positionControlPackage.py | c6e35e7f5eaadfa197321d29d10af5ea39366fea | [] | no_license | adubredu/cartbot_arm_subsystem | 20a6e0c7bacc28dc0486160c6e25fede49f013f2 | 3e451272ddaf720bc7bd24da2ad5201b27248f1c | refs/heads/master | 2022-01-04T23:01:25.061143 | 2019-05-14T16:45:02 | 2019-05-14T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | import argparse
import sys
import struct
import time
import json
import rospy
from math import *
from std_msgs.msg import (
UInt16,
)
from StringIO import StringIO
import baxter_interface as baxter
import speech_recognition as SR
from geometry_msgs.msg import (
PoseStamped,
Pose,
Point,
Quate... | [
"[email protected]"
] | |
efd021c0316156776876ce0abeeb3c3283a39a3d | eea3f04dc73d4536083c74cac4478835a31c4a94 | /chinese_song_generation/data_utils.py | 75424c8a5cc4c880bf635faf9ab900953138832f | [] | no_license | yscoder-github/news-generate | 15d5f9acecc92add201fb3c53aa211c0aa474e1f | 6b8a98375db984dea9edb4abff72191477bdb406 | refs/heads/master | 2023-05-26T19:58:00.797573 | 2019-07-18T01:30:36 | 2019-07-18T01:30:36 | 187,489,859 | 4 | 4 | null | 2023-05-22T22:14:54 | 2019-05-19T14:50:32 | Python | UTF-8 | Python | false | false | 5,906 | py | # Copyright 2015 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... | [
"[email protected]"
] | |
2d7098cb8174e3779d78a54cffcff3d299651034 | 5174346f6bd374cc8873a41ed336b7545756d753 | /examples/prompts/toolbar-prompt.py | ff31c5f2951a01c99352e655915d09e1f94ff7bc | [
"BSD-3-Clause"
] | permissive | calebstewart/python-prompt-toolkit | f06dd911399b75e9d4985b485a3e9897c04bf1d6 | 3f9f9a927b2d1a208e59af73e574825df2901e69 | refs/heads/master | 2022-07-02T16:23:24.682709 | 2020-05-14T22:45:14 | 2020-05-14T22:45:14 | 263,998,820 | 1 | 0 | null | 2020-05-14T18:51:02 | 2020-05-14T18:51:01 | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
"""
Prompt for user input as a toolbar which disappears after submission.
"""
from prompt_toolkit import prompt
if __name__ == "__main__":
answer = prompt(message="prompt$ ", prompt_in_toolbar=True)
print(f"You said: {answer}")
| [
"[email protected]"
] | |
a44c312b288d21db66156e2ee38ac70257256d20 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02918/s539072224.py | 2dbe24e4788b05696bc3160ba49b9b37d37af922 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | import sys
import numpy as np
input = lambda: sys.stdin.readline().rstrip()
INF = 10**9 + 1
def solve():
N, K = map(int, input().split())
S = np.array(list(input()), dtype='str')
if N == 1:
print(0)
exit()
ri = INF
kc = 0
fs = S[0]
if fs == 'R':
nfs = 'L'
else... | [
"[email protected]"
] | |
fb2dac07af82c220e6e4a2f95942ed4fa435a178 | 6ffa236a008d1cd1dc70f2c8ea0544d20ec350ee | /aries_cloudagent/messaging/issue_credential/v1_0/messages/credential_stored.py | 59973aa3320b3ad20a261d63f724ad3d305ab2b3 | [
"Apache-2.0"
] | permissive | blockpass-identity-lab/aries-fl-demo | 99e849f782dd80e729e3fe24c3af2881c5c49dca | 310b748c1ac2e814ec6f97c46ddbb9985584e0fc | refs/heads/master | 2022-07-06T18:37:16.007582 | 2020-04-23T15:48:33 | 2020-04-23T15:48:33 | 221,698,330 | 5 | 0 | Apache-2.0 | 2021-02-26T02:40:03 | 2019-11-14T12:58:58 | Python | UTF-8 | Python | false | false | 911 | py | """A credential stored message."""
# from marshmallow import fields
from ....agent_message import AgentMessage, AgentMessageSchema
from ..message_types import CREDENTIAL_STORED
HANDLER_CLASS = (
"aries_cloudagent.messaging.issue_credential.v1_0.handlers."
"credential_stored_handler.CredentialStoredHandler"
)... | [
"[email protected]"
] | |
49239cd741a705842914498b8d8adcf755414d87 | 462e53caefc202f1e48f7a3891b27dad6d4032f1 | /src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/clustermanager/_create.py | 17de61aba3e388ebf787cfed6f192b7718b26b70 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | bragi92/azure-cli-extensions | a910f14a0613f5611b08ed34ce8d67c1ad05013e | e9aebbcbd3df15fd874a32babc40ae1a0ba23c1f | refs/heads/k8s-extension/public | 2023-08-04T13:22:05.747918 | 2023-07-28T15:45:27 | 2023-07-28T15:45:27 | 205,455,084 | 0 | 0 | MIT | 2019-08-30T20:50:25 | 2019-08-30T20:50:25 | null | UTF-8 | Python | false | false | 16,035 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"[email protected]"
] | |
8b3a97ebe43ae145f472de830429cf5e306e5269 | 5c902cfea2856b5b591a9e4de4ecf7d66d01c3a0 | /백준/기초1/수학1/나머지.py | 36861f45235b2a9988962ca407e259b38e24cc23 | [] | no_license | VIXXPARK/pythonAlgorithm | 9cbedf1e9dc387756bed1793081be90e77daf9e8 | 8675fc0e078d90620ecf9dae95c1ccd6bcd36d37 | refs/heads/main | 2023-05-29T10:41:51.900075 | 2021-06-17T23:28:51 | 2021-06-17T23:28:51 | 316,072,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | import sys
a,b,c= map(int,sys.stdin.readline().rstrip().split())
print((a+b)%c)
print(((a%c)+(b%c))%c)
print((a*b)%c)
print(((a%c)*(b%c))%c) | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.