blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7f7eda4a188511ca65e1cb0a7660387d2ce5312 | d042b8895dc8347356fa4d5984d07bff41eecc73 | /obtainfo/views/views.py | 33c81e13d9f89ceb67d0dc937a7b184612156a68 | [
"Apache-2.0"
] | permissive | jzx1230/obtainfo | 257b075c32c3448096391f258f42dd7f0c081350 | 883c29ab0a462d11682b60b9b52b2fc93031b816 | refs/heads/master | 2021-05-08T04:19:33.810848 | 2015-10-13T10:10:10 | 2015-10-13T10:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,997 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db.models import Q
from django.conf import settings
from django.shortcuts import render
from django.core import serializers
from django.forms.models import model_to_dict
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.vi... | [
"pczhaoyun@gmail.com"
] | pczhaoyun@gmail.com |
28fb7ba8851425b473d645e4ded39fd630653ec6 | 1797576f7ebc6eea049fea3ff91831cb140afa35 | /Assignments/Assignment-2/string/format.py | af66f156a97503df9f587cacc99211eda27b24e3 | [] | no_license | Ayushd70/OCF-Python | 8dd44f9ec08509d9610a6d8310622354e88097c2 | bea41d997056235051db9f54f66790f66d7d8a2a | refs/heads/master | 2023-06-03T20:38:52.701002 | 2021-06-23T15:38:56 | 2021-06-23T15:39:46 | 367,636,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | S='hello {name}'
print(S.format(name="World"))
| [
"ayushdubey70@gmail.com"
] | ayushdubey70@gmail.com |
98782bae440c055b4d0065c2eec59b80824ffaee | 28483b16e58f04219b9e25640ffbc36360641a0a | /charissa_johnson/username_validation/main/urls.py | 62fc3207054e96f776c5feefe1f08491db402884 | [] | no_license | charissayj/python_july_2017 | c69755a4d068440c2799b2b4a37ad15a4fb94a80 | 3939f823646b90b51f5c2d6f64699357728c3ab4 | refs/heads/master | 2020-12-02T06:18:14.106345 | 2017-07-27T20:20:47 | 2017-07-27T20:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"charissa.y.johnson@gmail.com"
] | charissa.y.johnson@gmail.com |
c8ce36e7f047b623defb9b3a946c5a7cb799aa02 | be61a9f30274514857ea34297719157f1e5b8447 | /fhir/resources/DSTU2/age.py | 9975cdbeda716d349901880fad136791d72da6f6 | [
"BSD-3-Clause"
] | permissive | jwygoda/fhir.resources | ceff3a620100d2e875136b86d3e82816c0e60a33 | 5053565570d1ca992d9971d20db813c53fd350b9 | refs/heads/master | 2021-02-05T02:59:17.436485 | 2019-07-18T10:57:33 | 2019-07-18T10:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Age) on 2019-05-14.
# 2019, SMART Health IT.
from . import quantity
class Age(quantity.Quantity):
""" A duration (length of time) with a UCUM code.
There SHALL be a code if there i... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
c8bf965bce8cda9657261c0c2d513430c8ba4848 | bda4b66c6b8ef0fb8cde7c2fab144970fe597d31 | /asset_report/report/__init__.py | 040892f9ddefb9f69bf7644fb607065a5293cd27 | [] | no_license | drishti-developer/Afras | 0d9798a1982c77c49c4658d2bd43803f3caaa0c2 | 69f187b11357e05ef34b0d81eed606c61c6ad2d7 | refs/heads/master | 2019-01-02T08:36:05.133261 | 2014-02-24T11:51:35 | 2014-02-24T11:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | import asset_report_wiz | [
"vipin.tripathi@drishtitech.com"
] | vipin.tripathi@drishtitech.com |
b3ae4dd8d3b6d3f3f5f2d0f12474ab0ea469bd94 | 7ad19e854135977ee5b789d7c9bdd39d67ec9ea4 | /members/amit/clf/audio_processing.py | 571343202183ddc05c2774531c7e5fd1d3a26acd | [
"MIT"
] | permissive | Leofltt/rg_sound_generation | 1b4d522507bf06247247f3ef929c8d0b93015e61 | 8e79b4d9dce028def43284f80521a2ec61d0066c | refs/heads/main | 2023-05-02T19:53:23.645982 | 2021-05-22T16:09:54 | 2021-05-22T16:09:54 | 369,842,561 | 0 | 0 | MIT | 2021-05-22T15:27:28 | 2021-05-22T15:27:27 | null | UTF-8 | Python | false | false | 1,248 | py | import librosa
import numpy as np
from typing import Dict
def get_mel_spectrogram(audio: np.ndarray, params: Dict) -> np.ndarray:
mel_spec = librosa.feature.melspectrogram(
audio,
sr=params.get("sample_rate"),
n_fft=params.get("n_fft"),
hop_length=params.get("hop_len"),
n_... | [
"amit.yadav.iitr@gmail.com"
] | amit.yadav.iitr@gmail.com |
08320cf0e22cd96627531f4a974ef96a4213a7f1 | 086220d056fe15e8a97ed4b2392c41a5e1582857 | /codes/models/modules/thops.py | 777d40ab500302ffc10fa4e0459c88f21585e010 | [
"Apache-2.0"
] | permissive | jprost76/HCFlow | 2048931acf7698cb2fff20000160dbc404bb7f2b | 10deed6f8f719e72cf1c3cad486198b8a506c805 | refs/heads/main | 2023-08-07T12:18:37.681269 | 2021-09-29T10:33:05 | 2021-09-29T10:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | import torch
def sum(tensor, dim=None, keepdim=False):
if dim is None:
# sum up all dim
return torch.sum(tensor)
else:
if isinstance(dim, int):
dim = [dim]
dim = sorted(dim)
for d in dim:
tensor = tensor.sum(dim=d, keepdim=True)
if not ke... | [
"noreply@github.com"
] | jprost76.noreply@github.com |
5bdcae03801bc9263730f63678c10f2052be98f5 | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartB/py全排列4.py | b1e46e018cad4170fe7d76313c34805ed586b0ef | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py |
# 列表的全排列的实现。
# 全排列算法
class Solution(object):
def permutations(self, nums):
if nums is None:
return []
res = []
def helper(start):
if start == len(nums):
res.append(nums[:])
for i in range(start, len(nums)):
nums[i], nu... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
a1c16962e511343f6654c076de283096891c70f9 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/hard/3_1.py | 5e5a923d3f652d3bb692c335928a84af29e9c3c5 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | GUI to Shutdown, Restart and Logout from the PC using Python
In this article, we are going to write a python script to shut down or Restart
or Logout your system and bind it with GUI Application.
The **OS module** in Python provides functions for interacting with the
operating system. OS is an inbuilt libra... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
b4b694bd0706b269f741b4e7b90bca506b194cc9 | 885c89c56923565117b6244afa6c16664e25094f | /vspk/v5_0/nugateway.py | 3158028e3193886ae359bc573db55e0e6968fa7a | [
"BSD-3-Clause"
] | permissive | ikbalcam/vspk-python | 0017f5c7c4f9aaca604fb4da42884eddc497ee00 | 1c6d28c8f8f7bcadbd1722cdc3046b01dbf1d9e8 | refs/heads/master | 2021-10-01T16:14:00.380613 | 2017-11-02T21:43:41 | 2017-11-02T21:43:41 | 115,129,333 | 0 | 0 | null | 2017-12-22T15:52:11 | 2017-12-22T15:52:11 | null | UTF-8 | Python | false | false | 19,056 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# no... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
f3c9e9f41e6da7340eaa39fa9d686a0b0fa3de25 | 012f882a6b354f58ce16d2a58f727eadcfe6e47e | /MainProgram.py | 9b81f8da6ce8a0f96e5551bbdb7858a8ffd7792a | [] | no_license | MuhammadAhmedKhalid/Projects | 93e0b1281067f6f6cee613479f9f5d22f8efa00a | dd355e67e3e774008fcd8f698d04c4ead62265b1 | refs/heads/master | 2021-02-09T01:34:32.634869 | 2020-03-01T21:09:23 | 2020-03-01T21:09:23 | 244,223,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,802 | py | import sqlite3
from sqlite3 import Error
def login():
uname = 'admin123'
pword = '123456'
for i in range(0,3):
input1 = input("Enter Username: ")
input2 = input("Enter Password: ")
if (input1 == uname) & (input2 == pword):
selectOptions()
break... | [
"noreply@github.com"
] | MuhammadAhmedKhalid.noreply@github.com |
2b8017d7766c5fd2ca521eb26c6729617083b685 | a878325fd8fb8ef476cc894b1145d5cad9bebd3c | /prog04b.py | 73cc0ca391c2106aabfb5eafe4a6039ae071131e | [] | no_license | RestlessMystic/TamingthePython | 5ffd5ba84c30a1a202aba47cf264f9edb81232b8 | 8e05d88eb979b4948adac75fd793ee3822a9c65e | refs/heads/master | 2016-09-05T20:33:35.926453 | 2013-08-25T09:49:06 | 2013-08-25T09:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #
# Taming the Python
# Govind Maheswaran
# Example Programs
# Prog 04b
# Program to demonstrate for loop
for i in range(1,5):
print i;
for i in range(1,10,2):
print i;
| [
"govindmaheswaran@gmail.com"
] | govindmaheswaran@gmail.com |
54cf93179518b8b172fbb7bd732db4e3b0d2fd34 | 5094728779e2ac3dcfc9748d759987e9bc91ed53 | /t_06_exception.py | 35a24391e4f6b4ca2cbd12b881196e9f0a7c470f | [] | no_license | cegraris/pythontutorial | cebe6f427d759fae2899f37dadaa38c6771a5455 | 0a7220537af6d3af93c105144ba4bdfe35013aa2 | refs/heads/main | 2023-05-12T11:55:38.867108 | 2021-06-02T17:16:02 | 2021-06-02T17:16:02 | 365,843,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # try ==================================
import logging
try:
...
except ZeroDivisionError as e:
logging.exception(e)
except ValueError as e:
logging.exception(e)
else:
...
finally:
...
| [
"wusthink@gmail.com"
] | wusthink@gmail.com |
a0e61f5c74df9f18379f59f87bef20d5c12f7081 | 63271db556e4de0b2b8c3782ca6e083290e9c01d | /SHgold/SHgold/mian.py | 64b3a857e77336cba39527fedfaf785720e05f51 | [] | no_license | nuoyi-618/scrapy | 09068b37b77a3528f229c8ba368d3c652f651401 | e40f486a6fddbebd27ee1de97c7ff5a4c550f8ce | refs/heads/master | 2020-05-03T14:59:32.492113 | 2019-03-31T13:49:32 | 2019-03-31T13:49:32 | 178,693,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from scrapy import cmdline
cmdline.execute('scrapy crawl SHgold_spider'.split())
| [
"noreply@github.com"
] | nuoyi-618.noreply@github.com |
73baf965eeb3006306eb297aabdd0451da7cb884 | 7dc9a092325f4ca03d2186944105214735de41ea | /craftaws/__init__.py | be560699661a0b5367c9c29de91c6490f841e5d8 | [] | no_license | ThinkinGim/stepfunction-demo | 9b0abde8f06938137d11a8695264acd7d4297826 | f706faeb479d2b829c128a39c4a4cc5b4ac18cbb | refs/heads/main | 2023-05-01T15:36:12.216764 | 2021-05-11T13:11:05 | 2021-05-11T21:47:43 | 366,378,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,809 | py | from aws_cdk import (
core,
aws_ec2,
aws_iam as iam,
aws_lambda as lambda_,
aws_stepfunctions as sfn,
aws_stepfunctions_tasks as tasks,
)
class network(core.Stack):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kwargs)
... | [
"noreply@github.com"
] | ThinkinGim.noreply@github.com |
25752d54216e1107ab2fd434159883fd69ca251e | a9eb12ef11b671d9a3e3cb9562fd26928d3e1815 | /stock_trade/GetLongData.py | fc1a45f0ae4e0b745ca4c72a4521eeab4ecf425f | [] | no_license | longfeiw07/stock | f7c92550805896b776254cd9be671428b455f749 | 5e1a55bd6f360054cb3d589935f106dffb74b929 | refs/heads/master | 2020-09-21T21:37:22.054449 | 2019-11-07T15:26:46 | 2019-11-07T15:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,922 | py | import os
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
import time
import re
import pandas as pd
from selenium.common.exceptions import WebDriverException
def wheel_element(element, deltaY = 120, offsetX = 0, offsetY = 0):
error = element._parent.execute_script("... | [
"38155482+herb711@users.noreply.github.com"
] | 38155482+herb711@users.noreply.github.com |
c467a8989e83b33c6f9211a8e00bb6257f7c8175 | 35876012de636c0bfa6107118e8177c4aa0ff880 | /chaojiying.py | bc7baa587ab887c92911e85622f9b1e391f06cb4 | [] | no_license | Qithird/spider-test | 5dfe4fa715b31378955c219931e3063e0ab50c43 | 3cee1f93fe7743df732c20a11a87a3d0fb4b8163 | refs/heads/master | 2020-03-23T07:07:41.153896 | 2018-07-17T08:10:57 | 2018-07-17T08:10:57 | 141,250,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | #!/usr/bin/env python
# coding:utf-8
import requests
from hashlib import md5
class Chaojiying_Client(object):
def __init__(self, username, password, soft_id):
self.username = username
self.password = md5(password.encode('utf-8')).hexdigest()
self.soft_id = soft_id
self.base_param... | [
"920664709@163.com"
] | 920664709@163.com |
1d00b242cf132072efcf3453842c9a8c54e066b8 | a0367d26bf357725ab97c36c930ecb2ae3521355 | /algorithm-problem-solving-strategies/brute_force/picnic.py | a7fb2516d80d6607c9b9f8c948aad4f33afcd824 | [] | no_license | fidemin/algorithm-study | c511a59cb8f3bd227922d87465b2d8a529a1f7a8 | 41277da10c1ec966a20664b961f8e75434ac517f | refs/heads/main | 2022-06-13T00:43:54.223348 | 2022-06-02T16:37:40 | 2022-06-02T16:37:40 | 163,795,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,147 | py |
def make_is_friend(friends):
is_friend = [[False]* 10 for _ in range(10)]
is_friend[0][0] = True
for i in range(0, len(friends), 2):
is_friend[friends[i]][friends[i+1]] = True
is_friend[friends[i+1]][friends[i]] = True
return is_friend
def count_pairings_recursive(n, is_friend, take... | [
"yhmin84@gmail.com"
] | yhmin84@gmail.com |
8fb1e8bf2d268cc774d14e8ccd13c2898c3813ea | 6b5f840398183581bae04242453bd833b2e1409b | /ansys/mapdl/core/mapdl_corba.py | fa9604ef7191be0c68be773e08fccef61eb2c0b5 | [
"MIT"
] | permissive | natter1/pyansys | 1b109d889c516b9aa17d510f9671201bdaddf4e5 | 33392706e60688268c95001d5754e834957dcd01 | refs/heads/master | 2021-06-17T03:12:51.487326 | 2021-05-08T01:19:32 | 2021-05-08T01:19:32 | 202,570,893 | 0 | 1 | NOASSERTION | 2021-05-08T00:00:46 | 2019-08-15T15:57:11 | Python | UTF-8 | Python | false | false | 11,568 | py | """CORBA implementation of the MAPDL interface"""
import atexit
import subprocess
import time
import re
import os
import weakref
from ansys.mapdl.core.mapdl import _MapdlCore
from ansys.mapdl.core.misc import threaded, random_string
from ansys.mapdl.core.errors import MapdlRuntimeError, MapdlExitedError
from ansys_co... | [
"noreply@github.com"
] | natter1.noreply@github.com |
f987c95714b3b19c0d798755b64d27ae114cc266 | 6268a19db5d7806b3a91d6350ec2777b3e13cee6 | /old_stuff/code/hpe-feb2019/qi2016/huawei/preprocess/load_data.py | 76844a4293e4bbe7d395115563869a694f4be590 | [] | no_license | aaronlws95/phd_2019 | 3ae48b4936f039f369be3a40404292182768cf3f | 22ab0f5029b7d67d32421d06caaf3e8097a57772 | refs/heads/master | 2023-03-22T14:38:18.275184 | 2021-03-21T11:39:29 | 2021-03-21T11:39:29 | 186,387,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,463 | py | from __future__ import print_function
from sklearn.utils import shuffle
from PIL import Image
import numpy
import matplotlib.pyplot as plt
from ..utils import xyz_uvd
from skimage.transform import resize
def get_filenames_labels(dataset_dir):
xyz_jnt_gt=[]
file_name = []
our_index = [0,1,6,7,8,2,9,10,11,... | [
"aaronlws95@gmail.com"
] | aaronlws95@gmail.com |
3f1bc7c247ce6f9db5bd435471a06ee8d3eda970 | 4bf6cd0269cde7827219bfad51d6ce65074bb7c1 | /meta/hooks/pre-commit.py | 32e3e23e4d1e7419b0e9500624cde92873f7a780 | [
"CC-BY-4.0",
"MIT"
] | permissive | RichysHub/Squimoji | b62e3314e2a0365395c7f0b203d72989f6a04ca6 | 73e231b147aebd4fbd63604ba212b87e726b54e8 | refs/heads/master | 2021-11-28T05:34:08.957689 | 2021-11-26T21:05:54 | 2021-11-26T21:05:54 | 168,065,136 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | import json
import re
import subprocess
import sys
inkscape_executable = "C:/Program Files/Inkscape/inkscape.exe"
print("Checking staged files for color compliance")
try:
# Get files in staging area:
commit_text = subprocess.check_output(["git", "status", "--porcelain", "-uno"],
... | [
"richardjspencer93@gmail.com"
] | richardjspencer93@gmail.com |
640cbd8b45b1907c93b397fbf8e94106dd7f97d1 | 6ee2254e0a0e5073927b9bcf8bd1f76cf78b87a1 | /4字符串处理技巧训练/4-1如何拆分含有多种分隔符的字符串.py | eb15a68fdd2c6c49a052b9bb5a74977ef85bdb84 | [] | no_license | skytotwo/Py3AdvancedTechnique | 8093b9de7f78954497e80fa2531f55a3a1d69204 | deac90787b32dea40d7b96b9f40202f93f20a654 | refs/heads/master | 2020-03-07T03:34:40.108462 | 2018-04-10T15:51:57 | 2018-04-10T15:51:57 | 125,972,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | #案例引入
#我们要把某个字符串依据分隔符拆分不同的字段,该字段包含多种不同的分隔符,例如:
#
# s = 'ab;cd|efg|hi,jkl|mn\topq;rst,uvw\txyz'
#其中<,>,<;>,<|>,<\t>都是分隔符号,如何处理?
#解决方案
#方法一:连续使用str.split()方法,每次处理一种分隔符号
#方法二:使用正则表达式的re.split()方法,一次性拆分字符串
#解决方案一
s = "ab;cd|efg|hi,jkl|mn\topq;rst,uvw\txyz"
s.split(';')
res = s.split(';')
print(res)
#map(lambd... | [
"381944069@qq.com"
] | 381944069@qq.com |
c97d5c8534d89a3098f1408d6927557520a716a0 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/xfel/command_line/xtc_dump.py | cf748f55c06c41577045989d90fdb4ed5880b085 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 10,862 | py | from __future__ import absolute_import, division, print_function
from six.moves import range
# -*- Mode: Python; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*-
#
# LIBTBX_SET_DISPATCHER_NAME cctbx.xfel.xtc_dump
#
import psana
from xfel.cftbx.detector import cspad_cbf_tbx
from xfel.cxi.cspad_ana import cspad... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
cae919b0190786a36a947426686bd056b5d69560 | c9af19f63f356dde5e6be34379b4741fcf3ca918 | /setup.py | 10318167a36ec96614515b40eec8c40a0a74ca8b | [
"MIT"
] | permissive | borgess28/coronagraph | 469fe13e13caa55c266a17d3682d041741326c10 | b321693512422343b08ada7e246413e1f4bae4cc | refs/heads/master | 2023-05-30T08:00:17.501907 | 2020-05-07T05:32:23 | 2020-05-07T05:32:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
from setuptools import setup
# Hackishly inject a constant into builtins to enable importing of the
# module in "setup" mode. Stolen from `kplr`
import sys
if sys.version_info[0] < 3:
import __builtin__ ... | [
"jlustigy@uw.edu"
] | jlustigy@uw.edu |
79b5ef3bd637ff8bbc5bb560093fa19e02d11270 | 8e7f87f4c876b2ef8a1d2bba1a146dbad417d1ac | /webcars/webcars/settings.py | be04b6a18c0666570abf6182e38ac073e28c4069 | [] | no_license | ATMAROZAK/carsau | 48ff72ecd61d401bf3367e9d327eaa5cfb750dbd | d5d22d5829664c20e19769c31c3375336c8df895 | refs/heads/master | 2020-03-14T06:56:49.329360 | 2018-05-15T13:40:53 | 2018-05-15T13:40:53 | 131,493,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,146 | py | """
Django settings for webcars project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os, d... | [
"ib_vadim@mail.ru"
] | ib_vadim@mail.ru |
ba922c5445274bb9aa6a8922f040363fbcc0e779 | 5ad4d4ff6060f67e262e42f0d6a24496efa87235 | /10_9_silent_cats_and_dogs.py | 74d432d17c5575b6e2dfbbe49c2d012c2325a024 | [] | no_license | silasfelinus/PythonProjects | 779bba4b508e2110510a1607e44c3edbf8a232ea | 4474e03c9e21e35c100bfb524a86a35d1b59820d | refs/heads/master | 2022-12-08T12:34:42.987932 | 2020-08-27T21:10:30 | 2020-08-27T21:10:30 | 290,848,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | def file_error(filename):
msg = "Sorry, the file " + filename + " can't be found."
print(msg)
cat_file = "cats.txt"
dog_file = "dog.txt"
try:
with open(cat_file) as f_obj:
cat_names = f_obj.read()
cats = cat_names.split()
print("Cat names are: ")
print(cats)
except FileNotFoundError:
pass
try:
with ope... | [
"silasfelinus@gmail.com"
] | silasfelinus@gmail.com |
4a156d8ef09c4d69a6dde0bc892c43557e66c29b | 0bcbdf19be4749d3babc9731f2c57172655c4285 | /basic programs/find_last_digit_factorial_divides_factorial.py | c9e31574c947ee5e1656e9d74c70c55b1f098fa1 | [] | no_license | pratikbarjatya/Python-OOPS | d0dec073a22790cca8a7883642ff38743822c3ea | 2f03e21cb1352e462d92d381951d1b00bcd40109 | refs/heads/master | 2023-01-27T14:32:50.645555 | 2020-12-09T14:19:20 | 2020-12-09T14:19:20 | 254,899,273 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # Find the last digit when factorial of A divides factorial of B
"""We are given two numbers A and B such that B >= A. We need to compute the last digit of this resulting F such that
F = B!/A! where 1 = A, B <= 10^18 (A and B are very large).
Examples:
Input : A = 2, B = 4
Output : 2
Explanation : A! = 2 and B! = 24.... | [
"pratikbarjatya@gmail.com"
] | pratikbarjatya@gmail.com |
1137de8b9a552f8d8213d9e2bfda19d48553a4ba | ea12a254d0da6f01c75e481fa2a450e2aa8216e5 | /.history/client1_20211117162244.py | 6b0a249d98eca32e5d072b7af5bb062cbab9a780 | [] | no_license | RiteshK555/Python-socket-chat-server | 6d1b6e51762a7e10f765af706b6093f1d601cfc4 | a17f05656d041b5491160fc9f1a84e436ef02a86 | refs/heads/master | 2023-08-30T11:16:58.934067 | 2021-11-17T14:22:03 | 2021-11-17T14:22:03 | 429,032,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import socket
import threading
HEADER=64
PORT=5051
SERVER=socket.gethostbyname(socket.gethostname())
client1=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
client1.connect((SERVER,PORT))
def msg_from_client1(msg):
message=msg.encode('utf-8')
msg_len=len(message)
send_len=str(msg_len).encode('utf-8')
... | [
""
] | |
13a4905ae7077bf34c1cfcef8d53ed482623a436 | 2ff4a38b86dfee4115c0a9280e95ff042d36f8bd | /programmers/lv2/emergency_boat_lv2.py | 4e7c867c41c62802da3a4d88574770e17a8f9e71 | [] | no_license | ohtaehyun/algo_study | 5e0adc6d18a186d959f0ad191af0d916f5c99793 | 87ac40b89b5ddbba09e8b3dd86ed0a3defc0590b | refs/heads/master | 2023-02-24T13:52:37.323111 | 2021-01-25T09:32:55 | 2021-01-25T09:32:55 | 284,712,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from collections import deque
def solution(people, limit):
answer = 0
people.sort()
p =deque(list(people))
while p :
weight = p.popleft()
remain_weight = limit - weight
while p :
w = p.pop()
if w <= remain_weight:
break
else :
... | [
"othdev95@gmail.com"
] | othdev95@gmail.com |
031082afed911262fc629700895e628f09e802ef | 57e1cb070fed466e03cb3cda81a289f447ee13b0 | /02_readline.py | cb6816aacc59543181538163460cd1c66d42c094 | [] | no_license | diksha1012/Python_Programs | 3af8423a56879e2fa5d6ec383982ae161d1298e2 | 2f82d740ae4f8891a7ae86c79eb174d9a3dbce4d | refs/heads/master | 2023-06-18T16:00:10.773661 | 2021-07-12T19:10:10 | 2021-07-12T19:10:10 | 384,858,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | f=open('sample.txt')
#read first line
data = f.readline()
print(data)
#read second line
data = f.readline()
print(data)
#read third line
data = f.readline()
print(data)
f.close() | [
"noreply@github.com"
] | diksha1012.noreply@github.com |
db9c9ef77bf6aaf5f803cc25c7e9bd1b81ae8c15 | 0dcf78e319956f2cb2327c5cb47bd6d65e59a51b | /Python3/Array/FindTheTownJudge/Naive2_997.py | 7f1a842199b42bd833b49f6df7d29d0c089ee772 | [] | no_license | daviddwlee84/LeetCode | 70edd09a64a6f61492aa06d927e1ec3ab6a8fbc6 | da1774fd07b7326e66d9478b3d2619e0499ac2b7 | refs/heads/master | 2023-05-11T03:16:32.568625 | 2023-05-08T05:11:57 | 2023-05-09T05:11:57 | 134,676,851 | 14 | 4 | null | 2018-05-29T14:50:22 | 2018-05-24T07:18:31 | Python | UTF-8 | Python | false | false | 495 | py | from typing import List
class Solution:
def findJudge(self, n: int, trust: List[List[int]]) -> int:
# find a node that in edge is n - 1 and out edge is 0
in_edges = [0] * n
out_edges = [0] * n
for ai, bi in trust:
in_edges[bi - 1] += 1
out_edges[ai - 1] += 1... | [
"daweilee@microsoft.com"
] | daweilee@microsoft.com |
1873e8e86f97a1f555d5127cb16f2f1044ceb05e | 121389e2f36d2e0672af767411cfb775352cee38 | /python_stuff/dot-pythonstartup | 870d3e0feb9682b3f2318e6dcdf75f3158dcfee7 | [
"MIT"
] | permissive | kaushalmodi/dotfiles | 4b03c870b52cc359c071c2c07119024fdcecbb9b | f43bfab16e8e32047d1d25c90705092bab0f30c3 | refs/heads/master | 2023-06-23T12:33:21.303780 | 2023-06-16T21:48:56 | 2023-06-16T21:48:56 | 19,359,447 | 47 | 19 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | #!/usr/bin/env python3
"""Custom functions for Ipython"""
import math
import convert # in $SCRIPTS/python
def log10(num):
"Return log10 of NUM."
return math.log10(num)
def b2d(binary_str):
"Convert BINARY_STR from Binary to Decimal."
return convert.b2d(binary_str)
def h2d(hex_str):
"Convert HEX_... | [
"kaushal.modi@gmail.com"
] | kaushal.modi@gmail.com | |
0e910e7259b8f2d1972d01000a727267c17b26e3 | 36f58995cc656696c513480e98f1962c0947f519 | /lib/pymat.py | ccef34ba43fb1a66d0a670cd57f462a84d58dba5 | [] | no_license | rj42/dataviewer | d7d9a1b8046298f3c4ba8ac52d83650118bf2678 | 63068955e541df694d365a869aac45c0fe4ef742 | refs/heads/master | 2021-01-16T18:17:12.503294 | 2015-02-24T07:08:24 | 2015-02-24T23:49:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import scipy.io
def save(filename,dic):
'''
saves dictionary to matlab binary format
'''
scipy.io.savemat(filename, dic)
def load(filename):
'''
loads .mat file as a dictionary
'''
d = scipy.io.loadmat(filename)
del d['__globals__']
del d['__header__']
del d['__version__']
for i in d.keys():
d[i] = d[i][... | [
"is6645@PGE-C9RTM02-NE.austin.utexas.edu"
] | is6645@PGE-C9RTM02-NE.austin.utexas.edu |
cc627c73d3145b43e230fd3f9cfd05c2f883fec3 | 3be7d27c8af88cb3e38d3abe6fb356d0aae0234e | /mattasks/views.py | 8b92b7c9da676e81fdcd4e963e4a9fe3cfec1002 | [] | no_license | peppuo/dg_gp | 1e38809a0bb0ddb2f747e1b008cefff11e3ec7b6 | 4b17d3835e7de365efeb1bbb82442b8b618da36f | refs/heads/master | 2023-04-26T09:06:39.716374 | 2020-01-22T00:36:09 | 2020-01-22T00:36:09 | 220,835,984 | 0 | 1 | null | 2023-04-21T20:40:37 | 2019-11-10T19:01:05 | Python | UTF-8 | Python | false | false | 199 | py | from django.shortcuts import render
def render_mattasks(requests):
return render(requests, 'mattasks.html')
def render_add_task(requests):
pass
def render_edit_task(requests):
pass
| [
"peppujool@hotmail.com"
] | peppujool@hotmail.com |
34c6cc2a14f9ef2bbae48b217162a6f1bef60751 | b96d3489ce0e160124dd2a0a9197c80b3c1d756f | /land_retail/land_retail/doctype/land_details/land_details.py | 1a8a65279a050bef4cb4048a91812ca0c0456a68 | [
"MIT"
] | permissive | Prosper-Apps/Land-Retail | ada6284d52d8b1979c702aaeb3445777c41f8c8a | 1e6c3f751b162d091544e028ad3f70629c1c5233 | refs/heads/master | 2023-07-15T22:51:31.217489 | 2021-08-22T19:36:36 | 2021-08-22T19:36:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Bantoo Accounting and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class LandDetails(Document):
pass
| [
"duncannkhata@gmail.com"
] | duncannkhata@gmail.com |
73caa9ce9f9121dc8f031a69d2a264d2f4fb475e | 5bd58323e622f58a4de979d36fde04276477b8ea | /code/py/heap/lc_692_Top_K_Frequent_Words.py | 89b6bedef5de15a060c07f00807c7ec9103d8c8e | [] | no_license | HJSang/leetcode | e3c98e239b693c742fa3fbec056dce0821cb725c | 9399de82326f90c7f4805d649e15fa6a4ad86a16 | refs/heads/master | 2021-07-07T14:04:03.401727 | 2020-11-23T04:01:35 | 2020-11-23T04:01:35 | 205,892,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | # 692. Top K Frequent Words
# Medium
#
# Given a non-empty list of words, return the k most frequent elements.
#
# Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first.
#
# Example 1:
# Input: ["i", "love... | [
"sanghj0923@gmail.com"
] | sanghj0923@gmail.com |
cbd1963eda88e7b0aac52ea0c5cc7e5a2c19a5f0 | ea6a186bd1123090660495e3d9145cf72673ae07 | /game_engine.py | 56fb171cad3aa04064b96183cbdd549037cd17cd | [] | no_license | Spacerat/SapphireClone | 538f99674b4856e6f76502ad46aaeee67fc4de45 | 6feaa855d76c957e86e1eb42146966f628cab688 | refs/heads/master | 2021-01-19T14:09:42.548833 | 2015-08-04T08:30:06 | 2015-08-04T08:30:06 | 40,172,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,052 | py | import pyglet
import logging
from collections import namedtuple
logging.basicConfig(level=logging.DEBUG)
class Pos(namedtuple('Pos', ['row', 'column'])):
""" A position object encodes a row and a column """
@property
def left(self):
return Pos(self.row, self.column-1)
@property
def right(s... | [
"jat1g11@soton.ac.uk"
] | jat1g11@soton.ac.uk |
96cf6e15b3185e6b21c750ca7f0f29651668092c | c0075e8a666d2ec994846510e1caf593c9149319 | /solver/adam.py | 2d9e38493b83d2ca4fd84b8a654e45dac274d026 | [] | no_license | omiderfanmanesh/Neural-Music-Classification | 0d5b524af6998cf4e93094a64aaf39d5064587ed | 6d3a01c164b1d9bef419a8c7d6e8abe66a9aecbb | refs/heads/main | 2023-06-20T11:23:49.497916 | 2021-06-28T13:11:53 | 2021-07-13T09:46:34 | 362,450,587 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import torch.optim as optim
class Adam:
def __init__(self, cfg, model_params):
self.cfg = cfg
self.model_params = model_params
def get_params(self):
return {
'params': self.model_params,
'lr': self.cfg.OPT.ADAM.LR,
'betas': self.cfg.OPT.ADAM.BETAS,
... | [
"omiderfanmanesh.dev@gmail.com"
] | omiderfanmanesh.dev@gmail.com |
3c2aab3ecac9f232f388ff9061c30d4daeb22e65 | c8b3882a09347076e78324dd106b40579b380f32 | /medical_web/manage.py | d91730869c305c0dd87957564ee1888837fde57b | [] | no_license | medical-weetech-co/medical.github.io | ec63323937a61ca08b04ea04070ba7c180a2cab1 | ed0324e104195a4b100aedc5da03d70a9982bac1 | refs/heads/master | 2021-07-05T12:51:37.400915 | 2017-01-25T08:54:06 | 2017-01-25T08:54:06 | 59,278,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "medical_web.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"peichieh@gmail.com"
] | peichieh@gmail.com |
71270a82c8899f57b40f543da8d5a9da416ec63f | fb85e81180cfcc061055d475d3d90cbf6b471d8a | /venv/bin/easy_install-3.5 | 909969bf46a06793f56477c19b8691863c3929d4 | [] | no_license | DarkKnight1317/python-pi-example | a309bcf3ef17a2114cfd1dc72a41dddb050ac87c | d74cf74984634b8389e25d8d806a5c4da5c2e8a7 | refs/heads/master | 2021-01-07T21:31:20.039143 | 2020-02-20T08:26:41 | 2020-02-20T08:26:41 | 241,825,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | 5 | #!/home/65bijitrevathy71/PycharmProjects/pi/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"bishal1banerjee@gmail.com"
] | bishal1banerjee@gmail.com |
dd1ed5bd20b5a60fd53bd43317230eb05bda02ff | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_267/ch80_2020_06_17_20_39_13_688401.py | d534bc9a3759e6fe0eb67eb6874f60c857066930 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def interseccao_chaves(dicio1, dicio2):
lista_chaves = []
for i in dicio1.keys() and l in dicio2.keys():
if i == l:
lista_chaves.append(i)
return lista_chaves
| [
"you@example.com"
] | you@example.com |
2271f16f4242a4787a8a6a2d8da4b91c64bb82f4 | 5d344134f84f90df8443de9743e6d05b4d33ecca | /MachineLearning/homeworks/hw7/converter.py | 21f91f418025feb081d42ade7f97cea6542bf0bb | [] | no_license | aulasau/BSU.Magistracy | e8deaba2c78e4ccb4f77f2956fc286c94573ae87 | cb9c547987030d004e33048e7c38f057e393413c | refs/heads/master | 2023-01-01T23:41:58.973005 | 2020-10-31T17:51:38 | 2020-10-31T17:51:38 | 308,931,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import sys
input_name = sys.argv[-2]
output_name = sys.argv[-1]
with open(input_name, "r") as inp, open(output_name, "w") as out:
for i in inp:
params = i.split(",")
if int(params[-1]) > 0:
out.write("-1 ")
else:
out.write("+1 ")
out.write("0:0 ")
... | [
"barabasha999@mail.ru"
] | barabasha999@mail.ru |
9b41d87dcf52cc0c7c937881ecb578353f1ec28d | a0ba425c9dc32b4e2face4228b7252d19b303f6f | /deploy-remote/localization/arucodetect-keeper.py | 5328717c04d3cabaec664108d1fe4479e02fd6f5 | [
"MIT"
] | permissive | pabsan-0/sub-t | a1f05c57cc39a9bd4fc92631027f161da927e6a3 | 7217fdbd3ba73a4d807939f3a2646ac9f4f00fe0 | refs/heads/master | 2023-08-14T20:37:22.654859 | 2021-10-05T15:44:22 | 2021-10-05T15:44:22 | 339,476,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,744 | py | import numpy as np
import cv2
import cv2.aruco as aruco
import math
# import matplotlib.pyplot as plt
import os
import time
import pprint
'''
Use this script to receive live feed and find aruco patterns on it.
Requires a callibrated camera matrix and distortion vector.
DEPS: RedmiNote9Pro.nz: a file from which to loa... | [
"noreply@github.com"
] | pabsan-0.noreply@github.com |
3eb8f4986634cf2ae84349c3e3527ede3532d582 | 6d0859eaf8fe458378e7f5688975edd993ce1e5a | /bwagtail/bootstrap_grayscale/migrations/0041_auto_20181215_2026.py | 78eb576c55bf794bae628f66604866f5f1d09ee0 | [] | no_license | mjlabe/bwagtail-cms | 8e52c2a9627d4540bd30c3bca871f1f841451061 | a214209a9bc61a5b7c6db3ff2f4741d1535ed3ac | refs/heads/master | 2022-12-04T23:12:39.546791 | 2019-09-10T01:25:38 | 2019-09-10T01:25:38 | 207,430,003 | 1 | 1 | null | 2022-12-04T11:05:20 | 2019-09-10T00:29:15 | Python | UTF-8 | Python | false | false | 9,580 | py | # Generated by Django 2.1.4 on 2018-12-15 20:26
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('bootstrap_grayscale', '0040_auto_20181215_2022'),
]
operations = [
... | [
"mjlabe@gmail.com"
] | mjlabe@gmail.com |
df6570463bf345354f02796f9fdc4ae2c2dd95c9 | 7f70571bc34cdb93a3b973b458915bbc8b3a4e24 | /pythoncode/search_rotated_list.py | 6d4c78b548d7b15de39c7e5183004e033f7ca477 | [] | no_license | Moxxi-ziFe/hogwarts | 13682453b9bad9391cf7efe32ef1b85e207f175c | 297bd0636d37344e0624ff99d8452bcc9d08f894 | refs/heads/master | 2023-03-12T08:06:00.290969 | 2021-02-24T10:08:53 | 2021-02-24T10:08:53 | 325,500,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | class Solution:
def rotate_list_search_minimum(self, nums: list):
if len(nums) <= 1:
return nums[0]
left = 0
right = len(nums) - 1
while left + 1 < right:
if nums[left] <= nums[right]:
return nums[left]
else:
mid = (... | [
"dengfenghou@outlook.com"
] | dengfenghou@outlook.com |
356499b6b6f83e5894d44ea76a5a24777bac2d13 | 5de63845a290d6f43ca195665e99c31f38cae43d | /Mundo2/003EstruturasDeRepeticao/057AceitarApenasMouF.py | 95befcd06a8a805fad62118eaa1fecb0a0ae1269 | [] | no_license | mucheniski/curso-em-video-python | 4fef73a9aebe2d815b60eeab119f8af91e3929ce | 242b4f719c1149273805762c9e40aa680464043b | refs/heads/master | 2023-07-05T05:05:56.580283 | 2021-09-02T17:10:57 | 2021-09-02T17:10:57 | 342,046,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Exercício Python 57: Faça um programa que leia o sexo de uma pessoa, mas só aceite os valores ‘M’ ou ‘F’.
# Caso esteja errado, peça a digitação novamente até ter um valor correto.
sexo = str(input('Informe o sexo M ou F ')).upper().strip()
while sexo not in 'MF':
sexo = str(input('Valor inválido, informe o s... | [
"mucheniski@gmail.com"
] | mucheniski@gmail.com |
e1d364e8012b8e88a5aa8ea7ea24b49307bae086 | 5064d0a44fb1e1af0205ae0bfa711bdbf2a33cc6 | /test/main_json.py | 495de07bbef5c2a94bb17969b852bb609d084a3b | [] | no_license | lmxwade/DSCI_551 | 4e157ae87f370a5e0195ea64c1afb2cf385c2418 | eecdc9222ae0e3441c167525609dfd54ed4134a8 | refs/heads/master | 2023-02-10T15:48:38.755414 | 2020-07-04T16:24:35 | 2020-07-04T16:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | #
__author__ = 'Aaron Yang'
__email__ = 'byang971@usc.edu'
__date__ = '9/6/2019 3:45 PM'
import json
if __name__ == "__main__":
data = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5}
print(type(data)) # <class 'list'>
# json.dumps 用于将 Python 对象编码成 JSON 字符串
jsonStr = json.dumps(data)
print(jsonStr) # <class 'str'>
... | [
"aaron19940628@gmail.com"
] | aaron19940628@gmail.com |
f305274bc2629f4a0c09c256c3b77c6f285abb8a | 8b8d1b6c325a0084805b26e0da63641928d76a08 | /backend/corelib/hardwarelib/baInstr.py | 15df44d948938890b58a003a3e900ed4053456a0 | [] | no_license | superfk/digiWeb | ea1215df477dbd1d2044815028b9f5cddf0874f0 | 2386a4da4e362e3f0c7bbfc6195f566f7630d582 | refs/heads/main | 2023-01-04T06:04:58.636065 | 2020-10-20T01:31:05 | 2020-10-20T01:31:05 | 304,383,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,344 | py | import serial
from PyCRC.CRCCCITT import CRCCCITT
import re
import time
class BaInstr(object):
def __init__(self):
self.device = None
self.debug = True
self.wait_cmd = True
self.duration = 0
self.connected = False
def config(self, debug=False, wait_cmd = True):
... | [
"jungenhsiao@gmail.com"
] | jungenhsiao@gmail.com |
df2687be95865187cd182c14c35da780e63fbbda | abc1a497c41ddd8669c8c41da18af65d08ca54e4 | /AnalysisF/recon_wf/1ns/make_H1ns.py | 106466fe5adefdd90b89f9c759c167aade3faeb5 | [] | no_license | gerakolt/direxeno_privet | fcef5e3b654720e277c48935acc168472dfd8ecc | 75e88fb1ed44fce32fce02677f64106121259f6d | refs/heads/master | 2022-12-20T22:01:30.825891 | 2020-10-04T06:01:07 | 2020-10-04T06:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | import numpy as np
import matplotlib.pyplot as plt
import time
import os
import sys
from scipy.optimize import minimize
from scipy.stats import poisson, binom
from scipy.special import erf as erf
pmts=[0,1,4,7,8,14]
path='/home/gerak/Desktop/DireXeno/190803/Cs137B/EventRecon/'
rec=np.load(path+'recon1ns98999.npz')[... | [
"gerakolt@gmail.com"
] | gerakolt@gmail.com |
ac6b247b14c0a2a6f1af882e5eb8a00c16731c1e | 885b8e1c53903865d1fc314ef2dceca42db5b516 | /vctools/__init__.py | 4b2c99e86eb606453d6db8874d6d422ebe504464 | [
"MIT"
] | permissive | mdechiaro/vctools | f1bc201ac3ff731f33efbea9ca4800f5a08f7991 | 02ab2763b788aa15d77b656fc9c059d14bfe1a64 | refs/heads/master | 2021-04-22T06:36:08.703111 | 2021-04-13T18:49:09 | 2021-04-13T18:49:09 | 23,294,967 | 4 | 2 | MIT | 2018-05-31T15:51:40 | 2014-08-24T22:39:54 | Python | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/env python
# vim: ts=4 sw=4 et
""" Logging metaclass."""
import logging
class Log(type):
""" Metaclass that will load all plugins. """
def __init__(cls, name, args, kwargs):
"""
Args:
name (str): Becomes __name__ attribute
args (tuple): Becomes __bases__ attri... | [
"mdechiaro@users.noreply.github.com"
] | mdechiaro@users.noreply.github.com |
a820c92be19bb6eb23ea6e9a14ad2babd43e4947 | 841192bf32a8b0f9ac53f130a732ddbaf4e0231c | /homework_4/code/q1.py | ff096c9c868025ba84c24da6673cb5d1145344f8 | [] | no_license | nolanstr/CS6190_PML | 21d6c247f7c8ffe5b733692acd2c63affe78e781 | 0ccf02a21560aab74b9f3a52c93831a195ba102a | refs/heads/master | 2022-04-15T18:34:18.746203 | 2019-12-09T20:43:25 | 2019-12-09T20:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py |
import numpy as np
import os, sys
from matplotlib import pyplot as plt
import matplotlib
sys.path.append(os.getcwd())
sys.path.insert(0, 'data/example-code')
from gmq_example import gass_hermite_quad
#from data.example_code.gmq_example import gass_hermite_quad
m = 10
c = 3
dpi = 200
fs = 20
lw = 1.75
matplotlib.rcP... | [
"abhinav3663@gmail.com"
] | abhinav3663@gmail.com |
a918d1be3e1fa9e5f4382813050f4da668f2077a | 5a42636bb3f793304595600cdd1534c8433f3339 | /ErrorAnalysis_Code/ErrorAnalysis.py | dac144c9007a26e20df1188e8a607ec8b72128b9 | [
"MIT"
] | permissive | mmstoll/Ocean569_Code | 21902a5be2cb9a17ab32755413dc8b708533ddce | 228cb719f3e82f187f704f343d3b3590a38236d7 | refs/heads/master | 2022-11-16T14:43:04.579602 | 2020-07-15T21:03:55 | 2020-07-15T21:03:55 | 259,759,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | #
# estimate and plot a chi-squared distribution with error bounds
#
from scipy import stats
import matplotlib.pyplot as plt
import numpy as np
#
# file_out='/Users/riser/Desktop/ocean.569A/chi-sq.nu=10.confidence.limits.jpg'
#
# define the number of degrees of freedom
#
nu=10
#
# define the arrays
#
nn=1000
xx=np.zer... | [
"64496465+mmstoll@users.noreply.github.com"
] | 64496465+mmstoll@users.noreply.github.com |
2d7752b5248ca30de42447503f8cb51b06fd5d1f | 21e64f9410323a11d4550b889fd0bb0d68543fab | /config/munin/mongodb_conn | 93f39733e6ea84ca3aa106275b63a88e87de9375 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | quanganhdo/NewsBlur | a7eaa3c5bdb2e57998651d736db861f88fcd1e75 | cef29f01658c845564a5044b48b4cf19efcaa4d6 | refs/heads/master | 2021-03-05T23:56:27.976498 | 2020-02-27T15:23:23 | 2020-02-27T15:23:23 | 246,164,347 | 1 | 0 | MIT | 2020-03-09T23:34:18 | 2020-03-09T23:34:17 | null | UTF-8 | Python | false | false | 791 | #!/srv/newsblur/venv/newsblur/bin/python
# -*- coding: utf-8 -*-
from vendor.munin.mongodb import MuninMongoDBPlugin
class MongoDBConnectionsPlugin(MuninMongoDBPlugin):
args = "-l 0 --base 1000"
vlabel = "count"
title = "MongoDB current connections"
info = "Current connections"
fields = (
... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com | |
004329b3ddea39cfcdec79380491743f3b906eb9 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/5b53afc49b5f418cb7d6bbf495c8fdd9.py | 38933221b5f04fff5d26cc532c350159342a7cc9 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 239 | py | '''This module will take in a year (positive integer) and return True if the
year is a leap year, False if it is not.
Lesson: Refactor.
'''
def is_leap_year(year):
return (year%400 == 0) or ((year%100 != 0) and (year%4 == 0))
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
32a028c6ecd88e1712dd5af1b5ceee421ca23a80 | 9ea9794919da44b4cf77cb4c92ad641d396f26a8 | /rcnn_attention/wrn/feature_extractor/extract_features.py | 912291fee44accbe69235ede99fb900391046a52 | [] | no_license | AmirooR/Pairwise-Similarity-knowledge-Transfer-WSOL | 3d8bbb4a342fb606cc972da9d157388050f87878 | 01985a4b24e839752df8b192dbda8c274923c4f8 | refs/heads/master | 2023-01-28T08:33:28.451844 | 2020-12-08T06:38:14 | 2020-12-08T06:38:14 | 280,340,805 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,529 | py | import functools
import tensorflow as tf
import numpy as np
import os, sys
from functools import partial
from rcnn_attention.wrn.model.wide_resnet import wide_resnet_model
from dl_papers.datasets.miniimagenet import load_miniimagenet_data
trained_model_path = '../logs/mini_base/train/model.ckpt-200000'
def extract(sp... | [
"amir.rahimi@anu.edu.au"
] | amir.rahimi@anu.edu.au |
e5187be6c2339cacd981c880a7bcc4f600452526 | e1112bb6d54acb76e6e991fc4c3fc0d3a1f7b0d6 | /02 - Sets and tuples/Exercise/02-Sets_of_elements.py | 7bbb5ad6a390172f3d0bbbf55241d1a067f2744d | [] | no_license | MiroslavPK/Python-Advanced | 0326209d98254d4578a63dcd4c32b49be183baf2 | 0c696a220aa587edb2505e8d986b041cc90a46f3 | refs/heads/master | 2023-01-12T10:46:06.590096 | 2020-11-18T19:08:55 | 2020-11-18T19:08:55 | 295,449,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | n, m = map(int, input().split())
n_set = set()
m_set = set()
for i in range(n+m):
if i < n:
n_set.add(input())
else:
m_set.add(input())
intersection = n_set & m_set
print('\n'.join(intersection))
| [
"miroslavkarakostov@gmail.com"
] | miroslavkarakostov@gmail.com |
c57d23449c718bd2b649ef10212f9605ccca3218 | 487490ff85cfc959890a76410d12bd3e0fe1b789 | /utils_QSO.py | 62d5b265e12cd53c56ab0f23a48b49abaf33762f | [] | no_license | esavary/eBOSSLens | 0810e80961c1828613592b3d34e740f43c551d2e | c2761c7c045f36a6eb72e8958dd0f06dd1ce0c1d | refs/heads/master | 2021-01-23T04:40:12.129893 | 2017-03-17T15:33:40 | 2017-03-17T15:33:40 | 86,235,505 | 0 | 0 | null | 2017-03-26T13:42:21 | 2017-03-26T13:42:20 | null | UTF-8 | Python | false | false | 17,932 | py | import numpy as np
import matplotlib as mpl
from matplotlib import pyplot as plt
from matplotlib import gridspec
from matplotlib.font_manager import FontProperties
from utils import *
def DR12Q_extractor(path = './Superset_DR12Q.fits'):
hdulist = pf.open(path)
z_vi_DR12Q = hdulist[1].data.field('Z_VI')
z_PCA_DR12Q ... | [
"romainalexis.meyer@epfl.ch"
] | romainalexis.meyer@epfl.ch |
4d0af196400f9ebc7e28981d5b4b342f0ea75310 | 5cf4c49043d66fd37a1e9a183cf126a915b19668 | /src/topic_store/__init__.py | b232dfe3306892d5c42e43d6b8c973c37300b9a8 | [
"MIT"
] | permissive | pet1330/topic_store | f14859e746839bec8fe197933ea23155936644af | 3f3f7fbcc3289ef096b6e2e96fb5d80b869a11d4 | refs/heads/master | 2023-04-16T08:06:33.650998 | 2021-04-12T09:10:28 | 2021-04-12T09:10:28 | 264,911,292 | 0 | 0 | MIT | 2020-05-18T10:55:11 | 2020-05-18T10:55:11 | null | UTF-8 | Python | false | false | 453 | py | # Raymond Kirk (Tunstill) Copyright (c) 2020
# Email: ray.tunstill@gmail.com
from .api import load
from .data import TopicStore
def get_package_root(use_rospkg=True):
import pathlib
if use_rospkg:
try:
import rospkg
return pathlib.Path(rospkg.RosPack().get_path("topic_store"... | [
"ray.tunstill@live.co.uk"
] | ray.tunstill@live.co.uk |
d8b2df2337b5e5e71fcd5b02fe1fc120aa5d240b | fa93e53a9eee6cb476b8998d62067fce2fbcea13 | /devel/lib/python2.7/dist-packages/pal_device_msgs/msg/_DoTimedLedEffectGoal.py | 73f6163b853c14a328a4f720228d430539ed29a0 | [] | no_license | oyetripathi/ROS_conclusion_project | 2947ee2f575ddf05480dabc69cf8af3c2df53f73 | 01e71350437d57d8112b6cec298f89fc8291fb5f | refs/heads/master | 2023-06-30T00:38:29.711137 | 2021-08-05T09:17:54 | 2021-08-05T09:17:54 | 392,716,311 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | /home/sandeepan/tiago_public_ws/devel/.private/pal_device_msgs/lib/python2.7/dist-packages/pal_device_msgs/msg/_DoTimedLedEffectGoal.py | [
"sandeepan.ghosh.ece20@itbhu.ac.in"
] | sandeepan.ghosh.ece20@itbhu.ac.in |
6f1bb4ff7967bfd1652c3e845f0f639580fcd308 | a45b8075f3c3b247a3cac43cb12bf4d80103f608 | /glamazer/urls.py | 2df7d0d6d8a24ce521febc8454892b0cfa167c9e | [] | no_license | kahihia/glamfame | c890a8772aa92b8ed9e3c0bb664c5dae187d1c09 | af91d4d16d0c8847c42eb97be839bf08015274b6 | refs/heads/master | 2021-01-21T09:59:52.700945 | 2016-02-15T17:16:13 | 2016-02-15T17:16:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
admin.autodiscover()
urlpatterns = pattern... | [
"zhuhov@gmail.com"
] | zhuhov@gmail.com |
778190838724b4739e06fe9fb67369b4a3b57141 | 4a506391d992d3f24401c242c271da8b4308eb8f | /001_Print_Arithmetic/10869.py | a5b350bb2f82c9066b18e4a32968de1441cab5c6 | [] | no_license | shdev95lee/baekjoon | a7c036750642717792c0faec607c23608952d789 | 0ed04c46ee0d811c744689072fd4fe4fdca3c267 | refs/heads/master | 2023-06-08T01:11:14.160480 | 2021-06-25T14:48:39 | 2021-06-25T14:48:39 | 379,516,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | a, b = input().split()
print(int(a)+int(b))
print(int(a)-int(b))
print(int(a)*int(b))
print(int(int(a)/int(b)))
print(int(a)%int(b)) | [
"shdev95lee@gmail.com"
] | shdev95lee@gmail.com |
a151e9843eb215cac92e2cf8ba46206c8de27cd0 | db76cfd222d7208c4dd15ef9dd3a8331b384f44a | /Baike_Python/spider_main.py | 3e953f70129515f2612e734ccaecbb4a0f2e2dc3 | [] | no_license | DanielQ8843/Robot_0.1 | c94624600b9a02c594ea7ffbaf39a0c40dcd49b9 | 8d23135c97f78ba7a0cdd6ee48569800afdcabc8 | refs/heads/master | 2016-08-13T01:17:24.053074 | 2016-01-12T07:47:41 | 2016-01-12T07:47:41 | 49,482,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,238 | py | # coding: utf8
# 名称:爬虫总调度程序
# 功能:会以入口 URL 作为餐参数,爬取所有的相关页面
# 首先:编写 main 函数
import url_manager, html_downloader, html_parser, html_outputer
class Crawler(object): # S4 爬虫总调度程序,通过主函数的 自动补齐创建 —— 我们的总调度程序,会使用 URL 管理器、HTML 下载器、解析器、输出器,完成需要的功能
def __init__(self): # S6 构造函数,初始化各个对象
self.urls = url_manager.UrlMa... | [
"jsevencqu@gmail.com"
] | jsevencqu@gmail.com |
84c8c45bf56852074cb397e2014c21d669452304 | 667c25f7f97fb7201fbec3c9a63d9dfb0dbf8f3a | /src/Principal.py | 6420781e6c42a4a46e5f0b22ec634f456996eec8 | [] | no_license | rickjmzmnz/JugarVsEngine | 6ef358b38da4e38bba6db33eb061b996c651e031 | c2cceb8323cdd552fe3691ceeb825cf066eccbaf | refs/heads/master | 2021-08-19T04:48:06.152235 | 2017-11-24T20:54:28 | 2017-11-24T20:54:28 | 111,821,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,641 | py | # -*- coding: utf-8 -*-
from Tkinter import *
from PIL import ImageTk, Image
from Jugadas import *
import tkFileDialog
import tkMessageBox
import os
import io
import types
class Interfaz(Frame):
"""
Constructor de la clase
Se crea el canvas donde se pondra el tablero
Se crean los botones y etiquetas... | [
"rickjmzmnz@ciencias.unam.mx"
] | rickjmzmnz@ciencias.unam.mx |
4aa34652c3f1418ac0c14a95848b43c577266aee | 86c097ac18dbbf46c27545bc1f429ddfd0b5d2be | /src/model/gan_multimodel.py | 3c8824e03a580d78e0a759fa6a94472b563b3688 | [
"MIT"
] | permissive | nipdep/STGAN | c46b056a7fae4a719d3c2ec05fedfd7bb876dab0 | c72ba6cb9d23d33accc0cfa1958a2005db3ed490 | refs/heads/main | 2023-08-14T15:50:15.459763 | 2021-10-07T12:03:53 | 2021-10-07T12:03:53 | 375,255,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | #%%
import tensorflow as tf
import tensorflow_probability as tfp
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import os
from tensorflow.keras import Sequential, Model
from tensorflow.keras.layers import Dense, Flatten, Reshape, Concatenate, Conv2D, UpSampling2D, BatchNormalization
tfd = tfp.... | [
"46063855+nipdep@users.noreply.github.com"
] | 46063855+nipdep@users.noreply.github.com |
712d10d431739dab7979cbd50064908f8a699d66 | 3302b12ed21214ea0f2c4fc22c49caa359c675fd | /pages/basket_page.py | baff0b1286fd684c084cd2c9a7e9acd073726b24 | [] | no_license | furbeast/stepik_selenium_total | bede338303113b8cc3bb6fa8687646145aee2f6d | 2d0e86df0d64029c37ddf5b3f19a500b985ba071 | refs/heads/master | 2023-05-30T23:29:42.611293 | 2020-06-22T16:45:09 | 2020-06-22T16:45:09 | 273,192,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def basket_empty(self):
assert self.is_not_element_present(*BasketPageLocators.BASKET_ITEMS), "Basket not empty"
def basket_empty_text(self):
assert self.browser.find_element(*BasketPageLocato... | [
"slonn91@mail.ru"
] | slonn91@mail.ru |
2fb3622d8520b0df9fdbf0783f3a2333622c2c5b | 46ad22b772f0bb115e1192ca24c86b1593d51870 | /eclipsed/src/cursor.py | f67a0516f50351fa94c3799522d029fba269422b | [
"CC0-1.0",
"WTFPL",
"CC-BY-4.0"
] | permissive | cosmologicon/unifac | fb533abfbba7ebb33561a330f7be5d22dbc2a373 | e7668c6736cd4db66f8d56e945afb69ec03f2160 | refs/heads/master | 2022-06-15T10:46:28.448477 | 2022-05-30T20:26:55 | 2022-05-30T20:26:55 | 37,033,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py |
tobuild = None
pointingto = None
# These don't really need to go here since they're redundant with hud.mode
# but this module was looking a little lonely so here they are.
disable = False
unbuild = False
| [
"cosmologicon@gmail.com"
] | cosmologicon@gmail.com |
91459a8ac7fcc46ebcba799bda3ebe1f208692f6 | a9443f14227a697dd92106e2dc6863944fa73fbf | /meng-TaggingTool/tkInter.py | 84df25898213873b209dcfac4b5708253c678e18 | [] | no_license | KevinYe1014/pyqtExamples | 95f35efa46872370d2f71312a461c335ad44f0df | 6fa14be14a0ee67c3cdbc9f25b7ce413c506a459 | refs/heads/master | 2020-06-23T22:53:44.401692 | 2019-07-25T07:10:12 | 2019-07-25T07:10:12 | 198,777,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,395 | py | # coding: utf-8
from tkinter import *
from tkinter import ttk, font
import os
import sqlite3 as sql
from io import BytesIO
from PIL import Image, ImageTk
import configparser
import random
conn = sql.connect('./hard_labels.db')
cursor = conn.cursor()
cex = cursor.execute
cex('''PRAGMA TABLE_INFO (front)''')
if cursor.... | [
"2439745857@qq.com"
] | 2439745857@qq.com |
74d8d9d2cc5d152126537573a927ca64f8afb791 | 5a7abc4537039860c49e9a80219efa759aad1b6f | /tests/providers/aws/services/ec2/ec2_securitygroup_from_launch_wizard/ec2_securitygroup_from_launch_wizard_test.py | a3c14ce6680594654bebaca336460ebb88319e50 | [
"Apache-2.0"
] | permissive | sec-js/prowler | d5a06c72f5d7e490bade1167966f83f7a5d7ed15 | f72be9a1e492ad593c9ac267d3ca07f626263ccd | refs/heads/master | 2023-08-31T22:48:33.983360 | 2022-12-22T16:02:28 | 2022-12-22T16:02:28 | 243,866,744 | 0 | 0 | Apache-2.0 | 2022-12-23T12:23:20 | 2020-02-28T22:37:02 | Python | UTF-8 | Python | false | false | 4,834 | py | from re import search
from unittest import mock
from boto3 import client, resource
from moto import mock_ec2
AWS_REGION = "us-east-1"
EXAMPLE_AMI_ID = "ami-12c6146b"
class Test_ec2_securitygroup_from_launch_wizard:
@mock_ec2
def test_ec2_default_sgs(self):
# Create EC2 Mocked Resources
ec2_c... | [
"noreply@github.com"
] | sec-js.noreply@github.com |
d0d4dc3ccd41bd22334c993a04c194b2496ba982 | 42a833f190b3352eaa89604381d3db500c80f538 | /pentestui/uiapp/views.py | 918b2e56df39b60fe12bd295a639303bf2b49276 | [
"Apache-2.0"
] | permissive | mustgundogdu/PentestUI | 95c037022c5aad25cf2e1a4b7ad58eedd6df6ed8 | 92263ea73bd2eaa2081fb277c76aa229103a1d54 | refs/heads/main | 2023-08-29T23:12:28.027452 | 2021-11-18T17:53:03 | 2021-11-18T17:53:03 | 389,436,912 | 31 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,281 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, get_object_or_404, redirect
from django.template import loader
from django.http import HttpResponse
from django import template
from pentestui.pentest_api.models import ProcessUI
@login_required(login_url="/login/")
def index... | [
"noreply@github.com"
] | mustgundogdu.noreply@github.com |
78549acd2b3ba1702eb99871e727416adbdfd697 | d8f469a2b9794d864e172dd70a324a05eb54a53e | /P3Python/section13/Lecture 146 - Placeholders and Parameter Substitution - Source code/checkdb.py | 9ffde63fd37cccc87d02560efbe0d8959c9dfdd7 | [] | no_license | abikg71/python37 | 78a7b7027ea6671b24c6d50cde0a30c0d0c21fd0 | 99d4ade9b21afc3588954025607c08dec6f8ecb6 | refs/heads/master | 2020-08-21T22:48:01.222424 | 2020-08-14T18:17:53 | 2020-08-14T18:17:53 | 216,265,189 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import sqlite3
conn = sqlite3.connect("contacts.sqlite")
name = input("Please enter a name to search for ")
# for row in conn.execute("SELECT * FROM contacts WHERE name = ?", (name,)):
for row in conn.execute("SELECT * FROM contacts WHERE name LIKE ?", (name,)):
print(row)
conn.close()
| [
"abinetkenore14@yahoo.com"
] | abinetkenore14@yahoo.com |
d16b1d9e1c492143309416fd7527999d32681384 | 0bd8a230151dcc5708022c900575606b881563b2 | /idea/blog/migrations/0008_auto_20180109_2344.py | 44248a1f30de3421839d1be081c20e6eea184e8d | [
"MIT"
] | permissive | mcmaxwell/idea_digital_agency | 1ad4f36b814acd81d1defc4813cf02a000cda81f | 366e27e14e80b3fbb5980c64d3d38fdbcbc8f000 | refs/heads/master | 2018-10-17T03:41:04.432920 | 2018-09-24T07:55:55 | 2018-09-24T07:55:55 | 108,956,925 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2018-01-09 23:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_blog_subtitle_tag'),
]
operations = [
migrations.AddField(
... | [
"alexrians@gmail.com"
] | alexrians@gmail.com |
610395c1c0a55d4f8b7099bea152e4feb27dec23 | 5637cca6c5684c90586613d891506ea4c1d6cbfb | /Python/6kyu/one_plus_array.py | bf9f2effc254a665d5a02a9b921ccccd43d561b8 | [] | no_license | Patryk9201/CodeWars | 4a4e6a91dfcf8ec62c2fa553427b106769a68f8c | f86da56e071832af71145cc5033f4c3115726204 | refs/heads/master | 2023-05-22T17:17:51.061609 | 2021-06-14T11:10:08 | 2021-06-14T11:10:08 | 375,696,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | """
Given an array of integers of any length, return an array that has 1 added to the value represented by the array.
the array can't be empty
only non-negative, single digit integers are allowed
Return nil (or your language's equivalent) for invalid inputs.
Examples
For example the array [2, 3, 9] equals 239, addin... | [
"noreply@github.com"
] | Patryk9201.noreply@github.com |
e665a77be9efb83ad3be40619cdfaa76985e9508 | d8c6c2433f32c35b0039e876a837ba3a64d8a14d | /euler/3/a.py | 029ea73f8a2f0efa778cbe8faedb8df32836ee44 | [] | no_license | jmerizia/programming-team-solutions | 863158105b54ba1fd78be2b429f2bcfff92499b3 | 29f052f7f34a00a88fce0bcb701027b8d1477ee3 | refs/heads/master | 2021-11-29T07:57:43.291653 | 2021-11-13T07:42:59 | 2021-11-13T07:42:59 | 119,102,254 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import math
n = 600851475143
m = math.ceil(math.sqrt(n)) + 10
is_prime = [True for _ in range(m)]
is_prime[0] = False
is_prime[1] = False
k = 2
while k * k <= m: # O(m log m log log m)
if is_prime[k]:
for i in range(k*2, m, k):
is_prime[i] = False
k += 1
primes = [idx for idx, x in enumerat... | [
"jmerizia@vt.edu"
] | jmerizia@vt.edu |
a6e1c8952ffea6bc71e3c9a632fbce60a039c2e9 | 4549687c81b6e97c9b1b955354cffea93bb968d1 | /Python/API/get-ap-json_2.py | e48453b4882954c31760c38e8ccce06e01663f68 | [] | no_license | dkorzhevin/code | f1962d7beb448a2f38f304a9dcc6e3e6d7abcb13 | 42a37bad47187f33422bb72cc738fa350a0754e6 | refs/heads/master | 2020-09-11T05:15:57.369392 | 2020-03-10T10:48:54 | 2020-03-10T10:48:54 | 221,949,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from urllib.request import Request, urlopen
import json
req = Request('https://cmxlocationsandbox.cisco.com/api/config/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone')
req.add_header('Authorization', 'Basic bGVhcm5pbmc6bGVhcm5pbmc=')
response = urlopen(req)
response_string = response.read().decode('utf-8')
#print(... | [
"dkorzhevin@gmail.com"
] | dkorzhevin@gmail.com |
46c75cfc66b41a8d03c8a63219aa1d6fb596b2ba | c7c001c9011f559b8b1c85d1c3e0387a86a99628 | /y2018/day18/lumber_collection.py | ec0c9f79bbc2fe5449c89bab26476d8ddca92c8e | [] | no_license | ericbgarnick/AOC | 5ddfd18850b96f198e125f5d1f0978e852195ccf | a935faad3fcbbe3ac601e2583ed27b38bc60ef69 | refs/heads/main | 2023-04-12T18:50:09.926169 | 2023-04-09T12:47:35 | 2023-04-09T12:47:35 | 224,573,310 | 2 | 1 | null | 2021-12-15T14:25:33 | 2019-11-28T05:00:52 | Python | UTF-8 | Python | false | false | 1,890 | py | from typing import List
from acre import Acre
class LumberCollection:
def __init__(self, area_map: List[str]):
row_len = len(area_map[0])
num_rows = len(area_map)
self.collection_area = [] # type: List[Acre]
self.populate_area(area_map)
self.link_acres(row_len, num_rows)
... | [
"eric.b.garnick@gmail.com"
] | eric.b.garnick@gmail.com |
1c06d723254657701479f4b0179290148c45af44 | 0d76ba0da5446f20e500b7e31f53821b14cb49d8 | /Codility/python/abs_distinct.py | a14e108198517a0a7f73819039d873dfe2b9a69b | [] | no_license | filwaitman/playground | 948aa687be06d456c86b65ee3ab5fb9792149459 | dfdfab9002bff3a04f37e0c161363a864cd30f3e | refs/heads/master | 2021-01-12T12:59:49.057832 | 2020-01-26T18:51:02 | 2020-01-26T18:51:02 | 68,865,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
# https://codility.com/programmers/task/abs_distinct
# 100/100
def solution(A):
positives = map(abs, A)
return len(set(positives))
assert solution([-5, -3, -1, 0, 3, 6]) == 5
assert solution([42]) == 1
assert solution(range(-1000, 0) + range(1, 1001)) == 1000
| [
"filwaitman@gmail.com"
] | filwaitman@gmail.com |
e4054e3a7097e2df819383ffeb0765121f09cd18 | 33e78c2f65c7f6f0b0d448787ad7df2557dec774 | /mysite/views.py | c87b994bed0c80da315730170b53aeb2103103f6 | [] | no_license | hjf12402/mvote | 086c8a5a50bb82fd0d1d35fdd726c730e719cef4 | 615c03344cbed562d81dc8215686b922d2fb729a | refs/heads/master | 2022-12-11T07:47:00.708907 | 2019-07-01T13:52:22 | 2019-07-01T13:52:22 | 194,530,367 | 0 | 0 | null | 2022-12-08T05:49:55 | 2019-06-30T15:15:06 | Python | UTF-8 | Python | false | false | 3,930 | py | #未解决ajax刷新局部代码后投票函数失效问题!!!!
from django.shortcuts import render, redirect
import datetime
from .models import PollItem, Poll, Profile, VoteCheck
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.http import Http404, HttpResponse
from django.contrib import messages
from django.contri... | [
"492710346@qq.com"
] | 492710346@qq.com |
2a054dda5938df39f5dcdbd92bb0b4ea2a6b8503 | abce7e5e587e69342c3ef19bd0d6ccee270a85cc | /turtle/catandmouse/catandmouse.py | 23438dee6a416a7f8d4f78b46c0143a9cfe211d9 | [] | no_license | ruazjy/raspberry_pi | 184ff234d13e5b287bbfd21d2936b12982ac737f | f60718d73232b169db58501920a0aafa40878eb6 | refs/heads/master | 2020-06-10T08:53:21.306582 | 2019-09-05T09:01:29 | 2019-09-05T09:01:29 | 193,626,340 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | import turtle
import time
# Python程序由一系列命令组成并从上到下执行
# 可以通过循环和if语句控制程序
# 不必事必躬亲,通过导入模块
# 函数可以帮助重用代码,也可以使程序变得易于理解和维护
# 变量可以存储信息以便后面使用
boxsize = 200
caught = False
score = 0
# functions that are called on keypresses
def up():
mouse.forward(10)
checkbound()
def left():
mouse.left(45)
def right():
m... | [
"331182615@qq.com"
] | 331182615@qq.com |
70e7af3e0751be27c0879cdd30eb63c48c35d1d0 | a38670ee08ea64af33477899a68ee22936f70ce7 | /luffy/第三模块/第6章网络编程/第6章每小节/2 加上循环/04 模拟ssh远程执行命令/客户端.py | a62f5c2f2197ac5dd07315df58754ce788d23051 | [] | no_license | foremostxiao/d | 40ed37215f411e8b081a4cb92c8ecbd335cd9d76 | fe80672adc6b2406365b05d5cedd02c6abf66c11 | refs/heads/master | 2020-03-29T13:51:19.589004 | 2018-09-23T09:29:56 | 2018-09-23T09:29:56 | 149,985,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import socket
phone = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
phone.connect(('127.0.0.1',8080))
while True:
# 1 发命令
cmd = input('>>>').strip()# 输入mingl
if not cmd:continue
phone.send(cmd.encode('utf-8')) # send 发给操作系统了
# 2 拿命令的结果并打印
data = phone.recv(1024) # 1024是个坑,有可能收到的超过1024,后续解决
... | [
"foremostxiao@163.com"
] | foremostxiao@163.com |
c0dfa6271b2327073a0a168b47640c937cbeee81 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/287/71629/submittedfiles/testes.py | 967c3e410a7b976e11bd707dcfdc03122824963f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # -*- coding: utf-8 -*-
#COMECE AQUI
a=int(input('Que horas são? [0-23]'))
if a > 3 and a < 12:
print('Bom diiiia!')
elif a >= 12 and a < 18:
print('Boa tarde')
else:
print('Boa noite, ate amanha!') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e00038dbf01aa55c77357fc630db17f81da0127f | c1125e2835829c6ed0f06d641142fb7b4e179132 | /project/visualization.py | f6ccd049de7124b92023b4a14e589f24992f3dcc | [] | no_license | chien-lung/DataScience_2018 | b3b41e9cd9a5deaadd17e8507fcb0b80dd576022 | dbb2a6ac9b695aafe6e2b9ba5a892387574b2514 | refs/heads/master | 2020-04-16T19:55:20.242523 | 2019-01-17T10:08:44 | 2019-01-17T10:08:44 | 165,879,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 8 21:35:09 2019
@author: Lung
"""
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelEncoder, Imputer
from sklearn.model_selection import train_test_split
#filename = '2018matchdata.csv' #... | [
"e125313530@gmail.com"
] | e125313530@gmail.com |
35f673f2499226f1528d14ea822392bfa93ec288 | b0531384ca9944b8f7ed03ff5c6bd0f309348513 | /Code/Braille_Dictionary_Grade_2.py | c15392ac3812fca175d25726ec248c849edffedf | [] | no_license | Rajk0520/Portable_Braille | 9198f6509aee2e583210d34e6c15245b18c86615 | b27a274a649b910e19da579c7b6e13cedcb6b3d1 | refs/heads/master | 2020-05-14T20:05:31.122653 | 2019-03-21T19:50:25 | 2019-03-21T19:50:25 | 160,282,211 | 1 | 0 | null | 2018-12-04T02:09:47 | 2018-12-04T02:09:47 | null | UTF-8 | Python | false | false | 27,241 | py | # -*- coding: utf-8 -*-
"""
**************************************************************************************
* Braille Dictionary (GRADE 2)
* ================================
* This software is intended to convert english text into braille characters
* MODULE: Braille_Dictio... | [
"adityasingh3007@gmail.com"
] | adityasingh3007@gmail.com |
5bb104e3ff4c5531bec4dfe4204d4e626ef4dc32 | e86897d5780bc80c0746f21233b6f93f88f8016a | /PythonCode_Practice2/function201~210.py | 937a45542f6db0ddefa41fa331c55a91446500b8 | [] | no_license | alstndhffla/PythonCode_Practice | 8e6e030b75d62e4363a1041087fe73138d9c8392 | e664802b9a5353cda1d44e929330930be125d785 | refs/heads/master | 2023-04-14T00:17:56.830120 | 2021-04-13T04:55:37 | 2021-04-13T04:55:37 | 344,238,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # 201
def print_coin():
print("비트코인")
# 202
print_coin()
# 203
"""
100번 호출
"""
print("-----------")
for i in range(1, 101):
print_coin()
# 204
print("-----------")
def print_coins():
# for i in range(1, 101): # 이것도 사용가능
for i in range(100):
print_coin()
print_coins()
# 209
print("---... | [
"alstndhffla@gmail.com"
] | alstndhffla@gmail.com |
4dabbe95f411c3f366cd132317485e112c08b660 | d1d154e30e9f3e8c68bf785909a5f8ca9ff86e03 | /Python/note/图像处理/test/bitwise.py | 48cf57a81fed6935abb01569d19752607bc7294c | [] | no_license | Mecoly/note | aae522123acdba8ee785ed7baaee7a2b7df2da26 | e82f933a7a20bedc30cc0e56006405e4a33f9c90 | refs/heads/master | 2023-04-23T13:53:35.399635 | 2021-05-10T09:46:31 | 2021-05-10T09:46:31 | 286,954,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | import cv2 as cv
#图片读取
img1 = cv.imread('Trackbar_Color.png')
img2 = cv.imread('blending.jpg')
# 主图的logo范围图片部分
rows,cols,channels = img2.shape
roi = img1[0:rows, 0:cols ]
# logo和取反
img2gray = cv.cvtColor(img2,cv.COLOR_BGR2GRAY)
ret, mask = cv.threshold(img2gray, 10, 255, cv.THRESH_BINARY)
mask_inv = cv.bitwise_not(mask... | [
"48834713+Mecoly@users.noreply.github.com"
] | 48834713+Mecoly@users.noreply.github.com |
4c2339ae7981418077a33d7acdc0e31910af011f | e6f5e2f1238cd38e6a524a38111dd36de10d911e | /main.py | 085943c7193c8c940aedb4e9713d6c89711ed39b | [] | no_license | prantikpariksha/PythonHomework | 650787778192b3a8a8b809e6a6b115b17e39a4ec | 86b942526cdd97053d1b1c45bb7986919cd7f8fa | refs/heads/master | 2020-04-19T09:08:14.699533 | 2019-02-04T10:57:33 | 2019-02-04T10:57:33 | 168,100,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | #This file contains information about few songs those are my favourite
Artist="Bob Marley" #This is the singer name
Title="No Woman No Cry" #This is the Song name
Album="Raga Music" #this is the Album name
TrackLength=7.58 #this is the duration... | [
"noreply@github.com"
] | prantikpariksha.noreply@github.com |
e80a8d81e6392f1d7934470081943b1bf032f8fd | d53479a3a5efab85a065b4a7c08cb38b6246f0eb | /python-division.py | 66b9ee6a6492eb7b5fa6987137dcbe09a4d4af61 | [] | no_license | Snehal6697/hackerrank | 0242f927f630e652d6dcca901af8d8bd737b671f | c418fb24e08e5c57a1bd0d91f95ab2af32f01c64 | refs/heads/master | 2022-12-26T12:35:47.586007 | 2020-07-07T22:14:39 | 2020-07-07T22:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | #!/usr/bin/env python2.7
from __future__ import division
def main():
a = int(raw_input())
b = int(raw_input())
print a // b
print a / b
if __name__ == '__main__':
main()
| [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
2ee64697c9d8f5517741bf4016974f37a4f9464d | 5e5ce8c5f2a2be7b707cf430198a7262b766c329 | /trunk/ufsi/src/ufsi/__init__.py | 7d0055a8034247d3f164fb59b60e2ef32ebddf6b | [
"MIT"
] | permissive | BackupTheBerlios/ufsi-svn | 53cdb8e6eb44dbb506dc2c9e3108912dfcb32123 | 5b9c8a0a05045cb5704d8f5f079a17176831e479 | refs/heads/master | 2020-03-26T20:34:39.596486 | 2007-04-24T06:40:00 | 2007-04-24T06:40:00 | 40,804,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | """
The ufsi module and its various classes.
"""
# import required standard modules
import re
# import UFSI interfaces
from PathInterface import PathInterface
from FileInterface import FileInterface
from DirInterface import DirInterface
from AuthenticationInterface import AuthenticationInterface
# import UFSI error... | [
"thekooldude@2d384c08-25fb-0310-ab61-b5b2a23e79ab"
] | thekooldude@2d384c08-25fb-0310-ab61-b5b2a23e79ab |
5efc50ceb6731db4235259a51c5915dd70f4ba85 | 1288ef00c7f77aa75c8d3281592dee6024a6115e | /Project 5.2 randomwalk GOOD part1.py | 1bed70a41dd3eba55571f6d790e2af0e1dc3398b | [] | no_license | SONGjiaxiu/CS-111 | 32ee85c6fcd28ba2e062e282f6df51bf206f0970 | b80e7d185745aeb1185300231c43c7a21004b996 | refs/heads/master | 2020-04-13T18:56:14.065602 | 2016-11-22T15:22:15 | 2016-11-22T15:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | py | """ Taylor Heilman
Haley Nugent
Escaape function"""
import math
import turtle
import random
import matplotlib.pyplot as mpl
tortoise=turtle.Turtle()
def distance(x1,x2,y1,y2):
""" funciton to find the distance between the turtle object and the origin
parameters:
x1: x cordinate of first point
... | [
"noreply@github.com"
] | SONGjiaxiu.noreply@github.com |
645502244d8b5bd04e4b89886304985eb4e75872 | 93f122d1cc40eaf65d5be2257103b0d216b3601e | /skripte_klassifikation/tfidf_embedding_vectorizer.py | 329673725d5646a5964d615d8c53e660e8eaf9f5 | [
"MIT"
] | permissive | TimSchmittmann/ML2-Project | b1e4390e0f6d9ba3f86ad1f1dc58d3a2e2137255 | 7ad01366f2322018065efcae542ae75786b3c0ec | refs/heads/master | 2022-08-17T11:50:38.013327 | 2019-01-31T19:09:44 | 2019-01-31T19:09:44 | 154,804,149 | 0 | 0 | MIT | 2022-06-21T21:40:18 | 2018-10-26T08:43:20 | Jupyter Notebook | UTF-8 | Python | false | false | 1,055 | py | from sklearn.feature_extraction.text import TfidfVectorizer
from collections import defaultdict
import numpy as np
class TfidfEmbeddingVectorizer(object):
def __init__(self, word2vec):
self.word2vec = word2vec
self.word2weight = None
self.dim = len(next(iter(word2vec.values())))
def fi... | [
"tim.schmittmann@gmx.de"
] | tim.schmittmann@gmx.de |
fe0a66dc75df9851dd1126510d15ca89dad1ec91 | bcb4da89ab0513c095158ffc7a9a1b6a6bdfd435 | /app/routes.py | 5daa74e8a7400c72eb6c7749c3d639d877b51db4 | [] | no_license | marino2009/Flask | bec55230e0cba0c289b8252e2e92e528b5b9fdee | b94b1e7107e32124b21ce4edb3891332927d42eb | refs/heads/master | 2020-04-18T13:01:28.987967 | 2019-01-30T01:48:36 | 2019-01-30T01:48:36 | 167,551,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | from flask import render_template, flash, redirect, url_for, request
from app import app, db
from app.forms import LoginForm, RegistrationForm, EditProfileForm
from flask_login import current_user, login_user, logout_user, login_required
from app.models import User
from werkzeug.urls import url_parse
from datetime impo... | [
"45363000+marino2009@users.noreply.github.com"
] | 45363000+marino2009@users.noreply.github.com |
d5c55ee89e6eaf5651c721d1759f24bff2d67de8 | d35b4e99e584abb052f6c6ee8e633ff80bbda990 | /backend/app/app/models/user.py | 5c028df7d1bab02675ee481f9d38f4a3126ddb52 | [] | no_license | montionugera/card_game | 09b0ecda5f7241ff01bd4981807f42c3c11e1592 | 9bd67e3c76258b598a5714e479982255088af700 | refs/heads/master | 2023-04-19T06:18:45.006573 | 2021-04-25T03:43:19 | 2021-04-25T03:43:19 | 361,054,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from typing import TYPE_CHECKING
from sqlalchemy import Boolean, Column, Integer, String
from sqlalchemy.orm import relationship
from app.db.base_class import Base
if TYPE_CHECKING:
from .item import Item # noqa: F401
class User(Base):
id = Column(Integer, primary_key=True, index=True)
full_name = Col... | [
"montionugera@gmail.com"
] | montionugera@gmail.com |
259cd5eaaa20071850043e7d7215f3ce6aebb6c9 | 02447b317690827683dc329153e74f1599e4db92 | /wazimap_ng/general/views.py | cf915a8c7c7477aca9df7290d0a6c06d7c62058d | [
"Apache-2.0"
] | permissive | neoromantique/wazimap-ng | fc8ca6704851db8d9941d3bcb9c06e367c2e1e94 | c19e9450655f5d404c60e2b4d214715ec8a0b1d9 | refs/heads/master | 2021-02-11T00:02:54.001820 | 2020-02-13T20:36:40 | 2020-02-13T20:36:40 | 244,431,358 | 0 | 0 | Apache-2.0 | 2020-03-02T17:23:51 | 2020-03-02T17:23:50 | null | UTF-8 | Python | false | false | 1,482 | py | from rest_framework.response import Response
from rest_framework.decorators import api_view
from ..datasets import models as dataset_models
from ..datasets import views as dataset_views
from ..boundaries import models as boundaries_models
from ..boundaries import views as boundaries_views
from ..utils import cache_dec... | [
"adi@openup.org.za"
] | adi@openup.org.za |
1a8c0082d7e1b3c37b764106167cf493af3e10c5 | 9188138de9e8b4e46750476de0e72472087ce4bf | /Student/mysql.py | c5493b626daea2b8bff8fe5082afa981ce18aecd | [] | no_license | Rjsetter/LearningPython | 91493a7b0faf02301d54ba0fb73a812611c35aa7 | 74c672e270f2280699aacd480cd13f0ebd60a40a | refs/heads/master | 2020-03-23T09:24:21.913141 | 2018-12-17T10:20:31 | 2018-12-17T10:20:31 | 141,385,712 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | #!/usr/bin/python
#_*_ encoding:utf-8_*_
"""
Datetime:2018-7-28 20:14
Author:叶强
Version:基于mysql的学生管理系统 v1.0
"""
import pymysql, time
import datetime
def connect_db():
return pymysql.connect(host="127.0.0.1",
port = 3306,
user = "root",
password =... | [
"1039339929@qq.com"
] | 1039339929@qq.com |
848896a09b323f63b826a5d7d1a101d443ee8e97 | eba3c6eb8d5ae18f3bcbb39df9b391a3d4a40ebd | /src/pod.py | 0c5a188691b12a8dcdfcdd05b25d3cc6f487bd37 | [] | no_license | aleefrank/VPP-Simulator | 294381d5dafe6316dc21180683110081bfbb91ca | 44f2663c905d6c6ecdd098d05a74a9d66fb31650 | refs/heads/main | 2023-03-23T15:50:31.444004 | 2021-03-13T11:11:19 | 2021-03-13T11:11:19 | 347,332,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,558 | py | from src.enums import ModelResolveMethod
from src.load import LoadT3, LoadT2
from src.profile import Profile
from src.pv import PV
from src.wind import Wind
from src.pod_solver import Solver
from src.storage import SimpleStorage
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
sns.set()
class... | [
"alessandro.f95@live.it"
] | alessandro.f95@live.it |
3e7c790c56f14ea782d02ca44526b8f07db60168 | f76bdfd886ce116fdfeea408d7251142ed73d7c4 | /dash/_validate.py | 76047242a6a08c325706708be192ed92f0639e4a | [
"MIT"
] | permissive | pikhovkin/dj-plotly-dash | 73a4a679472eddfbb56c44ca054040b64b6a57a4 | 25efb612ead04bf3564c25b994dc633929eec457 | refs/heads/master | 2023-08-10T22:08:30.363654 | 2022-05-03T12:23:56 | 2022-05-03T12:23:56 | 151,003,269 | 53 | 16 | MIT | 2023-09-04T20:56:53 | 2018-09-30T20:18:22 | JavaScript | UTF-8 | Python | false | false | 12,126 | py | import collections
import re
from .development.base_component import Component
from . import exceptions
from ._utils import patch_collections_abc, _strings, stringify_id
def validate_callback(output, inputs, state, extra_args, types):
is_multi = isinstance(output, (list, tuple))
outputs = output if is_multi... | [
"pikhovkin@gmail.com"
] | pikhovkin@gmail.com |
e7264e259de6aa5df6e149d3921ca82ae4e1a383 | 8937741694a4be26baf0f9166c4d71ce56a0b53e | /npb/pitcher_stats.py | 187a7cbb8eaa588a9f90e52c600a08182ea2f63e | [
"MIT"
] | permissive | amacbee/xp2015_baseball_tools | ad83b51f4929f654db4ee45312d295b8e0856d80 | 9f1e07901145176b92cdc6136c49b7f9d3625f2e | refs/heads/master | 2021-01-21T08:54:33.668145 | 2015-09-15T15:54:07 | 2015-09-15T15:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,657 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Shinichi Nakagawa'
from npb.data_source import DataSource
from baseball.stats import Stats
class PitcherStats(DataSource):
def _calc_ip(self, ip, delimiter='\xa0'):
"""
イニング計算
:param ip: (str)inning pitched
:param delimi... | [
"spirits.is.my.rader@gmail.com"
] | spirits.is.my.rader@gmail.com |
b69f0a2e498e5ca5ef4367126e3697b6e381c9fb | 564546e079bef8f6610a3c4cdff30fb2cea802bd | /scripts/delete_posts.py | 233f076cab9cb6de63cc11d0c72552efe5a6df91 | [] | no_license | santhi-nyros/Tastypie-django | 399dd55019b75b4e55a1ffbc9b6a34bd13d548aa | 55d48b5f14c248a4be07363d49ec157526d12994 | refs/heads/master | 2021-01-13T03:08:34.939942 | 2016-12-27T09:20:25 | 2016-12-27T09:20:25 | 77,442,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # scripts/delete_all_questions.py
from datetime import timedelta
from django.utils import timezone
from api.models import Comment,Post
def run(*args):
print list(args)
if list(args):
comments = Comment.objects.filter(id__in=list(args))
print comments
comments.delete()
else:
print "empty list given."
| [
"santhi_nyros@yahoo.com"
] | santhi_nyros@yahoo.com |
2b66f779ad34d216561b67a4a62e5d69750079e3 | 869d917ef14fb8e4bb899a192903dd1f64028d2b | /train/train_street_view_regression.py | faa00a2a48b49ee081de9cbc395048edd88abcef | [] | no_license | andreiqv/rotnet_not_my | bbd7fadba9c2e000d324e931d4fddc95ad8e4e25 | ce0ea3f80aba263ae5fc54549c5d3d571d02ef59 | refs/heads/master | 2020-04-26T11:00:21.724905 | 2019-03-02T22:50:31 | 2019-03-02T22:50:31 | 173,502,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | from __future__ import print_function
import os
import sys
from keras.callbacks import ModelCheckpoint, EarlyStopping, TensorBoard
from keras.applications.resnet50 import ResNet50
from keras.applications.imagenet_utils import preprocess_input
from keras.models import Model
from keras.layers import Dense, Flatten
sys... | [
"phxv@mail.ru"
] | phxv@mail.ru |
073ead4492da0cd5742377f402f6dddb6d8260bc | 4eb5aeef510f827e864fe7beaf2ee52647663872 | /day14/删除文件.py | 9ce80500d2170d9034934fb1151d352797eaef57 | [] | no_license | Sunshine-Queen/Test | 5d7127cc356dc7b52a2e249ec0c609d601ef6951 | d36186d04de7076675f682f993b75f0797d64f86 | refs/heads/master | 2022-12-21T21:04:54.773926 | 2019-04-10T12:05:09 | 2019-04-10T12:05:09 | 157,209,473 | 0 | 1 | null | 2022-12-17T21:45:53 | 2018-11-12T12:22:04 | Python | UTF-8 | Python | false | false | 42 | py | import os
os.remove("heihei[复件].txt") | [
"1053710934@qq.com"
] | 1053710934@qq.com |
fdb8fc4c86a750baa500c7ee03cbb74671b28f35 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/minigame/RepairGlobals.py | 8027e62d79153e2436b77a14e3c56012b7f68cec | [] | 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 | 5,950 | py | from pandac.PandaModules import Vec3, Vec4, Point3
class VariableContainer:
def __init__(self):
pass
AI = VariableContainer()
AI.goldRewardRange = (15, 35)
AI.goldRewardMultiplier = [
(14.0, 3.0),
(18.0, 2.5),
(24.0, 2.0),
(36.0, 1.6000000000000001),
(52.0, 1.3),
(72.0, 1.14999999... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.