blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed9cdd0e4b2fcfc6edd795da9fa5d9edc907068a | ceea480538d17dede8973656d69df028f6e113c5 | /trainer.py | 297c3f48e1cac94e6c419ba7fea5be96f577ceab | [] | no_license | yuki1125/semantic_seg | 990287492317f193d5bc3619f23db9b290dc74e3 | b034bdeb51a2b3ad365d3bf5b7c5604fed7a9d50 | refs/heads/master | 2020-04-13T03:40:05.798578 | 2018-12-24T01:53:52 | 2018-12-24T01:53:52 | 162,938,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,962 | py | import argparse
import os
import chainer
import chainer.functions as F
import chainer.links as L
from chainer import iterators
from chainer import training
from chainer import optimizers
from chainer.training import extensions
from model import FCN
from model_2 import FCNN
from dataset import LabeledImag... | [
"noreply@github.com"
] | noreply@github.com |
8e789d064478ca11b9395388fe2afcf549fdeb58 | d70e3c5a374e4a644ac959afd1d5bccfb7959580 | /May Leetcode Challenge/23_Interval_list_Intersection.py | 66ef34cb508227e31756b38335ddd783e9e3efa5 | [] | no_license | vidhlakh/LeetcodeProjects | 17bbc9f1ad927478a3acdbc1bd1c78488ba62ad1 | d6bdfa55832980aa80bda818ae657df74aa3cd3b | refs/heads/master | 2022-09-20T11:15:39.539572 | 2020-06-01T01:13:24 | 2020-06-01T01:13:24 | 262,650,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | class Solution:
def intervalIntersection(self, A, B):
i,j=0,0
intervals =[]
while (i< len(A) and j < len(B) ):
#Starting point is maximum of both the points, Ending is minimum of both the points
interval_starting, interval_ending = max(A[i][0], B[j][0]), min(A[i][1],B... | [
"vidhlakh@gmail.com"
] | vidhlakh@gmail.com |
dae74131879866f3ed080dc1e0c3311a09c4273a | 06298b10b0b2860a94b7234cae30eeed422f21bc | /Snowball.py | 5d790dfe5b3a3b9cc16e3d3697b3754f1652c1c0 | [] | no_license | vicmak/Sequence-classification | 974d0848043362b4367ec7e374acceb31f8e0861 | 6b106a8689fd14284aa67c0674d39d01113dc405 | refs/heads/master | 2021-01-20T13:41:34.009623 | 2018-12-05T12:29:20 | 2018-12-05T12:29:20 | 90,512,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,203 | py | import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.layers import Activation
from keras.layers.embeddings import Embedding
from keras.preprocessing import sequence
from collections import Counter, defaultdict
from itertools import count
... | [
"noreply@github.com"
] | noreply@github.com |
9ebffdc2c7a97a1fcd82205153e8ae6ff5acd96a | 4dbdcdd777897567ede8343299b5dacf59580479 | /translations/views.py | 9cffdce4a4af841a082619776557b448ebeada5a | [
"BSD-3-Clause"
] | permissive | OpenTTD-Ladder/yawd-translations | 88cae158d561034ca6e69311fb8be9acc2b73627 | 913025f4361883408ca480a8e7c9ea90add0a9db | refs/heads/master | 2021-01-15T20:12:59.548959 | 2013-07-19T09:06:07 | 2013-07-19T09:06:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,508 | py | import os, shutil
from django.conf import settings
from django.contrib import messages
from django.core.exceptions import PermissionDenied
from django.core.management.commands.compilemessages import has_bom
from django.core.management.commands.makemessages import make_messages, handle_extensions
from django.http import... | [
"ppetrid@yawd.eu"
] | ppetrid@yawd.eu |
50faf2e04d91afe1be4128df90c192dd546b38fe | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/application_gateway_probe.py | d04d03bf97211b720086089e3307cafdb95580c8 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 4,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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
7ea0b2de09aff5bea5badf760e316f5e173859ce | 70bf8686d8888373d5fd9e484174a165d7d2e8b8 | /Python/Strings/Text Wrap.py | 35441d421e6c2df7923894f6751c04ac60899d89 | [] | no_license | tboztuna/Hackerrank | 70735da07f239e9e080c00b96e91a03f16f727c6 | 26b16114eb3fb3b9bdb15fb128c00017e1638672 | refs/heads/master | 2021-04-29T21:33:17.594166 | 2018-03-05T12:32:53 | 2018-03-05T12:32:53 | 121,618,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | import textwrap
def wrap(string, max_width):
print textwrap.fill(string, max_width)
return ""
if __name__ == '__main__':
string, max_width = raw_input(), int(raw_input())
result = wrap(string, max_width)
print result | [
"tolga.boztuna@freebirdairlines.com"
] | tolga.boztuna@freebirdairlines.com |
6b8e063df39d1bc4647cc63b5d37bbb741026f94 | 84856442c382b0b670246636d378beb095effa0a | /dev_cloud/cc1/pkg/node/usr/sbin/cc1_node_update_config | e017f54f299318ea27deee56590d47e9bbbd9034 | [
"Apache-2.0",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | Dev-Cloud-Platform/Dev-Cloud | f50cc3292245156c4cf55942e4426fda22443fd6 | b2fb9f4318aeb6dde1e8babca32da527943f1fb4 | refs/heads/master | 2020-12-29T02:43:14.022401 | 2017-05-05T07:18:21 | 2017-05-05T07:18:21 | 28,969,864 | 1 | 1 | null | 2015-01-14T16:46:57 | 2015-01-08T14:36:52 | Python | UTF-8 | Python | false | false | 1,615 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @cond LICENSE
#
# Copyright [2010-2013] Institute of Nuclear Physics PAN, Krakow, Poland
#
# 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
#
# ... | [
"michal.szczygiel@wp.pl"
] | michal.szczygiel@wp.pl | |
336a6cde3aa7072a4a9489b56a37cb431e68c47c | 1c873df0ce730c318428de0abc436a83b34d07b8 | /blog/migrations/0001_initial.py | 15a80777e4b151c939f0c559a7af4f88b275b32f | [] | no_license | Perceval4/my-first-blog | 8f8aea387ff479bb7665e8afd557367b72c8fe9d | 3daa287f3007790a178e5ffecca19d1eb61531a4 | refs/heads/master | 2020-03-25T08:58:40.045003 | 2018-08-05T19:08:48 | 2018-08-05T19:08:48 | 143,641,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Generated by Django 2.1 on 2018-08-05 11:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"perceval321@gmail.com"
] | perceval321@gmail.com |
d862578bb9da5bed1c4f3b517175f68855257486 | 160add72a6907b0967a1249915bc482012dd7130 | /blog/urls.py | 998badc7a2ac35e088df0b861ff28af4a96ce2e2 | [
"MIT"
] | permissive | bencko/test_blog_api | b46b7dc21f55897ea7190f9160c3a3a550d797ec | 5b2c64b6cb54a6e45ef3ab8261372b6040321585 | refs/heads/main | 2023-05-02T11:17:04.980376 | 2021-05-24T20:53:33 | 2021-05-24T20:53:33 | 367,986,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | from django.urls import path
from .views import PostCreate, UserPostsView,\
FeedView, SubscribeCreateOrListView,\
SubscribeOperateView, ReadedPostsView
urlpatterns = [
# tested
path(
'',
PostCreate.as_view(),
name='post-create'
),
# tested generation feed
path(
... | [
"cpaed@yandex.ru"
] | cpaed@yandex.ru |
06e2e05fdeafdbbfe6a1accd2104a6c9365ce3df | 85467153147e81d693a38960d5b5f3304e11e97f | /REINFORCE.py | 89c3c6dadf75b8af87b8c8a59103dc33a1e480bb | [] | no_license | asadi8/planning_regularization | 4cc974fda8b22617105ed09ea5e8390c90af8067 | c1d145d7551c2cc44563cb8e0b3dc635d4dd958c | refs/heads/master | 2021-01-18T19:00:59.480763 | 2017-03-10T01:31:55 | 2017-03-10T01:31:55 | 84,364,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | import numpy,sys
import networkActor
import gym
import model
import math
import utils_k
def initializeForLearn(stepSize,numHidden,activation,hiddenSize):
environment='ModelBasedAtariFreeway-v0'
env = gym.make(environment)
obs=env.reset()
state_shape=None
if environment=='CartPole-v0':
state_shape=4
elif enviro... | [
"Kavosh@Kavoshs-MacBook-Pro.local"
] | Kavosh@Kavoshs-MacBook-Pro.local |
149c0e407620ddb45cf8c46a20ccf64962db7cb5 | 09f94c45b2c3c280890865037b0699059bd5a20c | /robust_reset.py | 9bc7a78386e8483118511681299ed80d96ac0dc1 | [] | no_license | Vivekyy/robust_domain_adaptation | 0ec0eb81160923e107032df686520f0f9a1d564a | 48cf56cf4b9dfe365539b8539062a9ad8b60e890 | refs/heads/main | 2023-07-10T06:38:47.416346 | 2021-08-06T20:17:23 | 2021-08-06T20:17:23 | 333,889,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import torch
import os
from net import Net
from utils import setDevice
device = setDevice()
def reset(modelPath = None):
if modelPath is None:
modelPath = input("Please enter the path for the model you would like to reset: ")
#Take out _robust
resetTarget = modelPath.split('_')[0] + "_" + modelP... | [
"vivekyanamadula@gmail.com"
] | vivekyanamadula@gmail.com |
d1e03cab1e9cddc4c7b1e28758741b3bc57a95b7 | a7871ac812ca5e3d40881e1815d0fbaf61df4742 | /nlp_text_summerizer.py | d82ec869da99afc4c8f495161dde4792ad2ea335 | [] | no_license | debnathtanmoy/Streamlit | 8163de49050d634b5b987c89887d9439750596b0 | 710bc8d24d5d62f28adf23ebe3947d562a0fa820 | refs/heads/master | 2022-09-19T06:43:28.461914 | 2020-06-06T12:44:15 | 2020-06-06T12:44:15 | 268,523,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | import streamlit as st
from gensim.summarization import summarize
from sumy.parsers.plaintext import PlaintextParser
from sumy.nlp.tokenizers import Tokenizer
from sumy.summarizers.lex_rank import LexRankSummarizer
import spacy
from spacy import displacy
nlp = spacy.load(('en_core_web_sm'))
from bs4 im... | [
"noreply@github.com"
] | noreply@github.com |
200a81f58579323116fcf06d8ac860193ba85b33 | c954904d3a3259f0bee4bc3942998c30f4714e68 | /shortener/shorturl/__init__.py | 841083c46d1e89eca6a52cddcb079e6658197c16 | [] | no_license | Alodhaib/django-shortener-example | 9443e51191086fa1321468eb3fdefa137c25e330 | d037c913ed18e0a7b24865b7f4f5aaf68df2cca3 | refs/heads/master | 2021-01-24T10:06:40.965556 | 2013-05-11T16:01:13 | 2013-05-11T16:01:13 | 69,673,280 | 0 | 0 | null | 2016-09-30T14:22:22 | 2016-09-30T14:22:22 | null | UTF-8 | Python | false | false | 2,822 | py | #!/usr/bin/env python
#
# Converts any integer into a base [BASE] number. I have chosen 62
# as it is meant to represent the integers using all the alphanumeric
# characters, [no special characters] = {0..9}, {A..Z}, {a..z}
#
# I plan on using this to shorten the representation of possibly long ids,
# a la url shorte... | [
"allisson@gmail.com"
] | allisson@gmail.com |
b040aa04e941c57f0b76efd18287eec086bd0bc9 | 012205c21ad84a179eedff7f8d64b3239ba1a1bc | /dayofthe.py | 6d359397c192f7066f9eddde30a0e37235bdef7c | [] | no_license | choiinsung276/LeetCode | 9348143f5b1324e84172210f157aedc668939566 | ab44ef7a8f3df078c6b19c4856a5588052685185 | refs/heads/master | 2023-04-03T10:54:55.543322 | 2021-04-12T08:40:15 | 2021-04-12T08:40:15 | 284,418,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | import datetime
import time
def dayOfProgrammer(year):
a = datetime.datetime(year,1,1)-datetime.datetime(year,9,1)
b = abs(a).days
sub = 256 - b
result = datetime.datetime(year,9,sub).strftime('%d.%m.%Y')
return result
if __name__ == '__main__':
year = int(input().strip())
... | [
"noreply@github.com"
] | noreply@github.com |
fb22a1e50b8fb1b3c703961bf05569f450ea295b | 326a1ae06af70676de27ffafda1846c20e903a25 | /tiny_yolo_net.py | 6a0b3132e197c9aca0173c8e060a750e0e3d995e | [] | no_license | ximikang/tiny_yolov2_tensorflow | bad7c8a04bee6ce403f5f89b92cf91718664a75d | 31c8a72f6bb532fc348ab0f87a558fc19a97f09d | refs/heads/master | 2020-05-15T15:11:42.506487 | 2019-04-20T14:09:28 | 2019-04-20T14:09:28 | 182,365,328 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | import sys, os, time
import math
import tensorflow as tf
import numpy as np
input_height = 416
input_width = 416
bn_epsilon = 1e-3
n_input_imgs = 1
relu_alpha = 0.1
with tf.name_scope('input'):
images = tf.placeholder(tf.float32, shape=[n_input_imgs,
input_height,
... | [
"ximikang@outlook.com"
] | ximikang@outlook.com |
a993b8752d0dd150150559856ca00158b1dc84b1 | 96993d530a3bdc13bb307afac3eb1081425e36ea | /30 Days Challenge/19.py | e46d10a0a741217e8cb47289a88d6a117cb20b43 | [] | no_license | mayankkgandhi/Coding-Challenges | bea5e317bb93cbdd17c6b31355f2771a6d01c26c | 6c99e74d0996a1aebe5efadb00cce4d9458182fb | refs/heads/master | 2021-01-21T17:28:31.876351 | 2018-06-01T06:11:43 | 2018-06-01T06:11:43 | 85,462,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py |
class Solution:
# Write your code here
def __init__(self):
self.stack=[]
self.queue=[]
def pushCharacter(self,item):
self.stack.append(item)
def enqueueCharacter(self,item):
self.queue.append(item)
def popCharacter(self):
return self.... | [
"noreply@github.com"
] | noreply@github.com |
dd2fd62056c6386cf4a8440a07cb3d3e6503200e | 2284d84f45d11386a0754554d335942b48f0c0b2 | /fall 2015 OSU/Predoviv_CS496_FinalProject_Fall2015/_CS496_CloudFinal_Fall2015_predoviv/UserAuth.py | a4adc2a4ce5e6da13606e8fe8f7952bdc2ba4af0 | [] | no_license | Vladis466/Homework | d2db6a81e8dd672fdb87ddfc18990f2e99b5cbd3 | c7d94f722808bf0d9b3edd25fe27a8e557989ac9 | refs/heads/master | 2020-04-12T08:57:42.445384 | 2016-12-23T03:28:53 | 2016-12-23T03:28:53 | 38,588,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | import webapp2
from google.appengine.ext import ndb
import db_models
import json
from datetime import datetime
import hashlib
class userAuth(webapp2.RequestHandler):
def post(self):
# create channel entity
# POST body variables
# name - required Channel name
# procs[] - Array of... | [
"predovic900@gmail.com"
] | predovic900@gmail.com |
567ce10d50799ef515908a632d690c0a82e045ba | 8ec08780863a056c7eab0b653eb79ee0abb228a9 | /2/example_2/manage.py | cf6f0460ae4ce8ea53be03553fd85e5de00e42b1 | [] | no_license | mikolaz27/itvdn_essential | f38483853fb802c52032547301cf06073b9dda03 | 7c7b401fcea237589fc08acfc52094c3e808e6cb | refs/heads/main | 2023-05-08T06:43:56.420849 | 2021-05-30T14:49:47 | 2021-05-30T14:49:47 | 372,226,821 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'example_2.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"mikolaz2727@gmail.com"
] | mikolaz2727@gmail.com |
d46ddaa64e3b6baa8dd6e9f533ac94ef9cd35e2b | a66ce923327975ccaaa4f66e1f55afa2e4b448ac | /Store/account/forms.py | c34d44b8e4898920f3b6551fe009d0d4fafec21b | [] | no_license | Digindataflow/Front-end-UI-framework | 506878b41cb9f373216381fe9a10b831fff985cd | 901aaa2c168305a0a674ba79e74a48e5ab8dedcc | refs/heads/master | 2020-04-18T23:24:02.443405 | 2019-04-09T19:14:31 | 2019-04-09T19:14:31 | 167,820,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | import logging
from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.forms import \
UserCreationForm as DjangoUserCreationForm
from django.contrib.auth.forms import UsernameField
from account import models
logger = logging.getLogger(__name__)
class UserCreationForm(Djang... | [
"31276943+Digindataflow@users.noreply.github.com"
] | 31276943+Digindataflow@users.noreply.github.com |
12d348d7fe7ca51553671f1264e7e363ff72bc1e | 3b119f8ab6fe8143fd30f84f173e7439b99d2244 | /Adversarial-Playground-Text-viz/virt/lib/python3.6/site-packages/ebcli/__init__.py | 2da9cab754255587e11f8f24184749fa9ed2cd71 | [
"Apache-2.0"
] | permissive | AnupKumarGupta/deepWordBug | 4952bcfd7b97bd2ce8400bf865704baaf44d2b52 | c6513e6421fa5204b07652fc3f619b1018696df2 | refs/heads/master | 2020-11-25T17:06:30.608123 | 2019-12-18T05:57:54 | 2019-12-18T05:57:54 | 228,767,282 | 0 | 0 | Apache-2.0 | 2019-12-18T05:46:36 | 2019-12-18T05:46:35 | null | UTF-8 | Python | false | false | 616 | py | #!/usr/bin/env python
# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# ... | [
"jjf4bz@virginia.edu"
] | jjf4bz@virginia.edu |
3053257f100bb3a498cc2c1443c5675748f9d3fa | 4efe4df9a4348bc8fd137cd17e6dd06130ffbc3a | /klasa 3/py/max.py | ec31064216cee5fafec31e9d36aee10800c94ed3 | [] | no_license | arewera290601/mojprojekt | 5c6f6ba9b9c357697b95d573a80dbc762ae2e1ec | 3208e87fde89822888646caa319633934e46f672 | refs/heads/master | 2022-12-11T02:59:14.517360 | 2020-03-10T07:32:52 | 2020-03-10T07:32:52 | 104,380,604 | 0 | 0 | null | 2022-12-03T00:04:02 | 2017-09-21T17:53:45 | JavaScript | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# max.py
#
def main(args):
a = int(input('Podaj 1. liczbę: '))
print(a)
b = int(input('Podaj 2. liczbę: '))
print(b)
c = int(input('Podaj 3. liczbę: '))
print(c)
if b <= a >= c:
print(a,"jest największe")
elif a <= b >=c:
p... | [
"aleksandrarewera@gmail.com"
] | aleksandrarewera@gmail.com |
53b69204f5457e823553f9ce84a8956193ef558c | 110038d9a254bfb4dd6ab8db799e6b9f06053a08 | /custom_modules/cloud.py | f5ca014d9ce4dea5efe30e947e998d4bc060de19 | [] | no_license | brajenful/voltbot | f8db3597d51896813bf32f8de7e8723ba3d243b2 | eea9717229a5c8fe640491ae16b2cdfcd563ceee | refs/heads/master | 2020-09-12T18:42:17.932262 | 2019-11-18T19:43:15 | 2019-11-18T19:43:15 | 222,513,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | class Cloud(object):
| [
"noreply@github.com"
] | noreply@github.com |
5c107d3057995ffc314bc3eebe9f4fdb39227a36 | 321e58ab3e6b2385bb3549aaaefd56a58c2a51e7 | /python/atpic/atcookies.py | 1d2ea4668a4d530a17d2d2233e73e24b0279454c | [] | no_license | alexmadon/atpic_photosharing | 7829118d032344bd9a67818cd50e2c27a228d028 | 9fdddeb78548dadf946b1951aea0d0632e979156 | refs/heads/master | 2020-06-02T15:00:29.282979 | 2017-06-12T17:09:52 | 2017-06-12T17:09:52 | 94,095,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # cookies libary to process
# lang, format, resolution, wiki
# file:///home/madon/doc/python-3.3a0-docs-html/library/http.cookies.html
from http import cookies
C = cookies.SimpleCookie()
C["fig"] = "newton"
C["sugar"] = "wafer"
print(C)
C = cookies.SimpleCookie()
C["rocky"] = "road"
C["rocky"]["path"] = "/cookie"
pri... | [
"alex.madon@gmail.com"
] | alex.madon@gmail.com |
71bc398215f05023c66de7b67055c6c4452211b3 | 71dfa5d568d408fd8464a1313f87c1133e3d061c | /ATS/urls.py | b3d6e11901bbb899f6983c3d21e1d181763c2df1 | [] | no_license | harshdonga/Alumni-Tracking-System | 3819e26e82145ca2cf277c1f260494cb6a6fbd4c | f0c836d5fb405f8b61fb73d78acc4c47802a9c11 | refs/heads/master | 2020-12-29T17:48:13.989148 | 2020-02-07T04:27:59 | 2020-02-07T04:27:59 | 238,687,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('alumni.urls')),
]
| [
"harshdonga99@gmail.com"
] | harshdonga99@gmail.com |
aee41c0c2c03281e6e8007b3927b19f1257ead15 | 55ed6b1305748eda1466c0420b8d99f43717522b | /Visual Studio 2010/CSBasics/Calculator.py | 402a68ff535d47dc89a692ded3fd73a90e638ecb | [] | no_license | 2mhk/All-In-One-Code-Framework | de53599dd599fd84a9d6a21421336633153bd67e | cf711261c52d51d1c9e903d2395d7f200b392743 | refs/heads/master | 2022-03-01T21:15:02.668420 | 2019-09-13T14:59:40 | 2019-09-13T14:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | class Calculator:
def Add(self, a, b):
return a + b
def GetCalculator():
return Calculator() | [
"jdm7dv@gmail.com"
] | jdm7dv@gmail.com |
6fcf96971585787a1fc2e480d331c451935bd745 | af209804e1d37b9d4343efe2768560f81c925b1f | /app.py | 7922c1de15f33f66b07c19f09c655e92dab5daed | [] | no_license | mstoro/nasa_api | 5ee06e831f188936f0ac72f301acd4305bd4fa57 | 05dd5012315561085664866e32ffa93efae5308f | refs/heads/master | 2023-03-19T22:32:02.094177 | 2021-03-10T14:22:51 | 2021-03-10T14:22:51 | 340,974,711 | 0 | 0 | null | 2021-03-10T14:22:52 | 2021-02-21T18:34:44 | Python | UTF-8 | Python | false | false | 425 | py | from flask import Flask, jsonify
from api.apod import apod_api
from api.cme import cme_api
from api.errors import BaseError
app = Flask(__name__)
app.config.from_object('config.Config')
app.register_blueprint(apod_api)
app.register_blueprint(cme_api)
@app.errorhandler(BaseError)
def handle_token_errors(error):
... | [
"mstoro@softserveinc.com"
] | mstoro@softserveinc.com |
fc4c4a1cb40afbc6917498e7444d9ab49055ad29 | 6c7a9e4bca9828325219cfca420dae8567bd180d | /code/lumar_dataset.py | 0dd430bc2b617c4d44374b59d012fe47a7016043 | [] | no_license | PYGang/lumbar_project | b91717b6c3174de753da2afb56232c95cd6b0c8f | a8531aa3a87237a454ab7ac663906824e487ec06 | refs/heads/master | 2022-12-14T23:57:01.848387 | 2020-08-23T06:53:05 | 2020-08-23T06:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,203 | py | from torch.utils.data import Dataset
import os
import pandas as pd
import glob
import SimpleITK as sitk
import numpy as np
import random
import cv2
def dicom_metainfo(dicm_path, list_tag):
'''
获取dicom的元数据信息
:param dicm_path: dicom文件地址
:param list_tag: 标记名称列表,比如['0008|0018',]
:return:
'''
re... | [
"lianjunwang@sf-mail.com"
] | lianjunwang@sf-mail.com |
0c22d21f73349427abf47043b7db76828b4a41cf | cf7525111bd2a934c1bf9f5d212a2af3f074b1da | /temperature_conditionals/temperature_conditionals.py | d0930cb011449ddd9563a920280699042f829b32 | [] | no_license | sealanguage/april2021refresh | 6f0565b503d729e8083cb61d3645325b3421ab09 | 2aacc00b53f9104e8fd46cc592987a418f5927c7 | refs/heads/main | 2023-06-04T19:49:56.025763 | 2021-06-28T01:57:24 | 2021-06-28T01:57:24 | 355,743,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # if temperature is greater than 80
# its a hot day
# otherwise if its less than 40
# its a cold day
# otherwise
# its neither hot nor cold
temperature = 80
if temperature > 80:
print("It's a hot day")
elif temperature < 40:
print("It's a cold day")
else:
print("It's neither hor nor cold")
| [
"elaine.froehlich@gmail.com"
] | elaine.froehlich@gmail.com |
12653a9230e31f36f069346ee3f03bd3ee78ea3b | a444b78c28a72a23bf3592822d0a8dcebf4abae1 | /TEST_6.py | c7ab970f202a951f9212623940893f22fe11add8 | [] | no_license | LordFlashmeow/Using-sorted-file-to-plot-X-axis-scatter-graph-with-corresponding-Y-values-from-the-original-file | 2aa6b495bc197d54c6d09246c8a26a802f62b1b8 | 01b844f7d86af83aafed15b4b98193c23226ac82 | refs/heads/master | 2020-06-12T13:41:55.952119 | 2019-06-26T18:57:15 | 2019-06-26T18:57:15 | 194,318,284 | 0 | 0 | null | 2019-06-28T18:34:29 | 2019-06-28T18:34:28 | null | UTF-8 | Python | false | false | 2,371 | py | from matplotlib import pyplot as plt
import numpy as np
from textwrap import wrap
import csv
#Opens the sorted hostnum.csv file and reads it; replaces the quotation marks.
csv_file = []
with open('hostnum.csv', 'r') as host:
for line in host.readlines():
line = line.replace('"', '')
line ... | [
"noreply@github.com"
] | noreply@github.com |
8b3b3960ebd3fd7d6bf7249c9d89919297d180f7 | 48fec8e7f098c63271dab124e9c9212045243835 | /portal/migrations/0002_auto_20200117_1637.py | 06523f94f717e162470c67083384af39513b4008 | [] | no_license | JoseGuiFerreira17/blog | aa63ad09376c90c15746ddf670b9680c3be61b4b | 898aafe9822090f5a84216f293e05ab9105537e2 | refs/heads/master | 2022-11-16T19:11:58.435979 | 2020-01-20T21:27:50 | 2020-01-20T21:27:50 | 233,690,437 | 0 | 1 | null | 2022-10-31T21:54:48 | 2020-01-13T20:48:11 | Python | UTF-8 | Python | false | false | 376 | py | # Generated by Django 2.0.13 on 2020-01-17 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='noticia',
name='data_publicacao',
... | [
"guibsonmouta15@gmail.com"
] | guibsonmouta15@gmail.com |
6520de1e7283c3c146a41702b0b5714a85365863 | 6235f2ac2b43ec57fc778ac32134f66f6217f1fb | /day5-2.py | b971f59e9a987bd1dd4fc4944abf2dbb2e8f2fe4 | [] | no_license | jordan-heemskerk/aoc2017 | 2d0df0a056be78b0eb8d404e1cfcd25eb5c760bd | d6ae307acad612c6be2dc8ee06805937316a8dd3 | refs/heads/master | 2021-08-28T18:37:39.833809 | 2017-12-13T00:09:31 | 2017-12-13T00:09:31 | 113,126,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,313 | py | ins = """2
2
-1
1
-1
1
1
-5
-5
-1
0
-8
-2
-11
-4
-5
-10
-4
-9
-9
1
1
-11
-8
-19
-14
-6
-2
-1
-11
-23
-8
-7
-9
-26
-1
-8
-11
-34
0
-22
-17
-41
-12
-43
-33
-15
0
2
-41
-41
-26
-48
-52
-47
-30
-38
-20
-4
-21
-17
-19
-55
-32
-12
-55
1
-34
-8
-15
-59
-56
-16
-23
-43
-5
-41
-56
-32
-67
-14
0
-28
-32
-7
-54
-19
-9
-24
-63
-2
... | [
"jheemskerk@urthecast.com"
] | jheemskerk@urthecast.com |
ed765f88d3e774913278c6c0f4f26a09b44c2a8c | 46021d3ecdbfc65c3c75ba760af52b22775244ad | /NLP-SQL/NLP-SQL/nlp-sql.py | d765287dcc07a7adf0ebe610a1832bd58dde945c | [] | no_license | rakshitha1209/DS_Projects | 7d2f0f42057c534953b716e39b13341fa975c8a9 | 70365368c4b76816c52730f7c0d395d921d0f252 | refs/heads/master | 2022-12-16T18:51:31.947836 | 2020-09-15T14:13:35 | 2020-09-15T14:13:35 | 295,747,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,921 | py | from flask import Flask,session,render_template,request,jsonify, redirect,url_for
import main
#importing package to connect flask to mysql database
from flaskext.mysql import MySQL
#flask app
nlpsql = Flask(__name__)
nlpsql.secret_key = 'nlpsql key'
mysql = MySQL(nlpsql)
#database Configuration
nlpsql.config['SQ... | [
"rakshitha1209@gmail.com"
] | rakshitha1209@gmail.com |
7dc0470973a257ec8d054571e176cdb67ef27fce | 2bd19f3859fa5ef5fd705062577c8a8d9819ad33 | /tempcon.py | 38042bdf282a55ef99358af99fa4256a6d76e5fc | [
"MIT"
] | permissive | itsayushprajapati/temperatureconverter | 349de48fae1b55f4d678163e909e738884c03871 | 1595f36bd126c190cd430ddf55306bba2628aec4 | refs/heads/master | 2022-11-10T09:14:14.858402 | 2020-06-22T09:28:46 | 2020-06-22T09:28:46 | 272,431,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | #TempratureConverter
class Conversion:
"""\'Conversion\' class for conversion of temperature units .\n Use help for more -> help(temprature) """
def __init__(self,cel=0, fahrenheit=0,kelvin=0):
self.cel=cel
self.fahrenheit=fahrenheit
self.kelvin=kelvin
def ctof(self):
"""Method to convert ... | [
"noreply@github.com"
] | noreply@github.com |
8a16091fafc3f2319884a057c8e434ab0e79a775 | 7759c0ad152fe9c369b074a24601e54806b0afa8 | /backend/event/api/v1/viewsets.py | 4cba77ae5ad9f884a97fa17647488092f6c46aa1 | [] | no_license | crowdbotics-apps/covidcheck-15163 | be59f495e31b50948725fb332429751749f9b611 | a2f80fc2541bbc069cf3ec6a7f4d740aa665c77b | refs/heads/master | 2023-02-08T22:01:35.813215 | 2020-03-29T16:50:54 | 2020-03-29T16:50:54 | 250,877,575 | 0 | 0 | null | 2023-01-24T01:47:09 | 2020-03-28T19:33:39 | JavaScript | UTF-8 | Python | false | false | 3,066 | py | from rest_framework import authentication
from event.models import (
Category,
Faq,
Favorites,
Location,
MySchedule,
Presenter,
Schedule,
Sponsor,
Vendor,
VendorDetail,
)
from .serializers import (
CategorySerializer,
FaqSerializer,
FavoritesSerializer,
LocationSe... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9b3e528238dee10f5bdee6ca543158322d95ff6a | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scattergl/_xsrc.py | 2c107c6b510e42d803ee235a58aa1eabf4f21690 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 386 | py | import _plotly_utils.basevalidators
class XsrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="xsrc", parent_name="scattergl", **kwargs):
super(XsrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
edit_typ... | [
"noreply@github.com"
] | noreply@github.com |
cf6f8f6d79e22e007355a72e0a66fc5164d27ac1 | d3156e543582c201cb8ee76634736842232db6ff | /cwgmedaltally/middlewares.py | 810dd12bfcc1a6d304782447440fefc9f5bd875d | [] | no_license | Madhurmm/cwg_medal_tally | 777b3b9c4abc7325e4b42cc9729b874de9f96e7d | a7915898252d715c19f011d31ebdecf1d7afc5f1 | refs/heads/master | 2020-03-11T03:05:52.651739 | 2018-04-18T14:18:48 | 2018-04-18T14:18:48 | 129,736,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,611 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class CwgmedaltallySpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# s... | [
"madhurmm4u@gmail.com"
] | madhurmm4u@gmail.com |
959d35bd8673cfb03fa83975c5e4b466288fa86d | 5825ee1ec0ba8c24ebe194beabf94bbb72ccaf99 | /Building ontology/Merging_function.py | c443b86424da7eb0a06395e1f37a2c4ac5107c7d | [] | no_license | uliana-sentsova/russian_SPARQL | fd272121429614d326d382ff49f679bb18b74b92 | c593925ed311661dda3a5f3ebd3929707597fb50 | refs/heads/master | 2021-06-08T01:37:17.521784 | 2016-10-31T09:13:32 | 2016-10-31T09:13:32 | 56,520,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | result = []
filename = "MAIN_ONTO_rivers.txt"
with open("PARSED.txt", 'r', encoding="utf-8") as f:
for line in f:
line = line.split("\t")
line = [l.strip() for l in line]
result.append(line)
print(len(result))
dictionary = {}
checked = []
rest = []
for line in result:
try:
if lin... | [
"uliana.sentsova@gmail.com"
] | uliana.sentsova@gmail.com |
ff3179806be417683f17da0629967ff753f5acd1 | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/NLPBook/chapter5/stanford.py | e7a74651d98ea5d99c3a6e7fc528c3f3e51716fd | [] | no_license | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
import sys
import os
# CoreNLP 3.6 jar包和中文模型包
# ejml-0.23.jar
# javax.json.jar
# jollyday.jar
# joda-time.jar
# jollyday.jar
# protobuf.jar
# slf4j-api.jar
# slf4j-simple.jar
# stanford-corenlp-3.6.0.jar
# xom.jar
class StanfordCoreNLP(object):
def __init__(self,jarpath):
self.root = jarpat... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
9f55d5019101be32718fdd9099b71c2cf4b05c1f | a7c1022b272636bc09ddbc323597145630d2942a | /tests/test_application.py | 107d0e5c2a825b34d6bb5bf58f8778e643267f13 | [
"MIT"
] | permissive | gomezjdaniel/sharify-api | 24e8d44023809a13d52563aaa53c32d2d28c14c9 | 383baa5ae089d996c2d68da8b55e566dd0cfbbf9 | refs/heads/master | 2023-05-31T09:50:10.683842 | 2020-01-07T22:20:45 | 2020-01-07T22:20:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from unittest.mock import MagicMock
from app.application import ApplicationFactory
TITLE = 'API'
DESCRIPTION = 'some description'
FACTORY = ApplicationFactory(TITLE, DESCRIPTION)
def create_router():
router = MagicMock()
router.register = MagicMock()
return router
def test_whenCreatingApp_thenTitleI... | [
"alexandre.frigon.1@gmail.com"
] | alexandre.frigon.1@gmail.com |
a95aa94622a80a2031422a715e1dead888f865c7 | ffcfe0dbee140e4ed15e49c8e7feaac020055f36 | /Funny_Js_Crack/60-iqiyi/geetest.py | 324fc575a179e9fab5c52eee648e5b093c777db3 | [
"MIT"
] | permissive | sumerzhang/Func_Js_Crack | d086195a3685fc4612bedeaf950e16c623384cf4 | 8cc8586107fecace4b71d0519cfbc760584171b1 | refs/heads/master | 2022-11-11T22:51:27.250686 | 2020-07-01T15:49:01 | 2020-07-01T15:49:01 | 276,882,145 | 22 | 12 | MIT | 2020-07-03T11:19:48 | 2020-07-03T11:19:47 | null | UTF-8 | Python | false | false | 10,050 | py | # -*- coding: utf-8 -*-
# @Time : 2019/10/7 10:43
# @Author : Esbiya
# @Email : 18829040039@163.com
# @File : geetest.py
# @Software: PyCharm
import re
import json
import random
import time
import requests
from iqiyi.img_locate import get_distance
from iqiyi.process_trace import get_risk_data
from iqiyi impor... | [
"184108270@qq.com"
] | 184108270@qq.com |
a2d4de70557e3e4cd9b206a5a81a6002cbad1b7e | 3572b2f24e6343869b186f86cfc0c1dbb64f8ed8 | /scripts/gen_headers.py | 7aa6e11e1d345cf7bf4598c2ef75e579ab1ad77c | [] | no_license | alessandro-montanari/SONIC | 818656254bf90be8fee29f03dc666d25a161933b | 868bb1def7e71ec791f44aea4f5d7aef5a0b64a7 | refs/heads/master | 2022-11-02T11:45:29.664945 | 2020-06-12T09:45:16 | 2020-06-12T09:45:16 | 271,762,975 | 0 | 0 | null | 2020-06-12T09:42:46 | 2020-06-12T09:42:45 | null | UTF-8 | Python | false | false | 5,786 | py | import os
import pickle
import argparse
import numpy as np
import scipy
import int_test
param_dir = None
header_dir = None
f_lit = lambda x: 'F_LIT(' + str(x) + ')'
def write_header(name, mats):
contents = '#ifndef ' + name.upper() + '_H\n'
contents += '#define ' + name.upper() + '_H\n'
contents += '#include \'<l... | [
"ggobieski@yahoo.com"
] | ggobieski@yahoo.com |
784757326adf4e45de7713243d4dd51030312413 | 6437af616b0752b24e1b62bc98d302b2e04a7c85 | /pagnition/supplier/a1toys.com/pagination.py | b7947798a03944b1fa429b9122e992f170ec3c8d | [] | no_license | kangqiwang/imageWebCrawler | 4c7ebc0c93fd52b27f08a0f79302885d95f53a6e | 76fe21802a5a03638e324e6d18fe5698a69aba70 | refs/heads/master | 2022-05-31T00:51:39.649907 | 2019-08-28T15:06:37 | 2019-08-28T15:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | import pandas as pd
import numpy as np
import requests
def pagnition():
df=pd.read_csv("pagnition/input/a1toys_com.csv",usecols=['Category URL','Product Count'])
tmpList=['url']
for url, count in zip(df['Category URL'],df['Product Count']):
urltmp=''
numbertmp=0
# if "categories/... | [
"kang@sourcemogul.com"
] | kang@sourcemogul.com |
e7102e8a75f1b70c301e29ea4054d292404bf23c | 709bd5f2ecc69a340da85f6aed67af4d0603177e | /tests/test_analytics.py | d6818e163a670b22b8bcf46edc578302d57d81ae | [
"BSD-3-Clause"
] | permissive | Kenstogram/opensale | 41c869ee004d195bd191a1a28bf582cc6fbb3c00 | 5102f461fa90f2eeb13b9a0a94ef9cb86bd3a3ba | refs/heads/master | 2022-12-15T02:48:48.810025 | 2020-03-10T02:55:10 | 2020-03-10T02:55:10 | 163,656,395 | 8 | 0 | BSD-3-Clause | 2022-12-08T01:31:09 | 2018-12-31T09:30:41 | Python | UTF-8 | Python | false | false | 1,647 | py | from decimal import Decimal
from saleor.core.analytics import (
get_order_payloads, get_view_payloads, report_order, report_view)
def test_get_order_payloads(order_with_lines):
order = order_with_lines
generator = get_order_payloads(order)
data = list(generator)
assert len(data) == order.lines.c... | [
"Kenstogram@gmail.com"
] | Kenstogram@gmail.com |
5129f315bcfc269da60e35fe27be4f23c66a4b73 | e80b42fbc5f109f3979537a980eb4ea12668579e | /anagram/anagram1.py | c1dea94a1aa3c2e88e750d66c2a74340d3cfbb68 | [] | no_license | iliefa/pythontries | 63bc38042797a47407a0e99a0c20816a8710027b | 7ee793c6a248bc98da495d5936290c476bf4d77c | refs/heads/master | 2020-11-25T11:13:46.212549 | 2019-12-18T11:56:08 | 2019-12-18T11:56:08 | 228,633,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | test_list = [10,4,5,8,11]
print("original list"+ str(test_list))
flag = 0
test_list1 = test_list[:]
test_list1.sort()
if (test_list1 == test_list):
flag = 1
if (flag):
print("list is sorted")
else :
print("list is not sorted") | [
"andrei.ilief@orange.com"
] | andrei.ilief@orange.com |
030b9637a9a4ea51407b961085ffa343a2134707 | 52d000f6dddcc3cf22f7418a6d116d713e8e7d13 | /count_sort.py | b1ba373fbc583cb28dcd390db53a1f2425c3253b | [] | no_license | TianyiY/Sort_Algorithms | 8317e8f71b0ae2ca3692977e9d4ebe82aaecb28d | a21ced94b05d8d808cf51d2d6bab158a5b3fbf13 | refs/heads/master | 2021-01-19T07:12:58.901291 | 2019-01-25T01:44:25 | 2019-01-25T01:44:25 | 95,682,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | def count_sort(list):
import numpy
minimum=numpy.inf
maximum=0
# retrieve the min and max value
for i in list:
if i < minimum:
minimum=i
if i > maximum:
maximum=i
count_list=[0]*(maximum-minimum+1)
for i in list:
count_list[i-mini... | [
"noreply@github.com"
] | noreply@github.com |
987a83e80e30dcd1ceb4d43b399649ee7698b706 | c81ae49611329f79992054fd0c4a3a1df12cc6a1 | /ml-library/main.py | 8418089057aa1ff73029c72d0801fd8ddde18cf4 | [] | no_license | ce-itcr/CE5508-laboratorio-git | 954e4fcba5a529bcb433c008f80ff3b29ebcf241 | e4bbafe254c015cbaf4f4c741e9874e9561308fa | refs/heads/main | 2023-07-12T07:52:47.095162 | 2021-08-19T04:17:26 | 2021-08-19T04:17:26 | 397,759,614 | 0 | 0 | null | 2021-08-19T04:17:27 | 2021-08-18T23:26:03 | JavaScript | UTF-8 | Python | false | false | 55 | py | print('Hello World!')
print('PT001 - Test with hooks')
| [
"angelo2898@gmail.com"
] | angelo2898@gmail.com |
b55643fcff23f3cfd287575893b92be9ceb28574 | 017493ea878a39b877c7f6801af98caa1e3feb97 | /Python/09 - Errors and Exceptions/Incorrect Regex.py | 4482874ad187786d9c69f145bc3f65df2d8d57c0 | [
"MIT"
] | permissive | BHAVJOT14/HackerRank-Solutions | 569b15738b7baed987bf4719e8f89239faed191e | 8fe0280f5ce150a28598be71dc7ab6f06318e4d5 | refs/heads/main | 2023-07-16T09:52:48.955592 | 2021-09-07T16:00:22 | 2021-09-07T16:00:22 | 394,179,235 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py |
import re
for i in range(int(input())):
try:
a = re.compile(input())
print("True")
except Exception:
print("False") | [
"68502679+bhavi140201@users.noreply.github.com"
] | 68502679+bhavi140201@users.noreply.github.com |
87c3f5e9e98139684c31bf71c78d561487e8ea87 | 51ddc39b5427404836547612c7bed86ab6b1ba67 | /courses/views.py | 075b1fb61a43ea56ed4d4f2407d7c6655c1f8e52 | [] | no_license | alex-run-code/educa | 17931e02d7a08a5bd4fa65ce3a6aa5614388aca8 | bbb4b42f816d9c4ff378beb215de6291b8e59448 | refs/heads/main | 2023-01-29T16:33:07.706400 | 2020-12-15T10:48:11 | 2020-12-15T10:48:11 | 319,874,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,557 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.utils.decorators import method_decorator
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import DetailView
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView, ... | [
"acambefort@pentalog.com"
] | acambefort@pentalog.com |
b0183013bf5ccd8486f76a0a40e1385241afaec7 | 2fc31334b2996b8bdfb6ef0b71a1d5c0efd1e4ed | /mailsploit.py | a6ee28d813a25032a4b94ee9db4bda70e73251c7 | [] | no_license | shorti1996/mailsploit_me | 6538a30a0199b4ef8b9cad0ade8fbdd50ab6a670 | b042f613af7b8b944ee24975b3406aab8a76e828 | refs/heads/master | 2021-05-06T04:19:47.791260 | 2020-02-03T11:57:19 | 2020-02-03T11:57:19 | 114,993,158 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | import smtplib
from lazyme.string import color_print
from vals import nato_example
spoofed_display_name = "עבריתעבריתעבריתעבריתעברית"
# spoofed_display_name = "gowno"
# spoofed_from = "=?utf-8?b?c2VydmljZUBwYXlwYWwuY29tPGlmcmFtZSBvbmxvYWQ9YWxlcnQoZG9jdW1lbnQuY29va2llKSBzcmM9aHR0cHM6Ly93d3cuaHVzaG1haWwuY29tIHN0eWxlPSJ... | [
"shorti1996@gmail.com"
] | shorti1996@gmail.com |
4ae396cd061bc5d5104ddaff784f3ffe16673c89 | 32402ec0fb7cece6a4b7f64524f45196db48b8c6 | /fmd_track/fmd_track/settings.py | b33acef3bddac9c0bd343e008d13abf11065c203 | [] | no_license | ArtyomMinsk/FMD_records | 2a12c85211cdf93144bc1c1498bdfbf4cca94296 | 2bea82483b11de422f7bededc2a12d8211197c2c | refs/heads/master | 2021-01-22T08:28:14.560321 | 2017-02-28T20:54:22 | 2017-02-28T20:54:22 | 81,902,019 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | """
Django settings for fmd_track 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 ... | [
"artem.nesterenko@gmail.com"
] | artem.nesterenko@gmail.com |
51a44f03eb696ececa3a9e650a63d3177d62f625 | 976a21364b7c54e7bccddf1c9deec74577ce8bb8 | /build/rob_control/catkin_generated/pkg.develspace.context.pc.py | ae505c4d62a69cc0f460001a4541d25f31f1d6e7 | [] | no_license | jinweikim/catkin_ws | f0168b17c04863a6e5472f6199a4a9c525e0f3aa | 268ce7e348a162019e90d0e4527de4c9140ac0f8 | refs/heads/master | 2023-01-02T17:23:06.834527 | 2020-10-23T12:03:49 | 2020-10-23T12:03:49 | 262,527,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "actionlib_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rob_control"
PROJECT_SP... | [
"jinweikim@gmail.com"
] | jinweikim@gmail.com |
2b6b9fdb0f744756e2cee975230f11c0238b45ea | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /sparse-evolutionary-artificial-neural-networks/SET-MLP-Keras-Weights-Mask/set_mlp_keras_cifar10.py | 1a61f24283ff805b0be5792da50162cb6b2a6831 | [
"BSD-3-Clause",
"MIT"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,286 | py | # Author: Decebal Constantin Mocanu et al.;
# Proof of concept implementation of Sparse Evolutionary Training (SET) of Multi Layer Perceptron (MLP) on CIFAR10 using Keras and a mask over weights.
# This implementation can be used to test SET in varying conditions, using the Keras framework versatility, e.g. various opt... | [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
38c685e5b3daa3c48549492e8305d7c6ec9b4a63 | 12b41c3bddc48a6df5e55bd16f7b2792ed6e4848 | /k8_vmware/vsphere/VM.py | 7d14aa69fb7f78566e20968c659a9f980499f6e4 | [
"Apache-2.0"
] | permissive | NourEddineX/k8-vmware | b128b03b988f8a94d6029458c5415cdd68e12b0a | 80f2a6d56021a1298919487c8372a88aff3f1fb9 | refs/heads/main | 2023-01-23T22:59:41.767216 | 2020-12-11T12:33:11 | 2020-12-11T12:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | import pyVmomi
from osbot_utils.utils.Misc import wait
from k8_vmware.vsphere.VM_Keystroke import VM_Keystroke
class VM:
def __init__(self, vm):
self.vm = vm
def config(self):
return self.summary().config
def controller_scsi(self):
controllers = self.devices_SCSI_Controllers()
... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
4aa11ff5954703255ef2662ebc7538a8a164e33c | 0eb6c70503c680ebec415016ff1b0cfac92486ca | /lincdm/views/sitemap.py | f33aa93f833be7422fb0e7b0f58bb61365b8d717 | [] | no_license | alexliyu/lincdm | c8b473946f59aca9145b3291890635474f144583 | eab93285f0b03217ea041a7910edae7e00095cd8 | refs/heads/master | 2020-12-30T10:50:05.248988 | 2011-08-09T15:52:38 | 2011-08-09T15:52:38 | 1,464,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | """Views for entry sitemap"""
from django.views.generic.simple import direct_to_template
from lincdm.entry.models import Entry
from lincdm.entry.models import Category
def sitemap(*ka, **kw):
"""Wrapper around the direct to template generic view to
force the update of the extra context"""
kw['extra_conte... | [
"alexliyu2012@gmail.com"
] | alexliyu2012@gmail.com |
a0d7dc6aad5a1fd9f719eb435d819dfdcb3064b5 | 70645d514c24bee0bb02754d43242f4e2c591e42 | /sgschema/entity.py | ab827a53711279a7a154729a1625e824bf587eb5 | [] | no_license | westernx/sgschema | a0aa6e876dc2b20adc998cd5a2aadad4df4d3b55 | 54df94aa5f4c4ae3f78da20380e824231813e8f6 | refs/heads/master | 2020-12-24T16:06:27.689021 | 2016-04-12T19:10:43 | 2016-04-12T19:10:43 | 42,960,601 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from .field import Field
class Entity(object):
def __init__(self, schema, name):
self.schema = schema
self.name = name
self.fields = {}
self.field_aliases = {}
self.field_tags = {}
def _get_or_make_field(self, name):
try:
retu... | [
"westernx@mikeboers.com"
] | westernx@mikeboers.com |
46c18773851d9d50911af3f748b4d8451a0762f9 | e9fa63cc09969ac8f01c185ec5e368ff0b682c42 | /powerline/powerline/lib/vcs/__init__.py | 8666f2bf862071b32e9faba1f11a69be8a882675 | [
"MIT"
] | permissive | harrisjb/dots | 56ff6248e4edd92e4d62768b0ad6f844ca97079e | 766be30cb172770bc032f49166bf13fab94e0be8 | refs/heads/master | 2021-01-10T21:38:21.528214 | 2014-02-28T16:03:08 | 2014-02-28T16:03:27 | 17,290,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,738 | py | # vim:fileencoding=utf-8:noet
from __future__ import absolute_import
import os, errno
from threading import Lock
from collections import defaultdict
vcs_props = (
('git', '.git', os.path.exists),
('mercurial', '.hg', os.path.isdir),
('bzr', '.bzr', os.path.isdir),
)
def generate_directories(path):
if os.path.is... | [
"jharris@peopleadmin.com"
] | jharris@peopleadmin.com |
aa953a7d03b633cf3ae233b5c331b067e916dc29 | 6ccea6f389fb13f1469a4f75c720db91592395bb | /venv/bin/dotenv | a779e56f69dded9b4b4e354736ed9d4d4ac1bd44 | [] | no_license | JessicaBPerez/Flask-Project | a8ea5c147c98fbd0b5991453612d1f1d1e572b4c | 98351b23cfdc7009504a1e1ebd7baeb55e6fc8df | refs/heads/master | 2022-12-26T21:08:37.647859 | 2019-09-27T14:23:28 | 2019-09-27T14:23:28 | 211,336,289 | 0 | 1 | null | 2022-12-13T23:38:59 | 2019-09-27T14:22:21 | Python | UTF-8 | Python | false | false | 257 | #!/Users/jessicaperez/treehouse/flask-s3-browser/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from dotenv.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"jessicaperez@Jessicas-MacBook-Pro-2.local"
] | jessicaperez@Jessicas-MacBook-Pro-2.local | |
9a6d7093b0ded82b5b610224adbf3fcff552c51b | ecad74f53abefd26d39359293237fa6fcb098fd3 | /apps/restApi/app/worker/client/clientController.py | bb39c5389d91982964197ebf1922024c84221a2b | [
"MIT"
] | permissive | JaeYoung1994/Integrated-solution-management-admin-web | d7a923bcd251cf750b47653a60c62620ae9679b5 | 481cfa2bc206db9bd7ff3b534eba64f148dda2d4 | refs/heads/master | 2023-04-05T10:17:51.604195 | 2021-04-01T16:37:45 | 2021-04-01T16:38:03 | 353,096,275 | 1 | 0 | null | 2021-03-31T01:42:03 | 2021-03-30T18:05:23 | Python | UTF-8 | Python | false | false | 3,543 | py | import copy
from flask import request
from flask_restx import Resource, Namespace, fields
from model.redis.worker.client.clientRedis import ClientRedis
from common.utils import Utils
from common.code import ReqCode, CommonCode
ra_worker_client = Namespace(
name='worker_client',
description='Worker to client A... | [
"shiptroll@gmail.com"
] | shiptroll@gmail.com |
f20a18ba8049e30bb628330e99bb1aa9e3c05778 | 1643eab131031cde6a9e87937cf255bc12942603 | /DFT/silicon_SCAN_KIH/09-inteqp/plot_inteqp.py | a5ddabe05a2657ecc5115960fc918beb1ed3bd87 | [] | no_license | BerkeleyGW/BerkeleyGW-examples | 619cfc7cef20768c9cfb21d770a5f95562050a57 | df3fdd910b4b5f8e61e292bc25a75d5d2a96f67a | refs/heads/master | 2021-06-07T20:44:27.534328 | 2021-06-06T05:16:17 | 2021-06-06T05:16:17 | 157,264,924 | 8 | 8 | null | 2021-06-06T05:16:18 | 2018-11-12T19:29:09 | Standard ML | UTF-8 | Python | false | false | 1,525 | py | #!/usr/bin/env python
#coding: utf-8
# This scripts plots the GW bandstructure of Si interpolated with the inteqp code.
# It reads the bandstructure.dat file from the inteqp.real.x code, and produces
# the output file "bandstructure_inteqp.pdf".
#
# Felipe H. da Jornada, UC Berkeley (2016)
import numpy as np
import m... | [
"zhaofangzhou@berkeley.edu"
] | zhaofangzhou@berkeley.edu |
20de67c990dce38433d7243d2f07868697593df2 | ebf6fb4414fb5c304dad1234fc910e3298034322 | /CraftWeb/CraftWeb/settings.py | 99b20e77ba57f4884111f83bea680c144bb9deef | [] | no_license | MSVarshini/CarftWeb | 7b4d9543623759bc8d4e0f1f32a87ff3d60eeb77 | 998bb5967f59cc9bf6fd2fdec6dc232f449b1f86 | refs/heads/master | 2023-08-06T23:37:12.694097 | 2021-10-08T07:00:24 | 2021-10-08T07:00:24 | 377,435,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | """
Django settings for CraftWeb project.
Generated by 'django-admin startproject' using Django 3.2.
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 ... | [
"msvarshini2017@gmail.com"
] | msvarshini2017@gmail.com |
0584747d8f65280307db8e8f7a973bf9d702eb19 | 39f1ae1e3b95d717f6d103b3ac534b468090c36f | /py_blackbox_backend/py_blackbox_backend/settings.py | 52046da510da0ace923632f0a9d29badf4aa06f4 | [] | no_license | arron1993/blackbox.arron.id | 5d532af4e9557986f8af5c9018d9d789bbd03470 | 4da60f3dd524bd0afbdc3613767a818bcab1cd8d | refs/heads/master | 2023-05-04T05:19:15.792063 | 2021-05-20T20:34:28 | 2021-05-20T20:34:28 | 346,052,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | """
Django settings for py_blackbox_backend project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
i... | [
"arron.moore93@gmail.com"
] | arron.moore93@gmail.com |
a47f4334ddb60f8f67f9a7edac853de8ffff5e6a | e461234a9898186795e2bb7938d7fc8bf05d988b | /ichimoku_strategy.py | 9b39f64c9ac1e82825d0fb676dff376f96069b84 | [] | no_license | hajtos/PYTHON_Ichimoku | 46e13139b2986b6e66745f447f02cfc35a9d4f89 | c7d5d5389da0fada5d089048c953d7b03a92dd62 | refs/heads/master | 2020-04-07T05:37:48.339847 | 2019-01-29T18:58:41 | 2019-01-29T18:58:41 | 158,103,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,499 | py | from strategy import Strategy
class ZigZag:
def __init__(self, fraction, graph):
self.peaks = [(0, graph.close(0))]
i = 1
while graph.close(i) == graph.close(0):
i += 1
direction = 1 if graph.close(i) >= graph.close(0) else -1
curr_peak = graph.close(i)
... | [
"hajtos2@gmail.com"
] | hajtos2@gmail.com |
fbca50ebf0262d7c137ebc41118f7bd0b71c47de | 674649dc02390c4a60b9c62b586b81d405969047 | /network/__init__.py | 19f1226938b882bcbc77dc6b13f7782a531efc6f | [] | no_license | weijiawu/Pytorch_Classification | 709513be3e019a896ef11a1739829a97bb99c9db | 7609a1d809590c1423f4ed0ee1f0d918954355a9 | refs/heads/master | 2022-12-06T00:51:26.716590 | 2020-09-01T07:38:22 | 2020-09-01T07:38:22 | 285,811,133 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | from __future__ import absolute_import
"""The models subpackage contains definitions for the following model for CIFAR10/CIFAR100
architectures:
- `AlexNet`_
- `VGG`_
- `ResNet`_
- `SqueezeNet`_
- `DenseNet`_
You can construct a model with random weights by calling its constructor:
.. code:: python
import tor... | [
"wwj123@zju.edu.cn"
] | wwj123@zju.edu.cn |
c90fa5d1e85ccb1e4f8644e66559e019c9bd42f2 | afead29a6bad77ecb242f8ad8daf23b940597670 | /MRNet_code/trainer/trainer_cvpr.py | 9989f1801d25ac6bab3f332df4ec99d13527c190 | [
"MIT"
] | permissive | ShikunLi/MRNet | 6212b79df59618fd2cf361cb9cf0f395e0124deb | 0778f52abb19fd4ae29a5ede21c06afa37c11ba4 | refs/heads/main | 2023-08-27T22:38:38.463251 | 2021-11-04T14:20:42 | 2021-11-04T14:20:42 | 427,638,865 | 1 | 0 | MIT | 2021-11-13T10:53:05 | 2021-11-13T10:53:04 | null | UTF-8 | Python | false | false | 18,819 | py | # -*- coding: utf-8 -*-
import math
import datetime
import losses
import os
from tqdm import tqdm
from utils.dice_loss import *
import torch.nn.functional as F
import numpy as np
from skimage import io
from tensorboardX import SummaryWriter
from torch.optim import lr_scheduler
from torch.autograd import Variable
impor... | [
"noreply@github.com"
] | noreply@github.com |
53c54b3bb8aa86926e8da089255feac5d79acd81 | 703f96e9e02eea9271f0600a0a43bfdc8ba68a39 | /src/door.py | ca09a77dd42f6960f44ffee69564c7618222be24 | [] | no_license | den01-python-programming-exercises/exercise-4-6-door-JaimePSantos | 783ce7f49fc377cb2ecad8e0fd25170fcfb91b65 | 2f71b62c51ea312c7d47b6c34cf42e856af5fc40 | refs/heads/master | 2022-12-31T17:36:55.887119 | 2020-10-23T18:23:23 | 2020-10-23T18:23:23 | 306,714,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | class Door:
def knock(self):
string = "Who's there?"
return string | [
"jaimepereirasantos123@gmail.com"
] | jaimepereirasantos123@gmail.com |
2253f51070af3a30cfaaadf9e925f042bb219d46 | b1e26b026b9ba4bb15a1637bcadd1132483d641d | /crm/admin.py | f75b295b5e3ef9273d2e606d7e8dc958bbe9fc19 | [] | no_license | ISQA-3900/assignment-2---django---integrated-multi-table-app-nmogulla | 9dba15c91f7c9c929531e85504fe83104c23217d | 63002302522abe1390d870941984d935dbe9d70f | refs/heads/master | 2023-08-21T08:36:45.375560 | 2021-10-11T02:10:21 | 2021-10-11T02:10:21 | 413,619,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Customer, Product, Service
class CustomerList(admin.ModelAdmin):
list_display = ('cust_name', 'organization', 'phone_number')
list_filter = ('cust_name', 'organization')
search_fields = ('c... | [
"nmogulla@unomaha.edu"
] | nmogulla@unomaha.edu |
52fa3bcb6d8de108f027202df9afe5a89cc91e52 | 3e6698cc434f17c0ae1a490bf8f5f05eda02a717 | /blues/models/_model_consts.py | f6f87b34fcd887d67df9bcf04716fdafb6fe77a7 | [
"MIT"
] | permissive | Kageshimasu/blues | dc6c1406712310dd395541f8892cb00328973959 | a808fb8da86224f2e597916b04bdbd29376af6bb | refs/heads/master | 2023-02-08T16:04:58.517992 | 2020-06-27T11:59:10 | 2020-06-27T11:59:10 | 259,553,037 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | from typing import List
class _ModelConst:
NUM_CLASSES = 'num_class'
NETWORK = 'network'
STATE_DICT = 'state_dict'
OPTIMIZER = 'optimizer'
MODEL_NAME = 'model_name'
class ConstError(TypeError):
pass
def get_all_consts(self) -> List[str]:
return [self.NUM_CLASSES, self.NET... | [
"kageshimasu@docomo.ne.jp"
] | kageshimasu@docomo.ne.jp |
52554e6778796bdb4bc189811f7e83fdaf18cf7a | 4334a4b17dd6b4b094c7387ed70d4ad0442231e4 | /report_email.py | d35d5c8a47dd179f937e017dafe66f9fc553dbb4 | [] | no_license | ymuehara/Automating-Real-World-Tasks-with-Python-Week-4 | f3fe1506bec4cb1677a3b73ea78f8f45df9a755a | 9de4a3c32f6a07f24779f2059c4491113f64e2f3 | refs/heads/main | 2022-12-29T08:33:53.148697 | 2020-10-15T02:09:54 | 2020-10-15T02:09:54 | 303,873,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/env python3
# https://docs.python.org/3/library/email.examples.html
import os
from datetime import datetime
import reports
import emails
def process_data(path):
data_processed = []
files = os.listdir(path)
for file in files:
if file.endswith(".txt"):
with open(path + file,... | [
"yuriuehara@hotmail.com"
] | yuriuehara@hotmail.com |
55058d7c8d58c89e603d4127debeb4b8df5bd25a | 70730512e2643833e546e68761ee6cd3d7b95e1d | /01-python基础/code/day03/day02_exercise/exercise03.py | fadfaaf9e18f4ab6a6bc3a1b8aadc81dd9936e0a | [] | no_license | Yuchen1995-0315/review | 7f0b0403aea2da62566642c6797a98a0485811d1 | 502859fe11686cc59d2a6d5cc77193469997fe6a | refs/heads/master | 2020-08-26T23:16:33.193952 | 2019-10-24T00:30:32 | 2019-10-24T00:30:32 | 217,177,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
(扩展)在控制台中录入一个秒,计算是几小时零几分钟零几秒钟.
"""
# 10:40
total_second = int(input("请输入总秒数:"))
second = total_second % 60
hour = total_second // 60 // 60
minute = total_second // 60 % 60
# 在字符串中插入变量:
# “...x...” “..."+变量+"...”
print(str(hour) + "小时零" + str(minute) + "分钟零" + str(second) + "秒钟")
| [
"2456830920@qq.com"
] | 2456830920@qq.com |
b091cfdd03c19aa61ef1f7a7e0d7a8286817af51 | bedb42966c191869be69a96b854d701bae0bcdf4 | /results/Adaptive-vs-Direct/linear_kl.py | 48147a5b1e641d265d6f40867ea8e8bd32edb6f2 | [] | no_license | erlerobot/parallel-trpo | 9a1648f5b97b32dffe9a8acbadef55d39b4e3852 | 99298a7be7b88826d95b7f3e0f7fef5e0a7d7361 | refs/heads/master | 2021-01-25T12:01:28.920142 | 2018-03-02T15:33:58 | 2018-03-02T15:33:58 | 123,452,667 | 0 | 0 | null | 2018-03-01T15:21:37 | 2018-03-01T15:21:37 | null | UTF-8 | Python | false | false | 959 | py | import numpy as np
import matplotlib.pyplot as plt
import json
import sys
task = "HalfCheetah-v1"
times = []
rewards = []
t = []
r = []
trials = ["Reacher-v1-linear-0.000001-0.000000","Reacher-v1-linear-0.000010-0.000000","Reacher-v1-linear-0.000100-0.000000"]
for i in xrange(len(trials)):
with open(trials[i]) a... | [
"kevin@bobthechicken.com"
] | kevin@bobthechicken.com |
2480acef9f0f7d75bfb2054c94e349972ba33e3d | c5702152253670b4d73b104933780ba4af0dd3f8 | /chapter14/MongoDB_py_14_2.py | 457d8f4582cda7460e84e09d2ab0ec68521b2780 | [] | no_license | Pyrarc/TW_MongoDB_Book | a8519e386148a15c3c4255f0bdfbff8e20ce12c7 | 4ba5c709463c6991af9c2abd77b397b9e19c5510 | refs/heads/master | 2020-09-21T09:49:41.658095 | 2020-01-30T17:26:25 | 2020-01-30T17:26:25 | 224,758,007 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | #!/usr/bin/python
#This Python file uses the following encoding:utf-8
#14.2 建立連接與斷開連接
#-1. 建立連接
#導入pymongo包
import pymongo
#連接MongoDB字串
mongodb_server_uri="mongodb://<mongodb_user>:<mongodb_pwd>@127.0.0.1:27017"
#建立與MongoDB的連接,並將此連接賦值給自訂的“mongo”變數
mongo=pymongo.MongoClient... | [
"noreply@github.com"
] | noreply@github.com |
3b5faf029aed4be7d85694ac734b8aed784d187a | b156aad4624ec6dbc2efcca93181bbb948d16cc6 | /utils/utils.py | c128221bb9fdc076717f2e26e232be3b58d048cc | [] | no_license | itang85/bookshop-django | d191e2af002db94073ee8c59eeb768002443958f | b136629b4e5b1dc7f0661e4b06618f31c95d7ede | refs/heads/master | 2023-03-28T02:59:06.729909 | 2021-03-05T15:41:49 | 2021-03-05T15:41:49 | 332,227,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | import base64, json, re, jwt, datetime, time, hashlib, random
from calendar import timegm
# 导入谷歌验证码相关模块
# import pyotp
# 导入使用缓存的模块
# from django.core.cache import cache
from rest_framework.throttling import BaseThrottle
from django.conf import settings
from conf.area.area_list import area_dict
from utils.settings im... | [
"1094252227@qq.com"
] | 1094252227@qq.com |
53b55c5666eddc66b6f56eb33b1291a42a745e77 | d98c999992219106832354bf329308ece67785b7 | /food/models.py | b30a93daada7efa6c4c591f5aaf0bd531f51239f | [] | no_license | shadownetz/shadownetzPortfolio | 5f60ac1ce8b6fb38db90b1446e7eabae29c134d2 | 2f807c83f34a43310b49d396b5e0f8e3ede2aa6b | refs/heads/master | 2023-04-04T13:32:49.372823 | 2021-04-16T16:26:43 | 2021-04-16T16:26:43 | 230,619,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | from django.db import models
from django.conf import settings
class FoodBlog(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True, blank=True)
title = models.CharField(max_length=100, blank=False)
content = models.TextField(blank=False)
tags = models.Ch... | [
"okwuzuchiagozie@gmail.com"
] | okwuzuchiagozie@gmail.com |
8c6784949a110d4a088c4068d153e777332244b5 | beeb17bbfd7e47d81e90e6f79ca1e5e86d475302 | /LeetCode/Easy/1005.py | 9736f9fd354894d192a69a9ba28113e2de10efb1 | [
"Apache-2.0"
] | permissive | jonturkz/Competitive-Programming | a6b4b14d5cb72629234c3336a7cd711af8f13116 | 972c7e1b10c6c2701212c75b225daebcbe2e54f6 | refs/heads/master | 2022-11-17T05:47:22.423679 | 2020-07-16T15:51:22 | 2020-07-16T15:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | '''
@Author: zhaoyang.liang
@Github: https://github.com/LzyRapx
@Date: 2020-01-20 22:51:56
'''
class Solution:
def largestSumAfterKNegations(self, A: List[int], K: int) -> int:
if len(A) == 0:
return 0
if K == 0:
return sum(A)
heapq.heapify(A)
for _ in range(K... | [
"1303377506@qq.com"
] | 1303377506@qq.com |
8d92025dbf2bb0cea6804b60fd1baa86386d8e3d | 737f0e29fb28a4d6d0de15ef1664e68bf8d8fad3 | /pwndbg/gdbutils/__init__.py | 9bbeebc32d5a5e9603f23e6668e87519a1a89611 | [
"MIT"
] | permissive | MachineHunter/pwndbg-perceptor | ff90038bf569c523f0759899fb36f98023529084 | 183b03a7a299363632a80be0686d099976659bad | refs/heads/master | 2023-08-13T09:32:36.039009 | 2021-10-08T07:17:03 | 2021-10-08T07:17:03 | 409,278,625 | 0 | 0 | MIT | 2021-10-08T02:22:12 | 2021-09-22T16:31:01 | Python | UTF-8 | Python | false | false | 82 | py | # -*- coding: utf-8 -*-
"""
Put all new things related to gdb in this module.
"""
| [
"noreply@github.com"
] | noreply@github.com |
ba6698bc8cf2a56dd3bd8e3bf35d8d37a1c3de83 | 771559e2a67798375e818e845acfb96f6aa87045 | /Practice/pattern_programs/reverse_pyramid.py | c2d8d9889efe754dbc5bcd9f651ed2908fb5c819 | [] | no_license | krishnareddygajjala/flash | 1bd723f26c8d41feffbabf2cb4111402ff309f7a | f59b3de0726a8836c27cc550071e534b8edb4230 | refs/heads/master | 2018-11-08T06:43:49.345685 | 2018-08-28T13:05:46 | 2018-08-28T13:05:46 | 114,076,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py |
num = int(raw_input("enter no of rows : "))
for i in range(num,0,-1):
for j in range(0,num-i):
print "",
for j in range(0,i):
print "* ",
print "" | [
"gvkreddy71@gmail.com"
] | gvkreddy71@gmail.com |
2443df63e5d4c5517962c02559362d1ca4ab1294 | cf2aec9e7669f239280f380ca9729c02c64f4acb | /src/爬虫/jd/jd/jd/pipelines/pipelines.py | 4f8043d7dbf136f306a1688d9cb55ceaa367c8b3 | [] | no_license | scutkaihua/learning-python | 6b7b685d1e4c263d4370b2bc6f326e35c35ad748 | 157a1b774e20fffa80c2b23ad048180d1d18f841 | refs/heads/master | 2023-01-24T05:50:31.193532 | 2020-11-26T09:19:47 | 2020-11-26T09:19:47 | 298,978,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
import json
class JdPipeline:
def __init__(s... | [
"kaihua.yang@163.com"
] | kaihua.yang@163.com |
b0a4fdf7a72979e444fdfa623f69a8f29cd809db | 13a179f6251d8354b058ff02b3101d904b606f0b | /src/shepherd_simu/src/sailboat_sim.py | 55da970d98847cf36e6b2ca0d542b0e025b062a6 | [
"MIT"
] | permissive | ENSTA-Bretagne-Shepherd/Shepherd-Ros-Structure | 4bb2ecb146e9fbc0897a780980634a711dc1788b | 6ce33426911fc50dfd61f165d73efe9702c2009b | refs/heads/master | 2021-01-12T08:36:38.511501 | 2017-02-22T13:20:17 | 2017-02-22T13:20:17 | 76,635,278 | 1 | 0 | null | 2017-02-10T16:13:33 | 2016-12-16T08:16:52 | CMake | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python
import rospy
from models.sailboat import Sailboat
from shepherd_reg.msg import SailboatCmd
from shepherd_disp.msg import SailboatPose
from std_msgs.msg import Float64
def update_cmd(msg):
global cmd
print 'Updated cmd:', msg.rudder_angle, msg.sail_angle
cmd = [msg.rudder_angle, msg.s... | [
"ejalaa12@gmail.com"
] | ejalaa12@gmail.com |
951e54a1ed72d5527bcb0dd1b534c6ef1079a65b | 2cc84af3d2a146b4dbb04bed3cfd542fa0622489 | /image-tools/image_clustering/tile_clustering.py | 1047091f0afa7d8cb8376a27b8df124a3fda22b4 | [
"MIT"
] | permissive | flegac/deep-experiments | e6a05b1a58eadf4c39580e95bb56d311e3dfa0ac | e1b12e724f2c8340cbe9c51396cf3f42e3b4e934 | refs/heads/master | 2020-04-09T00:20:15.132255 | 2019-10-11T16:39:47 | 2019-10-11T16:39:47 | 159,862,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,458 | py | import glob
import os
from typing import List, Callable
import cv2
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.colors import to_rgb
from scipy.stats import wasserstein_distance
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.pipeline import Pipeline
from im... | [
"florent.legac@gmail.com"
] | florent.legac@gmail.com |
d296839330771f766c3d3017ae333bce65eb9717 | 9797b289a89012f381c6b1de794374ab0d73ed1a | /Chapter_4/4.13.py | cfbf7008b36941149c4702d4cd9dc81c4bac8279 | [] | no_license | qh4321/1_python_crash_course | 23c26d1c39cd0808e987fb8992e092a34aacc489 | aa2d72857e3173a3951e52538607b6e331f50a24 | refs/heads/master | 2022-12-31T09:03:47.660232 | 2020-10-22T13:33:13 | 2020-10-22T13:33:13 | 301,715,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | buffet = ('beef', 'chicken', 'nuddle', 'egg', 'fish')
print('\nYou can choose from the following menu items:')
for food in buffet:
print('- ' +food)
buffet = ('beef', 'chicken', 'nuddle', 'duck egg', 'pizza')
print('\nOur menu has been updated.\nYou can now choose from the following menu items:')
for food in buffe... | [
"52791020+qh4321@users.noreply.github.com"
] | 52791020+qh4321@users.noreply.github.com |
588b694346582a0678e68e17a1ba246a85b81a9f | 71249a03c862007f97fc1af2c5ce41b5e170a8fe | /project/CensorThis_WebApp/serializers.py | 5c108491518e4a5d2f8b9b8af301040cc3e5e5af | [] | no_license | ShayGeko/Fall2020-Hackathon | 0f5d0a59ea9274c06df81e2263979228b3e968db | 2228cbdd694caa558946bbe4bfac465c5def5981 | refs/heads/main | 2023-01-06T23:02:11.525821 | 2020-11-09T04:18:20 | 2020-11-09T04:18:20 | 310,875,500 | 0 | 0 | null | 2020-11-08T03:26:33 | 2020-11-07T15:34:56 | Python | UTF-8 | Python | false | false | 1,045 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from CensorThis_WebApp.models import Censor
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ['url', 'username', 'email', 'groups']
class GroupSerializer(serial... | [
"shramko.georgiy@gmail.com"
] | shramko.georgiy@gmail.com |
d6ce1c57d5d48ad3fcd540884b07b83997ecc399 | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/mass_mailing/tests/test_mail.py | 09822f1c111822ef55b13830edbcad40590accf1 | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from gerp.addons.mail.tests.common import TestMail
class test_message_compose(TestMail):
def test_OO_mail_mail_tracking(self):
""" Tests designed for mail_mail tracking (opened, replied, bounced) """
... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
536b5a31bb0aab2c739d1cca6e137402a670a21d | 358e1f9957c7c3aeaf2bd45d1d0a9cddc2f77180 | /Lesson 4/Lesson4 - type hinting/type_test.pyi | 03ba1f989bd692d85e0d4773439d0d77d434d812 | [
"MIT"
] | permissive | kiruxa555/MADPythonCourse | 906e4f272aa47722586e18974239cf841aa9a3ca | f3bd38dcd30dc220bd691d301b2845401cc70b2e | refs/heads/master | 2023-06-12T02:21:11.572197 | 2021-06-30T08:07:10 | 2021-06-30T08:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | pyi | def add(a: int, b: int) -> int:
... | [
"madmasm@gmail.com"
] | madmasm@gmail.com |
8f070f7d9758539e7bd4263bceb1250c00f22a0a | 5e2c41f3ab0c55e6a71ae421b3a99c46482efe6e | /ethstats.py | 6ff00d14dc7754e54196cb0c4c07600b933053dc | [] | no_license | rytisz/utils | 9bff61ac2559b601ec3484bcee246e4ebe5b3c0f | f5178a98acf739745ff72ee41d0de6bc993f8ed5 | refs/heads/master | 2021-01-19T18:53:13.478723 | 2017-03-04T00:57:47 | 2017-03-04T00:57:47 | 83,710,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | #!/usr/bin/python
from optparse import OptionParser
import time
import sys
parser = OptionParser()
parser.add_option("-n", "--period", dest="PERIOD", default=1,
help="average period in seconds, default 1 sec")
parser.add_option("-i", "--interface", dest="INTERFACE", default="all",
... | [
"rytiszigmantavicius@gmail.com"
] | rytiszigmantavicius@gmail.com |
4fe27b358e04b2dd76cba83b1b138fdd6e369026 | 29fd3daff8c31764c00777e67d2cc9b3e94ba761 | /examples/ch05_examples/mandelbrot/mandelbrot/cython_pure_python/setup.py | 440f9ca05742dda490c59ab9d203bd5d6f221906 | [] | no_license | mwoinoski/crs1906 | 06a70a91fc99e2d80e2ed3cea5724afa22dce97d | 202f7cc4cae684461f1ec2c2c497ef20211b3e5e | refs/heads/master | 2023-06-23T17:13:08.163430 | 2023-06-12T21:44:39 | 2023-06-12T21:44:39 | 39,789,380 | 1 | 2 | null | 2022-01-26T20:43:18 | 2015-07-27T17:54:56 | Python | UTF-8 | Python | false | false | 424 | py | from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# for notes on compiler flags e.g. using
# export CFLAGS=-O2
# so gcc has -O2 passed (even though it doesn't make the code faster!)
# http://docs.python.org/install/index.html
setup(
cmdclass = {'... | [
"michaelw@articulatedesign.us.com"
] | michaelw@articulatedesign.us.com |
95eaf80a4b064aa8106077d14d8e97f76da9bee4 | 9a03b4c88a31cc05648f6a7dee1c22cfe08dc872 | /mod_pydoc.py | dacb667e4bae87618e48f4bc9594ad048609d8f4 | [] | no_license | u8y7541/mod_pydoc | 71a9f1802752a79d560c7cc155f060227ec7bf99 | a5fdf9409debf39724bd1fbf5553d86b117e201b | refs/heads/master | 2021-05-04T09:11:26.622118 | 2016-10-09T17:45:25 | 2016-10-09T17:45:25 | 70,418,784 | 0 | 0 | null | 2016-10-09T17:22:23 | 2016-10-09T17:22:22 | null | UTF-8 | Python | false | false | 101,217 | py | #!/usr/bin/env python3
"""Generate Python documentation in HTML or text for interactive use.
At the Python interactive prompt, calling help(thing) on a Python object
documents the object, and calling help() starts up an interactive
help session.
Or, at the shell command line outside of Python:
Run "pydoc <name>" to ... | [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
5ca221bad2a6b50e82b27345b2e7ece02878aba1 | 7d12d1a7d840414f3ae3cf03173b1e4722640ba1 | /appium_jike/page/config_page.py | 4982e3d843ec3704ae19defbb555f87cec1a4082 | [] | no_license | liuchengxu11/sunxing | e8927b4898c942eb03494aa49cb5bb66fd69dceb | cd2002abeebdc38d332246e1ea0e597896493a8b | refs/heads/master | 2021-01-16T13:47:01.082002 | 2020-03-29T11:35:27 | 2020-03-29T11:35:27 | 243,142,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,893 | py | from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver
import time
class Config_page:
_black_list = [
(By.XPATH,
"/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.L... | [
"meiqianchifa@163.com"
] | meiqianchifa@163.com |
dee88f1bf71213b63a17310865bbb65489377dbf | 55ecf7684f25a5932edab1a2c2533aa9c7a65fc0 | /app/routes.py | e4deec4a01b36913addabfa4886748606d809167 | [] | no_license | linxumelon/examplifier | 87184265b80a2b09edb162699a945b2750dcb19f | d266b145c97e76e610ee1bbe73e32081218fdf4e | refs/heads/main | 2023-01-10T11:00:09.297474 | 2020-11-07T07:20:56 | 2020-11-07T07:20:56 | 308,389,916 | 0 | 0 | null | 2020-11-07T07:20:57 | 2020-10-29T16:40:57 | Python | UTF-8 | Python | false | false | 6,518 | py | import os
import sys
from flask_login import current_user, login_user, login_required, logout_user
from flask import render_template, flash, redirect, url_for, request, send_from_directory
from werkzeug.utils import secure_filename
from werkzeug.urls import url_parse
from app import app
from app import db
from app.form... | [
"pollylin0617@gmail.com"
] | pollylin0617@gmail.com |
b576010e7db6584318f67fabd54e234ca64dbfcb | 90d78ab5fc6179bab30a2d4f1205535b11f3c335 | /base/urls.py | a12a9357a0499497c25d439d9b3835f353c9c626 | [
"MIT"
] | permissive | Rpetrizzo-C/todo-challenge | 9480bf84e66ae311d4050f86c62cc2925bad493e | 0c34a07efc17f4f83979f5df236c74180b371d8d | refs/heads/main | 2023-07-29T12:37:46.790407 | 2021-08-30T21:54:22 | 2021-08-30T21:54:22 | 401,495,843 | 0 | 0 | MIT | 2021-08-30T21:52:46 | 2021-08-30T21:52:45 | null | UTF-8 | Python | false | false | 922 | py | from django.urls import path
from .views import (TaskListView, TaskDetailView, TaskCreateView,
TaskUpdateView, TaskDeleteView, CustomLoginView,
RegisterPageView, TaskReorderView)
from django.contrib.auth.views import LogoutView
urlpatterns = [
path('login/', CustomLoginVie... | [
"petrizzo.rodrigoa@gmail.com"
] | petrizzo.rodrigoa@gmail.com |
3f0a25f51728148e9027713415fc9bee3d6c31ef | 35fd70d03a17824660a03d29c822cfeb14bb765c | /accounts/forms.py | 43af801defa994016215ea0e03a417361c016f90 | [
"MIT"
] | permissive | shawon922/django-blog | 517bef3f0b16489808858ffa34dee4affecc4c36 | 323c1c48d1afbcfe9e70d20fc8db7fde4ef007bf | refs/heads/master | 2023-07-23T03:19:04.138800 | 2017-07-22T07:23:46 | 2017-07-22T07:23:46 | 73,935,675 | 4 | 3 | MIT | 2023-07-17T06:04:59 | 2016-11-16T15:54:28 | Python | UTF-8 | Python | false | false | 2,039 | py | from django import forms
from django.contrib.auth import (
authenticate,
get_user_model,
login,
logout
)
User = get_user_model()
class UserLoginForm(forms.Form):
username = forms.CharField(widget=forms.TextInput(attrs={'class': 'form-control'}))
password = forms.CharField(widget=forms.Passwor... | [
"shawon922@gmail.com"
] | shawon922@gmail.com |
4f0ef26fe165b0b46815ad51b62f6a0c0f470256 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v5/proto/services/remarketing_action_service_pb2.py | 0495a4d9e848a5eed492faca8b8aa2397a32544c | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 20,741 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v5/proto/services/remarketing_action_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflectio... | [
"noreply@github.com"
] | noreply@github.com |
440bc6380c64d0077b43e4244a63a7156658043d | 7e68f74b2443836b6da61b0648ac2d9541b70fc8 | /myapp/urlhandler.py | 48fb10ccadecbf2e40464bb8ce0a5d542eff4b53 | [] | no_license | binhnq94/wrapper | 50fc54464f187461699289f85c8b8b44811e09e5 | 07a3086b833d40416a8ae2e4342bddaa5ba622d7 | refs/heads/master | 2021-07-29T07:55:40.325110 | 2015-09-18T18:02:21 | 2015-09-18T18:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | __author__ = 'techbk'
import asyncio
from aiohttp import web
from runprocess import run_process
from runshell import runshell
class Url_handler:
def __init__( self,loop ):
self._loop = loop
self._task = {}
self._taskid = 0
def __setid(self):
self._taskid = self._taskid + 1
... | [
"quangbinh.nguyentrong@gmail.com"
] | quangbinh.nguyentrong@gmail.com |
f1d726839edcc9efa6b64627090b6a4e14244fbf | 00b1649b7467d4525473c3c90622e2bd591650e3 | /venv/Scripts/easy_install-script.py | 0065118b457aa1c6462614cb3164c965464201fe | [] | no_license | fndalemao/Wolf | eca40b0edf20580e6622429792f356d8c676218c | 0ba2cd50822b9d21d0a63fbd473f357f4a916786 | refs/heads/master | 2020-05-07T16:59:48.394189 | 2019-04-12T03:04:22 | 2019-04-12T03:04:22 | 180,708,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!C:\Users\fndal\Documents\Projetos\Wolf\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"fnd.alemao02@gmail.com"
] | fnd.alemao02@gmail.com |
b67dcec5e71c0c499e230631f879a42c550ff8a1 | c413157aea112a7f5f4305b74b3d0b78a11036d6 | /LeetCode/MergeTwoSortedLinkedList.py | fb060eae712584e5398461f63bfaac26bdd1d2f2 | [] | no_license | jatinkhurana30/Tier1_Organizations_Interview_CodingProblems | 3148e5518f4bba9a38325a95a6b9784f105ae20b | f4eb3ff00358d50d3f473c2947ba8d3c747f379e | refs/heads/master | 2021-05-25T08:56:37.931955 | 2020-06-14T08:52:03 | 2020-06-14T08:52:03 | 253,750,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | """Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
Example:
Input: 1->2->4, 1->3->4
Output: 1->1->2->3->4->4"""
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
cl... | [
"!Proalcatraz30"
] | !Proalcatraz30 |
454b1388878b271229ad8a51b0c3b7dd10484f86 | e524a24ed3021ec8e2cc97e3a38ff21cd9a32b2e | /python/simulation/arm_control.py | d5f1ba0504492aadf8b939366b2e4451b3555772 | [] | no_license | psr2016/psr | 161f9208bbaba0e8ac8c8b3a6bd3afca1303e511 | 386b5461619a013313ca8b11ed6d20948ca1885c | refs/heads/master | 2020-04-07T01:43:54.044099 | 2018-06-11T14:26:56 | 2018-06-11T14:26:56 | 57,581,925 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | #
# arm_control.py
#
import pylab
import math
from systems import *
from inputs import *
from controllers import *
delta_t = 0.001 # 1ms di tempo di campionamento
durata_simulazione = 20 # secondi
numero_punti = int(durata_simulazione / delta_t)
the_arm = RoboticArm(6, 5.0)
controller = PID_Controller(100, 80, 50)
... | [
"santoro@dmi.unict.it"
] | santoro@dmi.unict.it |
a39f0bac82f84873a6dbf8cfd3f6a437ad45d06c | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/stock_account/wizard/stock_picking_return.py | 5d54d201e6b6a357cd694038a75f20b33ff45cc4 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from harpiya import api, fields, models
class StockReturnPicking(models.TransientModel):
_inherit = "stock.return.picking"
@api.model
def default_get(self, default_fields):
res = super(StockRetu... | [
"yasir@harpiya.com"
] | yasir@harpiya.com |
d09dcfed132ff4011c66f4e8bb3b98eb78faa0c3 | 70bc23c82cd64cd0c8184eb3388b269c0b16b7f3 | /create_scripts.py | 92b6b811b17d245ac846bb33229c1a9612a6bb15 | [] | no_license | Liang60711/django-portfolio_1 | bdb2d759412611ca7e3d303807facc2df59708c2 | 97f0e45674c1a52c4c125704f820ff6d89e29f1f | refs/heads/main | 2023-03-09T16:15:41.166194 | 2021-03-01T19:19:30 | 2021-03-01T19:19:30 | 325,354,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ecommerce.settings')
django.setup()
from core.models import Item
import random
from django.core.files import File
from django.conf import settings
CATEGORY_CHOICES = (
('S', 'Shirt'),
('SW', 'Sport wear'),
('OW', 'Outwear'),
)
... | [
"liang60711@gmail.com"
] | liang60711@gmail.com |
ac308bc1954de48099c8abcf8f1054f3fd988cec | 788e789808e56fc53571a62e34a0c104f6641e64 | /analysisCSV.py | 8c3ab71221af8c676bb000766d292060ad1aa6fb | [] | no_license | maxiaohui0921/BugzilaReport | a6922ff7f88168eb0641aa497d0c2b6b6021a423 | bc8804b06d01c2e3e4430323813ea27b7c8488fa | refs/heads/master | 2020-03-14T20:37:50.238905 | 2018-05-02T00:52:08 | 2018-05-02T00:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | #2018/02/24 MaXiaohui
import csv
import downloadCSV
import glConstant
import bugTable
#写入部门,状态,devFix日期,verifyClose日期
queryLink="OrangeFPandPatch"
#csvFile=downloadCSV.downloadCSV(glConstant.bugURL,queryLink)
#csvFile=r"C:\Users\maxh\Desktop\Buglist\源文件\OrangeFPandPatch201802011021.csv"
#在列表List1后面添加多个元素List2
def arr... | [
"38674823+maxiaohui0921@users.noreply.github.com"
] | 38674823+maxiaohui0921@users.noreply.github.com |
f9ae3dfa9e5cae2982f31a833e426773e239ed40 | e77732bce61e7e97bad5cee1b07d1b5f9b6fa590 | /cat/utils/data/exclude_corpus.py | 08cc3af28cfc90a11efade2a6bdf4941e1369fb7 | [
"Apache-2.0"
] | permissive | entn-at/CAT | 9f28f5ff75b37ac90baf63609226deb99d73dbe2 | fc74841e8f6b7eb2f2f88bb7c09b30ad5a8c16f4 | refs/heads/master | 2023-04-10T13:32:31.333889 | 2023-02-27T16:50:43 | 2023-02-27T17:29:07 | 236,718,892 | 0 | 0 | null | 2020-01-28T11:24:01 | 2020-01-28T11:24:00 | null | UTF-8 | Python | false | false | 2,432 | py | # Author: Huahuan Zheng (maxwellzh@outlook.com)
#
# Fetch n lines from source corpus and exclude part of the source if needed.
#
import sys
import os
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("corpus", type=str,
help="Path to the ... | [
"maxwellzh@outlook.com"
] | maxwellzh@outlook.com |
be868d1d34aa3dad1df6b4c850a30a4565685c4c | e22390ec9aa1a842626075113472f81076e1bf5f | /pullenti/semantic/SemFragment.py | 3954b163c1693d239274475b64e5e3f1cd4930fb | [] | no_license | pullenti/PullentiPython | ba9f450f3f49786732e80f34d0506d4a6d41afc3 | 815d550b99f113034c27f60d97493ce2f8e4cfcc | refs/heads/master | 2021-06-22T17:12:36.771479 | 2020-12-11T06:10:23 | 2020-12-11T06:10:23 | 161,268,453 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | # Copyright (c) 2013, Pullenti. All rights reserved.
# Non-Commercial Freeware and Commercial Software.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project.
# The latest version of the code is available on the site www.pullenti.ru
import typing
from pullen... | [
"alex@alexkuk.ru"
] | alex@alexkuk.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.