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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
572ff29a8782cfb2fb8a2b8c8d1fdae80b6b8d8d | 8e65928ef06e0c3392d9fa59b7b716f941e933c3 | /python/codesignal/intro/level-5/array-maximal-adjacent-difference/solution.py | 50ac92a194ed3e07bf209cd25e858a442ded8bb9 | [] | no_license | KoryHunter37/code-mastery | 0c79aed687347bfd54b4d17fc28dc110212c6dd1 | 6610261f7354d35bde2411da8a2f4b9dfc238dea | refs/heads/master | 2022-02-24T10:34:03.074957 | 2019-09-21T19:24:57 | 2019-09-21T19:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # https://app.codesignal.com/arcade/intro/level-5/EEJxjQ7oo7C5wAGjE
def arrayMaximalAdjacentDifference(inputArray):
return max([abs(inputArray[i] - inputArray[i+1]) for i in range(len(inputArray[:-1]))]) | [
"koryhunter@gatech.edu"
] | koryhunter@gatech.edu |
ae0b7df53754ddbf11bf7fbb8ee38d252313eaa5 | 4508fc5a0d993aa566a6930208a8a627ab05f9af | /new.py | c976c7bb6c1de9fab9eaf5ddc230edebf90b030c | [] | no_license | SohamDas15/BinaryTree | 9412134572a443faf4368b52513c4af55674d11b | b3b85fff3766b6c3d89c14257a454bdc544808fa | refs/heads/main | 2023-04-21T06:09:23.561788 | 2021-05-02T19:35:37 | 2021-05-02T19:35:37 | 362,226,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | class BinarySearchTree:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def add_child(self, data):
if self.data == data:
return "This Node Already exists"
if data < self.data:
if self.left:
self.l... | [
"apple@Sanjivs-iMac.local"
] | apple@Sanjivs-iMac.local |
df164d74901848e37d71dea406cbc3daa0480073 | 43591c0f6233acde6dc7115ac6a62b6679096137 | /field_mapping (material_single).py | 5b98b412bd49a175393451a4b3ea244d14429c27 | [] | no_license | angelalali/nlp-fuzzy-matching-customized | acb149b60f84abf77460e2c65dffb7ab2c6398af | e3b6c5b416ecb8acbbf640d8a1923baa4ae1422e | refs/heads/master | 2020-06-10T14:10:37.481646 | 2016-12-14T20:38:36 | 2016-12-14T20:38:36 | 75,950,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,779 | py | import nlp_field_mapping as nfm
import os
import pandas as pd
from collections import Counter
# allows you to count frequency of ALL elements in a list
import re
# allows you to use regex
"""
BASIC FILES/PATHS WHOSE USE IS REPEATED
"""
# -- Replace below path with your correct directory structure
baseDir = "/Users/... | [
"yisilala@Yisis-MacBook-Pro-2.local"
] | yisilala@Yisis-MacBook-Pro-2.local |
68233064a568d7d69b79c5a3ee149570baac6fa4 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /uhd_restpy/testplatform/sessions/ixnetwork/statistics/view/availabletrafficitemfilter/availabletrafficitemfilter.py | c53e07d8ce20b20c48a677778df502ebf596a64d | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 4,103 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
152cb52b00815e33fee64b5ece2306aa210e1b76 | 59b21fa75d7a37f2c63b43d40a0c209a66980a10 | /PythonStack/Fundamentals/multiply.py | 06b506dae634f06bbdf0275e271620b60dacb2d3 | [] | no_license | CodingPanda93/Full_Portfolio | 557d296ee5fb550ac3da4ad7eecd67eeb7cda20e | fb12653caaff97df6e7eae58da9ab313e0616a08 | refs/heads/master | 2021-01-21T09:03:09.017028 | 2017-06-16T02:09:28 | 2017-06-16T02:09:28 | 91,646,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | a = [2, 4, 10, 16]
def multiply(arr):
for i in range(len(arr)):
arr[i] = arr[i] * 5
return arr
b = multiply(a)
print b
| [
"faeproduction@gmail.com"
] | faeproduction@gmail.com |
b05b2b81c1a122f4fa267592e18198728237f4b0 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_18141.py | 5f4f043838de7ddd6ede8032c97ca3df3d431911 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # How to get Chrome's active_tab's url by calling Python's app script?
url = appscript.app("Google Chrome").windows[1].get.tabs[dt.windows[1].get.active_tab_index.get].get.URL.get
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
226dae334c824eabd9f86997248540c19c274caf | 480ba90ae43f6ef5072f163fe195f83408cc8842 | /Scripts/other_scripts/zlib-9.py | 7a041573b84eea6a602bc30f2c2ae103a163fa8e | [] | no_license | raystyle/Myporjects | 04478480700f54038b34edb0f6daeec31078b1a5 | 1892b74fb390c6c61a77d86cc781ee64f512f0b0 | refs/heads/master | 2021-05-21T08:07:31.743139 | 2020-04-02T13:05:25 | 2020-04-02T13:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #!/usr/sbin/python
import zlib
import sys
def compress(infile, dst, level=9):
infile = open(infile, 'rb')
dst = open(dst, 'wb')
compress = zlib.compressobj(level)
data = infile.read(1024)
while data:
dst.write(compress.compress(data))
data = infile.read(1024)
dst.write(compress... | [
"cui6522123@gmail.com"
] | cui6522123@gmail.com |
8851ecbb3139dd59dea488ca8be39d8f23352f32 | ddb18664a893c29508c34eef8f33590426fd733c | /main/models.py | 3a3cd2f85e16fcb3d0c96237ac4f9de1d7e0e114 | [] | no_license | shahed-swe/movie_rating_api | 8a914a9eec2b04c032a9d2d0719da5e142e6d1c5 | 16af91814b0b3bf4df64dfeee7f6886fa554100f | refs/heads/master | 2022-12-27T04:00:56.721275 | 2020-10-13T07:47:45 | 2020-10-13T07:47:45 | 301,753,593 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.validators import MaxValueValidator,MinValueValidator
# Create your models here.
class Movie(models.Model):
movie_name = models.CharField(max_length=120, blank=True, null=True)
description = models.CharField(max_length=50... | [
"shahedtalukder51@gmail.com"
] | shahedtalukder51@gmail.com |
986c06f15951fbe9a5b6b10eda8c938648f4e3bf | db14241eca00e2bcbf03924106c377ccb2b2aec8 | /symphony/cli/pyinventory/graphql/equipment_port_type_query.py | 35872e60c762769a919c561f7a5b80c6f86d2541 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bdryja/magma | 24a893abaf65284b9ce721455d70564b2447b547 | 7d8e019a082b88f63d22313abffdb98257160c99 | refs/heads/master | 2022-04-19T14:08:14.365184 | 2020-03-26T15:59:44 | 2020-03-26T16:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from gql.gql.datetime_utils import DATETIME_FIELD
from gql.gql.graphql_client import GraphqlClient
from functools import partial
from numbers import Number
from typing import Any, Call... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
978859350088c5a542cff583706ed1a713b7e036 | 612b70fbf04fbf296670b22abc58cc52c99a3baa | /bot/utils/exceptions.py | 2b1c1b311962b835f546b863855524cad8f21538 | [
"MIT"
] | permissive | SuperMaZingCoder/sir-lancebot | d76f355752985e99bb26c3793251aec3a08e850f | 9441c7284e4230b96ce0cd79e6fa86f457530f3c | refs/heads/master | 2023-03-03T18:13:00.259521 | 2021-02-09T11:26:02 | 2021-02-09T11:26:02 | 338,086,612 | 0 | 1 | MIT | 2021-02-11T16:37:05 | 2021-02-11T16:37:04 | null | UTF-8 | Python | false | false | 123 | py | class UserNotPlayingError(Exception):
"""Will raised when user try to use game commands when not playing."""
pass
| [
"45097959+ks129@users.noreply.github.com"
] | 45097959+ks129@users.noreply.github.com |
39513353635969f39e6379e99594945fad6bde7a | 2de911fe1c7c9b62aab86ba7c10cb7d1e3ce1494 | /dogs/human_touch.py | fb4aa388d65082d14e39c99a395d0ec5aa1b27ea | [] | no_license | CalebNSmith/dogwatch | 6f26684b9c9e073d2ee3f9159aefeee2a7dc95e4 | 76cdce0e6445a25462fa570778e032e8e509c8d5 | refs/heads/master | 2023-06-29T10:05:48.454149 | 2021-08-03T14:05:15 | 2021-08-03T14:05:15 | 377,236,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,882 | py | # human_touch.py
# Usage: python human_touch.py <owner> <number> <label>
# Example: python human_touch.py dan 1000 sitting
# ^ will run until 1000 predictions
import glob
import numpy as np
import os
import sys
import shutil
import threading
import math
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # !{ERROR,WARNING,INFO}... | [
"cns5za@virginia.edu"
] | cns5za@virginia.edu |
56bcdd18652fd77b7d4322e3fc8536fb5d32465d | 5276c7497565cbacc94d92d537458ba7a153c523 | /telescope_control/examples/threading_example.py | 947844ddf635e90ee387b5e04c0a071386ba6501 | [] | no_license | Shulin00/GreenPol | 28aada837a4e8aef062f8b49918bcd3f390db813 | 91fe77ec11f98892709097a47b4900432b89bfa6 | refs/heads/master | 2020-04-05T12:10:03.919691 | 2017-08-10T21:50:56 | 2017-08-10T21:50:56 | 95,250,198 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import threading
import time
class ThreadingExample(object):
""" Threading example class
The run() method will be started and it will run in the background
until the application exits.
"""
def __init__(self, interval=1):
""" Constructor
:type interval: int
:pa... | [
"noreply@github.com"
] | Shulin00.noreply@github.com |
754e8c61aacf14e1240e4d11b69c1b889154487e | e4a3e247ab03a5118b55ff71583ca8a33ca1d035 | /domainer/cli.py | f96914aa23476f52b6e3c002a0ddec091dad068d | [
"MIT"
] | permissive | dutradda/domainer | 26acfa8ca684858ee78126246e2ea61edef837cc | 19cc5adf6eabd1a40c503a16a547d5c128e62efe | refs/heads/master | 2021-09-19T05:10:15.169843 | 2018-07-23T14:18:35 | 2018-07-23T14:33:05 | 119,593,943 | 4 | 0 | MIT | 2018-03-08T17:31:45 | 2018-01-30T21:01:59 | Python | UTF-8 | Python | false | false | 23 | py |
def main():
pass
| [
"dutradda@gmail.com"
] | dutradda@gmail.com |
fe248b21545a38b3e47ad2dbdca63c63cc74d7b9 | 50ff2acde1a9a9389491566dc8a7eff17e192d72 | /SHGO-单纯同源全局优化Simplicial Homology Global Optimization/shgo.py | 13bc868a7917db0815fa4bfa03742aced301f5e3 | [] | no_license | PythonLinzi/My-Alrorithm-Library | b1b38c3c07e17ff954a4b7677b1142caf60c781d | 9b89bbcd30b25e9b634595998efdad36c2c4ff0c | refs/heads/master | 2020-05-18T11:42:48.540363 | 2019-10-17T08:11:03 | 2019-10-17T08:11:03 | 184,386,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from scipy.optimize import shgo
f = lambda x: x[0] ** 2 + x[1] ** 2 + x[2] ** 2 + 8
# constrains >= 0
cons = (
{'type': 'ineq', 'fun': lambda x: x[0] ** 2 - x[1] + x[2] ** 2},
{'type': 'ineq', 'fun': lambda x: -x[0] - x[1] ** 2 - x[2] ** 2 + 20},
{'type': 'eq', 'fun': lambda x: x[0] + x[1] ** 2 - 2},
{... | [
"noreply@github.com"
] | PythonLinzi.noreply@github.com |
ed83f457724d36148ebe01abdca8dc2b98797cd0 | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/667. Beautiful Arrangement II/Solution.py | c6411d49a5b2ef4e8a135c3ba40b4f78fcad7658 | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | class Solution:
def constructArray(self, n: int, k: int) -> List[int]:
# Time and Space Complexity: O(N)
ret = [1]
used = set([1])
for i in range(k):
diff = k - i
if i % 2 == 0:
ret.append(ret[-1] + diff)
else:
ret... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
4d99f633afc77b507748cf4ff0d949a8cd90428e | fdcb3e363bc4d81ebe6bd0cf10b08572abacd429 | /fixed_vision/visionPlan.py | d6e66219ed9680d30619aa366023a6a98e0909e7 | [] | no_license | hymanc/purpleproject1 | 501ae8948772987189907356e62e135e7d5e1fca | e77b9bf5b9fde453fc41d9a80b7cb1886d7ec846 | refs/heads/master | 2021-01-23T15:15:32.952845 | 2014-11-03T22:14:42 | 2014-11-03T22:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | from vision import *
from joy import Plan
import cv2
# Vision system as a ckbot Plan
class VisionPlan( Plan ):
def __init__( self, app, *arg, **kw):
self.cameraIndex = kw['camera']
Plan.__init__(self, app, *arg, **kw ) # Initialize Plan
# Gets the robot vision points
def getState(self):
state = self.v... | [
"hymanc@umich.edu"
] | hymanc@umich.edu |
272c1c3d0ab65c68f2c3c5cd205ba8445a28bdc9 | 1fe4f9eb9b1d756ad17e1ff6585e8ee7af23903c | /saleor/account/migrations/0029_address_location_type.py | b2864e44799addcedd69200a77e450480a5e800c | [
"BSD-3-Clause"
] | permissive | Chaoslecion123/Diver | ab762e7e6c8d235fdb89f6c958488cd9b7667fdf | 8c5c493701422eada49cbf95b0b0add08f1ea561 | refs/heads/master | 2022-02-23T10:43:03.946299 | 2019-10-19T23:39:47 | 2019-10-19T23:39:47 | 216,283,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 2.2.2 on 2019-07-11 14:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0028_newslettersubscription'),
]
operations = [
migrations.AddField(
model_name='address',
name='location... | [
"chaoslecion71@gmail.com"
] | chaoslecion71@gmail.com |
27b4c47517149c32c7a25bc573e58437a8a24be9 | a1b054f28bea2a8f8354d23ec888c7460217397a | /xadmin/models.py | bbbbc48d1e00dc9cfa07d9307812f3f07b0c898c | [
"BSD-3-Clause"
] | permissive | wgbbiao/xadmin | 1da8b123f56913f14b9b0208328e33aa09e9d3eb | eac628712fd83f61676a19d371d497a151256368 | refs/heads/master | 2022-09-30T03:58:44.048937 | 2022-09-28T09:17:07 | 2022-09-28T09:17:07 | 223,844,903 | 0 | 0 | BSD-3-Clause | 2022-09-24T08:59:42 | 2019-11-25T02:19:50 | Python | UTF-8 | Python | false | false | 6,538 | py | import json
import django
from django.db import models
from django.utils import timezone
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.utils.translation import gettext_lazy as _, ngettext_lazy as ugettext
from django.urls.base import reverse
from django.core.ser... | [
"wgb237@163.com"
] | wgb237@163.com |
45a63d97c07645c6c27240f079b0e3c1d8e6a71d | 5ff967a04a9de8d62b398857e1d4abae4053a220 | /extract_url_hash.py | 7800443731ced7cd847c1a6bce20a78cdfb9bb66 | [] | no_license | Suma24/cs5540 | 351dee69c4e300bf44ccc6b274e4bbb2ec3f2b12 | 935c07a18ec94b67ebff63161c3e71a08229c8a1 | refs/heads/master | 2022-11-28T04:11:05.912497 | 2020-07-30T02:41:22 | 2020-07-30T02:41:22 | 280,541,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import codecs
import json
import sys
def parse_json_tweet(line):
tweet = json.loads(line)
htags = [hashtag['text'] for hashtag in tweet['entities']['hashtags']]
urls = [url['expanded_url'] for url in tweet['entities']['urls']]
return [htags, urls]
if __name__ == "__main__":
file_timeordered_... | [
"noreply@github.com"
] | Suma24.noreply@github.com |
40436a13da81c7780c2bef998a4a8d24dbcdd81a | f0204db32eb17a0871705252ba3d341400b5433b | /code/corpus/corpus.py | fd5d4d8a2328b7d87976e72154aae040356bbe9b | [] | no_license | xkandj/nlp-textclassify-qa | 916cf0854ad50f35dff6ff52211eb5f0d91568f7 | 4340c559472ebbb7c4e34d4343490685138f722b | refs/heads/main | 2023-02-06T06:42:48.281760 | 2020-12-23T02:56:44 | 2020-12-23T02:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import pandas as pd
from configs.config import Config
default_config = Config.yaml_config()
def load_data():
# take special columns
usecols = [0, 1, 5, 6]
df_train = pd.read_csv('corpus/tsv/WikiQA-train.tsv', usecols=usecols, sep='\t')
df_eval = pd.read_csv('corpus/tsv/WikiQA-dev.tsv', usecols=usecol... | [
"lliu606@hotmail.com"
] | lliu606@hotmail.com |
b465a5ad1efbf8299181c88aa230f65883ede83b | d8e4f4ac8a584fbc274d71716c8e8e113e9b6385 | /machine_learning/regression/week_2/assertion_utilities.py | 7d834543f75e0a6949d9a1bdcbc2aac1e585ea9c | [] | no_license | necromuralist/coursera_machine_learning | d46062a706c206adf65381b4fd4ed485d53054c4 | d5743815c1581c051f573172a523ed8707d2417f | refs/heads/master | 2021-01-20T20:52:41.710136 | 2016-08-07T22:56:11 | 2016-08-07T22:56:11 | 65,157,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | def assert_almost_equal(first, second, tolerance=.0000001):
"""
assert the difference is within tolerance
:param:
- `first`: first term (float)
- `second`: second term
- `tolerance`: upper bound for the size of the difference
:raise: AssertionError if difference > tolerance
"""
a... | [
"r.nakamura.us@ieee.org"
] | r.nakamura.us@ieee.org |
94733131c611a6e25503cccb613aaa7111a62905 | c51b86da2bf51688facc7851909c03cb837b788f | /samriddho_combined_model (1).py | 5c112821d8e35329ba824428ebba3f1ca63f72c0 | [
"MIT"
] | permissive | ghoshdoesdesign/geriatric_urban_security | 8e1f556e0807bff766085cd2d029fdc6fdb5bb9a | 7dffacb3599a3de0b4c12617e0c39e97662cb158 | refs/heads/main | 2023-07-31T17:35:33.719653 | 2021-09-08T23:13:32 | 2021-09-08T23:13:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,554 | py | # -*- coding: utf-8 -*-
"""Samriddho combined model.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1Ck8tsiqBu9u0ZQGKn7Oxzf1cl_NU84cS
"""
# Commented out IPython magic to ensure Python compatibility.
from google.colab import drive
drive.mount('/... | [
"noreply@github.com"
] | ghoshdoesdesign.noreply@github.com |
f44e4cb3678374de5d7f0de0ab8711aa3905333f | 755a05dbf86eedc8ee02c999bc867e5acf4c94b4 | /dcp_py/day148/day148.py | 4c630347cf5d4ebcafb0fa269fa79039c31208a1 | [
"MIT"
] | permissive | sraaphorst/daily-coding-problem | b667b9dcd5c60756806101905047a50e25fdd51f | 5981e97106376186241f0fad81ee0e3a9b0270b5 | refs/heads/master | 2022-12-11T23:56:43.533967 | 2022-12-04T09:28:53 | 2022-12-04T09:28:53 | 182,330,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | #!/usr/bin/env python3
# day148.py
# By Sebastian Raaphorst, 2019.
from hypothesis import given
from hypothesis import strategies as st
from typing import List, Optional
def gray_code(n: int) -> List[List[int]]:
"""
Recursively generate the Gray code of order n.
:param n: the length of the Gray code
... | [
"srcoding@gmail.com"
] | srcoding@gmail.com |
a5e982c44a13087ef6c41d608030e4c0195fbbaf | e908b83ac372c17904edea421026222c515b768f | /mysite/settings.py | 671d064e9b82f274a67c606c9306cf9d170eb92e | [] | no_license | ndjman7/Vote | 6edf34650cfe6ecb008e397fdea5af5d6d432bd3 | 5b8e8ab2d189b49dae16340ef0ccaef8fa0af627 | refs/heads/master | 2021-01-22T04:28:08.029412 | 2017-07-12T01:13:20 | 2017-07-12T01:13:20 | 92,465,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,344 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"ndjman7@gmail.com"
] | ndjman7@gmail.com |
dea260610f9477db769f30f4966ce3c72440ca65 | f77cbdf03546ac4b8118d20cb9065b9a710da1d6 | /General/Book - Data Structures and Algorithms in Python/ch02 scs/predatory_credit_card.py | f471a8a61d6ae3eee92ca500b516379f2692ae3f | [] | no_license | Behtash-BehinAein/Data-Structures-and-Algorithms- | 116056a1c7b66d9d66697ebe2fe5d6a98fcd9e4f | 5fb9c1543d7d7ed400bfc48427c37331f81b8694 | refs/heads/master | 2020-07-23T18:57:07.089344 | 2019-09-14T19:10:04 | 2019-09-14T19:10:04 | 207,674,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | # Copyright 2013, Michael H. Goldwasser
#
# Developed for use with the book:
#
# Data Structures and Algorithms in Python
# Michael T. Goodrich, Roberto Tamassia, and Michael H. Goldwasser
# John Wiley & Sons, 2013
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of... | [
"noreply@github.com"
] | Behtash-BehinAein.noreply@github.com |
ce51967df0c774921d3d31bc54c6a5d8c1d20458 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/Spell358 - Power Word Stun.py | d0be6b56f3b2dfd5ac09a6a1142aa845d8d50e3f | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | from toee import *
def OnBeginSpellCast( spell ):
print "Power Word Stun OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
game.particles( "sp-enchantment-conjure", spell.caster )
def OnSpellEffect ( spell ):
print "Power Wo... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
6cf710f26f92bbbd7ff2a64b539cc5a48e9f2709 | cdc6a80bf49c0a090f87d1c6d8cce482c1b2ec19 | /hello.py | 53cfe5559b03cdca918ed2044d63f837e09fd6b3 | [] | no_license | jorpramo/RI_TFM | 0b7d7a86e4791f0ac12a6f25cf029c9fb4619766 | 3379cb8d25a1d792b96ce56127aa071335dc9fae | refs/heads/master | 2021-01-15T17:29:18.267033 | 2015-09-07T11:28:10 | 2015-09-07T11:28:10 | 42,049,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return render_template('index_takesi.html')
if __name__ == "__main__":
app.run() | [
"jorpramo@gmail.com"
] | jorpramo@gmail.com |
e3c53d32697f144cd3107a97b18be0167b351eb7 | f6b5928a7ed003a7ae2a792f3d52c274a250df54 | /main.py | 6120ec471b899b5e1e90d7169fbc5f36ee6ec26a | [] | no_license | peterweckend/cmput404_labH05 | 674d20fc859078727ac8f80e197c3c7607612912 | 01f5e21ed5264b8a19a8cc337a02e972a134e3e8 | refs/heads/master | 2020-04-16T00:43:57.871881 | 2019-01-11T00:54:36 | 2019-01-11T00:54:36 | 165,149,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/env python
import requests
print(requests.__version__)
r = requests.get("https://raw.githubusercontent.com/peterweckend/cmput404_labH05/master/main.py")
print(dir(r))
print(r.text)
print(r.status_code)
| [
"pweckend@ualberta.ca"
] | pweckend@ualberta.ca |
7e64b0dae687fba90846a2f2ffd27e9d4e1071a5 | b2c077096074e441f6039d248e71bbd936c45c7a | /backend/garpix_vacancy/models/contact.py | b2a6f55684350ff8aa1d92ebb9f9c8f1cf33b05c | [
"MIT"
] | permissive | 418-th-dev/garpix_vacancy | 9f027b400bd9ad7037ed5a7444481e63281eac4d | 00580965568234d172a8b96ec08f56e0148a9d35 | refs/heads/master | 2023-07-12T04:59:22.383039 | 2021-08-12T08:26:10 | 2021-08-12T08:26:10 | 395,241,651 | 0 | 0 | null | 2021-08-12T08:01:11 | 2021-08-12T08:01:10 | null | UTF-8 | Python | false | false | 712 | py | from django.db import models
from django.conf import settings
from django.utils.module_loading import import_string
ContactMixin = import_string(settings.GARPIX_CONTACT_MIXIN)
class Contact(ContactMixin, models.Model):
address = models.CharField(max_length=300, verbose_name='Адрес', blank=True)
phone = model... | [
"belindima37@gmail.com"
] | belindima37@gmail.com |
adb751fb1703aa6f71b404d0739d6f095c71ce71 | 4a58dda1fc3ff73595d4db7bb53f8bc764ccd15d | /pytorch_keras_converter/utility/t2k_equivalents/cadene/FBResNet.py | 3a4dbee9b833ad7d5e362ce5917149ac14c64637 | [
"MIT"
] | permissive | sonibla/pytorch_keras_converter | cc1da65ecf380768fda23b8ad303fe6649949da3 | f0233771f69862fc69d11f40da81de89008ad8d7 | refs/heads/master | 2022-10-13T20:30:21.286666 | 2022-09-30T13:40:49 | 2022-09-30T13:40:49 | 199,854,882 | 18 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,148 | py | try:
import tensorflow.keras as keras
except ImportError:
try:
import keras
except ImportError:
keras = None
try:
import torch
except ImportError:
torch = None
from ... import torch2keras as t2k
def spreadSignal(model):
def Output(child):
if isinstance(child, str) and... | [
"noreply@github.com"
] | sonibla.noreply@github.com |
e0463e9fef58db0226fb4a413485d7c105ff3e7c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/cms/lib/xblock/tagging/tagging.py | db744054966f48737bdc5ed2375ea267403660e8 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 4,606 | py | """
Structured Tagging based on XBlockAsides
"""
from django.conf import settings
from web_fragments.fragment import Fragment
from webob import Response
from xblock.core import XBlock, XBlockAside
from xblock.fields import Dict, Scope
from common.djangoapps.edxmako.shortcuts import render_to_string
from xmodule.capa_m... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
df881a16300d123755b4a5c90270ae93bee90412 | e8135102c7dfe9b275a993f9841419258ec4b9f3 | /realsense_ros2/launch/realsense_launch.py | 042dd476c921c1b14523ee09f3b293f22fcb7471 | [
"MIT"
] | permissive | jdgalviss/realsense_ros2 | b6051e1806963fd69bd287ac65489982adefa992 | 1c468fade434067f60d9782cbf92fd98868475f6 | refs/heads/main | 2023-07-27T02:52:48.053078 | 2021-08-30T18:45:02 | 2021-08-30T18:45:02 | 311,131,763 | 17 | 1 | MIT | 2021-02-09T19:20:54 | 2020-11-08T18:50:58 | C++ | UTF-8 | Python | false | false | 2,196 | py | import launch
import launch.actions
import launch.substitutions
import launch_ros.actions
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package='realsense_ros2',
node_executable='rs_t265_... | [
"jdgalviss@gmail.com"
] | jdgalviss@gmail.com |
46d269cb9e1c0a53b188e1f58d9c176f20d7db0c | ea7867286c546d3ec50489192c51c3c2996f2167 | /sep0/6.py | 248a1ba40255926edbf1a3c47a1303c9c16a0272 | [] | no_license | PavleMatijasevic/ProgramskeParadigme | bc28a091017a7bc817bb9db75c2ceaabfa5a33b9 | 36bfd1b33a9c3ec24fc89494dc8bfc26b546e959 | refs/heads/main | 2023-07-09T01:44:33.299096 | 2021-08-18T22:02:41 | 2021-08-18T22:02:41 | 342,857,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import constraint
problem = constraint.Problem()
problem.addVariable("b",range())
problem.addVariable("c",range())
problem.addVariable("d",range())
problem.addVariable("m",range())
problem.addVariable("s",range())
problem.addVariable("z",range())
def novac_constr(b,c,d,m,s,z):
if b*130 + c*800 + d*150 + m*370 ... | [
"matijasevic.pavle99@gmail.com"
] | matijasevic.pavle99@gmail.com |
ffebb25ed8fb0719353204209fa170e5d407ac93 | 85d39ff531cf3f20207aa0d2a7cf13e04d91a273 | /lim_code/util/print_features.py | 1b2329020f79d352b2b1992d8c958002cb5e6c56 | [] | no_license | lim-fl/lim-python | 31f9e27a767b4ceeeacde49a4e95d2d9e2d0596e | d66f0b109febdaed10c742ec654dd63c03f07619 | refs/heads/master | 2023-04-20T12:54:33.635604 | 2021-05-06T13:40:11 | 2021-05-06T13:40:11 | 342,523,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,223 | py | import pandas as pd
from sklearn import feature_selection
from multiprocessing import Pool
from pathlib import Path
from collections import defaultdict
import itertools
import pickle
from androguard.core.bytecodes.apk import APK
from lim_code.lim_logger import logger
from lim_code.dataset_generate.malware_data import ... | [
"rafa@esat.kuleuven.be"
] | rafa@esat.kuleuven.be |
96932287377a846a842f7a4b56b76efcda261f86 | 1ef54fff852f5df8f9b95221ab5753b6674c275b | /restProject/wsgi.py | 87c1b1aaf95c900da9edc83d5ae8e38541a6f011 | [] | no_license | visor517/GB_DRF | 44aa8a7fc3c3b5d04332295dcb82a7caecd61c61 | 77b3255f0990d489a8435bf4048e4302fa52da76 | refs/heads/master | 2023-08-02T12:45:28.492344 | 2021-10-03T21:35:33 | 2021-10-03T21:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for restProject 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"visor517@yandex.com"
] | visor517@yandex.com |
abe527d83c9be5bee7a2a0dc8c995a4d234758ff | d0e100336b6069efff13e6c1f53b36d97ed7499f | /youtube_dl/extractor/bambuser.py | f3b36f4733021e05fb8c3db5bf3d218cb2e59536 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | genba/youtube-dl | 14da4dcd6e62169e34a3583944f4d5f2e7b6f8f6 | c66d2baa9cb33327a3318f49cbb89f9ac559c978 | refs/heads/master | 2020-02-04T19:15:56.353773 | 2013-11-14T12:16:32 | 2013-11-14T12:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | import re
import json
import itertools
from .common import InfoExtractor
from ..utils import (
compat_urllib_request,
)
class BambuserIE(InfoExtractor):
IE_NAME = u'bambuser'
_VALID_URL = r'https?://bambuser\.com/v/(?P<id>\d+)'
_API_KEY = '005f64509e19a868399060af746a00aa'
_TEST = {
u'ur... | [
"jaime.marquinez.ferrandiz@gmail.com"
] | jaime.marquinez.ferrandiz@gmail.com |
06fe7fecf47693664b9538f6b66ec09c58753aec | 87d86b88b5ec4b2d3583e63e8c5d0990a5fe47e5 | /loop.py | 8ee8449fe652239c58f1d915dbc02cc3b995618f | [] | no_license | SharathKumar2036/Python-Basic-Programs | c26c77d09e7dd018cc21f2dfc1c8c2663ddd854b | 1266d60844889a695b7c4cafbe68b769792c26eb | refs/heads/main | 2023-06-18T10:26:41.576216 | 2021-07-16T15:17:06 | 2021-07-16T15:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import random#printing random person name in a list using loop
people=[]
x=0
while(x<8):
person =raw_input("Enter a name:")
people.append(person)
x += 1
index = random.randint(0,7)
random_person = people[index]
print(random_person)
| [
"noreply@github.com"
] | SharathKumar2036.noreply@github.com |
b656290548d561c1585b432a92cf569dcaa4ad71 | a60974d6e33ccce94c1218fe2db3e84592f980ea | /useragents.py | 0cc5f9294668f0d7f281d2fc45662036636d710e | [] | no_license | theg3ntlem4n/sbot | dd8bdbaa4468693cbc1cd7ac1ee6f95a9e850d6a | 11154a593634aa0aead94fa92ff39e7d8d6f4693 | refs/heads/master | 2023-02-03T17:36:29.289377 | 2020-12-20T01:11:38 | 2020-12-20T01:11:38 | 302,535,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | useragents = [
'Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36',
'Mozilla/5.0 (Linux; Android 7.0; SM-G892A Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.107 Mobile Safari/537.36',
... | [
"ar3x.k1m@gmail.com"
] | ar3x.k1m@gmail.com |
eab9d3e369a60f739c2103a285f2d038e0799e75 | 0887322a8372f3aef4e42568f5b38424e9b995ee | /problem3.py | ca57160fac5340b81cceac67f885d2956061c237 | [] | no_license | kjmj/page-rank | f44714f7205debb9e624772f8cda2c064f3e3b52 | b4fc0f86c9651a5dbcb1a8b66f5fa685423e868d | refs/heads/master | 2020-05-15T20:36:56.043709 | 2019-09-22T16:12:27 | 2019-09-22T16:12:27 | 182,485,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | import numpy as np
from problem2 import compute_P,random_walk
#-------------------------------------------------------------------------
'''
Problem 3: Solving sink-node problem in PageRank
In this problem, we implement the pagerank algorithm which can solve the sink node problem.
You could test the correc... | [
"kmorton15@gmail.com"
] | kmorton15@gmail.com |
4aff197c44a65dbff0b50a9d24af19cc201132ba | 0bc777a57e39c466a9482af9a6eda698ab3c1437 | /HeavyIonsAnalysis/JetAnalysis/python/jets/ak4CaloJetSequence_pp_mc_cff.py | 3d3470d0177bf83434bd37e75dcd6fbc44571d7f | [] | no_license | stahlleiton/cmssw | 3c78d80b9372fdf2a37f424372504b23c9dc4f78 | fcfda663dc8c315b505eb6bcc7e936401c01c4d1 | refs/heads/EWQAnalysis2017_8030 | 2023-08-23T13:50:40.837198 | 2017-11-09T17:45:31 | 2017-11-09T17:45:31 | 45,795,305 | 0 | 3 | null | 2021-04-30T07:36:28 | 2015-11-08T19:28:54 | C++ | UTF-8 | Python | false | false | 14,633 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"marta.verweij@cern.ch"
] | marta.verweij@cern.ch |
e23ad6c7ccd3b670c1308bfac20a0c39ef516292 | cfe18377cf7823658f38a9ffd832a2026004fc98 | /swav/vissl/vissl/losses/swav_momentum_loss.py | f6a312a85ac71564fdf6fd3e27f16c19109f14d0 | [
"CC-BY-NC-4.0",
"Apache-2.0"
] | permissive | yhn112/DeDLOC | ec26d28a0bfcdb4fc33db730e87f669adc8568ee | 0dc65b6eed8b3f842303fe00601335b3b9e2d7c5 | refs/heads/main | 2023-07-14T06:04:03.676662 | 2021-07-15T11:10:32 | 2021-07-15T11:10:32 | 379,111,549 | 0 | 0 | Apache-2.0 | 2021-06-22T01:50:47 | 2021-06-22T01:50:46 | null | UTF-8 | Python | false | false | 8,821 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import logging
import math
import pprint
import numpy as np
import torch
from classy_vision.generic.distributed_util import (
all_reduce_sum,
get_cuda_device_index,
get_world_size,
is_distributed_training_run,
)
from classy_vision.... | [
"mryabinin0@gmail.com"
] | mryabinin0@gmail.com |
d4df9bef24508e26e540cf3d871327fd096b27a4 | 22bf772978d5c669006b249d8fcb5a01cee52f23 | /python/sorting/merge_sort_counting_inversions/merge_sort_counting_inversions.py | 0f7d866d379cbc482d28b7e155861400b5e13551 | [] | no_license | arefrazavi/rf_problem_solving | 1d5d049d797629820b22c8980448c0491848733b | 3c62e19f9036ae993f7b1adb2af49a1d71ce66ad | refs/heads/master | 2023-02-27T11:23:50.636324 | 2021-01-17T06:50:42 | 2021-01-17T06:50:42 | 312,188,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # https://www.hackerrank.com/challenges/ctci-merge-sort/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=sorting
# !/bin/python3
import math
import os
import random
import re
import sys
def merge_and_count_inversion(arr1, arr2):
i = 0
j = 0
arr1_len = len(arr1)
... | [
"aref@trip.me"
] | aref@trip.me |
c3a1876850617d72981face7e2d48a756f380120 | 0c5e2a643c34d7732159b22a76808bfa8b9f4169 | /hw3/Q3/q3-starter.py | e5b82e9940ff4989385f7c99d8c702edd36066fc | [] | no_license | cpgaffney1/cs224w | 51d040ebeffe8e645bb4f1c3b7f15b25d1781417 | 67443f8f7f955d84711d8ed5cc9b45e77e0fbecf | refs/heads/master | 2020-03-30T06:42:59.746401 | 2018-11-24T16:49:00 | 2018-11-24T16:49:00 | 150,883,744 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,621 | py | ###############################################################################
# CS 224W (Fall 2018) - HW2
# Starter code for Problem 3
###############################################################################
import snap
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np... | [
"cgaffney@myth60.stanford.edu"
] | cgaffney@myth60.stanford.edu |
f3b6af6ee4ec875eb68acda35acff5e5fe247b2b | b5c220fdc79864004fc6b0868156c480355cf6cd | /bugtracker2/tickets/views.py | c82ed8f4016bcb0b5512a71dc7aafcdfa70b2ac2 | [] | no_license | mander5/BugTracker | 82ed20e046cdc73497c39d4dee73816288cd86a3 | 183ee19a4693164ddb7cd628b57d585e36af02b2 | refs/heads/master | 2022-08-16T01:53:23.439920 | 2020-06-02T16:23:45 | 2020-06-02T16:23:45 | 267,913,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.urls import reverse, reverse_lazy
from django.http import Http404
from django.views import generic
from braces.views import SelectRelatedMixin
# Create your views here.
from . import models
fro... | [
"64420595+mander5@users.noreply.github.com"
] | 64420595+mander5@users.noreply.github.com |
03f2004bb178933728e66f7c0e8cc9888da11591 | a82b0755be62e6c0ace3c9524e88a6f772b7d8ed | /docs/source/conf.py | 4a304258ad5e2abad9779a5bdda372aa2677138e | [
"MIT"
] | permissive | nd1511/decompose | 5241e3690631888da138633ba844b65270db522c | b6ad3e3d1a2d049f1853cdc309ad042293415ad1 | refs/heads/master | 2020-04-02T10:44:30.323471 | 2018-08-02T08:29:47 | 2018-08-02T08:29:47 | 154,352,539 | 1 | 0 | null | 2018-10-23T15:28:38 | 2018-10-23T15:28:37 | null | UTF-8 | Python | false | false | 5,515 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"alexander.boettcher@bethgelab.org"
] | alexander.boettcher@bethgelab.org |
82f343b0d37cd630fa5cc0a1359e7f7204126ad8 | 493b3285e137ff1a686bd3fef3c20e4184c710c7 | /todo_drf/settings.py | 66ea2e594e408aac388d0cf485d120223d4989b6 | [] | no_license | bishwash369/todo_app_rest_api | 8d84140e5ccc231e37d7c4ea9d86c75b8b7e6323 | 559eed55f892ac1a35c451e19e665dabf18f8b17 | refs/heads/master | 2022-12-03T16:56:02.594534 | 2020-08-18T17:34:42 | 2020-08-18T17:34:42 | 288,520,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | """
Django settings for todo_drf project.
Generated by 'django-admin startproject' using Django 3.0.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"bishwashparajuli10@gmail.com"
] | bishwashparajuli10@gmail.com |
1964d23ae56d078f0a52358a7967da8b93b080e3 | 70695216fe43d8e035f59e3529f2b6b2f1cb57db | /openpilot-0.8.8-devel-honda/selfdrive/controls/lib/drive_helpers.py | 74db5c2cbab08eda669426ccfef367227ee1f5be | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | briantran33/openpilot-2 | 23ef5178985885c23ecf3e746d56961c1ae8649c | f787e21925b2703a1d1b5163380aea2c1b3faa75 | refs/heads/master | 2023-07-05T16:48:10.027880 | 2021-08-27T10:21:55 | 2021-08-27T10:21:55 | 436,485,381 | 0 | 0 | MIT | 2021-12-09T04:46:13 | 2021-12-09T04:46:12 | null | UTF-8 | Python | false | false | 3,668 | py | from cereal import car
from common.numpy_fast import clip, interp
from common.realtime import DT_MDL
from selfdrive.config import Conversions as CV
from selfdrive.modeld.constants import T_IDXS
# kph
V_CRUISE_MAX = 135
V_CRUISE_MIN = 5
V_CRUISE_DELTA = 5
V_CRUISE_ENABLE_MIN = 40
LAT_MPC_N = 16
LON_MPC_N = 32
CONTROL_... | [
"briantran0302@gmail.com"
] | briantran0302@gmail.com |
4a59cda200aca653e282eee72af0b8e2c479e10a | 2e48eefc8855d9d68978579b3e106f66436449ec | /swordfish_launcher/launcher/instance.py | 5c88273555a10c1e0dd3ea710a26a7c0f9ab8492 | [] | no_license | wallefan/minefish | 9456da6f06c9ef18f5328e1a9989073e15283459 | 099978de6e093f453b6edaff3e24a60627c8de58 | refs/heads/master | 2023-09-03T19:28:33.087371 | 2021-10-27T03:21:49 | 2021-10-27T03:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | import pathlib
import json
import subprocess
class Instance:
def __init__(self, diskpath:pathlib.Path):
if not diskpath.exists():
diskpath.mkdir()
assert diskpath.is_dir()
self.diskpath = diskpath
self.json_file = diskpath/'multimc.json'
if self.json_file.exists(... | [
"saworley39@yahoo.com"
] | saworley39@yahoo.com |
32bcbd32602739b85a9a04d5f6911a192275c212 | 504f47c6421cb691e7b2381d46f2ed079bb1f6b4 | /car/settings/base.py | 5bfce26f73797ad0e1f5bf81afc6d23950171218 | [] | no_license | kremerNK/cardealership | 3e4dd10b338f9c5fd22351213b347216ac27d99b | e3c409187fc9e2acb6d61c215c38655d06922f5d | refs/heads/master | 2022-05-31T21:24:45.065635 | 2020-04-28T18:37:22 | 2020-04-28T18:37:22 | 248,649,838 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,217 | py | """
Django settings for car project......
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
# Build pat... | [
"easton08@protonmail.com"
] | easton08@protonmail.com |
e52a58221e4b4abe3aa967cf65e1172049794278 | 8e4b64d587d779248d5c25e6064060091995ab68 | /FindRegExInFile/view.py | e77a753ae2c251ee55828a359e5c4b12e53cb87c | [] | no_license | leonia-bit/RedHat | 82b6242cdb7a359e4c639cdb989eea4d9327c4f8 | 2e976a4ea2a5117168b4a0127ee538fa96c11493 | refs/heads/master | 2020-11-28T11:52:42.730600 | 2019-12-29T11:17:59 | 2019-12-29T11:17:59 | 229,805,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,339 | py | """File name: view.py
Description: present Model View Controller Pattern: view part
View represents the client, which interact with the end user.
Module functions:
Description: this code represents the model’s data to user.
"""
from formatprint import *
# tuple holders defines
LINE_NUMBER... | [
"leonia.klebanov@gmail.com"
] | leonia.klebanov@gmail.com |
ae06126ea085b7cdbfc61dece37f19d181c23daa | 49701b6719f8d6663dd63aa83a71ec23a6c6a4e1 | /reference/Even_odd_recursive.py | 3997064a173695bfbd4bb01f4715e99273b630bb | [] | no_license | ashwini-cm-au9/DS-and-Algo-with-Python | 6bb9c729f4e9e6900e41f2e9a85595c85aff0a79 | 2a55b63cb755c7ab25e76107b5031ce51e384abd | refs/heads/master | 2022-12-29T02:23:50.727684 | 2020-10-13T17:06:14 | 2020-10-13T17:06:14 | 289,513,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | #python-program-determine-even-odd-recursively
def solve(num):
if num-2==0:
return True
else:
return False
return solve(num-2)
if(solve(int(input()))==True):
print("even")
else:
print("odd")
| [
"ashwinichuri93@gamil.com"
] | ashwinichuri93@gamil.com |
323399468e121db6088ab3c5c5426548aed610cc | d81b2459b3495741bdca586cf6dd91fd09f91d5c | /inventory_management/inventory_management/asgi.py | 8b56ef4806ba763e321a7f041fc5a0317bb880f0 | [
"BSD-2-Clause"
] | permissive | AxiosDeminence/InventoryDB | 3025318fb4b8b5265887ddd5f35e48067d1ec33b | d0680692091d7bf6226a1cf4f8c293a212e9131b | refs/heads/main | 2023-04-29T15:39:24.933283 | 2021-05-18T17:20:33 | 2021-05-18T17:20:33 | 312,047,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | """
ASGI config for inventory_management project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault(... | [
"juhmer@att.net"
] | juhmer@att.net |
6fec8e66ce7ddf8bd9eb0f5a5b77d364836c201c | a427d06cf7d3f3ba800c67a7fbbb5cfa18228277 | /code/delaunay_triangulation.py | 47271b7b7516ad4dcfed59b0b9649bc74ab447cc | [] | no_license | provostm/face-morphing-multiple-images | 2c28ffb9be67754bd81eb8892c994f2573bb59d4 | c27b75955070fc0cf7180155caec1f8d89466eff | refs/heads/main | 2023-04-29T17:45:14.051586 | 2021-05-14T08:19:35 | 2021-05-14T08:19:35 | 364,964,229 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import cv2
import numpy as np
import random
# Check if a point is inside a rectangle
def rect_contains(rect, point):
if point[0] < rect[0]:
return False
elif point[1] < rect[1]:
return False
elif point[0] > rect[2]:
return False
elif point[1] > rect[3]:
return False
... | [
"noreply@github.com"
] | provostm.noreply@github.com |
87617a12b17cbea5590cbf6c5d91692664f3372e | 1919d5c4b6b48d1f03af1cda7a99195c533a5231 | /venv/Scripts/pip3.6-script.py | b49da414338a332b622232ade90def3b29dee2ba | [] | no_license | hyogwang/python-ch2.1 | 1b2897a2c611ff837022bf98f4a492c10997e274 | bfdd6a575417e50e0618d0d847cb942ad165a404 | refs/heads/master | 2020-04-10T16:05:01.251228 | 2018-12-10T07:10:21 | 2018-12-10T07:10:21 | 161,132,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!D:\java-Bigdata2018\python-ch2.1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"gyrhkd0707@naver.com"
] | gyrhkd0707@naver.com |
f6e423c43d76255ddcd6b9bea7d77bc5f79eb1bc | 1f2e7e09da7c0c5170b2822f8c1973ab44dd4ddd | /main.py | 7851517a82a78db70cf9676d0647e2f6a8caab5c | [] | no_license | SecT/BulbapediaApp | f6eb83c4bd5b918ea027f29ee6fa2a03ef80c49c | af613f8deb79a51019d68b8a5fba7f60c44e02b6 | refs/heads/master | 2021-03-12T23:18:08.672731 | 2015-04-09T05:13:14 | 2015-04-09T05:13:14 | 33,439,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | __author__ = 'Grzesiek'
import urllib.request
from MyHTMLParser import MyHTMLParser
#page - A Pokemon page from Bulbapedia in the HTML format
#If the Pokemon has egg moves that can only be learned from a Pokemon from generation III, IV or V, return a link to its page
def checkEggMovesFromPrevGeneration(page):
#... | [
"tajnyt@gmail.com"
] | tajnyt@gmail.com |
a94c546ce5e10b6984e88ebdd74e97894d421ffa | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/models/rnn/translate/translate.py | f4d520c0c22705fd3b1ce73335773dbcec18e132 | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,897 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
06efe34aecab940dccf0f04a5ec3eb473f137ff1 | e4e98878d3d20a1e30bcd5e11b8754dad0705e17 | /step4/hty/count_letters.py | ea4c66da6d7b73c85696e350248eab279f7a41a2 | [] | no_license | tripitakas/py-sandbox | 334c37f6b50aa1237b52fef83f246e58c2d08d88 | 90767eb242bc9fbe41c83c1f7f93d545379f1b61 | refs/heads/master | 2020-03-31T20:32:56.062561 | 2019-02-27T07:42:12 | 2019-02-27T07:42:12 | 152,545,183 | 1 | 1 | null | 2018-10-16T03:31:44 | 2018-10-11T06:54:17 | Python | UTF-8 | Python | false | false | 308 | py | # count the number of 'a' that appear in the string name
import string
def counter(name,letter):
# count the # of letter in name
number = 0
for i in name:
if i==letter:
number = number + 1
return number
name = "aabcdaefa"
letter = 'a'
a = counter(name,letter)
print(a) | [
"htyota@126.com"
] | htyota@126.com |
2cfa3ec0da9efec3a17974c690beb904d233950f | eaf50f7123fc451b1dc5f57500c69e7f827ecb4b | /strategy/sma_pip.py | c044f4f761ada857827f3c3b555f637ce671b982 | [] | no_license | tsu-nera/oanda-forex-study | bca5f3f9916c42bedc27407d86e7650d524bb552 | 4e91522ca66fb7ca26a796aca7f26f525ca1dc8a | refs/heads/master | 2020-03-26T23:18:34.075116 | 2017-03-28T02:55:13 | 2017-03-28T02:55:13 | 39,285,423 | 24 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | from strategy.sma import SMA
from strategy.pip import PIP
from strategy.time import Time
class SMAPIP(SMA, PIP, Time):
def __init__(self, status):
SMA.__init__(self, status)
PIP.__init__(self, status)
def calc_indicator(self, timeseries, event):
self.calc_sma(timeseries, event)
... | [
"fox10225fox@gmail.com"
] | fox10225fox@gmail.com |
b4fa9235e68169033353c5dee726262a8e5e86b9 | 326134183432e048ea52d068d7171502ac5c58e4 | /database/dbLBO.py | 1bfe95ddd64977a752c099cbfbfd39e73015118e | [] | no_license | changliukean/KEAN3 | e31424fef197789cf186b28716d9b3ec777ac07c | 901aebd0760a77097c01be76e4390223b94cc8dc | refs/heads/master | 2022-11-22T17:24:04.532735 | 2020-07-29T14:02:28 | 2020-07-29T14:02:28 | 283,514,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,163 | py | import mysql.connector
from database.dbGeneral import HOST,USER,PASSWORD,DATABASE, PROD_DATABASE, config_connection
from sqlalchemy import create_engine
import pandas as pd
from datetime import datetime, date
def put_financials_lbo(ready_to_kean_lbo_financials_df, portfolio, scenario, version, overwrite_option=False)... | [
"chang.liu@kindle-energy.com"
] | chang.liu@kindle-energy.com |
fc263864b6b6136e29306ace880d8511554ae362 | e36225e61d95adfabfd4ac3111ec7631d9efadb7 | /problems/CR/auto/problem364_CR.py | 5c3036b1d61c050db67aa10b2c0fa6a6dc5e067f | [
"BSD-3-Clause"
] | permissive | sunandita/ICAPS_Summer_School_RAE_2020 | d2ab6be94ac508e227624040283e8cc6a37651f1 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | refs/heads/main | 2023-01-01T02:06:40.848068 | 2020-10-15T17:25:01 | 2020-10-15T17:25:01 | 301,263,711 | 5 | 2 | BSD-3-Clause | 2020-10-15T17:25:03 | 2020-10-05T01:24:08 | Python | UTF-8 | Python | false | false | 995 | py | __author__ = 'patras'
from domain_chargeableRobot import *
from timer import DURATION
from state import state
DURATION.TIME = {
'put': 2,
'take': 2,
'perceive': 2,
'charge': 2,
'move': 2,
'moveToEmergency': 2,
'moveCharger': 2,
'addressEmergency': 2,
'wait': 2,
}
DURATION.COUNTER =... | [
"sunandita.patra@gmail.com"
] | sunandita.patra@gmail.com |
f3b3b99f471356a9bd773f46d39279f8096799a5 | f5ad399fa107e70c5536e92f37b34f293f3a2b6f | /todo/urls.py | e4a52881bba20a943af730f9a8c91bfbe6b19ed1 | [] | no_license | idrissabanli/todo_project_deployment | 52455961b5faa3662e2c77ccebbaff1b953e6ef4 | 5749a2b7781f02b573925875d665953076efbd26 | refs/heads/master | 2022-12-11T00:55:17.170742 | 2020-03-23T21:32:45 | 2020-03-23T21:32:45 | 236,942,812 | 0 | 0 | null | 2020-01-29T09:29:21 | 2020-01-29T09:12:19 | null | UTF-8 | Python | false | false | 353 | py | from django.urls import path
from .views import TaskList, CreateTaskView, UserViewSet
from .routers import router
app_name = 'todo'
urlpatterns = [
# path('content/', content, name='content')
path('tasks/', TaskList.as_view(), name='tasks'),
path('create-task/', CreateTaskView.as_view(), name='create_task... | [
"idris@labrin.net"
] | idris@labrin.net |
a21c574edd0040ab6cedf413f945d50093942c45 | 5963c12367490ffc01c9905c028d1d5480078dec | /tests/components/script/test_blueprint.py | 1c02a35792bed800ab07d92e612b3174fa576518 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 4,069 | py | """Test script blueprints."""
import asyncio
import contextlib
import pathlib
from typing import Iterator
from unittest.mock import patch
from homeassistant.components import script
from homeassistant.components.blueprint.models import Blueprint, DomainBlueprints
from homeassistant.core import Context, HomeAssistant, ... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
80bd9ed3dc57a0f977621430135615c951038574 | c6da89d2af85263fe73cdaa74735c95deae3e951 | /load_data.py | 21060349485abb4a91e5e020f53887132566c2e0 | [] | no_license | antonm94/Fairness_in_Bandits | 7489fb97f94c1b2116756ab76f1ac705687e088d | f37960efd1ef84e5d21f9c402393851f6c050305 | refs/heads/master | 2021-09-10T21:48:21.001625 | 2018-04-02T21:46:39 | 2018-04-02T21:46:39 | 106,277,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | import pandas as pd
import numpy as np
import bandits
import os
path = os.path.dirname(os.path.abspath(__file__))
def bar_exam_data():
df = pd.read_sas(path +'/DataSets/LawSchool/BarPassage/LSAC_SAS/lsac.sas7bdat')
bar = df[['ID', 'sex', 'race1', 'pass_bar' , 'bar']]
bar = bar.dropna()
race_grouped ... | [
"manton@student.ethz.ch"
] | manton@student.ethz.ch |
b1a1202d72ddb21e58520b66b0bbcc3b9f6e3b8c | 2824f1ca53fc2ecbcb4ba1da0f97896dc6e9945b | /portfolio/migrations/0003_photographerproduct_photographer_product_name.py | 0bc0a83658359c6cd9ddf65d137c5f373e876f0b | [] | no_license | takechann/portfolio | b6ba101df682af99d5a441c588e490336e09429d | f08921a71612c367b32e9d66086686de77f1f9f5 | refs/heads/master | 2021-01-01T16:15:55.958163 | 2017-05-28T15:23:11 | 2017-05-28T15:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-22 13:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0002_auto_20170322_2202'),
]
operations = [
migrations.AddFiel... | [
"b1013068@fun.ac.jp"
] | b1013068@fun.ac.jp |
9b8bc0c7c6286ea83e9ad9ea010cc95cc6d2b6ee | 167bff5d6f9eb2f03927cdf6056c481100af4a22 | /extra_apps/To_main.py | 9c99c01eb67ae4cc02874d0bd148ffe556fe78b5 | [] | no_license | jialu001/warehouse | b68b67e097c7e84dbb5d50fb4308b80049a708d3 | 5e4e1c496ce570fac82265562f1dbac609c38d3a | refs/heads/master | 2020-05-19T16:25:41.996929 | 2019-06-12T01:29:37 | 2019-06-12T01:29:37 | 183,835,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django.shortcuts import render
##数据库查询
def to_index(request):
return render(request, "index.html") | [
"17771885301@163.com"
] | 17771885301@163.com |
28a4ddd4e65f7a44b476d6290079a57f2f4e87f1 | b827f7e6e377c08b2091dca2ce857a8a861d8342 | /mysite/settings.py | 5cf34b01fba8e34d5dc9fdfbde391833e937a041 | [] | no_license | NotJustThatGuy/my-first-blog | d4f1ead392458b3df737ae68336e9e605763fc7b | e9ac645bb82abaeff8b864234723630618e2d57a | refs/heads/master | 2020-04-02T22:56:46.911820 | 2018-11-09T03:47:15 | 2018-11-09T03:47:15 | 154,849,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.9.
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
# ... | [
"a1plus1equals2@gmail.com"
] | a1plus1equals2@gmail.com |
44948901ac27d0614455b0590ba959b65d4e8895 | 969eda14939da66b2fe3b7382b35ccfe8b0b6452 | /secondStirling.py | 28055571809dd4e01f2a47b4a725e1a959e3cdef | [] | no_license | creigh48/Eureka | 5644b2c8c279c078c95be85fa164ce6c19161c4f | 94c95c7b796a6f767e92edf9009ddba66c23faa5 | refs/heads/master | 2020-06-01T18:17:45.630746 | 2014-11-07T16:57:09 | 2014-11-07T16:57:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296,241 | py | S={'1,1':1,
'2,1':1,
'2,2':1,
'3,1':1,
'3,2':3,
'3,3':1,
'4,1':1,
'4,2':7,
'4,3':6,
'4,4':1,
'5,1':1,
'5,2':15,
'5,3':25,
'5,4':10,
'5,5':1,
'6,1':1,
'6,2':31,
'6,3':90,
'6,4':65,
'6,5':15,
'6,6':1,
'7,1':1,
'7,2':63,
'7,3':301,
'7,4':350,
'7,5':140,
'7,6':21,
'7,7':1,
'8,1':1,
'8,2':127,
'8,3':966,
'8,4':1701,
'8,5':1... | [
"creigh48@students.rowan.edu"
] | creigh48@students.rowan.edu |
997901aebe00cce7bbdcae96838346c635be2055 | d9e7bd5f582dd3d1a63fb10197896d462ce49027 | /numpy/numpy math operations.py | 51702955071fd17349be31d20124a9124caf0295 | [] | no_license | abhinai96/Python_conceptual_based_programs | 137aa8d4c1354ba7586f7ec2dea6683109cf9393 | 795883b28389ae2b0c46ddacea493530f40774a6 | refs/heads/master | 2022-12-15T11:57:28.862114 | 2020-09-15T03:10:35 | 2020-09-15T03:10:35 | 295,593,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | """import numpy as np
a=np.array([[1,2,3],[4,5,6]])
b=np.add(a,1)
b=np.subtract(a,2)
b=np.multiply(a,3)
b=np.divide(a,2)
b=np.power(a,2)
print(b)"""
"""import numpy as np
a=np.array([[1,2,3],[4,5,6]])
b=np.array([[2,3,4],[5,8,9]])
print(np.add(a,b))
print(np.subtract(a,b))
print(np.multiply(a,b))
prin... | [
"noreply@github.com"
] | abhinai96.noreply@github.com |
176bac1bd266da86fa90337c9e18ebc111c0c4ac | aaa03fa00fd90ebfc61af66cbd2da57df32d5ac7 | /scrapy-itzhaopin/itzhaopin/itzhaopin/pipelines.py | 2bcf29814818e4e54d753fd77639abb43b3dfe8f | [] | no_license | zcwfeng/python3_demo | 2f97ddfc05db78e3cde8b20e8f8d7c87fc5590e2 | c196e922341f17a9455e7d1d2ef1300a1946c1a7 | refs/heads/master | 2021-04-03T09:47:01.041273 | 2020-05-21T09:22:14 | 2020-05-21T09:22:14 | 124,347,015 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
# from scrapy import Item
import json
import codecs
from scrapy.log import logger
class JsonWithEncodingTencentPipeline(object):
def __init__(self... | [
"zhangchuanwei@fotoable.com"
] | zhangchuanwei@fotoable.com |
7d54c7329b35490f552f2a24acca49a2fc6d3aa8 | 3be8b5d0334de1f3521dd5dfd8a58704fb8347f9 | /web/app/djrq/templates/admin/requests.py | 11063f8ed78c551414b0bb742de1cc18e5e6d930 | [
"MIT"
] | permissive | bmillham/djrq2 | 21a8cbc3087d7ad46087cd816892883cd276db7d | 5f357b3951600a9aecbe6c50727891b1485df210 | refs/heads/master | 2023-07-07T01:07:35.093669 | 2023-06-26T05:21:33 | 2023-06-26T05:21:33 | 72,969,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | # encoding: cinje
: from ..template import page as _page
: from .. import table_class, table_style, caption_args
: from ..helpers.helpers import aa_link
: def requeststemplate page=_page, title=None, ctx=None, requestlist=[], view_status=None, requestinfo=None
: using page title, ctx, lang="en"
: table_cl... | [
"bmillham@gmail.com"
] | bmillham@gmail.com |
04e971ab9af6aae7f529afeebda613641bb3d497 | b1ddae0f702f7af4a22ccf8e57eccb6778eaa8a5 | /apps/organization/migrations/0002_auto_20180529_2134.py | c3451765bb35140634aa8816b5b519cf7a22089a | [] | no_license | MoNaiZi/Mxoinline3 | 1cd1effa716bacbe4a7fc83c4687adc1fdbbea03 | 8d8ba1322fbaefcf8767160e1e2d05afc755fe5c | refs/heads/master | 2020-03-17T00:03:41.868735 | 2018-07-11T00:48:09 | 2018-07-11T00:48:09 | 133,101,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-05-29 21:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"you@example.com"
] | you@example.com |
a94bd8d35ec886ef9678e4a31c0c336f16712b7c | c8fe553445c620ffb715603324d71e797158e5ad | /GreenBook/GreenBook/RandomUserAgent.py | 2e32f3b7308b5abf8423e227cd2f9e4533c3684c | [] | no_license | hudie8655/thegreenbook | 8f9324ea23b6fc628339d3e35922b4fefdc7275d | 7ab4f2881e64c6568cb8cc0ce42d246bef35a97d | refs/heads/master | 2021-01-12T17:22:49.731786 | 2016-10-23T16:33:35 | 2016-10-23T16:33:35 | 71,554,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import random
import base64
class RandomUserAgent(object):
"""Randomly rotate user agents based on a list of predefined ones"""
def __init__(self, agents):
self.agents = agents
@classmethod
def from_crawler(cls, crawler):
return cls(crawler.settings.getlist('USER_AGENTS'))
def process_request(self, request, sp... | [
"hudie8655@yeah.net"
] | hudie8655@yeah.net |
b518a04c6e2496f490141f6a2b2b1c17a5d50ded | d1ebcdd2e1a73481ca653e5d8d867919ccb72d36 | /hector_quadrotor_tutorials/build/hector_gazebo/hector_gazebo_thermal_camera/catkin_generated/pkg.installspace.context.pc.py | 785d7a7f5965e4295f317735265fb954d9981600 | [] | no_license | lpangco/autonomous_navigation | 7d9ac9305810eb39591bc096ba2295e25e669b3b | 740c7ef6d488a7f21513ae5429a3fb4a1e355dc6 | refs/heads/main | 2023-01-22T09:24:03.399001 | 2020-12-02T06:03:18 | 2020-12-02T06:03:18 | 317,762,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/user/hector_quadrotor_tutorials/install/include".split(';') if "/home/user/hector_quadrotor_tutorials/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "gazebo_plugins".replace(';', ' ')
PK... | [
"vkuppa@gmail.com"
] | vkuppa@gmail.com |
becb25d9623622c04069bbab038ff928915c8183 | 0d960d28ccea4b185674f96aa44662b0e6b1f38a | /6007_17196906(AC).py | 91b417ed2ca651a3538df3084ba194b632f60b8d | [] | no_license | HaiSeong/codeup200byPython | e61a46a03866ab8e2b3ed4a9b2ed4c326fdec27f | 7edc50f4a6b934afa38030dc712d74aaaaeca6c8 | refs/heads/master | 2023-03-13T09:18:50.373883 | 2021-03-03T17:02:01 | 2021-03-03T17:02:01 | 340,541,137 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | print("\"C:\\Download\\\'hello\'.py\"")
| [
"wjdgotjd9908@gmail.com"
] | wjdgotjd9908@gmail.com |
67a530a6d03c054ad70128af005176291b20fa57 | a6d26798db496f5e318417ffc3b9ac9399d05767 | /derivation/dynamics.py | 7dba56500ecccb517873dcf59fd9c2456e2ffec4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | AlexFang0214SH/simupy-flight | d96a0847823b86291cadb790a05dd7f04e965682 | c32c7dc19b57d063100e8b7be1142e0634d5fec0 | refs/heads/master | 2023-06-11T15:56:16.282564 | 2021-06-04T20:52:25 | 2021-06-04T20:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | import numpy
def tot_aero_forces_moments(self, qbar, Ma, Re, V_T, alpha, beta, p_B, q_B, r_B, *args):
[CD_b, CS_b, CL_b, CLcal_b, CMcal_b, CNcal_b, Cp_b, Cq_b, Cr_b] = self.base_aero_coeffs(alpha,beta,Ma,Re).ravel()
[CD_e, CS_e, CL_e, CLcal_e, CMcal_e, CNcal_e, Cp_e, Cq_e, Cr_e] = self._input_aero_coeffs(alph... | [
"benjamin.margoliss@nasa.gov"
] | benjamin.margoliss@nasa.gov |
c540079abf47e3d90d1968f426d0bde75dc47272 | 5970260ef09a03c68fc8f4d51d2aeef148a0e4c7 | /app/utility - Copy.py | 4d03c6323d127b81ed8e7914633acff2f1f3fc85 | [] | no_license | ritchie2007/financial-computing-app | b82d459856afb2caaba8d5355e659ae9de802851 | 01a31cd067f7e7afc1ce9d65044bb3bfaa05eab3 | refs/heads/master | 2023-03-25T06:14:10.079448 | 2020-12-23T04:15:03 | 2020-12-23T04:15:03 | 260,816,679 | 0 | 0 | null | 2021-03-20T05:16:32 | 2020-05-03T02:51:27 | JavaScript | UTF-8 | Python | false | false | 42,990 | py | from random import random
import time
from time import strftime, localtime
from datetime import timedelta, datetime #, date
from pytz import timezone
from dateutil.relativedelta import relativedelta
from flask_login import current_user, login_user, logout_user, login_required
from flask import render_template, flash, r... | [
"ritchie.liu2007@gmail.com"
] | ritchie.liu2007@gmail.com |
34b59349f310f10df1bff5b0ff74eda1b3946f14 | 46390b01256fd4a0dbf3de12b5b3b2248b36a3d5 | /torchvision/models/mobilenetv2.py | 3938156949f25eaf6e53b3509c775b97efbff236 | [
"BSD-3-Clause"
] | permissive | DevPranjal/vision | ba7e4f79b17189ff621e718d21ce3380f64b80df | ec40ac3ab84b90b2bb422f98b4d57b89d424676c | refs/heads/master | 2023-06-29T23:15:13.577246 | 2021-06-10T14:10:39 | 2021-06-10T14:10:39 | 375,726,988 | 2 | 0 | BSD-3-Clause | 2021-06-10T14:30:58 | 2021-06-10T14:30:58 | null | UTF-8 | Python | false | false | 7,867 | py | import torch
from torch import nn
from torch import Tensor
from .utils import load_state_dict_from_url
from typing import Callable, Any, Optional, List
__all__ = ['MobileNetV2', 'mobilenet_v2']
model_urls = {
'mobilenet_v2': 'https://download.pytorch.org/models/mobilenet_v2-b0353104.pth',
}
def _make_divisibl... | [
"noreply@github.com"
] | DevPranjal.noreply@github.com |
3011d9b9552ae31e2ca615d70efc1731a287000d | 15287616c871bf92a739d47a9acfe5ad02f93fa4 | /docs/conf.py | 0eeca1c8575ea173727afebca284eaa54eb0d6fa | [] | no_license | IflytekAIUI/DemoCode | 10a3a9b2b1d1ec2ac8239cd5fc730662e0577547 | 414da5f64b7834cfc27e803b185be62fb7db1100 | refs/heads/master | 2022-12-09T17:36:41.850277 | 2022-07-13T09:36:41 | 2022-07-13T09:36:41 | 101,713,655 | 116 | 181 | null | 2022-12-08T15:46:45 | 2017-08-29T03:13:01 | Java | UTF-8 | Python | false | false | 11,236 | py | # -*- coding: utf-8 -*-
#
# aiui-sdk documentation build configuration file, created by
# sphinx-quickstart on Wed Mar 30 13:55:25 2022.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# ... | [
"noreply@github.com"
] | IflytekAIUI.noreply@github.com |
e1b94b21593ef07693e8def5f91e889427743348 | 5819de74cc91248addbd1851b2ef72751c4fb28f | /evod.py | 4603d8d170ce4f0e24d5a2b8b8957bbfe1d7b62b | [] | no_license | HARIDHARSHINI04/hd | af69381a1316160fbb24e3d3b7684f8514503cc5 | 9a621eef945f5c2cf52484a7f5bdfabdbd7c625a | refs/heads/master | 2020-06-02T08:22:54.895600 | 2019-07-03T15:41:28 | 2019-07-03T15:41:28 | 191,097,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | n=int(input("enter the number"))
if(n%2==0):
print("even")
elif(n%2!=0):
print("odd")
else:
print("invalid")
| [
"noreply@github.com"
] | HARIDHARSHINI04.noreply@github.com |
9586d8221e240c0106de05a40608afe647068262 | 8626082f76145dc3de33bab75e6ede167bdb7876 | /GC/Tareas/T1/T1-0-BRC-GLFW.py | f840b334af14301becf6ed444dc828fb1345f63d | [
"MIT",
"WTFPL"
] | permissive | BenchHPZ/UG-Compu | 54f306d73676a8f32fd46e739370c8708f9794b4 | fa3551a862ee04b59a5ba97a791f39a77ce2df60 | refs/heads/master | 2023-02-22T22:28:13.833422 | 2021-01-21T20:04:26 | 2021-01-21T20:04:26 | 293,017,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py |
import glfw
import OpenGL.GL as gl
import moderngl.Context as mgc
def main():
# Inicializar libreria
if not glfw.init():
return
# Crear ventana
ventana = glfw.create_window(700, 500,
"Tarea 1 de Graficos por Computadora en Python",
None, None)
# Precaucion
... | [
"benchhpz@gmail.com"
] | benchhpz@gmail.com |
bab2acb31f3ae4d1ebde585832fe085c1d1febf0 | a56aac1a25cdd64bc17fb9f24935e8d87c692339 | /venv/lib/python3.10/site-packages/pandas/core/frame.py | 298d0ac0f84202406e3756e684a978861203492e | [] | no_license | kyamasaki12/dnd_damage_calc | ea40cb9a8cea7413131f881bc9705cd8f2a28246 | d39ec59cb093f912d580698c6720f1f561b25867 | refs/heads/master | 2022-11-07T20:11:44.924609 | 2022-10-03T03:12:11 | 2022-10-03T03:12:11 | 183,676,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377,087 | py | """
DataFrame
---------
An efficient 2D container for potentially mixed-type time series or other
labeled data series.
Similar to its R counterpart, data.frame, except providing automatic data
alignment and a host of useful data manipulation methods having to do with the
labeling information
"""
from __future__ import... | [
"keenan2056@gmail.com"
] | keenan2056@gmail.com |
70af62274ef098cd7abb307ef9145b2790707f6d | a3cc7286d4a319cb76f3a44a593c4a18e5ddc104 | /lib/surface/datastore/operations/__init__.py | fca6eaa477ebf4bb1ed38d41e7ca4a62083e2c06 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jordanistan/Google-Cloud-SDK | f2c6bb7abc2f33b9dfaec5de792aa1be91154099 | 42b9d7914c36a30d1e4b84ae2925df7edeca9962 | refs/heads/master | 2023-09-01T01:24:53.495537 | 2023-08-22T01:12:23 | 2023-08-22T01:12:23 | 127,072,491 | 0 | 1 | NOASSERTION | 2023-08-22T01:12:24 | 2018-03-28T02:31:19 | Python | UTF-8 | Python | false | false | 836 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"jordan.robison@gmail.com"
] | jordan.robison@gmail.com |
f49ae40120735e43add8a6c8847928c264fea4f6 | dce69cc94dc9219cdf280e8cf0b987b466a57c27 | /pypredis/client.py | 2454a58e5a67bd77f6b78cbf1792a32d701f32e4 | [] | no_license | ioshger0125/pypredis | eb8f8e569f4ad5c12f28beb518d67ce9eeb17f7f | 54dd66debacbbb07407d33ffd8832b0795b2ac4d | refs/heads/master | 2020-06-18T11:50:37.892590 | 2014-04-26T15:16:28 | 2014-04-26T15:16:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,094 | py | from __future__ import absolute_import
from pypredis.future import Future
from pypredis.reader import RedisReader, NoReply
from pypredis.sendbuffer import SendBuffer
from select import poll, POLLIN, POLLPRI, POLLOUT, POLLERR, POLLHUP, POLLNVAL
from Queue import Queue, Empty
from collections import defaultdict, namedtup... | [
"pepijndevos@gmail.com"
] | pepijndevos@gmail.com |
dac8426a7154210839373bc81caf32780e900d78 | 7d3f436c2766522a15a3627dcef50d118f029f2f | /mainProductionChannel.py | 031e2df402dfa44b5f0215e05082da7bf9030d98 | [] | no_license | sewell-robert/voterChatbotProject | 74f95c661d31158e7163190184eecfc79183d2f7 | 300cae143ecd4d295fb85a67971d7d656d198708 | refs/heads/master | 2020-04-01T19:02:28.083850 | 2018-12-07T21:54:28 | 2018-12-07T21:54:28 | 153,529,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,620 | py | import requests
import json
##############################################################################################################################################################################
#Add voter to TextIt.in contacts if canvasser initiates enrollment
if input_data.get('voterPhone') != None:
... | [
"noreply@github.com"
] | sewell-robert.noreply@github.com |
ef98a14cb8b72a8cfe0afb1790754e0e1f1ed35f | 7e08cdf7f1904dd6ab0663a7b52fdcbe3acee742 | /djangofile/djangoapp/admin.py | a57d5f1793e01f0396cd75e7bb74c800252d3965 | [] | no_license | venkat1892/face-recognition | 8c1b0fe61b2bfe1da690577d6189a0679827617d | 96d54ec2d783359766cc3006c3d4c35577b28a3b | refs/heads/master | 2020-08-29T23:36:01.422608 | 2020-05-06T16:28:11 | 2020-05-06T16:28:11 | 218,203,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Post) | [
"bhavanimar1998@gmail.com"
] | bhavanimar1998@gmail.com |
f8221f89e8ad17472747995c2ce0a6a170130ab7 | 81682e9a1cbb08468f8ddb3fce51ef7ec57199bc | /Assignment 1 Programming Python/greater.py | 5313aeb1e257ec24901883fc234abe741f44f2b6 | [] | no_license | tangentino/Intro-Python | 8aa72aa866779dc117efa58479ae9ca2cda62214 | 5b0700a5b12856684dc92b46e802c36ef33192a5 | refs/heads/master | 2021-10-08T09:23:56.548839 | 2018-12-10T14:30:50 | 2018-12-10T14:30:50 | 158,486,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # Assignment 1, Task 5
# Name: Naran Kongpithaksilp (Tan)
# Collaborators: None
# Time spent: 0:15 hours (15:10 minutes)
numberA = input("Enter a 4-digit integer:")
numberB = numberA[1] + numberA[2] + numberA[3] + numberA[0]
trueOrFalse = int(numberA) > int(numberB)
print(numberA + ' > '+ numberB + ' ? ... | [
"noreply@github.com"
] | tangentino.noreply@github.com |
b92347b18fa78ecafef231be0e41b7ca4b9b2dd2 | 3f13e51be7a2053ceb4b4f536026bc1a73839f6d | /Crawler/img_crawler.py | 635bc099f20c74a1a353891da98fc72dc5d4f1b8 | [
"MIT"
] | permissive | izackwu/QianMo | d4ea2e65ea58b1f89db63711a8e26a71a596de01 | 882642441416ada449e94bfa1eaae05be3a98223 | refs/heads/master | 2021-10-11T22:31:17.025037 | 2019-01-18T12:36:38 | 2019-01-18T12:36:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | import requests
import os
from my_utils.parsers import BaseParser
from my_utils.bloom_filter import BloomFilter
from urllib.parse import urlparse
from threading import Thread, Lock
import hashlib
data_dir = "../data"
html_index = os.path.join(data_dir, "new_index.txt")
image_dir = os.path.join(data_dir, "image_data")
... | [
"keith1126@126.com"
] | keith1126@126.com |
f6f01029f642cb4a5c5fddf32ad5ca515f84a61a | 780f66869a101f874151383bc0ca5bc771ca8a50 | /server.py | 312240ff13cae06c952dfcaa6552eb307bbf4199 | [] | no_license | ANARCYPHER/C-70 | 7d1333caeb0c3ed90e7acbd0bd6e547e84bd4f9b | bc21054ae33a84ff2919da2e946c4537636dcc47 | refs/heads/master | 2023-08-11T10:52:08.543437 | 2021-10-10T13:16:45 | 2021-10-10T13:16:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from flask import Flask
app = Flask(__name__)
#Members API Route
@app.route("/members")
def members():
return {"members": ["Member1", "Member2", "Member3"]}
if __name__ == "__main__":
app.run(debug=True) | [
"skull32273227@gmail.com"
] | skull32273227@gmail.com |
29efcf08ad84b6f7845612ad75dffce1b49bce18 | badc556efd2d66f087fa8993b09b1efa78ba6d25 | /string/CCTF_pwn3/exp.py | 32b623e759bcfafde8bf4c1d8cc7ef896468f474 | [] | no_license | pwnkk/CTF-training | bacae8741db086e399dc0b1495f2451bc43d5354 | 4231a885447b3655b2a04d9d9356b94af3540c76 | refs/heads/master | 2020-08-10T22:38:10.048441 | 2019-10-31T03:31:53 | 2019-10-31T03:31:53 | 214,435,270 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | from pwn import *
context.log_level = "debug"
p = process("./pwn3")
#p = connect("192.168.12.153",20000)
e = ELF("./pwn3")
puts_got = e.got['puts']
print "puts_got: "+hex(puts_got)
libc = ELF("/lib/i386-linux-gnu/libc.so.6")
system_offset = libc.symbols['system']
puts_offset = libc.symbols['puts']
print "system_offset... | [
"enoughdream@163.com"
] | enoughdream@163.com |
f613b6350ed8fa5cbbbffad4552f1b8f1f4c1bae | ebf9cf7f64cc19d9b717c40992d99c272707708f | /py3/thrift/simple_example/example/ttypes.py | b825c00c5525e6546893f59a168ec095b4662773 | [] | no_license | Laisky/HelloWorld | b6eac5f34813895cec2e07af44fcc6308214b9ab | 56db8ab0c55b18a1a09774c04319dad526c8f116 | refs/heads/master | 2023-06-27T01:43:38.798483 | 2023-06-18T15:37:10 | 2023-06-18T15:37:10 | 24,983,292 | 12 | 10 | null | 2023-01-27T16:16:50 | 2014-10-09T09:54:11 | HTML | UTF-8 | Python | false | true | 2,310 | py | #
# Autogenerated by Thrift Compiler (0.10.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
import sys
from thrift.tra... | [
"ppcelery@gmail.com"
] | ppcelery@gmail.com |
e83602410b4a91736783c9a1b96cfc38adb9bd4a | 8308303299d704010f366280113edfccd6938ce9 | /Competencia/bike/views.py | 6dbe316f2d5acc91878618a47835a548646522b5 | [] | no_license | Alexander2301/RpoCompec | 3499b3d305e4257d3b52ca65f7f0e049cc21f4e3 | 8364a773e4b9717471752b52363cff2ae3dcaa8c | refs/heads/master | 2020-03-20T07:00:10.414357 | 2018-06-13T20:40:23 | 2018-06-13T20:40:23 | 137,268,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,149 | py | from django.http import HttpResponse
from django.core import serializers
from django.shortcuts import render, redirect
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.models import User
from .forms import *
from .models import *
# Create your views here.
def vista_inicio(request):
... | [
"gaviriaalex569@gmail.com"
] | gaviriaalex569@gmail.com |
2fc425ff9bf6cb7706256b7a11664186a4b51576 | 10f1f4ce92c83d34de1531e8e891f2a074b3fefd | /unit_test/test_utils_natural_sort.py | a3c66f754993b67e54056e81b459384d2df2d112 | [
"MIT"
] | permissive | sourabhyadav/test_track | d88c4d35753d2b21e3881fc10233bf7bbb1e2cec | d2b4813aaf45dd35db5de3036eda114ef14d5022 | refs/heads/master | 2021-01-06T12:38:56.883549 | 2020-02-05T07:08:46 | 2020-02-05T07:08:46 | 241,328,706 | 1 | 0 | MIT | 2020-02-18T10:06:14 | 2020-02-18T10:06:13 | null | UTF-8 | Python | false | false | 755 | py | '''
Author: Guanghan Ning
E-mail: gnxr9@mail.missouri.edu
Dec, 2016
'''
import sys, os
sys.path.append(os.path.abspath("../utils/"))
from utils_natural_sort import *
def test_natural_sort():
test_string_list_desired = ['A00001', 'A00002', 'A00010', 'A00011', 'B00001', 'B00002', 'B00010', 'B00011']
... | [
"chenhaomingbob@163.com"
] | chenhaomingbob@163.com |
9ec71c0d0b31b8112ff90bcf71bf19812d8ddd34 | 88ca3efc6e06705d9c28151b06a33fad2c93e97e | /Fridge.py | 4281c5bca5381636f196f0fc7fdc042f4758b39f | [] | no_license | Trutina1220/TA_Assignments | caf81fda040d5374b2ad5c7dc8e51fb29f320b90 | 333a02927ed283f3698c2d802d9a8a7d12a576a0 | refs/heads/master | 2022-03-26T10:45:47.982272 | 2019-12-06T13:52:32 | 2019-12-06T13:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,308 | py | class Fridge:
def __init__(self,user): #INITIALIZE THE VARIABLE THAT ARE GOING TO BE USED
self.surface = '--------------------------------'
self.freezer1 = []
self.freezer2 = []
self.refrigerator1=[]
self.refrigerator2=[]
self.refrigerator3=[]
self.inside_fri... | [
"ericedgari@hotmail.com"
] | ericedgari@hotmail.com |
a606ff50901af7a873c49a995393cbf4f65c69c7 | 90765c2ce3de6827b8f20923f942f57dcce7fcb0 | /Webapp/Gamers/migrations/0006_auto_20170525_1756.py | 75cbddc9700302ab5e33f8766eb4ee2a7616ac98 | [] | no_license | leedoe/Gamers | c5273b7efe620958582f76eb48bd4ad5c905c8a2 | a702871992f73483fc11714440450c2ee784b5e4 | refs/heads/master | 2021-03-16T09:21:34.066118 | 2017-11-06T14:45:57 | 2017-11-06T14:45:57 | 81,641,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-25 08:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Gamers', '0005_auto_20170525_1747'),
]
operations = [
migrations.AlterField... | [
"leedoe@naver.com"
] | leedoe@naver.com |
649d82744517d4270a777f7369728840038badfb | de0fbf1a7d8d09b275a6ec8552a5a23b75c5e7d8 | /entertainment_center.py | 8eab0ff116e0793406a75da30921e0c28230d364 | [] | no_license | jmadev/movie_trailer_website | c24de1c7e2bdda1067932ae7a41943267e566d73 | fb7e6af353e6c0080fc3824dfcb6cbcf3286e3ac | refs/heads/master | 2021-01-10T09:50:55.664030 | 2016-02-13T06:08:47 | 2016-02-13T06:08:47 | 51,633,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | import media
import fresh_tomatoes
ex_machina = media.Movie("Ex Machina",
"A young programmer is selected to participate in a ground-breaking experiment in synthetic intelligence by evaluating the human qualities of a breath-taking humanoid A.I.",
"https://upload.wikim... | [
"jae.antonio.29@gmail.com"
] | jae.antonio.29@gmail.com |
529e653b2261ab68e3c53cba0ae608d510ce8c05 | cb6b988e9237c83a14a41b99da7d34e17f541e58 | /monitor/start.py | f3108e8cba4f78cbf256850b533dbfee22d92788 | [] | no_license | rmoellering/baseball | 646ff29ce6183ea64490b6dd8cfe1b658a186d30 | 3c712ad29ce7938520c5c639cd3bf9ce780ef722 | refs/heads/master | 2020-04-22T19:02:20.519045 | 2019-02-13T23:58:08 | 2019-02-13T23:58:08 | 170,596,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | import connexion
from utils import get_logger
from monitor import startup
log = get_logger(__name__)
startup()
app = connexion.App(__name__, specification_dir='./openapi')
# Read the swagger.yml file to configure the endpoints
app.add_api('swagger.yml')
if __name__ == '__main__':
# NOTE: debug=True causes the restar... | [
"rmoellering@gmail.com"
] | rmoellering@gmail.com |
9963a7c0e52009a427c57e4442bd33eb6cc05bc5 | 72c1da3e0cd6111b25d4181c8a09c6b84876931a | /interview1_1.py | 1153f1268c74ac1856593c5e1683f15022fd273e | [] | no_license | giahy2507/interview | 22496afd30f8df3817c9d2ee30c13dacf8b589fb | 8e15679f2d87dfc8eb2c826258a617de200070c2 | refs/heads/master | 2020-03-26T08:53:58.778104 | 2018-08-14T13:36:13 | 2018-08-14T13:36:13 | 144,724,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py |
import string
def check_completestring(test_str = "qwertyuioplkjhgfdsazxcvbnm"):
alphabet = string.ascii_lowercase
dict_alpha = {}
for c in alphabet:
dict_alpha[c] = 0
for c in test_str:
if c in dict_alpha:
dict_alpha[c] = 1
for key, value in dict_alpha.i... | [
"giahy2507@gmail.com"
] | giahy2507@gmail.com |
877b517b260c9f9cefec03ce51ce21aa66a83cb3 | a64126ad1b9acda9ae3a449c11d29d2a22f4e083 | /evganDjango_app/asgi.py | 04e8b7c9063e772cfc92910906b01e302a26e393 | [] | no_license | Evgan/evganDjango_app | 76f88e1ee9124a0a3e8959d6cf2bca5f5ad4a674 | 7a1b6595b0ab9fb6f52d3bfdacb295aef6a41562 | refs/heads/master | 2023-04-02T19:12:17.769482 | 2021-04-09T17:25:29 | 2021-04-09T17:25:29 | 356,349,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for evganDjango_app project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"e.penkrat@whiteskydigital.com"
] | e.penkrat@whiteskydigital.com |
e8018182eaf7c9b71d43f01695ede06bfa8a20f2 | 68d6bccc4e8179ebd7a7b6688b6d5977567e5413 | /sm/hpc_scripts/create_multinode_jobs.py | 50e27e2f6f3b1deb556c7efdcac113d80c49b6bf | [
"MIT"
] | permissive | dair-iitd/OxKBC | 252b9203d16df8ed9cb28b301e8fd474faead180 | 9456d7430027e7b35a9bdc501454a9f42c445f8b | refs/heads/master | 2022-11-09T14:13:05.929443 | 2020-06-24T16:02:22 | 2020-06-24T16:02:22 | 271,024,306 | 8 | 1 | null | 2020-06-09T14:29:57 | 2020-06-09T14:24:14 | null | UTF-8 | Python | false | false | 12,435 | py | from __future__ import print_function
description_str = "Script to create multinode hpc jobs. \n \
exp_{i}.sh scripts are created in args.jobs_dir. Each exp_{i}.sh script is a process to be run on one node. It fires args.num_task_per_process tasks in parallel.\n \
These processes can be run either individually - via jo... | [
"csz178057@iitd.ac.in"
] | csz178057@iitd.ac.in |
7dd33fa8cbb4f9307c6ff4376dbc9b045e9ede73 | f09d92eabdd606cbd306e782867558d6d67e1cd4 | /contentsummary/apps.py | 9dbdbeac6b747bc3da47c08731f18aee3d0e974e | [
"MIT"
] | permissive | Bobstin/itcsummary | c326267773b8be2d51d2580b9017476f1e703c15 | 259d8f64e415a1c7cbc926752c717e307c09953f | refs/heads/master | 2023-07-29T13:41:05.233976 | 2021-02-27T13:37:10 | 2021-02-27T13:37:10 | 108,500,887 | 0 | 0 | null | 2021-09-22T17:39:19 | 2017-10-27T04:55:28 | HTML | UTF-8 | Python | false | false | 103 | py | from django.apps import AppConfig
class ContentsummaryConfig(AppConfig):
name = 'contentsummary'
| [
"justinakahn@gmail.com"
] | justinakahn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.