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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b78d65e00ed150cd668591513ff0cc751d94186e | 539e66aa6fa018dc5e632d02e57249c817673006 | /postgres/datadog_checks/postgres/util.py | aa4f6cd1dfa9f836d75dc2fa946f9e8d976d6a63 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jfelle-tenable/integrations-core | 761d676de6d5860414484c4f592109da85276b50 | 54232b69009a38e7f530c5b4c97ec89857df0215 | refs/heads/master | 2023-04-19T18:03:02.784593 | 2021-05-11T15:59:26 | 2021-05-11T15:59:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,039 | py | # (C) Datadog, Inc. 2019-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
import string
from datadog_checks.base import AgentCheck
class PartialFormatter(string.Formatter):
"""Follows PEP3101, used to format only specified args in a string.
Ex:
> print("This is a {type}... | [
"noreply@github.com"
] | jfelle-tenable.noreply@github.com |
ce2e0294c88cb2fecfca6a98c4692aaba2d09639 | 27e23b55a4642ab7b01bfd2917285a17ac984dbd | /tests/test_pansharp_unittest.py | eba34b135df4c9afe255715a478bae8e75eda6fd | [
"MIT"
] | permissive | rafaelalmeida/rio-pansharpen | 221a6e1d2bd7ec5768d8a4faecc3e27c1c227bed | 28e2446d16e8b9abaa78e10eaf4573ce9f0c4769 | refs/heads/master | 2020-12-14T18:56:10.009663 | 2016-08-18T14:16:18 | 2016-08-18T14:16:18 | 66,674,249 | 0 | 0 | null | 2016-08-26T19:32:07 | 2016-08-26T19:32:07 | null | UTF-8 | Python | false | false | 6,513 | py | import pytest
from rio_pansharpen import utils
import numpy as np
import rio_pansharpen.methods as pansharp_methods
import rasterio
from affine import Affine
from rio_pansharpen.worker import _pansharpen_worker
from rio_pansharpen.utils import _calc_windows
# Creating random test fixture for advance functions
@pytest... | [
"virginia@mapbox.com"
] | virginia@mapbox.com |
43f78419297092954ae2d68c3e9a6c3cdeb59b73 | 8bb2842aa73676d68a13732b78e3601e1305c4b2 | /1920.py | 5ce8ca2d8ffeda7120bfef402770ca16c94a7353 | [] | no_license | Avani18/LeetCode | 239fff9c42d2d5703c8c95a0efdc70879ba21b7d | 8cd61c4b8159136fb0ade96a1e90bc19b4bd302d | refs/heads/master | 2023-08-24T22:25:39.946426 | 2021-10-10T20:36:07 | 2021-10-10T20:36:07 | 264,523,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # Build Array from Permutation
class Solution(object):
def buildArray(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
ans = []
for i in range(len(nums)):
ans.append(nums[nums[i]])
return ans
| [
"noreply@github.com"
] | Avani18.noreply@github.com |
b2da5861db55a3c053bb6f5d5679019b11fdd2e0 | 10118bac2fa3b3c20f7c1a7d977e1c5c8a6e52df | /C_SendKey.py | 5f147d5800262b788f1d9a8183c50a815e896841 | [] | no_license | kzc873082057/DNF_Auto_Fighting | d369d0b9b0dec067a86f73e5916c81e8cd9262b6 | 2c18dc020caf92e3113da767b9aaff4bbafd0d58 | refs/heads/master | 2020-03-14T16:13:21.478490 | 2018-05-01T10:00:46 | 2018-05-01T10:00:46 | 131,693,564 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | #_*_coding:utf-8_*
import ctypes
# directx scan codes http://www.gamespp.com/directx/directInputKeyboardScanCodes.html
SendInput = ctypes.windll.user32.SendInput
# C struct redefinitions
PUL = ctypes.POINTER(ctypes.c_ulong)
class KeyBdInput(ctypes.Structure):
_fields_ = [("wVk", ctypes.c_ushort),
... | [
"2817902026@qq.com"
] | 2817902026@qq.com |
7b80ef96fa22fd633d5e959b647de4b9f16faedc | c7f98de17088cb4df6c171f1e76614beb1f4e0f7 | /modules/vulnerability-analysis/w3af.py | 73cb1fc29cbd307d7038d2d133f512666a097029 | [] | no_license | fryjustinc/ptf | 6262ca5b94a43a51e984d3eee1649a16584b597b | ba85f9e867b65b4aa4f06b6232207aadac9782c9 | refs/heads/master | 2020-03-31T09:43:44.474563 | 2018-10-08T18:39:03 | 2018-10-08T18:39:03 | 152,107,950 | 0 | 0 | null | 2018-10-08T16:00:37 | 2018-10-08T16:00:37 | null | UTF-8 | Python | false | false | 244 | py | #!/usr/bin/env python
#####################################
# Installation module for w3af
#####################################
AUTHOR="Justin Fry"
INSTALL_TYPE="GIT"
REPOSITORY_LOCATION="https://github.com/andresriancho/w3af"
LAUNCHER="w3af"
| [
"fryjustinc@gmail.com"
] | fryjustinc@gmail.com |
2855a822a742a7fbeb6e50814966d36d5e36be0c | 61a856d931688a49435b3caab4e9d674ca2a32aa | /tests/test_zeroDS.py | 27f6636792c8ed111a8de6cd4169b2281cecf6d1 | [
"Apache-2.0"
] | permissive | kvt0012/NeMo | 3c9803be76c7a2ef8d5cab6995ff1ef058144ffe | 6ad05b45c46edb5d44366bd0703915075f72b4fc | refs/heads/master | 2020-08-14T16:59:18.702254 | 2019-10-14T22:46:48 | 2019-10-14T22:46:48 | 215,203,912 | 1 | 0 | Apache-2.0 | 2019-10-15T04:05:37 | 2019-10-15T04:05:34 | null | UTF-8 | Python | false | false | 4,613 | py | import unittest
import os
import tarfile
import torch
from ruamel.yaml import YAML
from nemo.core.neural_types import *
from .context import nemo, nemo_asr
from .common_setup import NeMoUnitTest
class TestZeroDL(NeMoUnitTest):
labels = ["'", "a", "b", "c", "d", "e", "f", "g", "h",
"i", "j", "k", "l... | [
"okuchaiev@nvidia.com"
] | okuchaiev@nvidia.com |
925993af5a8f5017c130ba97532dac8831608bdd | 18c1cbda3f9f6ca9cc9a27e93ddfece583c4fe43 | /projects/DensePose/densepose/data/structures.py | 340c396d95257f5bcb1728753f7883a205924856 | [
"Apache-2.0"
] | permissive | zzzzzz0407/detectron2 | 0bd8e5def65eb72bc9477f08f8907958d9fd73a1 | 021fc5b1502bbba54e4714735736898803835ab0 | refs/heads/master | 2022-12-04T14:25:36.986566 | 2020-08-26T10:39:30 | 2020-08-26T10:39:30 | 276,800,695 | 1 | 0 | Apache-2.0 | 2020-07-03T03:42:26 | 2020-07-03T03:42:25 | null | UTF-8 | Python | false | false | 25,296 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import base64
import numpy as np
from io import BytesIO
from typing import BinaryIO, Dict, Union
import torch
from PIL import Image
from torch.nn import functional as F
class DensePoseTransformData(object):
# Horizontal symmetry label transfo... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
66c9608266c0aaa21a27df795afc2c6f582d5557 | da487248cd4bbf510aaa15bc727c3295ca9e2ca5 | /Halite2/hlt/entity.py | a1ded88517bd680e1b8fabe15d4db9524472a15b | [] | no_license | karlzhang-hhg/HaliteSubmission | 83dc2aec342da59025d9faa9644d7fc8725bb02f | 39fbaa56305117f571e45ef5c65e6b6e21b1b9dc | refs/heads/master | 2021-10-09T17:20:23.915184 | 2019-01-01T17:02:39 | 2019-01-01T17:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,830 | py | import abc
import math
from enum import Enum
from . import constants
class Entity:
"""
Then entity abstract base-class represents all game entities possible.
As a base all entities possess
a position, radius, health, an owner and an id. Note that ease of
interoperability, Position inherits from
... | [
"gabrielbessler@gmail.com"
] | gabrielbessler@gmail.com |
118557e2df9bcf148a672764873f66d8abe24c39 | 5fdae8232cf8992746edec72eedfd58340d3e570 | /deprecated/generation/compute_stats.py | 669f79e24abbe84e19bef527ce6674164d47920b | [] | no_license | ADelau/Tennis_tournament_prediction | f6e507ccb05812f3f59b7edbc371456bc9bc357b | d42773ac3287f6c72bbcb6c522ecf84b33b8ec41 | refs/heads/master | 2022-01-12T23:00:48.448904 | 2019-05-13T08:18:34 | 2019-05-13T08:18:34 | 185,694,377 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | raw_stats = [
'w_ace', 'w_df', 'w_svpt', 'w_1stIn', 'w_1stWon', 'w_2ndWon',
'w_SvGms', 'w_bpSaved', 'w_bpFaced', 'l_ace', 'l_df', 'l_svpt',
'l_1stIn', 'l_1stWon', 'l_2ndWon', 'l_SvGms', 'l_bpSaved', 'l_bpFaced']
stats_final = [
'self_ace', 'self_df', 'self_svpt',
'self_1stIn', 'self_1stWon', 'self_... | [
"f.cornet@student.uliege.be"
] | f.cornet@student.uliege.be |
2e2274969b1b47522c503340d52cac0ce370500a | 875b3314ca77585ab77e2144ef955af46ebd1323 | /artscraper/Jux_xml tester.py | 2c9c578798b9564bc4aa0dc2bf859cce115d0ddd | [] | no_license | erik-roger-fuller/art_scraper | 2613a556eeacacd34e0c0fd1fc83388787031b00 | 098af32aefbd09f4d205198dcb963c6156bead18 | refs/heads/master | 2023-05-14T14:01:32.837161 | 2021-06-09T14:50:17 | 2021-06-09T14:50:17 | 346,462,117 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import datetime
from datetime import date, timedelta
import requests
from bs4 import BeautifulSoup
import time
from csv import DictWriter
import os
filename1 = 'juxtapoz_sitemap.xml'
filepath1 = os.path.join(os.path.expanduser('~'), 'Desktop/Datasets/art/art_writing/juxtapoz', filename1)
urls = []
with open(filepath1... | [
"erik.roger.fuller@gmail.com"
] | erik.roger.fuller@gmail.com |
68b2572e133d7e17a73acb61bf4611be7aa55d64 | 6e8b34d002041b5876483fceb6d16c28bc1623fb | /venv/bin/gunicorn | 666c5de6d4f068f1b74b95d3499567f8982fdf95 | [] | no_license | emrojo/eve_materials | 59f8f45fa4937f302e186816643b5c601ea1e225 | 14dd13d9ce6be9ea2e115c367f136ec3640bf930 | refs/heads/devel | 2021-01-12T07:26:03.744612 | 2016-12-14T12:12:42 | 2016-12-14T12:12:42 | 76,960,154 | 0 | 0 | null | 2016-12-20T13:46:23 | 2016-12-20T13:46:23 | null | UTF-8 | Python | false | false | 263 | #!/Users/cs24/projects/aker/eve_materials/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"cs24@sanger.ac.uk"
] | cs24@sanger.ac.uk | |
eaebb4666a97d396903989fc5c9df6e3c92ebdc2 | e13091c137650cd31c8d9778087b369033d0cf96 | /src/main/python/algo_expert/Algorithm Implementation /Sort/selection_sort.py | db348f63325d79466c26d8e70fdde8fcced1ec7b | [] | no_license | jwoojun/CodingTest | 634e2cfe707b74c080ddbe5f32f58c1e6d849968 | d62479d168085f13e73dfc1697c5438a97632d29 | refs/heads/master | 2023-08-22T09:03:32.392293 | 2021-10-31T01:00:33 | 2021-10-31T01:00:33 | 300,534,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # selection_sort
def selection_sort(lst) :
for i in range(len(lst)-1) :
min_ = i
for j in range(i+1, len(lst)) :
if lst[min_] > lst[j] :
min_ = j
lst[i], lst[min_] = lst[min_], lst[i]
return lst
| [
"jjwjun10@gmail.com"
] | jjwjun10@gmail.com |
4e002c25b380d6136139cac820bc3bf4337836c7 | 4d3f7f713527d45c2a1a290575e88dd38b5cedfb | /spoj/frq_prime_ranges.py | 5bc320f7ddf4880244403746bd2dcaa4048888cc | [] | no_license | KarimLulu/SPOJ | efaf1de1d8549d4d52d582824e58850dd2c3eea2 | c823a8bad5a66e390a1dd6e36836d24af94536c3 | refs/heads/master | 2021-05-06T12:23:41.784834 | 2017-12-04T14:48:23 | 2017-12-04T14:48:23 | 113,052,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import numpy as np
def primes(n):
"""Find primes numbers p < n"""
sieve = np.ones(n//2, dtype=np.bool)
limit = int(n ** 0.5)+1
for p in range(3, limit, 2):
if sieve[p//2]:
sieve[(p**2)//2::p] = False
return np.r_[2, 2*np.nonzero(sieve)[0][1:]+1]
def find_ranges(K, N):
if ... | [
"karimlulu@karim.lulu"
] | karimlulu@karim.lulu |
146cd2467364cdbac2f7a81c0cb007b44fd44c56 | da30af635811a7a22a869ea2dcfa347d04578e48 | /features/steps/test_login_page.py | 3b58bd1aae53c5a5a5357ddae279e8edda72635d | [] | no_license | lion7500000/github.com-jobeasy-team- | eeb4c765cfb1ecbb01527ab3f28004b53b7fcb75 | cb0930f01af7f0f1f8948b47b9d99752c8f0bf5d | refs/heads/master | 2020-07-30T10:26:02.460701 | 2020-02-25T16:22:17 | 2020-02-25T16:22:17 | 210,192,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from time import sleep
from behave import given,when, then
@given ('Go to login page')
def Open_login_page(context):
context.app.login_page.open_page()
@when ('Input wrong login {text}')
def Input_login(context,text):
context.app.login_page.input_login(text)
@when ('Input wrong password {text}')
def Input_pa... | [
"lion7500000@gmail.com"
] | lion7500000@gmail.com |
68e809318dd0680879556b378639364a2b1e7444 | e78fe5371125b9e662b8edb80a822740548b0d3b | /events/lambda/api/zone_event_summary.py | 90ad7ac787bea616d61804b577752414ff6701b4 | [] | no_license | fti-dbhosale/LambdaCDDemo | 1f43b2cdc3da5a3e4a59ad4d8d68c08ef1f1344a | 3121e647d8ca065651899404079666a51cbc1a21 | refs/heads/master | 2023-02-13T06:04:37.380135 | 2020-09-24T08:36:45 | 2020-09-24T08:36:45 | 294,654,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | import json
import boto3
from boto3.dynamodb.conditions import Key, And, Attr
import logging
import os
from datetime import datetime, timedelta
from pytz import timezone
from constant import ResponseCodes, DATETIME_FORMAT, TIMEZONE
from utils import EventJSONEncoder, json_response, get_signed_url
ddb = boto3.resource(... | [
"dbhosale@ftilab.com"
] | dbhosale@ftilab.com |
d6a0e6adf2514da745a368b96a5a42c053060588 | ae56d025bed53f7e5fd1732082d922546ce59d7a | /attention_rnn_train.py | 751ad3e6d98237209c8e325cf94836cd02c19f68 | [] | no_license | ADrozdova/NL2ML-code-classification | 088a0af7c25b3a6d3bf89bb05faa9bb38c3c5885 | b714d23b24f05b46eb308a4b4e0a2a270af63878 | refs/heads/main | 2023-04-08T08:31:22.573979 | 2022-06-02T12:59:29 | 2022-06-02T12:59:29 | 499,116,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,388 | py | import argparse
import os
import pickle
import shutil
from collections import defaultdict
import numpy as np
import optuna
import pandas as pd
from sklearn.model_selection import train_test_split
from transformers import AutoTokenizer, AutoModel
from common.nn_tools import *
os.environ["CUDA_VISIBLE_DEVICES"] = "3"
... | [
"avdrozdova3@yandex.ru"
] | avdrozdova3@yandex.ru |
415577550d003912710624b09a4adc4a598519a5 | 5e8af9dd5e3b42fb50f1f64830a5f5930bcfe27d | /rock_scissors_paper.py | 9c7361ebedeee21c1476603c8afc143769af0655 | [] | no_license | Lee-Geon-Yeong/Python | ad074c886211b816a78edff13e321af48255fb7f | 484e193147457cb7908dac4012b9f76269d21311 | refs/heads/master | 2020-12-15T10:23:57.760092 | 2020-08-31T12:37:51 | 2020-08-31T12:37:51 | 233,996,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import random
ROCK=0
SCISSORS=1
PAPER=2
DROW=0
WIN=0
LOSE=0
for num in range(3):
com=random.randint(0,2)
me=int(input("가위바위보\n"))
if com==me:
print("%d번째 : 비김" %(num+1))
DROW+=1
elif com==ROCK:
if me==SCISSORS:
print("%d번째 : 컴퓨터가 이김" %(num+1))
... | [
"noreply@github.com"
] | Lee-Geon-Yeong.noreply@github.com |
7bd330a964be603104554881d2e5362f7f50782c | efc20b896fbbacdd276808a49cfd8f39b504a95a | /whatimage-back/bin/pyrsa-priv2pub | 98da3ae78896efaf3aa93b4dad997a5075b15cfa | [] | no_license | shiva-mlk/imageClustter | d1b25ebc60a5e016a51730991f3aa0a41763d0c4 | 2cca86fc4d501e80d17b04ec154364ecbf1261e4 | refs/heads/master | 2022-12-01T09:10:30.256777 | 2020-08-14T12:23:01 | 2020-08-14T12:23:01 | 287,521,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/home/shiva/whatimage/whatimage-back/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from rsa.util import private_to_public
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(private_to_public())
| [
"shivamaleki112@yahoo.com"
] | shivamaleki112@yahoo.com | |
42d1ab3ce84114a87a59d9c3f9a7720ae4e57ece | bffe3ed7c76d488a685f1a586f08270d5a6a847b | /side_service/utils/importer.py | a6ea97b8f8a7a02c6df5fb58ea6838cd08c9642a | [] | no_license | ganggas95/side-service | 86a863d7b8d164e05584938aa63e56aa1ed8f793 | c58ee47d1145cb704c4268006f135a141efc0667 | refs/heads/nizar_dev | 2021-06-21T11:37:54.771478 | 2019-10-14T23:45:39 | 2019-10-14T23:45:39 | 213,881,364 | 0 | 1 | null | 2021-05-06T19:55:47 | 2019-10-09T09:52:06 | Python | UTF-8 | Python | false | false | 2,443 | py | import os
from numpy import int64
import pandas as pd
from flask import current_app as app
from side_service.models.prov import Provinsi
from side_service.models.kab import Kabupaten
from side_service.models.kec import Kecamatan
from side_service.models.desa import Desa
class FileImporter:
temps = []
def __i... | [
"subhannizar25@gmail.com"
] | subhannizar25@gmail.com |
4c7be3292f12307d862ac9ddd5910ae09fb9544c | 49aa321ffd3ee7e2bcf6f5e5dd4158f346e230ff | /erpnext_app_store/erpnext_app_store/doctype/application/test_application.py | 8b41f5b74fcc3a6bb9aaeb37eb5cc26f98a3cd13 | [
"MIT"
] | permissive | AminovE99/erpnext_app_store | 77f9dd37589f92ed9081de74d5ff73186537961c | 39de5716473929368ff29519e0bd62d15be281c4 | refs/heads/master | 2020-06-16T18:05:53.788340 | 2019-07-14T11:50:33 | 2019-07-14T11:50:33 | 195,659,019 | 0 | 2 | NOASSERTION | 2019-07-13T15:51:19 | 2019-07-07T14:10:52 | Python | UTF-8 | Python | false | false | 215 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Aminov Emil and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestApplication(unittest.TestCase):
pass
| [
"nailami60@mail.ru"
] | nailami60@mail.ru |
6aff8bc6b2649dd67495d446bfea943bd810d87e | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/pygments/plugin.py | 76e8f6cb61c2c456a487266d8ae4197c7a0293af | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 1,734 | py | # -*- coding: utf-8 -*-
"""
pygments.plugin
~~~~~~~~~~~~~~~
Pygments setuptools plugin interface. The methods defined
here also work if setuptools isn't installed but they just
return nothing.
lexer plugins::
[pygments.lexers]
yourlexer = yourmodule:YourLexer
formatter pl... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
964d74884c5d4fe523268950f181853cad302a7e | f77028577e88d228e9ce8252cc8e294505f7a61b | /web_backend/nvlserver/module/hw_module/specification/get_hw_module_specification.py | 2c708377f8fa3bf925fcbfc53584e58eb50737ec | [] | no_license | Sud-26/Arkally | e82cebb7f907a3869443b714de43a1948d42519e | edf519067d0ac4c204c12450b6f19a446afc327e | refs/heads/master | 2023-07-07T02:14:28.012545 | 2021-08-06T10:29:42 | 2021-08-06T10:29:42 | 392,945,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,170 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__version__ = '1.0.1'
get_hw_module_list_query = """
SELECT hwm.id AS id,
hwm.name AS name,
COALESCE(hwm.module_id::VARCHAR, '') AS module_id,
hwm.user_id AS user_id,
... | [
"sudhakar@satmatgroup.com"
] | sudhakar@satmatgroup.com |
485fa53a3ac3eaa8756d5ab54cf31b30b0eb63c8 | 1daac610a9954619b136507cbef8db313c24fa42 | /app/memory_cache/models.py | f69cc50f13703162f1f43536e2de8361e6d3f27c | [] | no_license | waynerv/memory-cache | b17a8d1c57382313e0b646e079a65f303b47bc2f | aa63044d9138b1da6149e54c8e83cb8d584451a1 | refs/heads/master | 2020-04-17T22:43:41.890703 | 2019-04-22T01:56:26 | 2019-04-22T01:56:26 | 167,005,947 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,970 | py | import os
from datetime import datetime
from flask import current_app
from flask_avatars import Identicon
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from memory_cache.extensions import db
from memory_cache.extensions import whooshee
tagging = db.Table(... | [
"ampedee@163.com"
] | ampedee@163.com |
44c86752d659712ddae965ee0e5c44a7ab459d19 | 0088c30db4f75fdcbcb4caa0e54cbcbb43f6fe64 | /books/migrations/0001_initial.py | f790ff6d2a6a20948b2b278c6e30fc184047137b | [] | no_license | ubaldoesp/Library | ca911e1387179c949b77309ffa33194b89cdef28 | 33620f54177da506aaecfa4e9df992862768b5b9 | refs/heads/main | 2023-09-05T02:04:51.374685 | 2021-10-18T12:00:38 | 2021-10-18T12:00:38 | 417,403,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | # Generated by Django 3.2.8 on 2021-10-16 04:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('autors', '0001_initial'),
migrations.swappable_dependency(setti... | [
"db2@z4r4k1.corp.popular.local"
] | db2@z4r4k1.corp.popular.local |
7abdf0562c06e01145faede4e2e75f22d973aa5d | faa8a85c9c1da032ef61e1e32c08f94b9fee2761 | /analysis/analysis.py | f5c5647e23221caa6961de2e945fa6e8634d6836 | [] | no_license | jclifton333/V-learning | 532a63b7cebc932ec03c3b011aa5378911206935 | 0ba043a8266866d80d37244f2f855807c586797f | refs/heads/master | 2021-09-14T20:40:02.260792 | 2018-05-18T21:51:13 | 2018-05-18T21:51:13 | 113,716,537 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 16 13:08:59 2018
@author: Jesse
"""
import sys
sys.path.append('../src/estimation')
sys.path.append('../src/utils')
import os
import pickle as pkl
import numpy as np
#import matplotlib.pyplot as plt
#from policy_utils import policyProbs
#from VL import... | [
"jclifton333@gmail.com"
] | jclifton333@gmail.com |
3795f2735ab7e17f3beaa754ac2a2a4701ac93b5 | 3b5afb982b8da75a4bc3f6a39b77563a93073522 | /python/variables/mult1.py | 184a317025008367bd408330b8be4cadc3ded1b7 | [
"Apache-2.0"
] | permissive | maleich/ReadingBat-content-old | 0271f3e94b88a6263f60e42119cc5aa2592c73c8 | 4701caf110fb88952c4ca318a755c37869088750 | refs/heads/master | 2023-04-05T21:13:23.198361 | 2021-04-30T00:09:34 | 2021-04-30T00:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # @desc Determine the value returned by the function.
def product(x, y):
result = x * y
return result
def main():
print(product(2, 3))
print(product(-2, 1))
print(product(-1, -2))
print(product(5, 3))
if __name__ == '__main__':
main()
| [
"51799170+maleich@users.noreply.github.com"
] | 51799170+maleich@users.noreply.github.com |
d0cd4638422485bf3f1e9ed38d47310530faedfb | f6844123ffd7e2b848503fbd6534248c6b891683 | /vergus/exploit.py | a022d669059b3241cfa71266f05cd2ab93bc2db1 | [] | no_license | nikkoenggaliano/My-Write-Up | 43178acd23afcc8116af8a473cef2a501867d6cc | 0c94cc73fb9ed9e3c197ef0b2e4f7507fb649a77 | refs/heads/master | 2023-01-15T01:44:02.165347 | 2020-11-27T11:02:26 | 2020-11-27T11:02:26 | 154,408,886 | 6 | 2 | null | 2020-10-01T03:34:19 | 2018-10-23T23:17:15 | CSS | UTF-8 | Python | false | false | 121 | py | from pwn import *
r = process("./verguso")
pay = "N"*136
pay += p64(0x00000000004005b6)
r.sendline(pay)
r.interactive()
| [
"nikkoenggaliano@gmail.com"
] | nikkoenggaliano@gmail.com |
5aa1c34ec0e9bdc71669f247d97e9017b69ffe4c | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/pandas/2017/4/test_partial.py | 20cec2a3aa7db8b918db50da92411c32c9ee713d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 20,616 | py | """
test setting *parts* of objects both positionally and label based
TOD: these should be split among the indexer tests
"""
import pytest
from warnings import catch_warnings
import numpy as np
import pandas as pd
from pandas import Series, DataFrame, Panel, Index, date_range
from pandas.util import testing as tm
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
a3092442f22304136ebedc4fb6b59c02467dc501 | 5d7f3ee55df929ca4f39fbe917a32affefec3c01 | /estudiantes/views.py | a6a92709abf4b418d1ef2f11be6438cc4e49cb49 | [] | no_license | Ferch8/prozona | 719bebb6d043eef11f321603e2d23b128c089ef9 | f24d00bfa1e750ad6038c99ae992669cd9e70168 | refs/heads/master | 2021-07-25T05:08:15.975545 | 2017-11-07T06:14:37 | 2017-11-07T06:14:37 | 109,527,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,574 | py | from django.shortcuts import render,redirect, get_object_or_404
from django.contrib import messages
from .forms import EstudianteForm, CursoForm, ProfesorForm, AulaForm
from estudiantes.models import Estudiante, Asignacion, Curso, Profesor, Aula
from django.contrib.auth.decorators import login_required
# Create your vi... | [
"f-er1016@hotmail.com"
] | f-er1016@hotmail.com |
366612ae7da681124df89db1ce4bed8c3793de90 | 636a2634cd12eddae4e513e80dce868043aa8341 | /CalendarFreeTimes/CalendarFreeTimes/wsgi.py | 8f0fda6723ddb24b41e3e99de353cb1f81f7cb3b | [] | no_license | msaqibdani/GoogleCalendar | 8064b6c358f0eb9bd85ef693d05e7304f6325d5b | c0d94cbb1ba499bb396dd4d6719643c50cf28556 | refs/heads/master | 2021-07-17T13:10:20.911293 | 2020-09-06T05:57:15 | 2020-09-06T05:57:15 | 208,052,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for CalendarFreeTimes project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"daniyal@formotiv.com"
] | daniyal@formotiv.com |
466f62425fe902090513e46251980eae086de9de | f3ea58cc662fe29b100856a1e29aeac28cbbeccf | /line/views.py | b01b61daa05c9c15fbc0d5d7fc19923f8117da99 | [] | no_license | kure-kosen/onigiri | ec60d422abcb6dc9ca60a93e48c8431b4a282b12 | d4da078a9ed3ce5eabc23fa0365aad684482ac29 | refs/heads/master | 2023-06-03T23:28:32.709502 | 2017-11-01T05:17:37 | 2017-11-01T05:17:37 | 107,419,176 | 0 | 0 | null | 2021-06-10T19:01:35 | 2017-10-18T14:25:28 | Python | UTF-8 | Python | false | false | 2,178 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import json
import requests
import os
REPLY_ENDPOINT = 'https://api.line.me/v2/bot/message/reply'
PUSH_ENDPOINT = 'https://api.line.me/v2/bot/message/push'
ACCESS_TOKEN = os.getenv('LINE_ACCES... | [
"yuukun0311@gmail.com"
] | yuukun0311@gmail.com |
b18ac0d8aa4856d2f7dddc44e1d74dee6b3ab7c6 | ba31ca99cd83d263952a3ab949cec21bec9831dd | /map&reduce&filter.py | 80acb94417dbe08bb409619a0e92d389641fe071 | [] | no_license | YizhuZhan/python-study | dd4f492c4a5b2b1bebcbd463380c57c1f6594a69 | 49bed4935e6d4bd1bdfd5f7159cc0e1c783e5764 | refs/heads/master | 2020-03-29T04:54:32.850829 | 2018-10-23T03:39:33 | 2018-10-23T03:39:33 | 149,554,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # -*- coding:utf-8 -*-
import math
import functools
def add(x, y, _f):
return _f(x) + _f(y)
print(add(25, 9, math.sqrt))
def format_name(s):
return s[0].upper() + s[1:].lower()
print(list(map(format_name, ['adam', 'LISA', 'barT'])))
def f(x, y):
return x + y
print(functools.reduce(f, [1, 3, 5, 7, 9]))... | [
"zhyzh910914@126.com"
] | zhyzh910914@126.com |
6004befe2233821edb85981571f8a1a4f4d55eb6 | 14ade9e216a4ec4b2c4a65e82638e204decf4da4 | /pupillometry/hvlt_encoding_quartileSummary.py | f8a5e264248cb788582f4dce31ebba4d98cd2163 | [] | no_license | cgdelay/jelman-PupAlz | d2f0f345b9b448a89cb9d696e79faba8d400a3d6 | 2a235d4efac38fef3d80b943da82b36fa7e19827 | refs/heads/master | 2023-01-22T02:44:27.591501 | 2020-11-17T23:34:09 | 2020-11-17T23:34:09 | 317,638,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 12 14:57:31 2019
@author: jelman
Script to gather HVLT Encoding data summarized by quartiles. Outputs a a summary
dataset which averages across trials to give a single value per quartile.
"""
import os
import sys
import numpy as np
import pandas... | [
"jelman523@gmail.com"
] | jelman523@gmail.com |
2351e9e782fc6451853745e02e9642c5970009d6 | 395ec9e51411736f27682c5c6dcb272167c75bf4 | /leetcode/daily challenges/2021-01/01-check-array-formation-through-concatenation.py | d16c1dd921adcce9fc70c96ca1abdb4c1cf3a2f8 | [] | no_license | Nayald/algorithm-portfolio | 84242483273595912560128169fd67d1ef4a8871 | f6f7b548b29abe53b88a7396296d7edc932450cc | refs/heads/master | 2023-05-01T20:24:04.349022 | 2021-05-15T16:16:54 | 2021-05-15T16:16:54 | 298,006,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | class Solution:
def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:
def swapRemove(i):
pieces[i], pieces[-1] = pieces[-1], pieces[i]
pieces.pop()
def findPieces(v):
for i, p in enumerate(pieces):
if v == p[0]:
... | [
"xavier.marchal.2@gmail.com"
] | xavier.marchal.2@gmail.com |
ef666116bf96477cb0570b9465e579b773819a2a | 0a2572ff6729af97c303609b3dce47fc15a697cb | /ProyectosUNAB - v1.2.5/AsYouWish/Base_Alumno/urls.py | 42427dbc308d58a7de303e03c4c175f438306137 | [] | no_license | lVicel/ICF232_202010_Grupo11_AsYourWish | 697c982cd9d39c5aee3bd2e2064154db946c29df | 17fac0a039d620ddbdc3eb513781ecc4b9360df2 | refs/heads/master | 2023-01-21T06:53:08.676043 | 2020-12-03T20:48:19 | 2020-12-03T20:48:19 | 255,216,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from django.conf.urls import url#Importamos las Funciones "url"
from django.urls import path, include#Importamos las Funciones de "Path" & "Include"
from . import views #Importamos las Vistas(views.py) que se encuentran en Base_Alumno
urlpatterns=[
url('Listado_Alumnos/', views.Lista_Alumnos),#Alumnos/Lista_Alumno.htm... | [
"CXM.242@gmail.com"
] | CXM.242@gmail.com |
f39915330d220283780166a39c7a10bd4f3309b9 | 71619775f3515a3999870c1fe391eb86f1c0fb87 | /ali_ali.py | ab698a8b98de4cd318e191d60b095dda2f7928cb | [] | no_license | mareced/naloga-8 | 07b23b92a6ea4cd05513cb1ab64e9313b7aba58c | 97b817be008f269451b657452553443e58c13166 | refs/heads/master | 2020-08-07T01:00:02.107589 | 2019-10-07T15:08:51 | 2019-10-07T15:08:51 | 213,230,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | stevilo_prijavljenih = 135
if stevilo_prijavljenih > 100:
print("Dovolj prijavljenih: " + str(stevilo_prijavljenih))
print("Druga vrstica telesa if")
elif stevilo_prijavljenih>90:
print ("skoraj dovolj prijav")
else:
print("Pogoj ni bil resničen")
if 1 == 1:
print("1 je enako 1")
print("Kon... | [
"marko.cedilnik@gmail.com"
] | marko.cedilnik@gmail.com |
9488705757c7d32f2c7c6053dc00f25aea2016ae | 6e223286378c8ed88e1ac3225a519745f23883b7 | /django_project/django_project/urls.py | 2ff04e46ac7f4acc6fc1e60443ac417f76f7ac63 | [] | no_license | whole-systems-enterprises/hackathon-music-ai | 2f80c63a3cdaeef1b4c90ff8dcf1a130e0517cee | ca02227f7ab43c0962169833b868704427affda0 | refs/heads/master | 2020-03-15T20:54:25.506643 | 2018-05-06T18:49:33 | 2018-05-06T18:49:33 | 132,343,550 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"ec2-user@ip-172-31-20-65.us-west-2.compute.internal"
] | ec2-user@ip-172-31-20-65.us-west-2.compute.internal |
1bcf42e0f65e6ad3cd6d6e34fb94bcd450f8103c | 0ebf58818c67776d3d6580a8be9b28ba4a976de3 | /StageMaker/models.py | b2e98634df82d1fb05790760f6cfbbf4f0781cc5 | [] | no_license | wshxbqq/WebSceneEditor | 81be8fe084c487660e82fdbc58916be51d4bd64a | bacdb1a590f630c85e0052ebd37c5aa37d678861 | refs/heads/master | 2021-01-10T01:54:26.435179 | 2016-01-11T10:07:26 | 2016-01-11T10:07:26 | 49,141,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | from django.db import models
class StageScenceDiffcult(models.Model):
StageScenceDiffcult_id = models.AutoField(primary_key=True ,null=False , unique=True)
StageScenceDiffcult_Text = models.CharField(max_length=400)
StageScenceDiffcult_Key = models.CharField(max_length=400)
StageScenceDiffcult_CreateTime = models... | [
"wshxbqq@gmail.com"
] | wshxbqq@gmail.com |
407b3f94215afed0e227e50576eb5621eeda8a80 | e30fd6135279802f1f2deecde3bdd21a2be090b6 | /traffic_signs/scripts/detections_to_gtsdb_eval.py | 5f9aa5235b25499ce57ba9a524df973952a9d125 | [] | no_license | bryandeng/vor-autonomous-driving | e2a6fc872a57ebe1efee011d813c9a42f6d3d4c3 | 63b3d63342e28994434d61add9d6068eadfc585c | refs/heads/master | 2021-01-21T15:26:52.835940 | 2014-05-26T05:48:30 | 2014-05-26T05:48:30 | 19,764,384 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author: Boyuan Deng <bryanhsudeng@gmail.com>
from __future__ import print_function
doppia_root_dir = "../../../doppia"
import os, os.path
import sys
sys.path.append(os.path.join(doppia_root_dir, "tools", "objects_detection"))
sys.path.append(os.path.join(doppia_root... | [
"bryanhsudeng@gmail.com"
] | bryanhsudeng@gmail.com |
66249f846adc240a436f156b941e6d0a01b7be95 | 4bed9030031fc99f6ea3d5267bd9e773f54320f8 | /sparse/repos/katyhon/hello-world.git/setup.py | 9910a87c354430aea7dbbdccc76c28a3264a91f0 | [
"BSD-3-Clause"
] | permissive | yuvipanda/mybinder.org-analytics | c5f4b939541d29727bc8d3c023b4d140de756f69 | 7b654e3e21dea790505c626d688aa15640ea5808 | refs/heads/master | 2021-06-13T05:49:12.447172 | 2018-12-22T21:48:12 | 2018-12-22T21:48:12 | 162,839,358 | 1 | 1 | BSD-3-Clause | 2021-06-10T21:05:50 | 2018-12-22T20:01:52 | Jupyter Notebook | UTF-8 | Python | false | false | 1,133 | py | # -*- coding: utf-8 -*-
# @Author: Zebedee Nicholls
# @Date: 2017-04-10 13:42:11
# @Last Modified by: Chris Smith
# @Last Modified time: 2018-01-11 19:17:00
from setuptools import setup
from setuptools import find_packages
import versioneer
# README #
def readme():
with open('README.rst') as f:
return... | [
"yuvipanda@gmail.com"
] | yuvipanda@gmail.com |
621497e8f7725ba4220ccd5a1fe854462df23d3f | e2811276e033daa4a0f1cc603fdca4e0bfc63592 | /数组/leetcode_560_和为K的字数组.py | bcd77c7d569bb54289a57a28bbe380924d296ebc | [] | no_license | fengkai29/leetcode | 1ee2554d9739bd506c6ed897f8130a7e82c6ec00 | ab140f8247bc5470271b898d88b7310416e007e8 | refs/heads/master | 2020-07-11T00:52:15.768918 | 2019-10-30T07:37:02 | 2019-10-30T07:37:02 | 204,412,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # class Solution(object):
# def subarraySum(self, nums, k):
# """
# :type nums: List[int]
# :type k: int
# :rtype: int
# """
# count = 0
# for i in range(len(nums)):
# flag = nums[i]
# for j in range(i+1,len(nums)+1):
# ... | [
"1048370131@qq.com"
] | 1048370131@qq.com |
e4f00d57447d907b81c351a93950772a60e87ddf | a899ec9429ed4dd712ca65fc8aa7dc2c4d5d161d | /bin/hierarchicalClustering.py | f5e0222df765ebd1f212bac1fad20aa1af91c101 | [] | no_license | pythseq/scScarTrace | d7b9a1d4ca5fda6e179d73d783cac6d855a16d8c | 4583198869ad282e8cad6ad6b431725314a19658 | refs/heads/master | 2020-03-08T04:14:44.800861 | 2018-02-21T15:48:43 | 2018-02-21T15:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | import sys, os
import sklearn.cluster
from pandas.io.parsers import read_csv
import numpy as np
import pandas as pd
import scipy.spatial.distance as dist
import matplotlib.pyplot as plt
from Colors import *
try:
indata = sys.argv[1]
ncluster = int(sys.argv[2])
outfile = sys.argv[3]
method = sys.argv[4]... | [
"noreply@github.com"
] | pythseq.noreply@github.com |
48a7b05940ef619479060bfcaa4470202770671f | 79d86596962d8b6068890472923f8c48f35262f0 | /examples/00/inference/inference_job.py | 37abf4d16b6104e56dd412a2d0abff2e41add1fc | [
"Apache-2.0"
] | permissive | chenwuperth/smworkshop | 09269a4032ea1ee31ca46c8b8ba7e0e849fb802a | 13738a04d6cdcaf75a4c97b3ca3ed31349a9385f | refs/heads/master | 2022-11-29T21:39:58.182484 | 2020-07-27T03:16:06 | 2020-07-27T03:16:06 | 266,025,672 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | """
Inference batch transform job interacts with SageMaker
""" | [
"chen.wu@icrar.org"
] | chen.wu@icrar.org |
b637325039f49ef3a68474942e03ff5f45a15a45 | 6455c57f85289fae2195e15b9de126ef1f6bf366 | /project/job/models.py | d76497cb302d53dfa50245b326202b283d94f849 | [] | no_license | muhamed-mustafa/django-job-board | 8fcb76e8543509d233cb7697ced67c96f5d81fbc | 6b3fa1d7126d9c400c1c6cf3ccb4c8061db8692b | refs/heads/master | 2022-12-15T00:53:15.202174 | 2020-09-17T21:43:48 | 2020-09-17T21:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,523 | py | from django.db import models
from django.utils.translation import ugettext as _
from django.utils.text import slugify
from django.contrib.auth.models import User
def image_upload(instance, filename):
imagename, extension = filename.split(".")
return 'jobs/%s.%s' % (instance.id, extension)
class Job(models.M... | [
"muuhamed14mustafa@gmail.com"
] | muuhamed14mustafa@gmail.com |
e01ffd5433317d48e8fca568fda0224542957188 | 00a45e90cb8dfca2599744ce29305f806ae05fc8 | /Guiabucles/12.py | 17cf97330d580bd5a9fd181949458e025e45d61b | [] | no_license | skoll43/proyecto-python | 234493bbeed9abf99af5b3e02c2e0aadf96393ce | e65848064e76c50a0cb1cbc650c4b070e9c37563 | refs/heads/master | 2023-07-09T08:27:51.267282 | 2023-07-03T01:41:28 | 2023-07-03T01:41:28 | 295,175,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | #12. Diseñar un programa
#que lea 10 letras e indique cuántas de ellas son vocales.
while True:
letras = ""
try:
letras = input("Ingrese 10 letras: ")
if letras.isnumeric():
print("wtf")
continue
if len(letras) == 10:
contador = letras.count("a") + let... | [
"54006305+skoll43@users.noreply.github.com"
] | 54006305+skoll43@users.noreply.github.com |
0ac6674b6db0569aa4ce576ab3bd9585fee17564 | ad97e96416c124893e41c57150ab0ff3c7994ef0 | /1_DNA_Replication/faster_frequent_words.py | 61480f217f53899e71f83ecb80c870b016742157 | [] | no_license | ljtheminister/sequencing | 00149bbdfbe9479e21d4eeb623e8da61f9797ae2 | 0257bfbcc62ca60c9a077cf37d2e88ddcf1623b6 | refs/heads/master | 2021-01-01T17:01:03.339865 | 2014-11-17T14:34:27 | 2014-11-17T14:34:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | import sys
import pandas as pd
import numpy as np
from computing_frequencies import computing_frequencies
def faster_frequent_words(text, k):
frequent_patterns = set()
frequency_array = computing_frequencies(text, k)
max_count = max(frequency_array)
for pattern, count in frequency_array.iteritems():
... | [
"john.c.min@gmail.com"
] | john.c.min@gmail.com |
0d59435d5e8454453e7c06018ee0d972dba2671d | a879f1ff4679ed01a204069c5b4874720f4444d9 | /numpy-ml/逻辑回归.py | 826af361d53746ff201bc6f609e3f6dccfbee7f1 | [] | no_license | yuki9965/my-algorithm | fa4ba363e4f010ea793297ee7b2bfa48f807e003 | 5a4cb53ad7da95250bdfd2a82268c8e083ee0ecd | refs/heads/master | 2023-01-28T07:58:54.840455 | 2020-12-09T13:58:00 | 2020-12-09T13:58:00 | 278,879,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import numpy as np
def sigmoid(z):
return 1 / (1 + np.exp(-z))
class LogisiticRegression(object):
def __init__(self,lamda, regular="l2",fit_bias=True):
self.regular = regular
self.lamda = lamda # l2正则化系数
self.W = None # 参数
self.fit_bias = fit_bias
def fit... | [
"noreply@github.com"
] | yuki9965.noreply@github.com |
6d2663d3ce60435eb36e6ab0d03661a57e62f0f7 | 949b550af7d744e3affe6f87dddef705612d720e | /Multiple Linear Regression/mlr.py | 51ffed760c70b92579545a5e2ec647d78bb3e6bb | [] | no_license | Prasannashri/Regression_demo | 60a83fda109c6aec41a0566ff1adec4193cf0529 | 44c8cdb755139f159aadae21d470424dca58d32c | refs/heads/master | 2022-07-03T11:50:48.217506 | 2020-05-16T16:09:42 | 2020-05-16T16:09:42 | 264,474,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#importing Dataset
dataset = pd.read_csv('50_startups.csv')
iv = dataset.iloc[:,:-1].values
dv = dataset.iloc[:,4].values #dependent variable
#Encoding Categorical data
from sklearn.preprocessing import LabelEncoder,OneHotEncoder
... | [
"noreply@github.com"
] | Prasannashri.noreply@github.com |
78166eed56bc91fb332e49f3ce749b7d20242fcd | 0d2b031737530ff1a61e6535642825a55ca69fee | /gameparser.py | f5862aa7daed8b2e99e19b531bc9622ce29ab348 | [] | no_license | mattjones97/GAMETEMPLATE2 | 849a814aa37b6271f00d9034356014deee98b6f9 | aadb4e919883f1412f2c95d303e536ab383a3174 | refs/heads/master | 2021-01-11T01:37:46.815686 | 2016-10-12T09:07:50 | 2016-10-12T09:07:50 | 70,682,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,297 | py | import string
# List of "unimportant" words (feel free to add more)
skip_words = ['a', 'about', 'all', 'an', 'another', 'any', 'around', 'at',
'bad', 'beautiful', 'been', 'better', 'big', 'can', 'every', 'for',
'from', 'good', 'have', 'her', 'here', 'hers', 'his', 'how',
'i', ... | [
"mattjones1997@hotmail.com"
] | mattjones1997@hotmail.com |
c1631fc7e4d124685edf3bb87d7f9994aa114f7d | 88459cf075e1d85a98b597dc09500014cd05782d | /moviemon/settings.py | 7150493d420faebf8a9ed7b77f21ef976b7dbdd0 | [] | no_license | rpuccine/moviemon | 56d18d296e7bb8f4764ce1810001c240ce53d654 | 09f4b0108e2b225f3a62c727dcb14a5c134ece66 | refs/heads/master | 2021-01-11T22:47:54.123866 | 2017-01-15T13:58:53 | 2017-01-15T13:58:53 | 79,035,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | """
Django settings for moviemon project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"rpuccine@student.42.fr"
] | rpuccine@student.42.fr |
3d07fac9d2bb63738f35e626530cf62382648804 | 127e99fbdc4e04f90c0afc6f4d076cc3d7fdce06 | /2021_하반기 코테연습/boj16937.py | 6d06ddfaf0afe6fb35157d542a1476f2a0119f6a | [] | no_license | holim0/Algo_Study | 54a6f10239368c6cf230b9f1273fe42caa97401c | ce734dcde091fa7f29b66dd3fb86d7a6109e8d9c | refs/heads/master | 2023-08-25T14:07:56.420288 | 2021-10-25T12:28:23 | 2021-10-25T12:28:23 | 276,076,057 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from itertools import combinations
h, w = map(int, input().split())
n = int(input())
sti = []
for _ in range(n):
r, c = map(int, input().split())
if (r<=h and c<=w) or (r<=w and c<=h):
sti.append((r, c))
answer = -1
johab = list(combinations(sti, 2))
for cur in johab:
r1,c1, r2, c2 = cur[0][... | [
"holim1226@gmail.com"
] | holim1226@gmail.com |
0743fab55b7760c26dc13b3922aea2a97eec77c6 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/580763_Context_Manager_Arbitrary_Number_Files/recipe-580763.py | 150135fb1201d2a97d2a7f356d35cb1f5cb58577 | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 416 | py | class Files(tuple):
def __new__(cls, *filePaths):
files = []
try:
for filePath in filePaths:
files.append(open(filePath))
files[-1].__enter__()
except:
for file in files:
file.close()
raise
else:
return super(Files, cls).__new__(cls, files)
def __enter... | [
"betty@qburst.com"
] | betty@qburst.com |
4fb3cb6b0a35eeaf80cbcf238afa18d247625629 | 8ff6c24b86f23f54f4139a43b13ab8d9ce1adedc | /Posts/migrations/0004_auto_20190411_1854.py | 49d65972a162abca41f680ea97229b89490c3d34 | [] | no_license | CheanKul/django | f9222fba10de05d505b5ca38cbb149391f8e0027 | a08a3a2546a87ad33924538206571f380882828c | refs/heads/master | 2020-04-30T01:11:20.577887 | 2019-04-12T13:36:04 | 2019-04-12T13:36:04 | 176,522,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.1.7 on 2019-04-11 13:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Posts', '0003_user'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='Posts',
),
migration... | [
"son.chetanakulkarni@gmail.com"
] | son.chetanakulkarni@gmail.com |
db9dd26d84965101c18856a7166596b83138a568 | 4abd277251cdaf7b9fd87432d2ce23aff15f1b9b | /notebooks/data_generator.py | dc56e05dec5e971230de0037d77db0d5ed462b9a | [] | no_license | shreyasnikte/Active-Learning-TUD-Thesis | feab603ccf1813227a0abe1b37cb3096778bdeaf | f4a68d406dbbdcb2160c513ddaeb563358df287c | refs/heads/master | 2020-04-22T07:54:33.930032 | 2019-06-26T23:50:56 | 2019-06-26T23:50:56 | 170,227,214 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,281 | py | import numpy as np
import pandas as pd
import random
import time
from multiprocessing import Pool
from datetime import datetime, timedelta, date
from tqdm import tqdm #for .py version
# from tqdm import tqdm_notebook as tqdm # for .ipynb version
# The dict 'params' consists of all the parameters u... | [
"shreyas.nikte@gmail.com"
] | shreyas.nikte@gmail.com |
15b4e4681ee8b2a767f2591b18a1e1bee837b901 | 2200d8cb5e88b1ec4d0d983faf3bc8465483f718 | /bio_app.py | f1dc983a90122e776b3caa7d863cb062805b68af | [] | no_license | Beegie01/More-Apps | 4ae430bfeb422971b5ccf86b4834a68e1a8a45df | 5bda2baed6eccf3f6830b174412f519a63959e07 | refs/heads/main | 2023-03-06T00:26:32.871277 | 2021-02-24T15:18:45 | 2021-02-24T15:18:45 | 341,940,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from bio_OOP import Biography
while True:
print("Welcome!!")
bio = Biography()
bio.assign_bio()
bio.view_bio()
ans = bio.ask_next()
if ans in 'yes':
continue
break
| [
"noreply@github.com"
] | Beegie01.noreply@github.com |
3956e7c1d93e0014fa4ec13d0f0428c4a53f31dc | c333c2aea8670eb0eb99889fef93553a2f8d4209 | /tfidf.py | 5b1e38109190f5bf0471b310a29af6e3876f846d | [] | no_license | rohanprateek/nlpproject | f3c2303031f0da0a7daa7e6cef34bb240d51f23b | f308f17bedad964930cbfae05bcef763fbe8c8fd | refs/heads/master | 2021-09-24T12:06:49.822049 | 2018-10-09T18:31:26 | 2018-10-09T18:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | import sys
import os
import math
class tfidf:
def __init__(self):
self.documents = dict([])
self.occurrences = dict({})
def addDocument(self, name, words):
doc_dict = dict([])
occurrence = False
for w in words:
doc_dict[w] = doc_dict... | [
"noreply@github.com"
] | rohanprateek.noreply@github.com |
d0617cd51963572d141e3aef32459dcb50cab22c | ac32ee1ac2401b66d8304115379225014af88ba3 | /UGATIT.py | fcae4c37bdf08267d8ec6772d7c3bcb61a03cdda | [] | no_license | GuoQuanhao/UGATIT-Paddle | 5c314bb4b00cfd47244a2477c5c788f036fff2bb | 3f690488d29d96df361bc1b29721122bd1b309cc | refs/heads/master | 2023-01-27T18:51:28.009288 | 2020-12-06T12:43:13 | 2020-12-06T12:43:13 | 299,017,335 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,230 | py | import time
from dataset import ImageFolder
import paddle.fluid as fluid
from networks import *
from utils import *
from lr_scheduler import build_lr_scheduler
from glob import glob
import os
class UGATIT(object) :
'''
Paddle框架下的UGATIT将模型的构建全部放在with结构中;
修改数据集读取方式,以Python原生迭代器方式进行读取,具体迭代器的生成参考... | [
"noreply@github.com"
] | GuoQuanhao.noreply@github.com |
b0eb9006223f4510c5153b6b81c70ac4fe36763f | 47cf47441776cef68d4f459354a28cdb2cd03e5a | /2020/day10/d10.py | 38d26d433428c01c6da224d69157c2e8cc99327d | [
"MIT"
] | permissive | pubkraal/Advent | c3ab338da2a551d9749aa686cbedb62180ff344e | 286517fe7911490a817adceefc8a84a1032e7bcc | refs/heads/master | 2021-12-21T14:58:08.940044 | 2021-12-21T05:51:42 | 2021-12-21T05:51:42 | 159,924,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python3
from collections import defaultdict
from functools import lru_cache
with open("input.txt", "r") as rd:
d = sorted([int(x) for x in rd.readlines()])
d.insert(0, 0)
d.append(d[-1] + 3)
steps = defaultdict(int)
prev = 0
for num in d[1:]:
steps[num - prev] += 1
prev = num
print("1: ",... | [
"git@johnkraal.com"
] | git@johnkraal.com |
70f5d2858275f029402a7b2d640dbf5e59386d1e | 3e9841e2bd0f9301c1b9ac1ad20b558caccb6fea | /evaluation/wordvectors.org/wordvectors.py | 3730d00b83809402f2d9b7e56e5bafbf2dd1b6da | [] | no_license | yongzhengqi/EMERITUS | e9fe8b1787ec6ec4e26b7fe7c86b050fd5404331 | 13fe68e42b2e8b971069ed0be3346b51a242f6f0 | refs/heads/master | 2020-04-04T16:20:26.613174 | 2018-11-18T02:22:15 | 2018-11-18T02:22:15 | 156,073,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import sys
d = {}
for line in open(sys.argv[1], 'r'):
d[line.strip()] = 0
for line in sys.stdin:
if line.strip().split()[0] in d: print(line.strip()) | [
"yongzhengqi@gmail.com"
] | yongzhengqi@gmail.com |
fc924f9275703bfa5fea085e152a0ecb41e9aaeb | 446b7fd24ccc23333575037ffe2e80ff29ee2fe5 | /utils/logger.py | 97e1830790aef8db8605d5529b7d14089459adb4 | [] | no_license | Cuixe/domotica | 6263f0218bcef8d29752a0689e8e179296c90c96 | c285df6a846280870d8492c8c73404a118903d9a | refs/heads/master | 2020-06-27T06:51:47.315911 | 2016-12-24T02:31:45 | 2016-12-24T02:31:45 | 74,537,043 | 0 | 0 | null | 2016-12-03T06:27:41 | 2016-11-23T03:28:05 | Python | UTF-8 | Python | false | false | 871 | py | import logging
formatter = logging.Formatter('%(asctime)s %(levelname)s - %(name)s - %(message)s')
loggers = {}
__APP_LOGIN_LEVEL = logging.INFO
def __get_logger(logger_name="Domotica", loggin_level=logging.DEBUG):
if logger_name not in loggers:
logger = logging.getLogger(logger_name)
logger.setL... | [
"hfuentes@grupobmv.com.mx"
] | hfuentes@grupobmv.com.mx |
6a2a6229ec9cce05b130a9c394ee95473aa673fb | c65551cebd047df4e4f41f1cf420e5ac04cf517c | /backend/admin.py | 42f789d59d10315efa905ba9fbce70c336d82049 | [] | no_license | harshit-coder/portfoliogenerator | 55521ddc8f23151f90f3bd1f2daf9b45cbca7f2c | ace4ea9482e468aeace960e7649580ed1131db96 | refs/heads/main | 2023-04-16T23:05:59.068189 | 2021-05-08T05:38:44 | 2021-05-08T05:38:44 | 352,867,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
# Register your models here.
from backend.models import *
from import_export import fields, resources
from import_export.widgets import ForeignKeyWidget
from django.contrib.auth.models import User
from django.contrib.auth.models ... | [
"kaluchaharshit22@gmail.com"
] | kaluchaharshit22@gmail.com |
8bc30b4ffffdd2a9e6c67b806b72324ac9bcf8c5 | 699c7f26a91106a2fc79bb15299ce0cee532a2dd | /test/pivottest.py | a875542be8d7a661c68859711f9c108434bede2c | [] | no_license | samconnolly/astro | 70581a4d3f2086716aace3b5db65b74aaaa5df95 | 3731be313592c13dbb8af898e9734b98d83c0cc2 | refs/heads/master | 2020-04-06T03:40:27.454279 | 2014-03-12T14:36:34 | 2014-03-12T14:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # Programme to test how a pivoting spectral component, plus a
# constant soft component changes the shape of the flux-flux diagram
import numpy as np
from pylab import *
# parameters
epivot = 2.0 # KeV pivot energy
pivmin = 2.0
pivmax = 10.0
cindex = 2.0 # index of constant component
nsteps = 10.0
# c... | [
"sdc1g08@soton.ac.uk"
] | sdc1g08@soton.ac.uk |
9ae8d869235415f1f38e0096bb230f6ba3dac9a7 | b86c9f5e0e5cc484114354fbc23ad69b44e200ad | /mysite2/hospital/database/useMySQL.py | 49671c86eed5e025c90b3804fc8aca9ba93f2021 | [] | no_license | xtang224/hospital | 2f99fa1116ab8e8400b609d3109f5d3dfbdaaed2 | ba9766e546f75e4270ddfa750797d06af523af1b | refs/heads/master | 2021-09-06T10:21:14.432667 | 2018-02-05T12:57:49 | 2018-02-05T12:57:49 | 120,304,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,020 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import MySQLdb
def getCurrentUser():
db = MySQLdb.connect("localhost","root","","hospital")
cursor = db.cursor()
sql = "SELECT * FROM hospital_current_user"
user = []
try:
# 执行SQL语句
cursor.execu... | [
"644282565@qq.com"
] | 644282565@qq.com |
9c16d7a1faed38e5c5048cd1e711e02f86514432 | fb5a31512afe6aa6976379cbd02d4153be07c9a6 | /x2py/links/asyncio/__init__.py | b371b21904eab64a9acb2072062356c185bbec72 | [
"MIT"
] | permissive | jaykang920/x2py | efbc735520308296a291ce032ab90923cc12c40d | b8bd473f94ff4b9576e984cc384f4159ab71278d | refs/heads/master | 2022-11-10T19:43:59.160909 | 2020-07-05T04:28:15 | 2020-07-05T04:28:15 | 107,501,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # Copyright (c) 2017, 2018 Jae-jun Kang
# See the file LICENSE for details.
from x2py.links.asyncio.tcp_client import TcpClient
from x2py.links.asyncio.tcp_server import TcpServer
| [
"jaykang920@gmail.com"
] | jaykang920@gmail.com |
51c575c6eae223985fae0c7d3c330b933dd2972d | 6626cd0b9aa192160bc814dbbb3db7fb5931d509 | /Assignment2/pythonCode/preprocessLinkIn.py | ca10e38313375dd3fe4bc0597ef311824a185d23 | [] | no_license | xuqianshawn/machine_learning_python | 53206772f2d4ae9c896328ac41754694bd146c7a | 2396ba5fa62fb9f3054bbc62a04f9461721bf871 | refs/heads/master | 2021-01-01T17:11:22.479312 | 2017-07-22T08:17:15 | 2017-07-22T08:17:15 | 98,016,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | import pandas as pd
import nltk
from nltk.corpus import stopwords
from bs4 import BeautifulSoup
import re
from sklearn.feature_extraction.text import CountVectorizer
import csv
import json
from sklearn.ensemble import RandomForestClassifier
from LinkedIn import LinkedIn
from os import walk
import numpy
clas... | [
"xuqianshawn@gmail.com"
] | xuqianshawn@gmail.com |
757fdd5ec99459542dde88e360700156603c2846 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/vivacious.py | 6023c96df4e75d647fba458235af9ef85c64b4ef | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('vivacious', __name__, url_prefix='/vivacious')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('r... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
23142e3e42db76d3885d085effa48d39017ca5c6 | acc2961040ae54eb09864b450dad4915d772f5c2 | /School/settings.py | 96cd49cce04772cfbbde3aab850d171b2d9b41e3 | [] | no_license | azamatkb/ProjectSchool | 6c46b29d00eee842d4f856769a95ea131d0c7eb2 | 564967fcbb68a12ce534f0cc2cb8f56447161ad9 | refs/heads/master | 2023-06-02T01:52:57.346039 | 2021-06-25T13:01:36 | 2021-06-25T13:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | """
Django settings for School project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"ameena_farage.yahoo.com"
] | ameena_farage.yahoo.com |
349444ceb24ff9ace72360820dc94ea12e52217f | 1ba79b323a8d29375fd1e55f054fa0a82e2259e9 | /users/urls.py | 14a108a51383ff307a1cc814921849ba108962bf | [] | no_license | droidroot1995/messenger_backend_test | acdecb7611b1dd8c43c907f7e7a292182d9047e3 | 5945ad10aedc3aa528e58766ac33e19dbbe4daca | refs/heads/master | 2022-12-21T15:38:49.602438 | 2021-06-02T07:22:18 | 2021-06-02T07:22:18 | 254,420,087 | 0 | 0 | null | 2022-12-08T07:27:13 | 2020-04-09T16:12:40 | JavaScript | UTF-8 | Python | false | false | 574 | py | from django.urls import path
from django.urls import include
from users.views import profile_details, contacts_list, search_users
from users.views import UsersViewSet
from rest_framework.routers import DefaultRouter
router = DefaultRouter(trailing_slash=False)
router.register(r'users', UsersViewSet, basename='user') ... | [
"goryakin@phystech.edu"
] | goryakin@phystech.edu |
94992c179a5b9e9c042423b31d1d76a5be37d1e3 | cb1b8b50e71d55a9701ef60dc75a809e11bb2ceb | /google/cloud/iot_v1/types/resources.py | 8ca12ae39ac2dc3f9a10ce0996503c5947f95555 | [
"Apache-2.0"
] | permissive | romulomanzano/python-iot | 4861a884b048548d52adadf3eff9c2581e2ad701 | d55f5e03df7507596e202450147156511c154a25 | refs/heads/master | 2023-02-17T21:21:07.787704 | 2021-01-13T19:22:33 | 2021-01-13T19:22:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,267 | 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... | [
"noreply@github.com"
] | romulomanzano.noreply@github.com |
cf4299592f3ff188496cd64196d3b2cb6f8f3cf0 | df3f397941285d67ca1db9fdb24da0f7cccfc9f3 | /launchEC2.py | 65c96a3c81e35029fca423ea78a89ab8c004d2b6 | [] | no_license | bluehackrafestefano/boto3codes | 70e01b1db3e09d9539c5ff63ec5735f98762f41e | 04ca54a1ce663fac85ba19aee48c68d5883ddc32 | refs/heads/main | 2023-04-23T13:32:35.122915 | 2021-04-24T02:18:33 | 2021-04-24T02:18:33 | 361,051,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | import boto3
ec2 = boto3.resource('ec2')
# create a new EC2 instance
instances = ec2.create_instances(
ImageId='ami-0dba2cb6798deb6d8',
MinCount=1,
MaxCount=1,
InstanceType='t2.micro',
KeyName='rafeNvirginia'
) | [
"stefanorafe@gmail.com"
] | stefanorafe@gmail.com |
189c4e5fdf1e7b83e392eb997bc58bbc0af519f1 | 39471cc02fa5b6b91102ced708e732a595a46812 | /py/dcnn.py | fab7930fd74170b4bc8a4437ca17a6de80e7df03 | [] | no_license | d180cf/dcnn-eval | 4b8fe9dbe1b2b39d5b758f50e1781f3d02ff8334 | a2315babc7261faa260f48a92ba072df34bcb223 | refs/heads/master | 2021-08-30T12:33:48.106643 | 2017-12-18T00:33:40 | 2017-12-18T00:33:40 | 107,838,869 | 0 | 0 | null | 2017-11-15T07:23:38 | 2017-10-22T05:03:06 | JavaScript | UTF-8 | Python | false | false | 10,657 | py | import os
import sys
import json
import time
import datetime
import numpy as np
import random
import tensorflow as tf
from importlib import import_module
print('Python %s' % (sys.version))
print('TensorFlow %s' % (tf.__version__))
print('sys.argv', sys.argv)
def sysarg(i):
try:
return sys.argv[i]
exce... | [
"d180cf@gmail.com"
] | d180cf@gmail.com |
50528a7165f471eb2c570d144650e1394efa6dda | ce57a8618318a1a0c7b27e2c3171e6e76235fdac | /topological_sort.py | 578823e9b5d58e1bb5e3f669de317200ca317978 | [] | no_license | 1640675651/algorithms | de9fe224193e5186853b3bad7a6176ee62ee33d4 | 8d0b206f2020d675facb57bccde5e4bc9637aa11 | refs/heads/master | 2023-03-13T05:38:29.469935 | 2023-02-24T21:00:17 | 2023-02-24T21:00:17 | 245,101,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | def toposortdfs(al): #al: adjacent list, al[i] stores all vertices that i can reach directly
vis = [False] * n
ts = []
for i in range(len(al)):
if vis[i] == False:
toposortdfs_r(i, al, vis, ts)
ts.reverse()
return ts
def toposortdfs_r(v, al, vis, ts):... | [
"1640675651@qq.com"
] | 1640675651@qq.com |
90483ca76a31a47fc3e85e6230d4ac1124693932 | db776ce382f7e2a7e9037bf6589b67514b7e5d18 | /week1/var_list.py | 17879432ad58e760532d99c450cea389fbef1f5b | [] | no_license | samuel331/python_study | 3a946cc16597589cdc23a3d37cd18205a717d114 | 16fdc4ccb526c1c7cbd6af285630a8a78cd7ff43 | refs/heads/master | 2022-12-04T17:05:51.395849 | 2020-08-29T05:07:39 | 2020-08-29T05:07:39 | 291,201,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | fruit_list = ['apple', 'orange', 'pineapple']
print(fruit_list[1])
fruit_list[1] = 'mango'
print(fruit_list) | [
"samuel07.kim@gmail.com"
] | samuel07.kim@gmail.com |
8d20c66a896165d9713c16e4b3e556e42436a081 | 3ff2398b68acb35b6ad8e62067b40f7731203837 | /Week 01/CppPython Example/PythonCpp.py | ddea0710d925b144e2da353df257e367726006df | [] | no_license | gengler1123/Cpp-For-Finance | c6abf6838e1c0645354876ba9ed83d18e2ce069e | d37062a17110adab490f1e558b0d105e7056e56e | refs/heads/master | 2021-01-18T16:52:06.346252 | 2017-04-28T00:23:28 | 2017-04-28T00:23:28 | 70,807,400 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 23 08:59:35 2016
@author: Gary
"""
import pandas as pd
import os
myFile = "newData.csv"
os.system("CppPython01.exe newData.csv")
df = pd.read_csv("newData.csv", header=None)
plt.figure()
plt.scatter(df[0],df[1])
plt.show() | [
"gengler@stevens.edu"
] | gengler@stevens.edu |
65a8f57f71e0c472f368c615ec422e7fb5ade979 | b6d999f6d070df51fb9e714283b52ceac93f09e5 | /comps/management/commands/export_comps.py | 7bbfd25a4e697e32f18d567227d44f66e078a875 | [
"BSD-3-Clause"
] | permissive | caktus/django-comps | 33ad5ec2997be165a27c56c915c66fb3d5a3dbc4 | 351c83634f556a420212268f4e7b5882a049d3c2 | refs/heads/master | 2021-01-01T18:54:54.739818 | 2017-01-24T19:08:11 | 2017-01-24T19:08:11 | 4,364,634 | 11 | 0 | null | 2017-01-24T19:08:12 | 2012-05-18T01:07:29 | Python | UTF-8 | Python | false | false | 1,479 | py | import os
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import NoArgsCommand, CommandError
from django.template import RequestContext
from django.template.loader import render_to_string
from django.test.client import RequestFactory
class Command(NoA... | [
"mlavin@caktusgroup.com"
] | mlavin@caktusgroup.com |
5bd1ed47c62fe0a2d416ce3b2ac4657e91ce6e3e | efc0c156a8656d6e90ffa942811d6cfdfc34602b | /read.py | df4a598078aa48530bf172afaeb28583fca6fbf2 | [] | no_license | arjunjanamatti/open_cv_from_freecodecamp | 36867c10cc56e53080b390c678ec5bd1599f988f | cbf92127770a411270309864687255593c785f82 | refs/heads/master | 2023-05-11T15:42:07.224603 | 2021-06-01T08:42:25 | 2021-06-01T08:42:25 | 335,581,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import cv2 as cv
# # read the image
# img = cv.imread(filename = 'C:/Users/Arjun Janamatti/Documents/image_classification/nude_sexy_safe_v1_x320/testing/safe/0AFBAF6E-AC8F-4F86-B131-26AF632BF574.jpg')
# print('Shape of the image: ', img.shape)
#
# # display the read image
# cv.imshow(winname='image_window', mat=img)
#... | [
"arjunjanamatti@gmail.com"
] | arjunjanamatti@gmail.com |
e646bb93cc2e371f15aec3b80cb3f8c0380cccc1 | 51a37b7108f2f69a1377d98f714711af3c32d0df | /src/leetcode/P292.py | 5c48dc1f6e7885796ce6210fadce7d6c63219433 | [] | no_license | stupidchen/leetcode | 1dd2683ba4b1c0382e9263547d6c623e4979a806 | 72d172ea25777980a49439042dbc39448fcad73d | refs/heads/master | 2022-03-14T21:15:47.263954 | 2022-02-27T15:33:15 | 2022-02-27T15:33:15 | 55,680,865 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | class Solution:
def canWinNim(self, n):
"""
:type n: int
:rtype: bool
"""
return n % 4 != 0
| [
"stupidchen@foxmail.com"
] | stupidchen@foxmail.com |
cbb97a71e43ba0aeae79c64781b1c2a7c1f09cb8 | 8fb4f83ac4e13c4c6de7f412f68c280d86ddea15 | /eon/tests/unit/deployer/network/ovsvapp/test_vapp_util.py | 6e5508948b41971f8773c56807dceeb902078137 | [
"Apache-2.0"
] | permissive | ArdanaCLM/hpe-eon | cbd61afa0473bbd9c6953e5067dbe5a7ff42c084 | 48a4086d2ccc5ccac60385b183f0d43f247c0b97 | refs/heads/master | 2021-07-25T18:55:30.176284 | 2017-10-24T08:49:42 | 2017-10-24T08:49:42 | 103,971,673 | 0 | 1 | null | 2017-11-07T15:47:45 | 2017-09-18T17:43:45 | Python | UTF-8 | Python | false | false | 6,225 | py | #
# (c) Copyright 2015-2017 Hewlett Packard Enterprise Development Company LP
#
# 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 require... | [
"srivastava.abhishek@hp.com"
] | srivastava.abhishek@hp.com |
c782e681b9c1663b575f44006b904d610b838ab2 | 36c26bf8f0c0e8466743153039f3163155d3cf01 | /project4.py | 7e02adf2e6cd2cc3cc52e4541cb6a0c1ac772f34 | [] | no_license | fabiomor/disruptive-data-summer-school | 800f77f3c5566b4e9fcac9fcee2677ccdc7b0da6 | ad8198420d37cd5feccd2529e3c903616fddb7cb | refs/heads/master | 2020-07-01T02:47:34.592186 | 2019-08-08T11:14:38 | 2019-08-08T11:14:38 | 201,023,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import io_data
def execute():
words = io_data.read_words_from_csv()
words_number = len(words)
total_chars = 0
for word in words:
total_chars += len(str(word))
words_avg_length = float(total_chars)/float(words_number)
words.sort()
print("Words number: " + str(words_number))
prin... | [
"fabiomor@gmail.com"
] | fabiomor@gmail.com |
632dde6bdbc21624a39c299566810a9f9a7bbac0 | 24a9c8f2fac4e2b20f731387336ec4e22d5fd2c7 | /AdministrativePenalty/天津市/1.保险监督管理局.py | 40398e49e4a5061da89e045b006e224c3d4e1126 | [] | no_license | yunli45/pycharmProjectHome | 94833822e3036bf2baf8700c4493132e63177d4c | 9a382c060963eb801a3da07423e84a4132257b02 | refs/heads/master | 2020-05-23T23:35:20.476973 | 2019-05-16T09:45:58 | 2019-05-16T09:49:16 | 186,986,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,095 | py | import requests
import re
import time
from bs4 import BeautifulSoup
import pymssql
# # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# 抓取天津市滨海新区 —银监分局数据
#
# # # # # # # # # # # # # # # # # # # # # # # # # # #
class Utils(object):
def __init__(self):
self.header = {'User-Agent': 'Mozilla/5.0 (Win... | [
"yunli_45@163.com"
] | yunli_45@163.com |
9685449d5e5645b6666498b20dc26c867e5091a9 | 946748c5c4bc70df42e852cc285a0fe5317bec45 | /ax/core/experiment.py | 1033e9b88d204cbedcbf68fb785d40d1e1cee43d | [
"MIT"
] | permissive | isabella232/Ax | 34cf41fde3f7ed7f478149b83aa8b72bfa8f5116 | 051054c6f21617937fc263af174773fa55c37818 | refs/heads/master | 2023-04-11T11:49:22.097326 | 2021-04-17T17:22:53 | 2021-04-17T17:25:14 | 359,406,904 | 0 | 0 | MIT | 2021-04-19T09:51:19 | 2021-04-19T09:46:11 | null | UTF-8 | Python | false | false | 35,976 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from collections import OrderedDict, defaultdict
from datetime import datetime
from enum import Enum
fro... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0b6560f605db9e01acc673ece361005886217936 | 89e304419a507f54d927f76f8283b1e8b7e1a230 | /0x16-api_advanced/0-subs.py | 7205ef2ca0addc04b3e795b8f553eab9900a4cae | [] | no_license | hachemhfaiedh/holberton-system_engineering-devops | e5b00107d15a7fc4434dfa4a75559d9f2877ea72 | ec25e5e5107f683b23eec6275df3b82b2ae7f967 | refs/heads/master | 2021-07-18T15:10:42.056446 | 2021-02-04T17:27:57 | 2021-02-04T17:27:57 | 237,171,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!/usr/bin/python3
'''number of subscribers for a given subreddit'''
import requests
def number_of_subscribers(subreddit):
headers = {'User-agent': 'Hachem'}
try:
r = requests.get(
'https://www.reddit.com/r/{}/about.json'.format(subreddit),
headers=headers)
data = r.jso... | [
"hechemhfaiedh@gmail.com"
] | hechemhfaiedh@gmail.com |
ccbcd50f9aee52c59f6ad22c7fecb2c372a0c9db | 0dce02b1fef7c3af73925d6baeb130a9e51f6a76 | /DEAP/main.py | 8e0432d7be8f9f008cc52136f95949b3bf5f98d0 | [] | no_license | KirstyMontague/StudleyWinfield2016 | fbd96df59e5f6dbacc887d0f6aae29c4391b89f3 | 3513ce889b157734e287d3e8c044038a75219760 | refs/heads/master | 2023-03-22T13:02:05.494062 | 2021-03-20T14:39:33 | 2021-03-20T14:39:33 | 273,730,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | import copy
import random
import subprocess
import time
import os
import numpy
from functools import partial
from deap import algorithms
from deap import base
from deap import creator
from deap import tools
from deap import gp
from params import eaParams
from custom import customGP
from utilities import utilities
f... | [
"K.Montague@napier.ac.uk"
] | K.Montague@napier.ac.uk |
9af39db942c3e1dde49345526d12a0c37972f44a | 739e41d4f24f79c772d266cded0de9b759c6e953 | /venv/lib/python3.6/site-packages/datasets/__init__.py | eb40f7f2cfc457e3e42b84454b398c6c73b9dd70 | [
"MIT"
] | permissive | MachineLearningBCAM/Minimax-risk-classifiers-NeurIPS-2020 | 24b7bbdecf459292f8b58be286feab3b9aa341ba | 82586c632268c103de269bcbffa5f7849b174a29 | refs/heads/main | 2023-05-18T15:41:13.495286 | 2021-06-11T18:21:35 | 2021-06-11T18:21:35 | 304,268,819 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | # flake8: noqa
# coding=utf-8
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors.
#
# 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.... | [
"adiaz@bcamath.org"
] | adiaz@bcamath.org |
adbc65af4a78cdf6c7f7b7ac070a0d13892d00b5 | 974d1b8f57ac3d245ad3fa8be4e596a6eaf7146c | /com/text/feature/vectorize/another_improve_tf_idf.py | 2c3400ff529ca488b9a67775a5d23c54e690eed1 | [] | no_license | zqlhuanying/Image_Emotion | 6cf40c26e4b50d4076d1cce19fcddf485c05be7a | 1e60aa042d3c0736fb564285380068b21fd2b30b | refs/heads/master | 2020-04-06T07:09:54.970181 | 2016-11-19T11:45:22 | 2016-11-19T11:45:22 | 44,971,371 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,924 | py | # encoding: utf-8
from __future__ import division
import numpy as np
import scipy.sparse as sp
from sklearn.preprocessing import LabelBinarizer, normalize
from sklearn.utils.extmath import safe_sparse_dot
from com.text.feature import vectorize
__author__ = 'zql'
__date__ = '16-01-24'
class TfidfImproveSec(object):... | [
"zqlhuanying"
] | zqlhuanying |
ab1958a79220b1183dc334d00c5dd206a564e9ff | 2b485c67c723151f73ec96da9f6337a0c9857dae | /easy/q69 sqrtOfX.py | 33419703de2f52ed57ee5193e076bc429eb78a7b | [] | no_license | Anupya/leetcode | c7792e6ac61b655491a1c734f9167281356471d3 | cb45e66a41e0c6a8583bb9c4bf846b470ef4bc0f | refs/heads/master | 2022-10-10T14:01:22.189414 | 2022-09-07T21:36:24 | 2022-09-07T21:36:24 | 151,865,310 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # Given a non-negative integer x, compute and return the square root of x.
# Since the return type is an integer, the decimal digits are truncated, and only the integer part of the result is returned.
class Solution:
def mySqrt(self, x: int) -> int:
return int(sqrt(x))
| [
"anupya@hotmail.ca"
] | anupya@hotmail.ca |
862636d66249fad16e0dd23fc3e0c5ee1ac69be9 | d84d644c3f72e9e25bb4000050ff9e18961c46d5 | /relay_test_script.py | 6bf5bb51827a22c6a7cd94e97aa655f32ffdd39e | [] | no_license | bjpetit/relayDriver | b5b7858d7c84b05768004ba10ae2dd23b560f19c | 97587560d7100f95f29dd60a79d6a4b565f9d6cd | refs/heads/master | 2021-01-10T14:13:43.184690 | 2015-10-11T02:58:12 | 2015-10-11T02:58:12 | 43,303,127 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import relayDriver
import time
print "Starting up..."
relayDriver.initRelayBoard()
print "Close relay 1"
relayDriver.closeRelay(1)
time.sleep(.5)
print "Open relay 1"
relayDriver.openRelay(1)
print "Close relay 2"
relayDriver.closeRelay(2)
time.sleep(.5)
print "Open relay 2"
relayDriver.openRelay(2)
print "Close re... | [
"bjpetit@gmail.com"
] | bjpetit@gmail.com |
95da257d86d248a1a253279af252f93a2a03cc51 | b2b91849a9673507dbec1b666aca3191e2cfaca8 | /agerisques/app/forms.py | fc39e68ed82a7dc09b161c623e5728e6c0827570 | [] | no_license | desiree-1999/formulaire | 3eea06622527fd6cf8c7d83010e01e4ae0e410f4 | bca7382f71abee943b76a80dfc097d281c921d95 | refs/heads/master | 2023-05-11T05:35:49.096336 | 2021-05-30T16:36:39 | 2021-05-30T16:36:39 | 372,267,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | from django.contrib.auth.models import User
from django import forms
from .models import Souscripteur, Assuré, Paiement, Police, Type_contrat, Compagnie, Sinistre
class SouscripteurForm (forms.ModelForm):
class Meta :
model = Souscripteur
fields = ('nom_souscripteur','prenom_souscripteur', 'conta... | [
"dohmanou@gmail.com"
] | dohmanou@gmail.com |
0eaa43b7a0fecb3e68210e733f4abfb8422242ae | 4cab5001f2104de491cbe57d8d3e8fddf3160459 | /supplychain_ctf/apps/game/migrations/0003_auto_20200716_0421.py | b39ea49817224e8cb41e013e83c61ef1d7c6d6e9 | [] | no_license | SupplyChainSandbox/SupplyChainCTF | 1f33f3f36809a65cb03c4b0ec836908c4d826933 | e5bba893c30cee891c11ec21164e19f21345d76a | refs/heads/master | 2023-03-01T21:27:14.536229 | 2021-02-07T17:52:31 | 2021-02-07T17:52:31 | 280,311,676 | 0 | 1 | null | 2021-02-07T17:52:42 | 2020-07-17T02:55:27 | Python | UTF-8 | Python | false | false | 836 | py | # Generated by Django 3.0.5 on 2020-07-16 04:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('game', '0002_game_description'),
]
operations = [
migrations.AlterField(
model_name='system',
... | [
"Daniel@promenadesoftware.com"
] | Daniel@promenadesoftware.com |
13f953e8066ca71db654a3e978dbc9fcb5c7d823 | a0e646c0ddf8acd849c6d170da7efc077dbcba66 | /servers/migrations/0008_auto_20160519_0449.py | a9d18d547edb7bf5393837116a17ed2df2b26ea8 | [] | no_license | gordoncm/incling_django_task | fb12b5b8ea057627cb016e2c41c6107b7124b969 | 8c47586a9a4025330c1901318700b9b0875afdcd | refs/heads/master | 2021-01-01T03:54:41.782316 | 2016-05-19T05:44:35 | 2016-05-19T05:44:35 | 59,176,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('servers', '0007_remove_classroom_student_name'),
]
operations = [
migrations.RenameField(
model_name='school',
... | [
"camerongordon@Camerons-MacBook-Pro.local"
] | camerongordon@Camerons-MacBook-Pro.local |
c1950ad86325dc7af985047973b14a59e79590a6 | 954409857ef789aa0d759ea13b80e4ca3d610a8a | /SL_LAB/Lab external practice/blackfriday/blackfriday.py | 88981cea76de211da21f31441827d614295f7d04 | [] | no_license | AkarshSimha007/ISE-SEM_5-Labs | 488f00d7b8e78317a75b5b87c3256e38ef4fa4c6 | 34e34da22d2d3a646fc175da942682deedf36980 | refs/heads/master | 2023-03-09T11:42:41.972159 | 2021-02-09T13:16:19 | 2021-02-09T13:16:19 | 323,646,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
bf_df=pd.read_csv("BlackFriday.csv")
print(bf_df.head())
print(bf_df.describe())
bf_df.drop(['User_ID','Product_ID','Stay_In_Current_City_Years'],axis=1,inplace=True)
print("***Filling Empty Values***")
bf_df["City_Category... | [
"akarsh07simha@gmail.com"
] | akarsh07simha@gmail.com |
d38ea8f9f3370a0b7f7dc3ab35493aa4254f8757 | c382eb155c3a798b3e8f8760e3168c651cfc0df5 | /light/mouseClicked__listing54_/mouseClicked__listing54_.pyde | 49857eeddf93c4701844627e8c51bdc2f264bd2d | [
"MIT"
] | permissive | Drozdnik/2019-fall-polytech-cs | 9b621fe1873c2696385c37ed89b52468dfb100b1 | 02154dd152c454c25bdce93a0643267e8f65eee4 | refs/heads/master | 2020-07-28T20:01:08.141737 | 2019-12-20T15:34:25 | 2019-12-20T15:34:25 | 209,519,720 | 0 | 0 | MIT | 2019-09-19T09:55:27 | 2019-09-19T09:55:27 | null | UTF-8 | Python | false | false | 908 | pyde | counter = 0
class FunnyRect():
def setCenter(self, x,y):
self.cx = x
self.cy = y
def setSize(self, siz):
self.siz = siz
def render(self):
rect(self.cx, self.cy, self.siz, self.siz)
def colors(self, h):
fill(h)
funnyRect = FunnyRect... | [
"noreply@github.com"
] | Drozdnik.noreply@github.com |
3d22f3e0e208a1c8a99d358263c59121494f8e82 | ff688afd8cca8b319433ba65e26968b85525136c | /migrations/versions/c67c9360f252_.py | 2d378f3cbb0043f082e7df1ab2237b301a2656e7 | [] | no_license | Egor754/delivery_flask | 9ae7cc1550555add1df66de154b75efcd5b30d3e | 9af90d86321a199e60e57d3a1020ebb9c5efe904 | refs/heads/master | 2023-04-20T21:09:45.133259 | 2021-05-13T17:36:49 | 2021-05-13T17:36:49 | 365,213,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | """empty message
Revision ID: c67c9360f252
Revises: 9202a278bb59
Create Date: 2021-05-13 22:31:55.919712
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'c67c9360f252'
down_revision = '9202a278bb59'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"xel-boi@mail.ru"
] | xel-boi@mail.ru |
b21cdd6b34ce845121a1bedbe1cbd7d5fcb287c1 | 2834f98b53d78bafc9f765344ded24cf41ffebb0 | /weblayer/renderer/DEPS | e83c233386cd4f75dd17543c345adb86342e4984 | [
"BSD-3-Clause"
] | permissive | cea56/chromium | 81bffdf706df8b356c2e821c1a299f9d4bd4c620 | 013d244f2a747275da76758d2e6240f88c0165dd | refs/heads/master | 2023-01-11T05:44:41.185820 | 2019-12-09T04:14:16 | 2019-12-09T04:14:16 | 226,785,888 | 1 | 0 | BSD-3-Clause | 2019-12-09T04:40:07 | 2019-12-09T04:40:07 | null | UTF-8 | Python | false | false | 784 | include_rules = [
# This is needed for error page strings/resources.
# TODO(1024326): If WebLayer stays with WebView's error pages implementation
# long-term, componentize these strings/resources as part of componentizing
# that implementation and remove the need for this dependency.
"+android_webview/grit",
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
1a5795fa94a61248324305f62cb801d5d3e7cf20 | 0519b1a7df58d9cfe5a904c18106df80126ed74a | /task3.py | c9b61da7c3f082ce8ca2c0e5fa1781a85151d703 | [] | no_license | Maniddarky/Task-1-python | b40c97c2c0f6799b7b1f92dfcd92e432ef3bc6ad | 8383caa4db5c356229111b4531afeec7fdc3780f | refs/heads/master | 2020-07-29T10:54:06.577703 | 2019-09-20T11:01:35 | 2019-09-20T11:01:35 | 209,769,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | courses={'python':1500,'java':1000,'c':800,'c++':1200}
for key in sorted(courses.keys()):
print(key,":",courses[key])
| [
"noreply@github.com"
] | Maniddarky.noreply@github.com |
f2785e274517171e84c495bf5d95f3995c8dc2d8 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/resources/azure-mgmt-resource/generated_samples/templatespecs/template_spec_versions_list.py | c4ccd74ea392cff33ce63cf02c753bf0b0fdf13a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"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,616 | 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 |
cff1e6187e7f3ad194db054ea9fc0a8d6b6039b8 | c87f1a47e810f97d02e01199e0d4e9bf322bf6f2 | /laoyang/DingTalk/dingBot.py | d412971b30fa3b629bd3713bab05b00f28a408f3 | [] | no_license | junwenyang/monlab | 0400abd9ad9fca6b2bda3e9ca1ca5571a6af2a08 | 2ed7b3948f665663f3feaa62e34ca0cfb96b978b | refs/heads/main | 2023-08-25T05:21:06.580841 | 2021-10-22T09:51:51 | 2021-10-22T09:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | import requests
import json
import sys
class DingDing():
def __init__(self, webhook):
self.webhook = webhook
self.session = requests.session()
self.session.headers = {"Content-Type": "application/json;charset=utf-8"}
def Send_Text_Msg(self, Content: str, atMobiles: list = [], isAtAll:... | [
"1158088593@qq.com"
] | 1158088593@qq.com |
4c3030f5d4697beb63a898d1ee62f7ff8397b92f | e465c24fe70b452b69db2c25cbedbeebcc321b34 | /weather.py | fac31c8c3543c9bcc9003ac4633282784ad6ffa9 | [] | no_license | AlanCunningham/hotword | f41de1a7d14c8bd7bceea49208bbd436f8b64d73 | 378c31fb3792a33c046953a0c496e935a36b35fa | refs/heads/master | 2021-05-13T18:59:42.720856 | 2018-01-11T10:33:15 | 2018-01-11T10:33:15 | 116,881,494 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | # Author: Alan Cunningham
# Date 30/05/2016
import requests
import json
from datetime import datetime
import ConfigParser
import random
class Weather:
result = None
def __init__(self):
config = ConfigParser.ConfigParser()
config.read('config.py')
url = "https://api.forecast.io/foreca... | [
"ajc.alan@gmail.com"
] | ajc.alan@gmail.com |
9c11bf4f7f82aacb8ba9c9855c32046c60713937 | bb05463f5a3595d0b3c5bde69a0db6bd8568c238 | /MovieBackground/MovieBackgrounds/admin.py | ec1f7ce603c88b6445cf688680676a9e8ada466f | [] | no_license | Jz52710/movies | 08b8dabfacd807aec1f07638c99b2f67e5944383 | a099a4336503bea93c0f269d7278595084c0eeb2 | refs/heads/master | 2023-01-10T10:41:08.035473 | 2020-03-08T03:56:43 | 2020-03-08T03:56:43 | 222,342,385 | 0 | 0 | null | 2023-01-05T01:06:15 | 2019-11-18T01:55:09 | Vue | UTF-8 | Python | false | false | 800 | py | from django.contrib import admin
from .models import UserAdmin,MovieInformation,MovieTop,MovieCollection
# Register your models here.
admin.site.site_title="爱电影后台"
admin.site.site_header="爱电影后台管理"
admin.site.index_title="欢迎登陆"
@admin.register(UserAdmin)
class User(admin.ModelAdmin):
list_display =('id','username',... | [
"864278318@qq.com"
] | 864278318@qq.com |
4a4f00b6246f6d1d9b4c2c40a515f494e23e5d1f | 6448c040f56d443673e25068a09ff904df8cb37a | /digital_comms/mobile_network/transmitter_module.py | 4f26e411bb277c982f0ce90ef9e6c91910ef470d | [
"MIT"
] | permissive | tg137/digital_comms | d6604e09dafad8079a9a2d1231b472457a07aef6 | 2b669833ceaa3d6cb28c820859c1ed5d0a5ce691 | refs/heads/master | 2020-05-25T04:46:46.758874 | 2019-05-19T17:04:12 | 2019-05-19T17:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,777 | py | import os, sys, configparser
import csv
import glob
from rtree import index
import fiona
from shapely.geometry import shape, Point, Polygon, MultiPoint, mapping
from shapely.geometry.polygon import Polygon
from shapely.wkt import loads
from shapely.prepared import prep
import numpy as np
from pyproj import Proj, trans... | [
"edward.oughton@gmail.com"
] | edward.oughton@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.