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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6795b7e92f3819173d554c15491b3ea9ad12a4e6 | 035f1df119ce80ee57bd39baabaf2f163f4117ad | /intergenic_regions_extractor.py | b65e668742d4c1a24dca580ed838b6b8b5b5e8a8 | [] | no_license | Ethuer/Scripts | 58659cc7852e8eb0c5d07ba19a0675db04f1aa4f | 57ff92d09f08d7f2303cf41fadbfc4b3e4157a9f | refs/heads/master | 2020-05-17T01:12:48.677178 | 2016-10-06T16:21:02 | 2016-10-06T16:21:02 | 18,836,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | import csv
from Bio import SeqIO
import re as re
from Bio.Blast.Applications import NcbiblastxCommandline
import sys,argparse
import os.path
#####################################################################################
# this script will extract inergenic regions from two multifasta files, #
# one c... | [
"thuer.ernst@gmail.com"
] | thuer.ernst@gmail.com |
f6a183c0cc5dfdfe2dc8c9f6c14190c2e3110004 | 149c286465f1cb01ac0583c1d4a717de9fa15671 | /L5/aggregate.py | a9ce4d4eaf46e3e7ffc4cf2c442f38fc82cbb18e | [] | no_license | leejaeka/Data-Wrangling-Udacity | ff9d980d98c01aa3ac5895bc8cf5f7bf3fe9172b | 6ef17b949b794aec268707f01eb2d072dc0e75b3 | refs/heads/main | 2023-02-06T03:04:07.237039 | 2020-12-27T05:00:33 | 2020-12-27T05:00:33 | 312,496,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #!/usr/bin/env python
"""
Write an aggregation query to answer this question:
Of the users in the "Brasilia" timezone who have tweeted 100 times or more,
who has the largest number of followers?
The following hints will help you solve this problem:
- Time zone is found in the "time_zone" field of the user object in e... | [
"jaekang.lee@mail.utoronto.ca"
] | jaekang.lee@mail.utoronto.ca |
97d64b5f37844028007a1cfea36d95e2507f501c | e212d9b85df5962c8ebf9e737b825fa3fe89f3d6 | /WaveRNN/utility/text/__init__.py | 0b9d8cc2401057deb5c8f63699658b5395afb09c | [
"MIT"
] | permissive | sankar-mukherjee/Expressive-Speech-Synthesis-Research | 9c3ea564509324dbfe033a328edd45aa7bffeffa | d85a067a131c04944f5bbe7fa7ab8c26e7d83800 | refs/heads/master | 2023-01-28T05:01:17.371683 | 2020-12-16T11:43:15 | 2020-12-16T11:43:15 | 294,351,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | """ from https://github.com/keithito/tacotron """
import re
from utility.text import cleaners
from utility.text.symbols import symbols
# Mappings from symbol to numeric ID and vice versa:
_symbol_to_id = {s: i for i, s in enumerate(symbols)}
_id_to_symbol = {i: s for i, s in enumerate(symbols)}
# Regular expression ... | [
"sankar1535@gmail.com"
] | sankar1535@gmail.com |
a23cc982e760acbf55a579b0d8829327af32289b | e9a33230671bd7e099c11943ec056f84b6a9e24b | /jaal_call.py | b2ae8e2a72ebbbaeda09cb9d5df50b979976757a | [
"MIT"
] | permissive | Olshansk/jaal | 52c49dcaaa1d4be21d1474c7739f4e5af9eb971a | 2b1e4696ca0d3d8f074827e5ae2943817eaa88e7 | refs/heads/main | 2023-05-31T13:45:57.443046 | 2021-05-23T09:42:57 | 2021-05-23T09:42:57 | 340,232,097 | 1 | 0 | MIT | 2021-02-19T02:04:16 | 2021-02-19T02:04:16 | null | UTF-8 | Python | false | false | 526 | py | # import
from jaal import Jaal
from jaal.datasets import load_got
# load the data
edge_df, node_df = load_got()
# define vis options
vis_opts = {'height': '600px', # change height
'interaction':{'hover': True}, # turn on-off the hover
'physics':{'stabilization':{'iterations': 100}}} # define ... | [
"mohitmayank1@gmail.com"
] | mohitmayank1@gmail.com |
e7d7eb5fdbca34075d62575cd4055b8f3df101c3 | 211e4920cc57e300a0c1f85e9d08f79c41d6fd6c | /ICP/ICP1/SOURCE/print number of letters and strings.py | 7b5eb3153eb5cff4165efefb6deca0eb92e4c7ad | [] | no_license | srividyavn/Python-DL | 34d2497c8a5b395b4426e9e90989e57f3854d297 | 85f4c64e28e0003ef17a1f8ecb49a90b11bafddd | refs/heads/master | 2020-04-18T16:04:23.407642 | 2019-05-18T03:47:53 | 2019-05-18T03:47:53 | 167,626,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | s = input("Input a string")
d = l = 0
for c in s:
if c.isdigit():
d = d+1
elif c.isalpha():
l = l+1
else:
pass
print("Letters", l)
print("Digits", d)
| [
"vnsrividya1994@gmail.com"
] | vnsrividya1994@gmail.com |
1693c758f2c5cf600463f7be6a97c24efec33c8a | 79a5a03461ff0c8905ced690b5c900bc2c031525 | /visualize.py | d6dc0e7cca9ea31634538410556fa76e3549c34b | [] | no_license | himanshucodz55/Social_Distancing_Ai_COVID19 | f5ba1146acf8ead00b944e558aad46313a549076 | ff138b7f3d6d109722a19fbad1b87d68e0da3a5d | refs/heads/master | 2022-12-10T22:58:39.752672 | 2020-09-02T17:43:57 | 2020-09-02T17:43:57 | 292,346,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,401 | py | """
Mask R-CNN
Display and Visualization Functions.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import random
import itertools
import colorsys
import numpy as np
from skimage.measure import find_contours
import matplotlib.pyplot as plt
imp... | [
"noreply@github.com"
] | noreply@github.com |
26a487162edb894b5eb3cb1710694ac467522456 | 6c4722bd98c9fde85862774b6de78c93be5f3513 | /gen_unprocessed_RAW_for_ExDark.py | c2139db6cfe7d9a41136415bd63b9578f504212b | [] | no_license | wakananai/unprocessing | f34ec72a877784f861a3c86e65972388d9c83140 | 8296df535e27ab9ef615b1735e7136181e1c18bf | refs/heads/master | 2021-01-01T08:47:33.719273 | 2020-07-02T20:22:38 | 2020-07-02T20:22:38 | 239,204,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | from unprocess import unprocess
import glob
import cv2
import tensorflow as tf
import glob
from tqdm import tqdm
import os
import numpy as np
import pickle
import argparse
IMG_DIR= f'/tmp3/r07922076/ExDark_data'
OUT_DIR= f'/tmp3/r07922076/unprocessed_ExDark_data'
obj_class_dir = next(os.walk( os.path.join(IMG_DIR))... | [
"wakananai@gmail.com"
] | wakananai@gmail.com |
26184749943556b8182e4acc6b275c7e7dc14266 | 1cbc22287df1134337fe3f440f8e73a08ee41fb6 | /projectapp/models.py | 9336fb48ee0dbea5534aebaf2f77686082619739 | [
"MIT"
] | permissive | FranciscoStanley/pythonXlsx | cb0cc5c3df66ba959c854a5902982b2c3704db8c | f8ed52bd3c1a6b07edf8d046d0ace3e7287f83ef | refs/heads/master | 2023-08-27T13:34:10.757988 | 2021-11-08T21:36:50 | 2021-11-08T21:36:50 | 424,464,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from django.db import models
# Create your models here.
SEXO_CHOICES = (
('M', 'masculino'),
('F', 'feminino'),
)
class Person(models.Model):
nome = models.CharField(max_length=50)
sobrenome = models.CharField(max_length=50, null=True, blank=True)
sexo = models.CharField(max_length=2, choices=SE... | [
"franciscothestanley@gmail.com"
] | franciscothestanley@gmail.com |
3cc7c17ee582aaba4ab4d5771286ac2e1ae8b9e8 | 1b45d1162bd60a356844fc4dced068da2e6cc438 | /Arrays/Merge.py | 8ee66ae39f1687b433e476fa1b9e3be1d2e31015 | [
"MIT"
] | permissive | AnkitAvi11/Data-Structures-And-Algorithms | de9584e439861254cdce265af789c8b484c01c69 | 703f78819a41d4dd88caf71156a4a515651edc1b | refs/heads/master | 2023-02-19T21:53:39.405934 | 2021-01-24T17:27:21 | 2021-01-24T17:27:21 | 297,752,655 | 6 | 3 | MIT | 2021-01-24T17:27:22 | 2020-09-22T19:33:55 | Python | UTF-8 | Python | false | false | 669 | py | """
QUESTION STATEMENT : MERGE TWO SORTED ARRAYS WITHOUT USING ANY EXTRA SPACE
example :
arr1 = {1,3,5,7,9} size = n
arr2 = {2,4,6,8,10} size = m
arr1 after merging = {1,2,3,4,5,6,7,8,9,10}
"""
def mergeArrays(arr : list, arr2 : list) :
i = 0;j = 0;
while i < len(arr) : # O(n)
if arr[i] > arr2[... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
6c78fccd11b2ca769683b6527aa888e158fea647 | d9e26e516ab3863b6e7d00c4e3cdecf1af7028eb | /src/oaklib/io/streaming_nl_writer.py | ecde169932c3e55baa59bfdfd1aef1e274f6109a | [
"Apache-2.0"
] | permissive | INCATools/ontology-access-kit | 2f08a64b7308e8307d1aaac2a81764e7d98b5928 | 8d2a124f7af66fe2e796f9e0ece55585438796a5 | refs/heads/main | 2023-08-30T14:28:57.201198 | 2023-08-29T17:40:19 | 2023-08-29T17:40:19 | 475,072,415 | 67 | 15 | Apache-2.0 | 2023-09-07T01:06:04 | 2022-03-28T15:50:45 | Jupyter Notebook | UTF-8 | Python | false | false | 1,152 | py | from dataclasses import dataclass
from linkml_runtime.utils.yamlutils import YAMLRoot
from oaklib.datamodels import obograph
from oaklib.io.streaming_writer import StreamingWriter
from oaklib.utilities.nlp.natual_language_generation import NaturalLanguageGenerator
@dataclass
class StreamingNaturalLanguageWriter(Str... | [
"noreply@github.com"
] | noreply@github.com |
d49bd6a43b3f609a7edeca36319384afb91d1e8b | 9c91412897e8c38698b707fd68241f5f90dad8ca | /faculty/models.py | d964ebe95cf256b3df082b290e8d312c16bccd8f | [] | no_license | zhaoz2017/cpa2019 | ae78d6beb3f26c8d681fb7bfb1665dad34b30dc3 | 795325edc435201f2b4d2c823500dee9f55d9b96 | refs/heads/master | 2020-04-02T15:37:09.146904 | 2019-04-11T21:13:33 | 2019-04-11T21:13:33 | 153,498,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models import Q
# Create your models here.
class Solution(models.Model):
title = models.CharField(max_length=255)
pub_date = models.DateTimeField()
body_q = models.TextField()
body_a = models.TextField()
votes_t... | [
"zhaoz2017@my.fit.edu"
] | zhaoz2017@my.fit.edu |
f49b8c133be1b81786886982ff14bce39ed0ed34 | 03cbffb6c8f80070704a9c3290ad053f10535a16 | /project_utils/utilities.py | 7f8ec7b67694f43e051399ce12909ce5e8947978 | [] | no_license | TanviSahay/Rl-for-NLP-project | dabc4be62dd6f8f3812ff7ac40075871d78b2839 | 496f654b0497e67b5d3c1f6d77b9457266248252 | refs/heads/master | 2021-08-31T07:49:19.754461 | 2017-12-20T17:27:53 | 2017-12-20T17:27:53 | 114,515,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | import numpy as np
import os
import matplotlib.pyplot as plt
import warnings
import pickle
from collections import defaultdict
from nltk import pos_tag, word_tokenize
warnings.simplefilter("ignore")
def dd():
return defaultdict(int)
def get_actions():
with open('./Data/vocab.pkl','rb') as f:
actions ... | [
"tsahay@umass.edu"
] | tsahay@umass.edu |
fc02fda54534594dd3a8358ecf562fc2cbd36a7e | 0a1716384ac3425b0f457e210e43c0a499bd66d2 | /process_files/_old/fix_processed_names.py | 27e83d345283a04bd753cafb4edbf2a7f9b3850a | [] | no_license | ilbarlow/process-rig-data | d54d0489ad42ef92e422915d01ac43feeb62bed3 | 89fc296628eb7f9260b099ee3cb2f25680905686 | refs/heads/master | 2020-03-18T21:50:05.775230 | 2018-03-28T20:13:41 | 2018-03-28T20:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 27 16:15:39 2016
@author: worm_rig
"""
import os
import shutil
import glob
import numpy as np
import pandas as pd
import warnings
from functools import partial
if __name__ == '__main__':
output_root = '/Volumes/behavgenom_archive$/Avelino/Worm_Rig_Tests/short_movies... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
d172365081306da15a884cc5c29f601bd27ef325 | 1de6d55bf8c4d9333c9b21f9f8ee154c2aef3c7f | /phi/migrations/0033_auto_20180920_1225.py | 8a10fe86ddf75f16db687871795e94e5d0be753b | [] | no_license | FloCare/hha-backendtest | ad675c5da2fa23ec5d8ea58223bef28c4142483a | 0918b932dcc5c44fae9799c05c17519abc54f7a7 | refs/heads/master | 2022-12-10T02:20:56.200101 | 2019-05-06T11:14:09 | 2019-05-06T11:14:09 | 184,367,994 | 0 | 0 | null | 2022-12-08T02:31:35 | 2019-05-01T04:19:43 | Python | UTF-8 | Python | false | false | 572 | py | # Generated by Django 2.0.6 on 2018-09-20 12:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_auth', '0013_auto_20180817_1008'),
('phi', '0032_physician_organization'),
]
operations = [
migrations.AlterField(
... | [
"nikhil@flocare.health"
] | nikhil@flocare.health |
4178241c956b41e6c04cec3ba18389b1a237ab68 | 17beb9d3062db25c430acd0435953305431cbbf1 | /binding.gyp | eaa8a16873c7dfa83bf3fe7dc0429b99d62a8463 | [] | no_license | hansmalherbe/node-opencv2 | fb114157b9e60d474e17471ad737461eca4f5d62 | d41d327fc9fd6104f1c24ec2a0fa5d835cbcb89f | refs/heads/master | 2016-09-06T11:58:59.641102 | 2012-10-22T22:49:22 | 2012-10-22T22:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | gyp | {
'variables' : {
'opencv_dir': 'c:/opencv242/build/',
'boost_dir': 'c:/boost_1_49_0',
'conf': '$(ConfigurationName)',
},
'conditions': [
['OS=="win"', {
'conditions': [
['target_arch=="x64"', {
'variables': {
'opencv_libs': '<(opencv_dir)x64/vc10/',
'opencv_tbb': '<(opencv_dir)common... | [
"hans.malherbe@gmail.com"
] | hans.malherbe@gmail.com |
37448d7967ed493b56ddd9b94af1582157f26f15 | 3d016301728a4428ec466653587f0f80c4f7eb11 | /plugin/lighthouse/metadata.py | ea0afcf3dc444279943f34cbf0dc8925b321eb9b | [
"MIT"
] | permissive | MosheWagner/lighthouse | bcb16e24612645cdcf441011b430d6b8408b0687 | ca1454b2680b31d882339ff56efd34b546ba908d | refs/heads/master | 2020-04-26T23:50:43.001011 | 2019-03-05T09:32:30 | 2019-03-05T09:32:30 | 173,915,816 | 2 | 0 | MIT | 2019-03-05T09:26:59 | 2019-03-05T09:26:55 | Python | UTF-8 | Python | false | false | 35,794 | py | import time
import Queue
import bisect
import logging
import weakref
import threading
import collections
from lighthouse.util.misc import *
from lighthouse.util.disassembler import disassembler
logger = logging.getLogger("Lighthouse.Metadata")
#------------------------------------------------------------------------... | [
"markus.gaasedelen@gmail.com"
] | markus.gaasedelen@gmail.com |
aa27042ddeb0ddff82f1c8f4312778d7feb8da3e | cee65c4806593554662330368c799c14ec943454 | /src/sqlvm-preview/azext_sqlvm_preview/vendored_sdks/sqlvirtualmachine/models/wsfc_domain_profile_py3.py | 0d7864768ad80fab17f0ea7f8ca57ea27cec3b41 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 3,274 | 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 ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
2e6d141383246bc550a0defb798fa6e4f453a724 | cd80a83d22d8431b17b31fe6453a0bfdc20a74be | /stepik_tours/settings.py | 48294db7fc020b7b4b984b8f8e741a0a1b0be641 | [] | no_license | HumanAlone/stepik_tours_week_2 | 6d59fbfd78864310830afe98c842a4c8df586614 | 67eea17cf9d6d1389e9aee65dd353e9c41b7ce0b | refs/heads/master | 2023-02-28T16:13:17.071554 | 2021-02-07T18:35:50 | 2021-02-07T18:35:50 | 336,630,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | """
Django settings for stepik_tours project.
Generated by 'django-admin startproject' using Django 3.1.5.
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/
"""
from pa... | [
"humanalone@ya.ru"
] | humanalone@ya.ru |
b7de8d0353885bd2bdaef731db820add225c22a8 | 940eb3328eae2538d56712dbffd65dfdd63bfb5d | /HW3/mysite/db/urls.py | ebc7ea281599826db6589fa398b76fb591dc5618 | [] | no_license | HyeongRae/cloud_computing | a54da89b4767bf7dcf17df394d0359750ab03d33 | 8fcf6c4daaadc9be9b61abf56d22e73f08f7e453 | refs/heads/master | 2020-08-28T22:08:01.715887 | 2019-10-27T10:03:04 | 2019-10-27T10:03:04 | 217,835,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"noreply@github.com"
] | noreply@github.com |
cb0cf218daf778a82dc0638a59378ce65eb1e44d | df160fecd74e06fe1d7fd276c6f84a8f39dff79c | /Bhakti/math variable.py | 3b88f510309cade6983a5f92cd5a682f0fd74400 | [] | no_license | vatsalmehta-3009/MLZS-CLASS-11-PRACTICALS | 78dfdcbe289d95618db6d1bc5aab6a24cd4cbde2 | f9056b110b9c1e4666ae3f4ff0427664dc3d81bb | refs/heads/main | 2023-08-14T09:26:51.196305 | 2021-10-18T09:00:41 | 2021-10-18T09:00:41 | 397,482,578 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | import math
print (math.pi)
| [
"vatsalmehta3009@gmail.com"
] | vatsalmehta3009@gmail.com |
a0cdca9df71fac33fa3fe7b6fe3ce26b877ab1dd | eee8425c9e4e2173d323dc1113909f4427d5a547 | /ue4docker/test.py | 8da5ab88dfde7ae8c81da429e7065311506ed0c3 | [
"MIT"
] | permissive | MorganRuffell/ue4-docker | 9b98adc81b82ebb0780056961d17e5ec9bc7f646 | 664359a6c5240ebc3b3d15f5c1ecc4d456fd6cd1 | refs/heads/master | 2023-07-10T17:37:54.580478 | 2021-08-19T21:06:27 | 2021-08-19T21:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | from .infrastructure import DockerUtils, GlobalConfiguration, Logger
from container_utils import ContainerUtils, ImageUtils
import docker, os, platform, sys
def test():
# Create our logger to generate coloured output on stderr
logger = Logger(prefix='[{} test] '.format(sys.argv[0]))
# Create our Docker API clie... | [
"adam@adamrehn.com"
] | adam@adamrehn.com |
c477af6c57995ecddcbfdc254fe373d15f3999c8 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /252/252.meeting-rooms.234346443.Runtime-Error.leetcode.py | 92868ca8e540837d3283eb90122ea37aa2b82d4d | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Solution:
def canAttendMeetings(self, intervals):
overlap = []
for interval in sorted(intervals, key=lambda x: x.start):
if overlap and overlap[-1].end > interval.start:
return False
else:
overlap.append(interval)
return True
| [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
da01348ac037e5b41128bf85f4b96215b1ecc938 | b457cefb2a577df52234e45e0d1a891f6ac48771 | /Camera/cam.py | 46892b319216e4e3b487b71e153bf6914363f187 | [] | no_license | zhangxingshuo/py-robot | 257210364ff510b20b71bdb840cc6e4589c5a797 | f9b8046f8b7538674cf9446f9b2e895af244ec72 | refs/heads/master | 2021-01-17T12:53:50.524193 | 2016-08-04T17:07:11 | 2016-08-04T17:07:11 | 59,252,294 | 0 | 0 | null | 2016-05-25T23:12:02 | 2016-05-20T00:24:14 | Python | UTF-8 | Python | false | false | 996 | py | '''
Video Camera
============
Simple video capture program.
Usage:
------
cam.py [<video source>]
Press 's' to save an image.
Press ESC to exit.
'''
import cv2
import numpy as np
from datetime import datetime
class Cam(object):
def __init__(self, src):
self.cam = cv2.VideoCapture(src)
... | [
"axzhang@hmc.edu"
] | axzhang@hmc.edu |
fe9a70d83e1e83d976db34782dcfc28fb9c952e2 | 688dfc8f23ebda4b6418e9b6e77727313601fcb2 | /src/world/Landwalker.py | 170deb8f314719343f33e209a7a724db20bb9923 | [] | no_license | loonaticx/ToonTrouble | f590d112b7b2db0800f4dab0c89cbf7f9ff2ff8b | 28c85842d3d09ab5ad83d06e836577f84ed95010 | refs/heads/master | 2020-07-09T22:37:19.695125 | 2019-12-08T21:01:58 | 2019-12-08T21:01:58 | 204,098,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,028 | py | from panda3d.core import *
from panda3d.core import CollisionTraverser
from panda3d.core import PandaNode, NodePath
from direct.controls.GravityWalker import GravityWalker
from direct.gui.DirectButton import DirectButton
from direct.gui.DirectScrolledList import DirectScrolledList
from direct.task import Task
from src... | [
"l.oony@aol.com"
] | l.oony@aol.com |
c6480612638cc68e0ac42c454540f75929f0c857 | 9c6ce4688ef9e0493ea054f185d7039e5df4638c | /clients/commands.py | 5e6ed87461b6058c669f2a2f229de7954dbe4b25 | [] | no_license | k3itaro-k/CRUD | eb52c9f112b8d32a48f41b474691e486ad80ba58 | 328fa88b19fb2fe2105e0c9cd83f742501ae1f12 | refs/heads/master | 2023-06-03T22:26:14.506795 | 2021-06-19T07:00:22 | 2021-06-19T07:00:22 | 378,344,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,834 | py | import click
from clients.services import ClientService
from clients.models import Client
@click.group()
def clients():
"""Manages the clients lifecycles"""
pass
@clients.command()
@click.option('-n','--name', type=str, prompt=True, help= 'The client name')
@click.option('-c','--company', type=st... | [
"alejandrocc42@gmail.com"
] | alejandrocc42@gmail.com |
dfcc4650b279dcc7d9caebfb982384bc6a05433f | 3e34dec0f8b6a6e508a3ff107369ca791ebe470b | /암호해독.py | 39deac551275a516cfc6e30776ec7090a665a7ce | [] | no_license | Se-eun84/algorithm | 7f8fac60e1ac8045bf7c9bc4d77ff0a93a7b4f2d | 298841cf5460872310bc88c08ab9a53a557bdcda | refs/heads/main | 2023-08-29T16:00:01.109559 | 2021-10-25T12:02:00 | 2021-10-25T12:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | #1001010 J
#1000101 E
#1001010 J
#1010101 U
#strip 오른쪽, 왼쪽 공백 제거
#replace() 중간 내용 교체
#ord() : 문자 -> 숫자
#chr() : 숫자 -> 문자
text = ['+ -- + - + -',
'+ --- + - +',
'+ -- + - + -',
'+ - + - + - +']
l=[]
for i in text:
print(chr(int(i.strip().replace(' ','').replace('+',"1").repl... | [
"noreply@github.com"
] | noreply@github.com |
2f0c8bb0781336a52fc86b6bd0b3292a1399d324 | 923e7fdffc52ad7d2bcb820b80312d4af7797810 | /lab4-6/DeleteBillsOfApartamentsInRange.py | 462aa02cdd94b8bbb7ced4af048f05136fc38d4a | [] | no_license | boldijar/python-labs | 727fc1d22446cca2cf2e1c19f8297c2522bafb02 | 00742b1f3c2742114bd106cb5925ce3cf3b77f2b | refs/heads/master | 2021-05-30T16:28:31.815240 | 2016-01-27T03:20:49 | 2016-01-27T03:20:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | import wx
from apartament_controller import ApartamentController
from validator import IntValidator
class DeleteBillsOfApartamentsInRange(wx.Panel):
def __init__(self,parent,apartamentController,position,size):
super(DeleteBillsOfApartamentsInRange,self).__init__(parent,pos=position,size=size)
sel... | [
"paul.bv96@yahoo.com"
] | paul.bv96@yahoo.com |
32f958a88900efe7f6f34f6ab338193b5f18d780 | 7c568ca8675ee507d231dc3ddc2c26db8af81d3f | /app/dashboard/migrations/0002_auto_20191016_2341.py | acd59e0dff357ba9c8e01033f9b9af9e411aab7a | [
"MIT"
] | permissive | pnsn/squacapi | ccfb458c7230fc5b0a0be7921eb6db611d8c646a | 40d9608295daefc5e1cd83afd84ecb5b0518cc3d | refs/heads/main | 2023-04-30T22:10:51.651835 | 2023-04-28T17:01:06 | 2023-04-28T17:01:06 | 176,352,115 | 7 | 0 | MIT | 2023-04-28T17:01:07 | 2019-03-18T19:03:32 | Python | UTF-8 | Python | false | false | 1,306 | py | # Generated by Django 2.2.6 on 2019-10-16 23:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dashboard', '0001_initia... | [
"jontconnolly@gmail.com"
] | jontconnolly@gmail.com |
b3adc8b5d026d0d4dfb7a157e42a73a83f86f053 | f1d18ce5bbeb91dfa4bceb7aa5a571b2064f1901 | /reversenum.py | 0222ba1633886fce3acb4beab6c0b43035888c0d | [] | no_license | gopalakrishnanngk/gopal | 66f3bcfd6dab6b2f888749286dec82e04f9131b4 | 057998e43ad4072edf45ff62040c0bdf12d48e5b | refs/heads/master | 2021-09-25T01:54:45.692713 | 2018-10-16T17:27:00 | 2018-10-16T17:27:00 | 114,449,011 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | number=raw_input()
a=number[::-1]
print(a)
| [
"noreply@github.com"
] | noreply@github.com |
36ea9f0067d11c5dabf132183f895f4f5efea7a3 | 0f3464caf596c9dace873df8cde3b5528b99cf72 | /mhc_parser/msa_utils.py | bc434fb4e42575bce13e6bca51a47e6b757d6f0b | [] | no_license | carlomazzaferro/mhc_parser | 6c87118a2ba510832bd0043db9252e65dd37aaf5 | 04a62bf6db1c6b9936d5dc176c2410f39671978b | refs/heads/master | 2021-01-11T14:16:27.894813 | 2017-03-31T18:58:52 | 2017-03-31T18:58:52 | 81,285,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,826 | py | import numpy as np
import pandas
from mhc_parser import pep_utils
from skbio import TabularMSA, Protein
import webbrowser
from urllib import request
from subprocess import Popen, PIPE
import os
class Alignment(object):
def __init__(self, fasta_file, ref_protein_id):
"""
Maniputlation of alignment... | [
"carlo.mazzaferro@gmail.com"
] | carlo.mazzaferro@gmail.com |
4ba5f1f05c063992f8dda481db06849e4d26d27d | 350d89a0e1f7b8f4a0f90d11e9be12a639996d0d | /react/compiler.py | ae80a548eeca0a093c0a2ce941cf6a894fcf847b | [] | no_license | rizkivmaster/joernalia | 709220118c6c3726146021505a801d8a01d15b80 | 758e17bb88463f1d2c8750ff5eb7bdd59c7e7eef | refs/heads/master | 2021-01-10T05:14:38.902812 | 2016-01-27T12:53:23 | 2016-01-27T12:53:23 | 50,297,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def compile(filenames, target):
alljsx=''
for filename in filenames:
lines=open(filename, 'r').readlines()
for line in lines:
alljsx+=line
from react import jsx
transformer = jsx.JSXTransformer()
js = transformer.transform_string(alljsx)
open(target, 'w').write(js)
print('all written') | [
"rrangkuti@traveloka.com"
] | rrangkuti@traveloka.com |
a4ab47fc05aa9c7990c605ef9911fd6a95175d23 | f1869b0709ed8ad27625c1dc299a79595929e72e | /portal/app/common/enum_field_handler.py | ab710c4c57f00e3740e7a7843ae4c7cf02435a4b | [] | no_license | powernet-project/powernet | 57b26b4734297d868f635ab0929ef9c845beb2aa | 75700848dbd05f141f481b40cdbc2d4b629b98c5 | refs/heads/master | 2022-06-26T08:03:56.967304 | 2021-04-13T06:31:06 | 2021-04-13T06:31:06 | 74,173,526 | 2 | 1 | null | 2022-06-21T21:31:02 | 2016-11-18T23:07:46 | HTML | UTF-8 | Python | false | false | 1,209 | py | from enumfields.fields import EnumFieldMixin
from rest_framework.fields import ChoiceField
from django.utils.translation import ugettext_lazy as _
class EnumField(ChoiceField):
default_error_messages = {
'invalid': _("No matching enum type.")
}
def __init__(self, **kwargs):
self.enum_type... | [
"jonathan@rhumbix.com"
] | jonathan@rhumbix.com |
fac5e4f2113c176254285486cf83496ad8294af2 | 587f90dd34f72dbf8c616edcd42a2ee69a945ad5 | /solution.py | 6d158a0182174041f17d2c8582bde3f02165414c | [] | no_license | UtkarshMishra04/python_challenge | 7d60d0ac68af9f626d71bfe6826113aad31cc011 | eaf04caa8c8011b6cdbe6396318ce25b41263489 | refs/heads/master | 2023-03-20T04:52:41.992318 | 2021-03-16T08:54:42 | 2021-03-16T08:54:42 | 348,275,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from game_class import Game
if __name__ == '__main__':
env = Game()
env.start_game() | [
"utkarsh75477@gmail.com"
] | utkarsh75477@gmail.com |
3bb4b250c9e481e8342d3d85a655fadd62014d8a | 82c7adb0bfaa667c50ac7b336bb815863b378fa9 | /finace/items.py | 60984524386545327a13568ee270fe67c087fc4d | [
"Apache-2.0"
] | permissive | pythonyhd/finace | c8a7dca65dfe33cabcb90630d8791d3a5b942bc9 | 614d98ad92e1bbaa6cf7dc1d6dfaba4f24431688 | refs/heads/master | 2022-11-30T17:53:40.947747 | 2020-08-14T03:47:26 | 2020-08-14T03:47:26 | 287,253,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class FinaceItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"18353626676@163.com"
] | 18353626676@163.com |
af3394311c1d32ffcc9e695c0984fe28f230ec2f | e999f2229d8e5831fe0dd732134a54d358872cfb | /scripts/classicalAB.py | 6df0529a63ee2d7d992ed8917992766f55d744fc | [] | no_license | Blvisse/ABtesting | b177673563557397d197444d6ddbc370b7d4c585 | ef0f98f54273eefa40ca190178eb860770cc3c15 | refs/heads/main | 2023-06-24T07:55:59.788502 | 2021-07-25T12:46:35 | 2021-07-25T12:46:35 | 387,365,291 | 0 | 0 | null | 2021-07-25T12:46:35 | 2021-07-19T06:43:47 | Jupyter Notebook | UTF-8 | Python | false | false | 2,441 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as ss
import logging
logging.basicConfig(filename='../applogs/classical.log', filemode='w', format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',level=logging.DEBUG)
class classicalAB:
def __init__(self,data):
... | [
"blaisepke@gmail.com"
] | blaisepke@gmail.com |
148ea8e659b1f395932dd56bb4319bd9d6022474 | 9ec58308459dc95405d1a32fcf8fae7f687a207b | /test/test_k_bank.py | 71dc290f6f4630d2eaa7649866a90201a40f7e18 | [
"MIT"
] | permissive | ivanlyon/exercises | 067aed812486dbd7a3d7de6e47a692c8b9383163 | 0792976ae2acb85187b26a52812f9ebdd119b5e8 | refs/heads/master | 2021-05-24T04:17:29.012329 | 2021-05-11T17:26:50 | 2021-05-11T17:26:50 | 65,584,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | import io
import unittest
from unittest.mock import patch
from kattis import k_bank
###############################################################################
class SampleInput(unittest.TestCase):
'''Problem statement sample inputs and outputs'''
def test_sample_input_1(self):
'''Run and assert ... | [
"roblyon00@gmail.com"
] | roblyon00@gmail.com |
c2f07a0caa76746377059d4cbb4ef5b3cd643a2c | 71c58e0449aabb550ed69b72d368e90017575631 | /grades.py | 7bedd765d1a88b720821faa861626eeeb5b4fc84 | [
"Apache-2.0"
] | permissive | ChangedNameTo/MPDiscordBot | 7e6534d2d1b6260faa955c3733abdd3ec4553d50 | 7d2de57c1b25166bfdf08a9d362fba680a4f76f1 | refs/heads/master | 2022-12-30T18:04:19.751534 | 2020-10-23T14:26:55 | 2020-10-23T14:26:55 | 298,614,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | from discord.ext import commands
french = ['2-3', '3-4', '4', '4+', '5a', '5b', '6a', '6a+', '6b', '6b+', '6c', '6c+', '7a', '7a+', '7b', '7b+', '7c', '7c+', '8a', '8a+', '8b', '8b+', '8c', '8c+', '9a', '9a+', '9b', '9b+', '9c']
uk = ['HVD', 'MS', 'S', 'VS', 'HVS', 'E1 5a/HVS 5b', 'E1 5b', 'E2 5c', 'E3 5c/6a', 'E3 6a'... | [
"ChangedNameTo@users.noreply.github.com"
] | ChangedNameTo@users.noreply.github.com |
ddcf8c6e14ca3be28eb4cda3f448ff4a21d6cd8d | 1e436ee39f4a063d13fc5c3c07eca80dcd830b70 | /build/lib/app.py | 8b51808d32c28ab713120ad8710d065476532dd8 | [] | no_license | Mineria/Jaccard-similarity | 5f8c72a833b01f9a39aaa184f1cbd83a91c95860 | f3ede7794d388e59ed48aaa7eb5905b2f8117685 | refs/heads/master | 2021-01-10T16:25:43.242005 | 2016-03-15T13:10:29 | 2016-03-15T13:10:29 | 53,945,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import math
from random import randint
import api as api
config = json.load(open('config.json')) # Loading configuration from file
rows = config['clients'] # Number of clientes
columns = config['products'] # Number of products max
categories = config['categor... | [
"me@jgferreiro.com"
] | me@jgferreiro.com |
9088845ee4cd9fc4f784727bc6f020bc4213b6a6 | 786de89be635eb21295070a6a3452f3a7fe6712c | /Detector/tags/V00-00-05/SConscript | d6fb3976c08526bf2e9adb925905a3b3a1b85635 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package Detector
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
5a60e0394e9f9480b97481c167aa7af809b7d4c2 | 281d50a81837793ec9d563ed1fa9caf9af354d16 | /Zbirka2 - zadatak28, strana3 - prirodan broj k - pecurke.py | dbdb10a2d551188acd3c076d9b47c9874c53b971 | [] | no_license | AdnanRedzic/Uvod-u-programiranje | d095e6f1393ad3d27525cf8f957f45bad3c97dfc | 1c6c259409f7622a7ee857cb5e333cbb43067e59 | refs/heads/main | 2023-08-23T09:49:20.811929 | 2021-10-26T06:28:02 | 2021-10-26T06:28:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | """
Za prirodan broj k, štampati frazu „Na izletu smo ubrali k pecuraka“, gdje završetak rijeci
„pecurka“ prilagodite broju k. Npr. 101 pecurku, 1204 pecurke, 506 pecuraka
"""
broj_pecuraka = int(input('Unesite broj pecuraka:'))
def mijenjanje_rijeci_pecurka_u_odnosu_na_unijeti_broj(broj_pecuraka):
if broj_... | [
"noreply@github.com"
] | noreply@github.com |
218c8af1d22be553515a68a82499c5e24d1fc27f | f690b0a68e51e29a87840a4db01842fdf410b30d | /dependency_parser.py | 9c06d22765dfdbf767728f16f52b4cb8c0f9c5fe | [] | no_license | nyutal/nlp02_dependency_parser | 396f8884aec8a03a20d5968176e17b715bdd71d5 | bf9333b8ba91ce2e8a23ee1504697844514682f3 | refs/heads/master | 2021-01-11T16:45:22.052408 | 2017-01-29T22:10:16 | 2017-01-30T09:15:18 | 79,666,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,869 | py | import os
import time
from basic_features.feature import *
from basic_features.unigrams import *
from basic_features.bigrams import *
from basic_features.complex import *
import perceptron as pr
from conf import Conf
from dataParser import *
def train(fv: FeatureVec, trainer: pr.Perceptron, train_corpus: Corpus, out_... | [
"nyutal@yahoo-inc.com"
] | nyutal@yahoo-inc.com |
f15d181e2a3f37e31f85d1871156a11d42b83881 | 5cb77252081eec8c700eb294f4d674c88b23bf49 | /gitlab-backup.py | 4ae4ea108d136e153d27945e92f1f400161e11a2 | [] | no_license | joyceqiao/gitlab-backup | 15fb3f05b2cc2093521f474d7d94b74ebfb7cef9 | 43798e1703002df19dda003165dd842aaed14632 | refs/heads/master | 2021-01-17T21:15:48.756706 | 2016-04-08T11:10:54 | 2016-04-08T11:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | # -*- coding: utf-8 -*-
import os
import logging
import gitlab
from settings import GIT_SETTINGS
from settings import MAIL_SETTINGS
from settings import LOG_SETTINGS
from settings import MAIL_NOTIFY_ENABLE
from custome_logging import BufferingSMTPHandler
from custome_logging import ConsoleHandler
def get_gitlab_in... | [
"977675308@qq.com"
] | 977675308@qq.com |
ba8c4775490031f4b1abd9541e76e7d99773e96c | 44845df9198ae8c80fabecb6ed3ae6a44e43f38c | /modo/admin.py | 4aa582f42f92bbc0b441d3019c6b6fb02550a96f | [] | no_license | CarlosSanz81/cima | 570da404bddd0a813a025163a9e94676b9d0b4a9 | 3ad9b37af4a2d8a5789915208afffec7b6af3c0e | refs/heads/master | 2021-01-23T08:00:04.964713 | 2017-03-28T14:33:09 | 2017-03-28T14:33:09 | 72,184,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.contrib import admin
from .models import Modo
@admin.register(Modo)
class AdminModo(admin.ModelAdmin):
list_display = ('nombre',) | [
"carlossanzgarcia81@gmail.com"
] | carlossanzgarcia81@gmail.com |
9fd2adff33eb37163fba31027204557321194233 | 6320fef2ea7376c2b35f97f1a5af004e90f09098 | /1-2주차 실습(복습)/venv/Lib/site-packages/pygments/formatters/irc.py | 49f8b3d13114e627e86ef8bdd693496bd155fd7f | [] | no_license | Dplo1514/ploaistudy | 7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9 | e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c | refs/heads/master | 2023-09-03T00:45:55.601651 | 2021-10-24T12:19:38 | 2021-10-24T12:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py | """
pygments.formatters.irc
~~~~~~~~~~~~~~~~~~~~~~~
Formatter for IRC output
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import sys
from pygments.formatter import Formatter
from pygments.token import Keyword, Name, C... | [
"dladlsgur3334@gmail.com"
] | dladlsgur3334@gmail.com |
b531600002bc42640cd2caa1c95dd69689267dae | e153f0d5b97c9b5706856e47187968ded1ec3b0a | /client_code/old_code/PublishTest.py | 047e3995f50675ffa1762380f56dc3f1564696cf | [] | no_license | msynth/artist_app | e1ea7b7401b31c2d574b7153aebb0da20d350972 | 06edf4d44e518067e5a7b9d656f214b797722e63 | refs/heads/master | 2021-01-01T20:06:42.116314 | 2017-08-11T15:36:25 | 2017-08-11T15:36:25 | 98,764,193 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # PubNub imports
from pubnub.callbacks import SubscribeCallback
from pubnub.enums import PNStatusCategory
from pubnub.pnconfiguration import PNConfiguration
from pubnub.pubnub import PubNub
# MIDI and Music-related imports
import mido
# Time imports for capturing roundtrip delay
# Verbose printing if DEBUG is true
DE... | [
"hanoi@lamtharn-hantrakul.sfb.lyft-corp.net"
] | hanoi@lamtharn-hantrakul.sfb.lyft-corp.net |
5b80a2ef686bef03895fc623fe22bb41d632eb86 | f2ca96d4e9319f1df17f7b6853fe6f832fd25b23 | /main.py | c06f48af229311f883e5c010bcd9dc02d168db48 | [] | no_license | chinarahul04/heroku_practi | 0b2da0b5b662023fdc012f6339c39f32a3052e33 | 4107d1cd11234ad5cd6c7212653ecdcb4a53e50b | refs/heads/main | 2023-06-05T22:19:11.520882 | 2021-06-25T05:25:11 | 2021-06-25T05:25:11 | 380,130,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from flask import Flask
app=flask(__name__)
@app.route('/', method=['GET','POST'])
def index():
return "hy this rahul web"
if __name__=="__main__":
app.run()
| [
"bandaruchinarahul04@gmail.com"
] | bandaruchinarahul04@gmail.com |
195a19e8ab62566d58ec241180b4cbe050d87f27 | f8dd9d621cfd3703df9f206cf8bd4b815ca91f6f | /.ycm_extra_conf.py | 7f3cd021725cc9750d4cac52a214e8b405dfd291 | [
"Apache-2.0"
] | permissive | ezchi/virtio | f0937dc7bd39ad57032566f49bcb6e5c4caf7539 | dd975d96dfdaf176a54ceafc239501a96dbed571 | refs/heads/master | 2020-03-20T03:28:41.961704 | 2018-01-23T22:10:28 | 2018-01-23T22:10:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | # This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either... | [
"tymoteusz.blazejczyk.pl@gmail.com"
] | tymoteusz.blazejczyk.pl@gmail.com |
5da193ab8f0e2efa5b0645b1029e0314fd56b029 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_011/ch92_2019_10_02_17_54_14_425785.py | 043154a806fa8650cc4d1a71882bef7df3c5440f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | def simplifica_dict(dicionario):
lista = []
for chave in dicionario:
if chave not in lista:
lista.append(chave)
for valor in dicionario[chave]:
if dicionario[chave] not in lista:
lista.append(dicionario[chave])
return lista | [
"you@example.com"
] | you@example.com |
dcdfd17496925a85400ab2e195a3c8e50d5401e6 | d7f486eebaa164bf3274c843e1932c7eef596e5e | /importer/facebook.py | 352a80e06ffca4048160d7b028cf173373aa9667 | [
"MIT"
] | permissive | Galaxyvintage/journal-1 | aafe107645a6dde038b0010496c041ac635e966d | f666a3b38f0eeb2cc1f5576e0668f174bf1cbd8d | refs/heads/master | 2020-03-20T09:15:09.269993 | 2018-07-05T16:31:17 | 2018-07-05T16:31:17 | 137,332,462 | 0 | 0 | null | 2018-06-14T08:54:38 | 2018-06-14T08:54:37 | null | UTF-8 | Python | false | false | 7,091 | py | import events
from database import db
import json
import datetime
import os
def load_to_json(filename):
json_data = open(filename).read()
return json.loads(json_data)
def read_app_posts(directory):
data = load_to_json(directory + "apps/posts_from_apps.json")
for post in data["app_posts"]:
attachment_data = post... | [
"mail@marian42.de"
] | mail@marian42.de |
d905ee37aa6ecea6a752fbc54249897a44a54d0e | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5223 All Charges/ExportCharge.py | 0256e8dcc77eb233c47742a482097e9b389b68a6 | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,613 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PrintCharges")
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(50000))
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring('file:/tmp/chenyi/HTB_.root'),
streams = cms.untracked.vstring('HCAL_Trigge... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
808f3c9b4270aa88ba057ffff60dbf1a55d19ad3 | c3f6c2f9a2e35ede54f48979770c8b42fd390089 | /submodules/python-stats/cross_correlation_algs.py | 6fe7d4712a50bef4b3796fe47e0518cddae4e868 | [] | no_license | VideoMem/CRT_filter | 4469fa34dc19e1fa096bdef609629759cc8ed11a | ebe81f50bc2402f1a17cac405a8e8c6984483d07 | refs/heads/master | 2023-01-01T22:14:06.734071 | 2020-10-27T18:52:54 | 2020-10-27T18:52:54 | 247,828,511 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,321 | py | from scipy.io import wavfile as wav
from scipy.signal import butter, filtfilt, resample
import pandas as pd
import numpy as np
#matplotlib inline
import matplotlib.pyplot as plt
#import seaborn as sns
import scipy.stats as stats
def log3_2( data ):
return np.log(data) / np.log ( 1.5 )
def log_compress ( data ):
... | [
"sebastian.wilwerth@gmail.com"
] | sebastian.wilwerth@gmail.com |
10402105f08426d7754983b383bf147cf2c0611e | 8c415b773604c2ac17e18c7ba116d720d9403fef | /vision/vision-iface.gypi | 12db2b67726e0e919d30da307fdcc395e2cc7ce7 | [] | no_license | kiik/libtuum | 2df4668ac01b4c37cadac3ca391b1359967eb0f0 | 844566b8715dba99c3d75c702491c8b1834573a3 | refs/heads/master | 2020-05-23T08:08:57.048312 | 2016-12-01T12:42:32 | 2016-12-01T12:42:32 | 69,343,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | gypi | {
'include_dirs': [
'inc'
],
}
| [
"kiik.meelik@gmail.com"
] | kiik.meelik@gmail.com |
339f9df0dd568b0dac0574b4653c263cc9d9af76 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /come_old_problem_to_point/ask_thing/see_day/seem_problem/time/find_few_week_over_point.py | b79ee7a454f58433209a2c9c27edba7f4f38079b | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
#! /usr/bin/env python
def government(str_arg):
use_public_day(str_arg)
print('small_man_and_long_world')
def use_public_day(str_arg):
print(str_arg)
if __name__ == '__main__':
government('ask_day_from_year')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
cfd998ce54da9c295abf2acbdda401a867013882 | bef5d82150ea8db3297e92fdd6e276d82645e2fe | /code/code1a.py | d2451c659f1b086872e6af93cd704cf1c5ebf748 | [] | no_license | dcruzp/proyectoProb | 20892eb76dc1e06c36e4f99e0498c8f53fd57028 | 8ef7e71de064ea35c605a63a4d1af0d2e86e3ef0 | refs/heads/master | 2022-12-27T19:38:10.030621 | 2020-10-17T10:46:28 | 2020-10-17T10:46:28 | 304,534,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import numpy as np
import random as rdm
def exponencial (l):
U = rdm.random()
return -1 / l * np.log(U)
def gammasimulation (l , n ): # lambda , numero de llamadas
total = 0
for i in range (n):
total += exponencial(l)
return total
def media (l,n,s): #lambda , numero de llamada... | [
"danieldelacruzprieto@gmail.com"
] | danieldelacruzprieto@gmail.com |
2725dddf88956fdbeb3e30bc7d9b47f2079f6b71 | 1b622808bd714e3c770c811bfa6aed0b36693928 | /18.py | 33d89ee4745bf39087f28df537e20e5094b298ac | [] | no_license | dinob0t/project_euler | a4d9a28b2994b64ea6ad064b05553f13ad38fc6d | b0fed278ae2bfc1bfe44043f2b02482ebc210a56 | refs/heads/master | 2020-09-12T14:07:16.137051 | 2014-09-01T16:16:49 | 2014-09-01T16:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | def read_file_return_list(name):
list = []
with open(name,'r') as f:
for line in f:
line = line.split('\n')
list.append(line[0])
if 'str' in line:
break
return list
def triangle_to_dict(triangle):
tri_dict = {}
row_count = 0
for i in triangle:
tri_dict.update({row_count: i.split(' ')})
row_co... | [
"dean.hillan@gmail.com"
] | dean.hillan@gmail.com |
5dd9d036390973bb4274c0546b4809ac2988db87 | 18b4252fc653583528d3171ab04281801341836b | /projects/simparc/mbase/IP.py | 06e27221e01b0c433434de2b48c291d2dddcb57d | [
"Apache-2.0"
] | permissive | sumannam/DEVS-Python | dd45a7e6b17fd904a20691effa78711d2aa05ca4 | 919ddc77f15cf61af7b2351a681b6de703d11c08 | refs/heads/master | 2023-08-31T23:21:16.410193 | 2023-08-19T11:37:30 | 2023-08-19T11:37:30 | 216,816,867 | 1 | 1 | Apache-2.0 | 2023-08-19T11:37:31 | 2019-10-22T13:10:14 | Python | UTF-8 | Python | false | false | 2,184 | py | from src.ATOMIC_MODELS import *
class IP(ATOMIC_MODELS):
def __init__(self):
ATOMIC_MODELS.__init__(self)
self.setName(self.__class__.__name__)
self.addInPorts("in")
self.addInPorts("urgent")
self.addOutPorts("out")
self.addOutPorts("message")
... | [
"sumannam@gmail.com"
] | sumannam@gmail.com |
6083b94a569ab6fb475e6053152cd4ad9492c856 | 44437fe0d8394d8ece0c0fe1b2b1e3b4f1fd0e04 | /teste.py | 3caa030da550198abd4f4d8c86e2b6c43032522c | [
"MIT"
] | permissive | daherk2/telikong | d4893ad3b907e54bb69e55e48dbba0b245604ecd | fd4ae90df6e6d32c5205c5dc5c17fa9eccc7fe7b | refs/heads/master | 2021-01-20T13:12:19.899970 | 2017-06-12T20:36:17 | 2017-06-12T20:36:17 | 90,463,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import telikong_cli as tcli
###################### Exemplo ########################
try:
a = 3/0
print a
except Exception as e:
try:
print tcli.chck_stackoverflow(e)
except Exception as e:
print tcli.chck_stackoverflow(e) | [
"fabio.rosindo.daher.de.barros@gmail.com"
] | fabio.rosindo.daher.de.barros@gmail.com |
d2c4eb944aeb7b5201cd68a2fb149375fbaeff34 | 1bcdefe3798ab2d04be323b5834f0df987c5a1ad | /assignment_1_5.py | 8c394ec090d76ac457817e3f20bd3ad6ecf023b5 | [] | no_license | kristjanleifur4/kristjan | 7229894a9d781c408db5289e6aca403d7784e9f0 | 167220fc00e7aba72fcbea7c0cf14d6ed3ed34ad | refs/heads/master | 2020-07-20T00:11:02.504445 | 2019-09-17T13:23:22 | 2019-09-17T13:23:22 | 206,537,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | x_str = input("Input x: ")
x_int = int(x_str)
first_three = int(x_int / 1000)
last_two = (x_int % 100)
middle_two = (x_int % 10000)
middle_two = (middle_two // 100)
print("original input:", x_str)
print("first_three:", first_three)
print("last_two:", last_two)
print("middle_two:", middle_two)
| [
"kristjanls18@ru.is"
] | kristjanls18@ru.is |
fcb878a2819bc83a0ed79bdb5b844916fa3fbdbe | 794e14945c0521b4eab03e8b9a3f93b8fa14e021 | /src/compas_rhino/utilities/constructors.py | e71275fa0d0e525a4bf92e58e2154310209ae1c9 | [
"MIT"
] | permissive | KEERTHANAUDAY/compas | 5e8ada865bc87ee48ba77b3f6fd03661a9b9c17d | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | refs/heads/master | 2021-07-11T16:26:19.452926 | 2020-09-10T14:27:11 | 2020-09-10T14:27:11 | 294,453,684 | 0 | 0 | MIT | 2020-09-10T15:47:31 | 2020-09-10T15:47:30 | null | UTF-8 | Python | false | false | 2,494 | py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from compas.utilities import geometric_key
import Rhino
import scriptcontext as sc
__all__ = ['volmesh_from_polysurfaces']
def volmesh_from_polysurfaces(cls, guids):
"""Construct a volumetric mesh from... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
98eb8e7dc1fb21ee50b9002c5f691820120ba470 | 19aa291198622834cc0fc04610d419189a098f24 | /stock/jupyterAlgo/AlgoTest/showPrice_Vol.py | 3326dfefc8dfe1e14589419be6d85e88bb4a0837 | [] | no_license | johnsonhongyi/pyQuant | 3127cc30a7fa07a9ca58a1a067c8ee1d289c29a3 | a1873ff29383c4f3a1cfb7206c2cb72ab0da8b3b | refs/heads/master | 2023-01-23T15:58:59.332695 | 2023-01-18T13:05:13 | 2023-01-18T13:05:13 | 47,158,933 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | import sys,logging
stdout=sys.stdout
sys.path.append('../../')
import JSONData.tdx_data_Day as tdd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.finance import candlestick
from matplotlib.finance import volume_overlay3
from matplotlib.dates import num2date
from matplotlib.dates i... | [
"5208115@qq.com"
] | 5208115@qq.com |
b5b5bcafe86af53a80ef5011154eda8a1f569e97 | eb229f1109dd58108b8c9fde432933c713e88ede | /touchstone/utilities/__init__.py | 331d91870f900269c0e5fb2474698194ebd49a8c | [
"MIT"
] | permissive | LechuzaAI/touchstone | 21c07c0f81e1b7152562758c7585532ab3e255ad | 6893b199f14f34986b475c79b4a41934fcf8e7a5 | refs/heads/main | 2023-01-11T03:37:56.350552 | 2020-11-13T18:49:32 | 2020-11-13T18:49:32 | 302,409,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | from touchstone.utilities.gae import generalized_advantage_estimate
| [
"drmiguelalonsojr@gmail.com"
] | drmiguelalonsojr@gmail.com |
91892ec892c4c5f1f18e75e2985112b83be033ca | c02a742d17ee15b72e010bcd8f3b6f86ed8ebfbf | /setup.py | 224a90a601a3ad600300359b62349b8bcff280e8 | [] | no_license | jky88/weixinsougou | 439296aacd8b5ef4e2e4566ba7eeceef0ee4d92a | 0427cd3f5aa04be356cda5d87146d88ca907e952 | refs/heads/master | 2020-04-09T04:09:58.817032 | 2017-11-13T14:12:49 | 2017-11-13T14:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # Automatically created by: shub deploy
from setuptools import setup, find_packages
setup(
name = 'project',
version = '1.0',
packages = find_packages(),
entry_points = {'scrapy': ['settings = weixinsougou.settings']},
)
| [
"windows.lxy"
] | windows.lxy |
40bdf31a657ea2bf2f78e3add7ecf6e3c4c36e96 | 5285d87989438f8635dd41bea94b298a384bc2f1 | /airline0/list.py | 742a5d8dd3b2d4549746375d42ada276ab9fcaa2 | [] | no_license | saedyousef/flask-apps | a65d17a3d9b3ed07f87ce536df6f27b364a231fc | ba7c50dd43dcf190cefe7208e2b61b49a8ea26aa | refs/heads/master | 2022-04-14T03:14:59.729383 | 2020-04-27T23:59:53 | 2020-04-27T23:59:53 | 259,441,497 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import os
from flask import Flask, render_template, request
from models import *
app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = os.getenv("DATABASE_URL")
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
db.init_app(app)
def main():
flights = Flight.query.all()
for flight in flights:
... | [
"saed.alzaben@gmail.com"
] | saed.alzaben@gmail.com |
8afca40a8cd8620496c43177263ba9b063b969f0 | 6a81e51745fc9598d24fb51e8a3d817c707435d7 | /EDU 3.0 TUTORIAIS 1 2020/Edu 3.0_TAC-master/educacao_3_0/wsgi.py | a330243d7f653c076392fa4b526fc446e4c172fd | [] | no_license | bmedeirosneto/TacProgWeb | fbd7ecb9191ef2703580edc9300d15ee71d37058 | 1daeda3b97bb901bd4f69d649c1d735c3509d9de | refs/heads/master | 2021-12-03T21:19:58.212572 | 2021-08-25T12:35:36 | 2021-08-25T12:35:36 | 226,856,253 | 0 | 13 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for educacao_3_0 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"medeiros@filosofiacienciaarte.org"
] | medeiros@filosofiacienciaarte.org |
a30686b6eabb2cac56f288acadb5c196580ebf70 | e6947a8ecc14ddb3c078321958856f888953f4fa | /my_project.py | d96f10703e7f2af3f045b4ee516f87f077c77cb7 | [] | no_license | raja073/SimpleMovieDB | a5dd4b924f1ecb8d04a61c9884e25e6a51af5c3c | 4d28dba684ea0ebf6ad4b78af4c2bdd13b072406 | refs/heads/master | 2021-09-05T13:59:35.372062 | 2018-01-28T14:06:57 | 2018-01-28T14:06:57 | 118,252,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py |
from flask import Flask, render_template, request, redirect, url_for
app = Flask(__name__) ### Instance of the Flask with name of the running application as an argument
#################################################################################################
# Adding database to Flask application
fro... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
092c2800ed58c6b45479c1f65d4df860935259da | 6c7b36f69ad7a55e2ad3262f8a1082e9f1dd0d58 | /src/opal/core/log.py | bc966c8dbd1566523d835f54bbaf2b8fae4b1ec0 | [] | no_license | kiendc/opal | d338805f5d38fc67441813cd7507757291db2790 | 99a16ff4f6da396d9a02f5f4cfe0a24c1fb7051d | refs/heads/master | 2020-05-20T06:28:53.314038 | 2012-10-24T14:18:35 | 2012-10-24T14:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,516 | py | import re
import logging
class HandlerDescription:
def __init__(self, handler):
self.file_name = handler.baseFilename
self.level = handler.level
def generate_handler(self):
handler = logging.FileHandler(filename=self.file_name)
handler.set_level(self.level)
return hand... | [
"kiendc@Cong-Kien-Dangs-Mac-mini.local"
] | kiendc@Cong-Kien-Dangs-Mac-mini.local |
874faf954ae174bedcfe8ce4f42f219ac04bd355 | 14449108de18a8e956830cd7d5107bb38de41c5d | /workshopvenues/venues/migrations/0009_auto__del_field_venue_address.py | 45329577f0f1c85666401d3a4ba848f7477f2436 | [
"BSD-3-Clause"
] | permissive | andreagrandi/workshopvenues | 736e53ccb6ff0b15503e92a5246b945f615d2ff8 | 21978de36f443296788727d709f7f42676b24484 | refs/heads/master | 2021-05-16T03:00:23.879925 | 2014-03-18T15:10:00 | 2014-03-18T15:10:00 | 8,843,235 | 1 | 3 | null | 2015-10-26T11:11:20 | 2013-03-17T23:19:33 | Python | UTF-8 | Python | false | false | 3,698 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Venue.address'
db.delete_column(u'venues_venue', 'address_id')
def backwards(self, o... | [
"a.grandi@gmail.com"
] | a.grandi@gmail.com |
ff9d5d5e5194ae62f6f8a2888b5e8c36abe265af | 8cb6d50076c527b4c81d21b992fc93f77263adc5 | /orden/models.py | f0b736f5697c7219518a2d729725177f23df2fa5 | [] | no_license | alrvivas/CrevenApp | 6b9fefc4661a32cdf00ebb4a3eb869bf778f67e7 | 190291cfc798cbc52ba4cdbfa258ef0b983f7249 | refs/heads/master | 2020-06-04T20:24:03.685451 | 2015-02-12T17:36:01 | 2015-02-12T17:36:01 | 30,713,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,473 | py | from django.db import models
from distutils.version import LooseVersion
from django.contrib.auth.models import User
from cliente.models import Cliente
from producto.models import Product
from orden.managers import OrderManager
from util.fields import CurrencyField
from jsonfield.fields import JSONField
from django.db.m... | [
"alr.vivas@gmail.com"
] | alr.vivas@gmail.com |
c5a314056e8cf06ac9db444cce8d020213784d5d | 217a76bf468ec80547f5d59ff2a560c794ad7800 | /instibuddydjango/scrapdata/apps.py | 6c320b2307eebb2b56b3c9411423a92eae1af745 | [] | no_license | SahilKumar2203/instibuddy | c92ce135bb5820fdc30bc93d602f71af229eaef4 | ea3a38d7ceb44959451191eaed96b8f45f1317d3 | refs/heads/master | 2021-05-16T22:25:12.265459 | 2020-07-08T16:40:11 | 2020-07-08T16:40:11 | 250,494,547 | 0 | 0 | null | 2020-03-27T09:38:38 | 2020-03-27T09:38:38 | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class ScrapdataConfig(AppConfig):
name = 'scrapdata'
| [
"rishabharya32@gmail.com"
] | rishabharya32@gmail.com |
38ca5c408a737d5d08a18256429c005182c0e566 | f01d6884bb99ddf0c8d9c76d39d9480be78a5581 | /tests/test_parser_cli.py | 0e962925e028677134a685e03d0c70055ea0e254 | [
"MIT"
] | permissive | manageacloud/manageacloud-cli | 906e0617d01c6561e1e51d99d12e1f854825afa3 | e782bb4f207b84a10d4d96fa421227d6fe53d3dc | refs/heads/master | 2022-05-28T17:03:45.169824 | 2022-04-07T00:44:50 | 2022-04-07T00:44:50 | 36,004,075 | 6 | 4 | null | 2015-10-27T08:08:32 | 2015-05-21T09:34:48 | Python | UTF-8 | Python | false | false | 3,114 | py | import unittest
import mock
from argparse import ArgumentTypeError
from tests.mock_data import *
import maccli.parser_cli
class ParserCliTestCase(unittest.TestCase):
def test_validate_environment(self):
self.assertRaises(ArgumentTypeError, maccli.parser_cli.validate_environment, "invalid")
self... | [
"ruben@manageacloud.com"
] | ruben@manageacloud.com |
4d312a1a57d49be61935deedc393a5994769225e | 90a756a8a0e470761dfad47e67293e5f880882cd | /hex.py | 600bb477fbc89e37b7b4ab35ac9f93b1decf8bd8 | [] | no_license | Gaspi/panda3d-draft | d62d3b2624adfeaccc0cbb6a6e70d552a36b261e | 665cc2ca6da6b9366ce1952bf4ec2d3eb426d904 | refs/heads/master | 2022-12-04T03:21:15.196026 | 2020-08-22T15:59:24 | 2020-08-22T15:59:24 | 287,313,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,462 | py | import math, random
class Point:
__slots__ = ['x', 'y']
def __init__(self,x,y):
self.x=x
self.y=y
def __repr__(self):
return "Point(%d,%d)" % (self.x, self.y)
def __str__(self):
return "(%d,%d)" % (self.x, self.y)
def __hash__(self):
return hash( (self.x,self... | [
"gaspard.ferey@inria.fr"
] | gaspard.ferey@inria.fr |
74367f4ca6450969099765912f745207351a2c9c | e44c21d65e13a976e16ccabe4eccd952adfdddac | /08/b.py | 2803d919358ac113b72303320432e3b0c3b4cdfa | [] | no_license | kscharlund/aoc_2020 | f5295226543fe1afd5b0eb79f21cfafe65cfbf58 | 7500b7761de618c513c781b00ccb6c72fc597f2e | refs/heads/master | 2023-02-08T00:08:56.752126 | 2020-12-26T08:45:05 | 2020-12-26T08:45:05 | 319,719,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | import sys
from pprint import pprint
def parse_op(line):
op, arg = line.strip().split()
return op, int(arg.replace('+', ''))
next_pc = {
'acc': lambda pc, arg: pc + 1,
'nop': lambda pc, arg: pc + 1,
'jmp': lambda pc, arg: pc + arg,
}
alt_next_pc = {
'acc': lambda pc, arg: pc + 1,
'jmp':... | [
"kalle@scharlund.se"
] | kalle@scharlund.se |
fec5dfca15a354781094c991dd2f486c90f6b869 | f6f247c836c708969568506e70103e87dc20c584 | /урок 1/stroki.py | b6f58c6da7d63c9e638850606b3e38d821eb9991 | [] | no_license | exel14/first_gitproject | 4ad589023c7287e589ac19675a6589e0e0bfb09d | aca5687b092a5176516d0e839ce4cd3e13d41770 | refs/heads/master | 2022-12-31T13:35:00.612393 | 2020-10-01T12:13:26 | 2020-10-01T12:13:26 | 294,680,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | text = "fjdisjfisdfj Vasya fsijfoisd"
imya = 'Vasya'
if imya in text:
print('Yes')
else:
print('No') | [
"showmetheway220@gmail.com"
] | showmetheway220@gmail.com |
bb2e2e6db053a76895cf456bd9e0322b88fad9c1 | 68ac5bf4a7e4ad7478b7e1ac45b8540a14826402 | /ergo/publishconf.py | e8df03c1c829ce52ba4ce5de454581c95c0a9ea0 | [] | no_license | doobeh/ergo | 3833d8c5663c6a9d3aaac9904dff430eee00110b | ee075146d4cbb4eed2297d60436ea000af34812a | refs/heads/master | 2020-05-30T10:41:47.420500 | 2015-10-09T15:17:59 | 2015-10-09T15:17:59 | 27,210,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
this_directory = os.path.dir
from pelicanconf import *
SITEURL = 'http://ergo.io... | [
"anthony@thefort.org"
] | anthony@thefort.org |
d5f34735f201edeb1130c4cb2a9efc396cbf184e | 1ec8734beba25739979cbd4a9414a95273cce6aa | /10.9/移除元素.py | f3a3c26997d12fbc85a770412e56ce40c9f3a40b | [] | no_license | MATATAxD/untitled1 | 4431e4bc504e74d9a96f54fd6065ce46d5d9de40 | 18463f88ce60036959aabedabf721e9d938bacfb | refs/heads/master | 2023-01-01T23:16:30.140947 | 2020-10-23T04:32:38 | 2020-10-23T04:32:38 | 306,529,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from typing import List
def removeElement(nums:List[int],val:int)->int:
fast = 0
slow = 0
while fast < len(nums):
if nums[fast]== val:
fast +=1
else:
nums[slow] = nums [fast]
slow +=1
fast +=1
return slow
a = [1,2,3,4,5,6]
print(removeElem... | [
"502513072@qq.com"
] | 502513072@qq.com |
6fcc525132976c116ea70511282befacca492375 | 573a516233447c8384f26ed56ae4e356e3995153 | /ques6.py | c06b87f3ab0dae128a898dd372ba780d807a5d97 | [] | no_license | BhagyashreeKarale/if-else | 437b0867247f827c44f469a90efeecbf9444803d | 1224fca2bdda389b22897f17b22f21320260e75f | refs/heads/main | 2023-07-19T15:03:03.351825 | 2021-09-11T19:16:07 | 2021-09-11T19:16:07 | 397,150,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Question 6
# Draw a flowchart for this question and write the program.
# Take two numbers as input from the user in variables varx and vary.
# Check whether varx is divisible by vary.
# If yes, print Divisible else print Not Divisible.
varx=int(input("Enter dividend:\n"))
vary=int(input("Enter divisor:\n"))
if varx %... | [
"noreply@github.com"
] | noreply@github.com |
2e56f5cdcb6487d4631e61f2dd8ee8baa69b504c | 0fb3b73f8e6bb9e931afe4dcfd5cdf4ba888d664 | /Web-UI/scrapyproject/migrations/0010_auto_20170406_1835.py | 28afbaa4d39615071f49bc6050e0d270de3e4686 | [
"MIT"
] | permissive | mrpal39/ev_code | 6c56b1a4412503604260b3346a04ef53a2ba8bf2 | ffa0cf482fa8604b2121957b7b1d68ba63b89522 | refs/heads/master | 2023-03-24T03:43:56.778039 | 2021-03-08T17:48:39 | 2021-03-08T17:48:39 | 345,743,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scrapyproject', '0009_auto_20170215_0657'),
]
operations = [
migrations.RemoveField(
model_name='mongopass',
... | [
"rp9545416@gmail.com"
] | rp9545416@gmail.com |
716b77deb7f8f935eada888a20f2b54d08a47dd3 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/services/services/hotel_group_view_service/client.py | b9c83f2d85aa2f2fdc21c12add578c9da910ff31 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 18,873 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
0c1ccf1b2f6432152b0ac72f070dae2a20ff3d35 | 6e4dcc4ebbbf337d33981e1b72eb61232f796c66 | /create_sql.py | 1e802cb316795e49ff52e629d7566e0c3b0eef91 | [] | no_license | kelechiP/AgencyNet | ba9fe69292e4e19b920b4673ab4de84901ec16a3 | 4f9923b03129e9f3dd381a89fe9b7ffb413760c6 | refs/heads/master | 2021-03-31T11:41:53.930709 | 2020-05-24T00:18:35 | 2020-05-24T00:18:35 | 248,104,430 | 0 | 1 | null | 2020-05-24T00:18:36 | 2020-03-18T00:46:24 | Python | UTF-8 | Python | false | false | 1,814 | py | import json
import requests
def get_search():
g = input("Enter the name of Author: ")
print("Searching for the Author name ", g, " in the API Call")
return g
def get_request():
# Replace this with file access
response = requests.get(
"https://api.crossref.org/works?filter=has-full-text:... | [
"noreply@github.com"
] | noreply@github.com |
aa4b45c03c37c440887f601fdd49a108f1479990 | 83c2cfd249e2e3c6fce223c9279e7d99e1596eda | /tf_gan.py | 1631a07f29bd815bd6c822c169bd0e59f810ae1c | [
"Apache-2.0"
] | permissive | hackthecrisis21/nist_differential_privacy_synthetic_data_challenge | ec5eff7102d65b3fc3406039eed80f587ef40062 | 09e93201e36e20f25bebd82cd68cd4c837789297 | refs/heads/master | 2022-02-16T19:31:44.739948 | 2019-05-30T00:55:32 | 2019-05-30T01:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,866 | py | """
Author: Moustafa Alzantot (malzantot@ucla.edu)
All rights reserved.
"""
import sys
import pdb
import math
import numpy as np
import data_utils
import pandas as pd
import json
import matplotlib.pyplot as plt
from sklearn.preprocessing import OneHotEncoder
import tensorflow as tf
from tensorflow.core.framewor... | [
"malzantot@ucla.edu"
] | malzantot@ucla.edu |
e8af1aab3d551f098082a72a6eb666b0423f557d | 21514017d4208e9a20e9e625b146e5c0b51bce68 | /app/blog/migrations/0001_initial.py | 2f3d3a3830c412aa62800dd9a885a1ca583f3aae | [
"MIT"
] | permissive | Thewest123/blog-app-api | d419152557dd10c1d37df7281bf0b09be875aeab | c4654318100ec65995df1c6775390c32dda15307 | refs/heads/main | 2023-07-01T13:25:28.294979 | 2021-08-06T10:06:26 | 2021-08-06T10:06:26 | 392,237,230 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | # Generated by Django 3.2.6 on 2021-08-03 10:39
import blog.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MOD... | [
"info@jancerny.dev"
] | info@jancerny.dev |
d3813671c7b96dd94e66342390d4574c412700a3 | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/functions/search_user_by_phone_number.py | 218f9710f017f0467ab39dc7429e7841c3300db5 | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 751 | py |
from ..utils import Object
class SearchUserByPhoneNumber(Object):
"""
Searches a user by their phone number. Returns a 404 error if the user can't be found
Attributes:
ID (:obj:`str`): ``SearchUserByPhoneNumber``
Args:
phone_number (:obj:`str`):
Phone number to search ... | [
"arshshia@gmail.com"
] | arshshia@gmail.com |
1c23cd9bec50756f3a2bea2745a173ac45cdc882 | c278b06f77cac0a2942fa2ca0636f2dc72b52505 | /4.blog_project/mydjangoproject/blog/migrations/0004_auto_20190320_0504.py | f8a4d492ef89b65190cfc991db5c4e1a9cab6c16 | [] | no_license | hooong/Django_study | 2d27bc7d5b2ad53fa4c9e1bcd808437af98cbe09 | b760ace8f562d538ad18d552388e48ed52cc78d1 | refs/heads/master | 2022-12-02T15:51:24.510596 | 2019-11-02T07:38:37 | 2019-11-02T07:38:37 | 165,012,883 | 5 | 1 | null | 2022-11-22T03:26:18 | 2019-01-10T07:35:07 | Python | UTF-8 | Python | false | false | 318 | py | # Generated by Django 2.1.5 on 2019-03-20 05:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_blog_blog_hit'),
]
operations = [
migrations.AlterModelOptions(
name='comment',
options={},
),
]
| [
"tjrwns0529@gmail.com"
] | tjrwns0529@gmail.com |
3ddc20aebdc144d9693019af06524d5ea4513712 | 78a28bd6b95041bfe67d8aa6a3a3c111911afaab | /18.Web Scraping with Python Scrapy - RM/03_Advanced_Techniques/news_scraper/news_scraper/settings.py | dec217105fcd124cbb665b4076642b6d93bf5eb9 | [
"MIT"
] | permissive | jailukanna/Python-Projects-Dojo | 8200a60ab925bf796bd39cb1977e6f0e0a575c23 | 98c7234b84f0afea99a091c7198342d66bbdff5b | refs/heads/master | 2023-03-15T06:54:38.141189 | 2021-03-11T08:17:02 | 2021-03-11T08:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | # Scrapy settings for news_scraper project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middl... | [
"ptyadana@users.noreply.github.com"
] | ptyadana@users.noreply.github.com |
d9dcdca62c24190cf42aa047155d88fcee2cd81a | 775264659445173665b153cfdc450071845939e8 | /repos/models.py | 257c46155a938a911e083ce14728e8c09b3e7d40 | [] | no_license | ovokpus/flask-app | e19abba21413956408be8f11e99eda936de199b5 | a89202ac95a9ecc37fbf1297aa0dee1b070f2dbd | refs/heads/main | 2023-06-04T07:15:19.206402 | 2021-07-01T15:25:34 | 2021-07-01T15:25:34 | 382,059,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | class GitHubRepo:
def __init__(self, name, language, num_stars):
self.name = name
self.language = language
self.num_stars = num_stars
def __str__(self):
return f"-> {self.name} is a {self.language} repo with {self.num_stars} stars."
def __repr__(self):
return f"Git... | [
"ovo@live.ca"
] | ovo@live.ca |
81d70837b62ed7c9dbad2ad8927c5d723e1d4953 | 63e2bed7329c79bf67279f9071194c9cba88a82c | /SevOneApi/python-client/test/test_performance_metrics_settings.py | 5471c91fa1f10ac623252fd1733b391f5e288962 | [] | no_license | jsthomason/LearningPython | 12422b969dbef89578ed326852dd65f65ab77496 | 2f71223250b6a198f2736bcb1b8681c51aa12c03 | refs/heads/master | 2021-01-21T01:05:46.208994 | 2019-06-27T13:40:37 | 2019-06-27T13:40:37 | 63,447,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # coding: utf-8
"""
SevOne API Documentation
Supported endpoints by the new RESTful API # noqa: E501
OpenAPI spec version: 2.1.18, Hash: db562e6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
... | [
"johnsthomason@gmail.com"
] | johnsthomason@gmail.com |
fda8ec9ce60357ce957ed4b4aab4f9a27ee7f128 | 5e213c666164548b338a519f59d8d2cb733ef289 | /Tests/con_vaccini_test/epiMOX_new_model/epi/parameters_const.py | af1f3d17204a6c355a1f9977c78733303bd36781 | [] | no_license | giovanniziarelli/epiMOX_SUIHTER | 73fb0fd556f9c7c07d4c8d7d348cc9e206d1849b | aeaf25674ebc33ef824512fd67de471c7522868a | refs/heads/main | 2023-09-04T18:11:34.193844 | 2021-11-16T14:55:53 | 2021-11-16T14:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,736 | py | # Definition of the parameters of the models
# At the moment parameters depend on space and time
import numpy as np
from scipy.special import erfc
import scipy.interpolate as si
from lmfit import Model
import functools
import datetime
import pandas as pd
# Mask function
def maskParams(params,m_mask):
m_mask = np.i... | [
"giovanni.ardenghi@polimi.it"
] | giovanni.ardenghi@polimi.it |
c45e8e0400ff9d0a80d3861ee9d4f16481928447 | 845e3c428e18232777f17b701212dcbb1b72acc1 | /lib/fast_rcnn/test_upper_body.py | a0d72a59ea4af92083ed2328b831359d2c136799 | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | chuanxinlan/ohem-1 | dd10b2f5ff15e81ab9e42e936bb44d98e01c6795 | b7552ceb8ed1e9768e0d522258caa64b79834b54 | refs/heads/master | 2021-09-16T18:31:25.651432 | 2018-06-23T10:09:24 | 2018-06-23T10:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,043 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Test a Fast R-CNN network on an imdb (image database)."""
from fast... | [
"cg@example.com"
] | cg@example.com |
1e318f5508cf947742b1b1bc218b4f29dba2cbbb | 611129837d052598d1d310149dda24b252616d0c | /enroll/models.py | 16bae801bf969caf48d6cf4622470cc8f340abc1 | [] | no_license | Monalipython/Student | b1e169b1ff9550dbde494e0f30f3d79d8cabe6fa | 94a470ad1c28acfbe13ed833725c8e5f3d98d077 | refs/heads/master | 2023-08-17T13:08:13.039098 | 2021-09-19T08:04:41 | 2021-09-19T08:04:41 | 408,050,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from django.db import models
# Create your models here.
class Profile(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(max_length=100)
password = models.CharField(max_length=100)
class Book(models.Model):
title = models.CharField(max_length=100)
author = models.Cha... | [
"monali.nimkar7@gmail.com"
] | monali.nimkar7@gmail.com |
e8ca07a932c0963eadc432912f1b306cfd4bce63 | efb3f14e40cd89135aa2ee53c504da96844f74d1 | /productsapi/views.py | 8b7e5a4421bff7afe844605cb4f1fbb5c1f47876 | [] | no_license | ganesh7856/Assignment | da8424cdd01892f74a01adfeb2709e460e468d96 | 1fd7ce36223dd72d6e218c8b7b4ac89f2e9411da | refs/heads/master | 2023-01-13T00:37:42.484196 | 2020-11-21T20:06:12 | 2020-11-21T20:06:12 | 314,884,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | from django.shortcuts import render
# Create your views here.
from rest_framework import viewsets
from rest_framework.views import APIView
from django.views.generic import ListView
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from productsapi.... | [
"ganesh.a.jadhav7856"
] | ganesh.a.jadhav7856 |
8675e6a6dfc3b446db0711fdad5cf5ba6734b1b7 | 3e2616d26d909634a8dd05877281368872d01ade | /Backup/BigbrotherClass.py | 89b8613de19b418d662d98e551a27f2a61d35555 | [] | no_license | ENSAKIC/BigBrother | a627f6ab2253d8f87c7fb9cb8de83cdd6ae6f3ad | b8c9d889a5b27ce0517b23e329a0f6e91a83f836 | refs/heads/master | 2021-01-19T08:20:32.059715 | 2013-04-28T21:30:38 | 2013-04-28T21:30:38 | 9,736,449 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | """Subclass of BBMain, which is generated by wxFormBuilder."""
import wx
import Bigbrother
import tesseract
import locale
# Implementing BBMain
class BigbrotherClass( Bigbrother.BBMain ):
def __init__( self, parent ):
Bigbrother.BBMain.__init__( self, parent )
locale.setlocale(locale.LC_ALL, 'C')
# Init the Te... | [
"darkvador@DeathStar.(none)"
] | darkvador@DeathStar.(none) |
9febec6bd7f0a74d7a44f2976d85b2d2cc702447 | baaef08af947854bbdcb6d7f92292fbb786d9014 | /bridge_skeleton/models/core/product_template.py | e2f24767c7eaf05748e21cacff0cc55c8640cdfa | [] | no_license | hafzalabbas/crm_demo | b0b5e2df79eddb4455c84d893ea24fb1836955bf | d14012a6dff1abd51aebe33a4c08ac8713ae05e9 | refs/heads/master | 2022-11-30T22:11:05.224969 | 2020-05-27T16:39:58 | 2020-05-27T16:39:58 | 254,611,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,345 | py | # -*- coding: utf-8 -*-
##########################################################################
#
# Copyright (c) 2015-Present Webkul Software Pvt. Ltd. (<https://webkul.com/>)
# See LICENSE file for full copyright and licensing details.
# License URL : <https://store.webkul.com/license.html/>
#
##############... | [
"noreply@github.com"
] | noreply@github.com |
a7438ca02484cd42c1d46f32f2b6415efa83040e | cadb25b610777d1a91404c7dcfe3d29ca1ddd542 | /apps/localidades/migrations/0010_alter_localidade_nomelocalidade.py | cb9f7aeb7196267ac6b6462739e16d51937b8d84 | [] | no_license | luanaAlm/sistema_ebd | 851b8d98979e33187ec68b301910fe0c309a1ce2 | ec6a97ddf413e5b10ddff20a781e37ddce77794d | refs/heads/main | 2023-08-28T01:10:27.381064 | 2021-10-18T23:11:25 | 2021-10-18T23:11:25 | 415,992,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 3.2.7 on 2021-10-06 18:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('localidades', '0009_alter_localidade_nomelocalidade'),
]
operations = [
migrations.AlterField(
model_name='localidade',
... | [
"luanarodrigues3211@gmail.com"
] | luanarodrigues3211@gmail.com |
13279672b8c47331a37e9052b40787fc939702ac | 5b85703aa0dd5a6944d99370a5dde2b6844517ec | /03.Python/15.ZerosandOnes.py | 4d5e2053608bce9ef159ceccd2e274087611e083 | [] | no_license | alda07/hackerrank | 255329196e6a4b9d598c3f51790caf4a99a755bc | a09091f859e87462c95ee856cbbd0ad9b5992159 | refs/heads/master | 2021-10-24T07:38:34.795632 | 2019-03-23T17:29:32 | 2019-03-23T17:29:32 | 90,329,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # zeros
# import numpy
# print (numpy.zeros((1, 2)))
# print (numpy.zeros((1, 2), dtype = numpy.int))
# ones
# import numpy
# print (numpy.ones((1, 2)))
# print (numpy.ones((1, 2), dtype = numpy.int))
import numpy
list_i = list(map(int,input().split()))
print(numpy.zeros(list_i, dtype = numpy.int))
print(numpy.o... | [
"hanh.vo.programmer@gmail.com"
] | hanh.vo.programmer@gmail.com |
3b68926d2b085942c1fa005f821aa58397bc197f | 0d38d4b4f9f179724f2fbf685e8381a2bac0912f | /tests/test_response.py | abb87f59787116c3bb92ae48078c90fc6983b060 | [] | permissive | grantmcconnaughey/django-reports | 20d047df704b2dc2adc9e486220549d8f0412ac6 | 34fbd723fc5907e6f87c95cba8f11724e03d89ab | refs/heads/master | 2023-01-09T22:46:42.065299 | 2016-01-18T04:14:49 | 2016-01-18T04:14:49 | 49,586,842 | 2 | 0 | BSD-3-Clause | 2022-12-26T20:00:25 | 2016-01-13T16:38:37 | Python | UTF-8 | Python | false | false | 1,214 | py | from django.test import TestCase
from djreports import Report
from djreports.response import CSVReportResponse
class CSVReportResponseTests(TestCase):
def test_response_has_200_status_code(self):
report = Report([['Hello', 'World'], ['Hello', 'World']])
response = CSVReportResponse(report)
... | [
"grantmcconnaughey@gmail.com"
] | grantmcconnaughey@gmail.com |
3ad1f03b5b5f2d7eca5e84e51e13b8539c377bfa | aae908c86413f51c717c031f82d502828f9fd0fd | /regular_expression_part1.py | 65ac85fdd0e3eed8c3b33f5d31cb5cf7d8447c34 | [] | no_license | ramyashree581/Python_Code | 2e27c4761ec8d06894575c62f1b6fddf868d332e | 50e72c7acdaf97b4d71b80d51a1d4012dcdf3a94 | refs/heads/master | 2020-03-23T20:00:50.878361 | 2019-01-16T06:02:03 | 2019-01-16T06:02:03 | 142,015,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | import re
pattern = r'Ramya'
sequence = 'Ramya'
if re.match(pattern,sequence):
print "Match"
else:
print "Not a match "
r = re.match(pattern,sequence)
print r.group()
####################################
print re.search(r'R....', 'Ramya').group() #. macthes one occurence
print re.search(r'Ra\wy\w', 'RaMya').gr... | [
"ramyashree581@gmail.com"
] | ramyashree581@gmail.com |
42d2ccd0a08c1520cae02783637eee771aedda4f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_196/ch31_2020_03_14_15_42_06_957078.py | 7229a92343174b1d0b472e5e5af883e664d7d8d9 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def eh_primo(a):
if a == 2:
return True
x=1
elif (a%2 == 0) or (a%x == 0):
x+=2
return False
elif (a==0) or (a==1):
return False
else:
return True | [
"you@example.com"
] | you@example.com |
dd7c42bf3677ff4d5c0535593c8a3d205b5bbb4f | 9404a8593ff2d82133897c9e187523d301df7888 | /0x09-Unittests_and_integration_tests/client.py | 09fe617f4bf9b728195056ec7874888a22e52d18 | [] | no_license | emna7/holbertonschool-web_back_end | ac2bc16e47f464530c4dee23497488c77377977e | 744e6cb3bb67b2caa30f967708243b5474046961 | refs/heads/main | 2023-03-06T17:56:10.699982 | 2021-02-12T21:24:04 | 2021-02-12T21:24:04 | 305,394,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py |
#!/usr/bin/env python3
"""A github org client
"""
from typing import (
List,
Dict,
)
from utils import (
get_json,
access_nested_map,
memoize,
)
class GithubOrgClient:
"""A Githib org client
"""
ORG_URL = "https://api.github.com/orgs/{org}"
def __init__(self, org_name: str) -> N... | [
"bhmemna7@gmail.com"
] | bhmemna7@gmail.com |
f136e4143c095943a038c5d18d26267dcce3717d | 7950b777b68ff97d7ade05c0cc23d5b2b847c447 | /mysimulation.py | d9f762c354163fad2befd89ea7881a1f0c1c1322 | [] | no_license | zhandongdong/PyPlan | 08ffa79c7779f13f32a391dc0f8b633203f7770f | 61240ce41899d112ebabaac8f628fd873f62e322 | refs/heads/master | 2021-05-28T22:32:54.581675 | 2015-08-25T23:06:30 | 2015-08-25T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | from agents import *
from simulators import *
# --------------------------------------------------------
# SET THESE VARIABLES BEFORE RUNNING A CUSTOM SIMULATION.
# --------------------------------------------------------
game_name = "-TEMP-NAME-"
output_file_name = "TEMPFILE.txt"
players_count = 2
simulation_count = ... | [
"shankarj@outlook.com"
] | shankarj@outlook.com |
62b9400ae29452a90e4bfe5f3f5a343dd988242d | cf25738acc2a44d7a77c20ef44b9bbcb5508b1ca | /second/migrations/0003_auto_20210719_1244.py | 21f61f980e74da0f1bf8abd1202c3e622247acd3 | [] | no_license | liyaaugustine/djangoproject | 8e1377dc46ebb907fa0db28b55a398c6178985e8 | 257ae04eb6a1797d500bf8dc11608ccf4f010f3e | refs/heads/master | 2023-08-16T11:19:16.946606 | 2021-10-07T16:54:14 | 2021-10-07T16:54:14 | 373,740,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # Generated by Django 3.2.3 on 2021-07-19 07:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('second', '0002_userdetails'),
]
operations = [
migrations.AddField(
model_name='userdetails',
name='parentname',
... | [
"liyaaugustinek@gmail.com"
] | liyaaugustinek@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.