blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04a50dc0e33be89b7e0b3dcf0a41fb02d629f963 | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Object Oriented Programming/oops/exercise_4.py | 57620e40b0f7418b80594400b89402e36f343253 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | class Dog(object):
def speak(self):
print( "bhou..bhou" )
def guard(self):
print( "I am guarding your home" )
class Cat(object):
def speak(self):
print( "meau..meau" )
def hunt(self):
print( "I am hunting mice" )
class Dd(Dog):
def hobby(self):
print( "Biti... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
7214fb12828ab45047e3c1d8bc3774a847769908 | 956bd34816d4075fa28d96725e7e53eb803f1799 | /core/migrations/0025_auto_20210417_0318.py | 130b465e5a8902770d1ace131fb754e504ab151d | [] | no_license | d4nieldev/ebaycalculator | f0d2b67df8ea0c5d9544f6c44ffa77bfd31e5e20 | acf705d8b8f0d5806ec6b926c9573b59590f8e5a | refs/heads/master | 2023-06-20T05:14:09.872690 | 2021-07-18T20:03:52 | 2021-07-18T20:03:52 | 342,599,404 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 3.1.7 on 2021-04-17 00:18
from django.db import migrations
def set_default(apps, schema_editor):
Cost = apps.get_model('core', 'Cost')
for cost in Cost.objects.all():
cost.is_constant = True
cost.save()
class Migration(migrations.Migration):
dependencies = [
... | [
"danielohayon2019@gmail.com"
] | danielohayon2019@gmail.com |
9848cbcc79703b08c9c0e9ee9bbbd69fb4c86624 | b7add0d1b1effc50b27d3316fa5889a5227e5b19 | /Atlasbuggy/atlasbuggy/files/videofile.py | 205f824be3d6e10d3c1e8934bf447a376387c7fd | [] | no_license | Woz4tetra/Atlas | efb83a7c7b2698bf8b36b023f7aa573cc38284f6 | c7380868a9efef9d1594ed7aa87187f03a7e4612 | refs/heads/master | 2020-04-04T06:25:50.657631 | 2017-04-05T01:53:15 | 2017-04-05T01:53:15 | 50,269,756 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,588 | py | import cv2
import time
from atlasbuggy.files.atlasbuggyfile import AtlasWriteFile, AtlasReadFile
from atlasbuggy.files.logfile import default_log_dir_name, default_log_file_name
class VideoPlayer:
def __init__(self, video_name, video_dir, window_name, capture, width=None, height=None, frame_skip=0,
... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
3f5113c7c7eb29fed38d3eba86ad7c33317ca118 | 50a7fda682ad8afaa17f395c8e0873e55fe31a07 | /users/views.py | 2a45b423456f5b26215e2091e78a85e5e373972c | [] | no_license | Ngonie-x/auth-rest-api | c76f148e3f52da3a1e15426c4f91bc74c23ca89c | ba7c9e0e7effcca2739df0e41ca064fbdd86e247 | refs/heads/master | 2020-04-25T22:50:58.364387 | 2019-03-11T13:36:17 | 2019-03-11T13:36:17 | 173,124,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django.shortcuts import render
from rest_framework import generics
from . import models
from . import serializers
# Create your views here.
class UserListView(generics.ListCreateAPIView):
queryset = models.CustomUser.objects.all()
serializer_class = serializers.UserSerializer
| [
"ngonidzashedelight@gmail.com"
] | ngonidzashedelight@gmail.com |
ac528187a330a1170469d7253b64bf4680d05ce3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_evaporating.py | c26673a9d07507032d353945f4ce1d7da9ede1af | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
from xai.brain.wordbase.verbs._evaporate import _EVAPORATE
#calss header
class _EVAPORATING(_EVAPORATE, ):
def __init__(self,):
_EVAPORATE.__init__(self)
self.name = "EVAPORATING"
self.specie = 'verbs'
self.basic = "evaporate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f23d633a5d69aae619c2dab3c8bb97904d52a013 | 89607c2fb5fecc2bf94f410d1b9a83f51d1c82cf | /ProAlone/manage.py | 40e9c8c67b754bae00ef0d5c11764227b1dc9b53 | [] | no_license | niatro/django-deployment-example | 7bb8ccc134021d475d061aa8911d444d6f910219 | e2432d58cdd938abaebe9dc14cf1d2681e3261f0 | refs/heads/master | 2020-05-04T03:21:50.956418 | 2019-04-01T21:36:05 | 2019-04-01T21:36:05 | 178,945,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProAlone.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"nicolas.sanhueza@gmail.com"
] | nicolas.sanhueza@gmail.com |
a1fa0b8461336e6b41dbd3f9d8d6774cf9eeb4d2 | 0dce3707bffce5e3af243b81c26f113d99e7eacd | /manage.py | b91743fd5879979a848e5b5de868e405ff429a77 | [] | no_license | sripathikrishnan/dockient | a41feefa4a1261e7d14bd521c591a9d705750267 | 16aefeaf892925ebcd7f7724abd1c199eecf4a13 | refs/heads/master | 2023-08-19T18:55:50.576139 | 2019-10-14T04:13:51 | 2019-10-14T04:13:51 | 214,945,723 | 0 | 1 | null | 2022-04-22T22:28:15 | 2019-10-14T04:10:42 | Python | UTF-8 | Python | false | false | 628 | 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", "dockient.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"sripathi.krishnan@hashedin.com"
] | sripathi.krishnan@hashedin.com |
7d20d98c12ea94f4e4e819261357222abd48644a | 33e459a3366455dd86d24f28fcfc221c867b382d | /sort_by_bits_assign-4.py | c1fbcab9b950e31792e3b7c260212c671b71858e | [] | no_license | Pavanyeluri11/LeetCode-Problems-Python | 1a442dc53836b83ab5b9cbcd90fc8cb8195051e2 | caa11c68ab893b81477aef5034d371922dd25fa6 | refs/heads/main | 2023-08-23T10:28:48.271077 | 2021-10-20T04:54:57 | 2021-10-20T04:54:57 | 417,374,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | def sortByBits(arr):
count_arr=[]
for i in arr:
count=0
while i:
count+=i%2
i= i//2
count_arr.append(count)
mapping = zip(arr,count_arr)
mapping.sort(key=lambda x: (x[1],x[0]))
#rint(mapping)
for i in range(len(arr)):
arr[i] = m... | [
"noreply@github.com"
] | Pavanyeluri11.noreply@github.com |
c112d5ce3c5633ee755fd9211c360485d7c5e38f | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/apigee/operations_describe_test.py | e7433df43a3aae0f564d4c7c695e60939f77816c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 1,920 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"actions@github.com"
] | actions@github.com |
29a1a2c46aa99f941385f809339cfe85914cf4d6 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/scrapy/utils/sitemap.py | c9f5b4ef42d0d29efc71b43d2c9e9ba8ded9a1a6 | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | """
Module for processing Sitemaps.
Note: The main purpose of this module is to provide support for the
SitemapSpider, its API is subject to change without notice.
"""
from urllib.parse import urljoin
import lxml.etree
class Sitemap:
"""Class to parse Sitemap (type=urlset) and Sitemap Index
(... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
83a1bb3a2cdd1a52239b03c71eef467737b35324 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-4096.py | 8f4fbd00afb059796231d50db43e5910e4bdb267 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
669a2e4701f8645fc4b2cd4655b0d0d25f043f02 | 539721a0fa156a8195e2e80d45f032a78197767e | /elements/python/8/17/soln.py | a2f2df54f07d95534a513a4d7f10831310975c19 | [
"MIT"
] | permissive | mmcloughlin/problems | d03300f3f7e4a50881af8f137274d6bb9fd4cb2f | 6095842ffe007a12ec8c2093850515aa4e046616 | refs/heads/master | 2022-01-12T09:23:24.356430 | 2019-06-13T01:04:09 | 2019-06-13T01:04:09 | 58,326,556 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import random
class Node(object):
def __init__(self, x, nxt):
self.x = x
self.next = nxt
def pivot(n, k):
heads = [None]*3
tails = [None]*3
# build sections independently
while n is not None:
i = 1+cmp(n.x, k)
if heads[i] is None:
heads[i] = n
... | [
"mmcloughlin@gmail.com"
] | mmcloughlin@gmail.com |
1af7f47f95544d80d7d801f40c729ada5bc0f594 | 99cefe56491f9872e5736d89407f26a41854bbb0 | /ch2_flow_control/swordfish.py | 0d0a9f40cf255fa5caeacb221bd119d816d51a38 | [] | no_license | scottwat86/Automate_Boring_Stuff_ | 416ad96d6c30fb4ff1036ad0ade18727dcddb669 | 81a87c1a1eea4405efe6ab91b7fe17c98b558602 | refs/heads/master | 2020-06-01T07:09:18.635781 | 2019-09-17T05:13:52 | 2019-09-17T05:13:52 | 190,692,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # CONTINUE - bypasses remaining loop to start another iteration
while True:
print('Who are you?')
name = input()
if name != 'Joe':
continue
print('Hello, Joe What is the password? (It is a fish.)')
password = input()
if password == 'swordfish':
break
print('Access gran... | [
"scottwat@gmail.com"
] | scottwat@gmail.com |
2bc815cfc5915af087797f7920ffdd5df9947095 | 990b5b545215e622c8b3bb614126a96945582e4e | /web_scrapper/code_challenge/day9-10/main.py | e9164e2d0fc6fc8272ee4af5e58db6a5858b9219 | [] | no_license | WONILLISM/Study | 07448811d318ed0607c10531c693fe6f5bd24d9e | 0af974f2b28604a55f3b996a4e7f024182d940bc | refs/heads/master | 2023-02-15T06:59:29.571722 | 2020-07-10T07:57:09 | 2020-07-10T07:57:09 | 265,529,543 | 0 | 0 | null | 2021-01-06T10:46:58 | 2020-05-20T10:24:48 | Python | UTF-8 | Python | false | false | 1,177 | py | import requests
from bs4 import BeautifulSoup
from flask import Flask, render_template, request
base_url = "http://hn.algolia.com/api/v1"
# This URL gets the newest stories.
new = f"{base_url}/search_by_date?tags=story"
# This URL gets the most popular stories
popular = f"{base_url}/search?tags=story"
# This funct... | [
"wonillism@gmail.com"
] | wonillism@gmail.com |
ca20406b0711435356370909f50abbe6d902a1e4 | f0a910bb7e22b18b7a9babbdd44d62f13d095e9f | /ProjectEuler21.py | f1a44dcebbe81026aa6ecee83d84aa330c9a203b | [] | no_license | FlavitoAdr/Python | 92dc48b62ad4b0fc988925cfc124112ea5189638 | 5392ec7e94f3a772c26a84e71cd914b7ea953e38 | refs/heads/main | 2023-04-10T12:52:29.807797 | 2021-04-23T16:25:41 | 2021-04-23T16:25:41 | 360,771,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #Desafio 21#
soma = 0
for valor in range(1, 10001):
amigavel1 = 0
for i in range(1,int(valor/2+1)):
valorteste = int(valor/i)
valorteste *= i
if valorteste == valor:
amigavel1 += i
amigavel2 = 0
for i in range(1,int(amigavel1/2+1)):
valorteste = int(amigavel1/i)
valorteste *= i
if ... | [
"noreply@github.com"
] | FlavitoAdr.noreply@github.com |
635bd4085a4fdd6fef954d62dc513a0220d56cfd | 04b494a2286e7d0ec3bbe8d25c15d575486a0f91 | /_exercises/exercise113/exercise113.py | b555ca05f49c798a2c6370f04eec96053da588c3 | [] | no_license | ViniciusGranado/_studies_Python | ea6adc35edccfbd81a67a613e8cd468fd8485856 | af645fa777a408a8ff1b8ed89911971f5b537ac7 | refs/heads/master | 2023-02-01T19:57:04.117047 | 2020-12-19T00:56:10 | 2020-12-19T00:56:10 | 258,855,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | def read_int(msg):
while True:
try:
number = int(input(msg))
except (ValueError, TypeError):
print('[ERRO] Digite um número inteiro válido.')
print()
except KeyboardInterrupt:
print('[ERRO] Entrada de dados interrompida.')
print('Co... | [
"vinicius.r.granado@gmail.com"
] | vinicius.r.granado@gmail.com |
7ac3108667a2fc73e496511aca4aa994b5413c18 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bps_cs22950-10/sdB_bps_cs22950-10_coadd.py | e98ff4ffa0393f2b27e60d204c16b04f0ab364d4 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[304.840292,-15.674492], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_bps_cs22950-10/sdB_bps_cs22950-10_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
9526ec485a8eb1597853ea79ad6840a6b23c7b3b | 4d38f25ac0b559a65c4df048c41a1b08bd8fae29 | /Recipe/migrations/0002_auto__add_field_recipe_parent_id.py | 74d05fd6174cefe34d45b63e243daca903966219 | [] | no_license | phillipsra16/BrewMe | b18e488ff2aafe233afd195e8ed410f6fd6621b2 | 22eb918a177d89b00b937086ae9c9372ece69dd7 | refs/heads/master | 2021-01-17T14:19:41.384359 | 2013-05-04T20:27:16 | 2013-05-04T20:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,704 | 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):
# Adding field 'Recipe.parent_id'
db.add_column('Recipe_recipe', 'parent_id',
self.gf(... | [
"wyattpj@email.appstate.edu"
] | wyattpj@email.appstate.edu |
a45d6d5dc449af0ee13747707b980ba6ccfb25bb | cbe59135edf1c03aef4ba4a37db7b2ef044a8061 | /manage.py | 87ce9fc302adeb5ce0e1f5992212dbdfa36a0a87 | [] | no_license | Bubuclem/metro | aabdc4244b834998212564779c5ea0b0683161a7 | 8c320b47d9169732694e12d9c865b3f3bcda6615 | refs/heads/master | 2023-04-12T04:09:35.238311 | 2021-05-22T10:38:39 | 2021-05-22T10:38:39 | 369,619,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TPMetro.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"clement.bubuyt@gmail.com"
] | clement.bubuyt@gmail.com |
3ade23a3375f44b04596853076e8b492aac84448 | 68b217bb04efa66920a9bee097472e216a6b09eb | /dnn_wide_and_deep/preprocess_pipeline.py | 79d091641e4e09ceef0cbb9e07d8dc89b6f778aa | [] | no_license | sagravat/google-cloudml-workshops | 1a43c9ac9fe944ab08383b1cbf9625a4f077b240 | 7c5c039df2400aa84eb8a36cb15d12866a9211af | refs/heads/master | 2021-06-25T16:19:48.656818 | 2020-11-24T20:39:30 | 2020-11-24T20:39:30 | 142,514,939 | 0 | 1 | null | 2019-10-30T22:44:26 | 2018-07-27T01:59:03 | Jupyter Notebook | UTF-8 | Python | false | false | 10,106 | py | import tensorflow as tf
from tensorflow import data
import tensorflow_transform as tft
import tensorflow_transform.coders as tft_coders
from tensorflow_transform.beam import impl
from tensorflow_transform.beam.tft_beam_io import transform_fn_io
from tensorflow.contrib.learn.python.learn.utils import input_fn_utils
fr... | [
"agravat@agravat-macbookpro.roam.corp.google.com"
] | agravat@agravat-macbookpro.roam.corp.google.com |
bdb483c20ea3101175cc2da86464a969387fdb36 | 402ce60f29a8304e94a91c7f57a373debc282525 | /newitjuzi/newitjuzi/helper/parser_helper.py | c865fa20014564c2a73a6a8e76ad4181ff2f4941 | [] | no_license | owengbs/koubeispider | ed1fd55b8f00025d9556abc5a5a32977a289c663 | aea3a3682befe1da6e9361a855b0fb548f0f896c | refs/heads/master | 2021-01-21T13:34:08.859887 | 2016-05-22T03:56:18 | 2016-05-22T03:56:18 | 53,579,992 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | # -*- coding:utf-8 -*-
import cookielib
import random
import urllib2
import urlparse
from lxml import etree
from newitjuzi.db_handler.mysql_handler import DBHelper
from newitjuzi.models.funders_model import FuIndustry, FuPhase, FuArea
class ParserHelper():
scj = cookielib.CookieJar()
opener = urllib2.build_... | [
"chenshaoqin@chenshaoqindeMacBook-Pro.local"
] | chenshaoqin@chenshaoqindeMacBook-Pro.local |
68fc4fa054a1a05f3a080363e2ac0012b84033e5 | 0f0a02662668a863f0d104567525ea2dc4ff44e2 | /transformToLD/Classes/dbpedia.py | bb2035481a5fb80a649a9a8af4bca7702f9d9700 | [] | no_license | MinaMeh/TransformToLD | ad97603787c6b6af4fd4ea7c9bdd73f537b58956 | 2be072ad07a0993b5473c04cccd6edcc5c5d5b35 | refs/heads/master | 2022-12-14T11:01:03.436595 | 2020-09-02T21:46:20 | 2020-09-02T21:46:20 | 231,263,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,896 | py | MY_LIST = ['Abbey', 'AcademicConference', 'AcademicJournal', 'Activity', 'Actor', 'AdministrativeRegion', 'AdultActor', 'Agent', 'Aircraft', 'Airline', 'Airport', 'Album', 'AmateurBoxer', 'Ambassador', 'AmericanFootballLeague', 'AmericanFootballPlayer', 'AmericanFootballTeam', 'Amphibian', 'AmusementParkAttraction', 'A... | [
"fa_meherhera@esi.dz"
] | fa_meherhera@esi.dz |
a65a90b47466d6936a96eccf140c06ee21b57225 | ddf1267a1a7cb01e70e3b12ad4a7bfaf291edb3e | /src/user/migrations/0023_action_read_date.py | d87e85c86569ba17531d435462e2b08d515436fd | [
"MIT"
] | permissive | Garinmckayl/researchhub-backend | 46a17513c2c9928e51db4b2ce5a5b62df453f066 | cd135076d9a3b49a08456f7ca3bb18ff35a78b95 | refs/heads/master | 2023-06-17T04:37:23.041787 | 2021-05-18T01:26:46 | 2021-05-18T01:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.2.9 on 2020-01-10 20:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0022_action'),
]
operations = [
migrations.AddField(
model_name='action',
name='read_date',
fiel... | [
"lightning.lu7@gmail.com"
] | lightning.lu7@gmail.com |
7d6d68b3b902f1b2c8ce1f454317c21f2906e308 | 40268182f4aca109612a7c54c74b40bda245c3a2 | /src/main/admin/ducc_rsync | 0e25fbb941c75215fa9f6297a4a288685b7fd015 | [
"LicenseRef-scancode-unknown",
"CC0-1.0",
"CC-BY-2.0",
"CC-BY-SA-2.5",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-SA-3.0",
"LicenseRef-scancode-unicode",
"CC-BY-SA-2.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"MPL-1.0",
"LicenseRef-scancode-proprietar... | permissive | apache/uima-ducc | 51f51158e5bfb7f4d85efebcd3961fc73967c1e6 | fd8cab1dfe0ee8bd4b2e52637735f994048725cd | refs/heads/trunk | 2023-08-22T05:21:56.848900 | 2020-05-27T12:41:11 | 2020-05-27T12:41:11 | 15,070,660 | 9 | 24 | Apache-2.0 | 2023-07-18T12:32:19 | 2013-12-10T08:00:23 | Java | UTF-8 | Python | false | false | 14,020 | #!/usr/bin/env python
# -----------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF li... | [
"degenaro@apache.org"
] | degenaro@apache.org | |
55584a728432a93b6c2d548ab317693f82c8a4ad | 022620bbd69fc42dc492694132bb4d6897ddaabb | /dragon/transpiler/lark/lark_transpiler.py | 4d1ee5d15a7cb5e7faed183780ee5fb7bee1f165 | [] | no_license | pombredanne/dragon | 7e6de67515727e850be9565e13531e81c4bf62c2 | bf9318dbaac4aeca146fa25a733e2bbc87d83242 | refs/heads/master | 2021-01-24T22:06:36.803346 | 2018-02-23T03:42:46 | 2018-02-23T03:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from lark import Lark
from dragon.transpiler.lark.python_indenter import PythonIndenter
from dragon.transpiler.lark.transformers.haxe_transformer import HaxeTransformer
import os
import sys
class LarkTranspiler:
_PYTHON_3_GRAMMAR_FILENAME = 'python3.g'
# TODO: try PyPy, etc. once you get a large ... | [
"nightbladecodes@gmail.com"
] | nightbladecodes@gmail.com |
a3154200beab4765d7c8177e01cc426ef4ec63b0 | 3a40a3611195dc517137b9cc089c7ddf362a0fac | /math_practice.py | 3671db4e5bbab2b9260260bf8d1a9f2321eba774 | [] | no_license | kfcole20/python_practice | 6931d9f3bbfd37d5407afef57ba3b251b2cf9ddf | ba824c2e80b54482e5c6678e7e9766a5482c21ae | refs/heads/main | 2023-08-24T15:13:24.113338 | 2021-10-19T21:51:21 | 2021-10-19T21:51:21 | 417,870,766 | 0 | 0 | null | 2021-10-17T23:17:26 | 2021-10-16T15:36:20 | Python | UTF-8 | Python | false | false | 1,021 | py | # Assignment: Multiples, Sum, Average
# This assignment has several parts. All of your code should be in one file that is well commented to indicate what each block of code is doing and which problem you are solving. Don't forget to test your code as you go!
# Multiples
# Part I - Write code that prints all the odd nu... | [
"kfcole20@gmail.com"
] | kfcole20@gmail.com |
69fb8eb6f8407bd166d3efed59289d420bdbaf8f | 272fa15878377ce874e292534714288d9d24d294 | /colors.py | 29cedf0d7ecd190044761acf49e339be7d125be7 | [] | no_license | Kevin-H2R/PokerNoLosDos | 292a6d2e5f813d3a4d40156348e3fea07e7c6c61 | aadfc46a34a3a3cdf3b1e2d80cb3e6a2816f3fb8 | refs/heads/master | 2021-08-30T11:08:15.802961 | 2017-12-16T18:38:11 | 2017-12-16T18:38:11 | 113,234,054 | 1 | 1 | null | 2017-12-17T15:51:49 | 2017-12-05T21:17:57 | Python | UTF-8 | Python | false | false | 99 | py | from enum import Enum
class Colors(Enum):
HEART = 1
DIAMOND = 2
SPADE = 3
CLUB = 4 | [
"diablo22007@gmail.com"
] | diablo22007@gmail.com |
a3ed777084912071631cfd77693a976fda3ed110 | 266648ed05db468dad88d2d249c6f84877be8ce5 | /day2/num2_10.py | f4c6ca52bbee57e11cf72ef083b8ff2b2ea08a4e | [] | no_license | nicklez5/summitworks | 6227011cff716a2cd4450cc04e76e2472487db31 | c2516851560e5a5ae3520095eae81c7413d7071c | refs/heads/main | 2023-03-02T04:38:45.554920 | 2021-02-01T19:41:17 | 2021-02-01T19:41:17 | 331,765,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import random
all_words = "all the words in the world".split()
def get_random_word():
return random.choice(all_words)
def get_unique_words():
list_set = []
while(len(list_set) != 1000):
list_set.append(get_random_word())
tmp_set = set(list_set)
print(tmp_set)
get_unique_words()
| [
"jlu080@ucr.edu"
] | jlu080@ucr.edu |
75fdabe5340f4b15d16a487f118c0e2cc7b6ad4e | ab89de004e7c17cf23f497532e0e0249bfa7a35f | /BATTSI-v1.0-Part3.py | 833da439252b0115328ce16bb49cc9a27beeca37 | [] | no_license | fernan9/BATTSI | 0cf55fe4a44287cac2fa37bfd49c4715353d078f | 069e456ea44d6dbbfb19ae8dfd4c44625f47d991 | refs/heads/main | 2023-06-17T16:10:34.800328 | 2021-07-13T19:49:05 | 2021-07-13T19:49:05 | 385,718,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | # -*- coding: utf-8 -*-
"""
BATTSI version 0.1
-
Standing for
-
Biological Activity Transformation Tool for Small Insects
version 0.1 - Still Script
last modified July 2021
-
Remaining bugs
*
This series of scripts uses the Python computer vision library OpenCV
"""
import cv2
import numpy as np
import... | [
"noreply@github.com"
] | fernan9.noreply@github.com |
53aa70e4939b563a79bf97b65b6cde48c07abd28 | d9d5995cc08bd98e5cb9bbb45535700cc86fb58e | /cloud/venv/Scripts/rst2xetex.py | 5af092e3ac9c877568605bf4a92bb6e9919d69a1 | [] | no_license | peternu2020/WhisperDemo | 44c2bc98dbb3173d847c6d324786229b4c057830 | 3f2790d4fbe3904f79a4dc32fc2b22e6580fc008 | refs/heads/master | 2020-09-09T02:08:51.384454 | 2019-11-11T04:09:15 | 2019-11-11T04:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | #!C:\Users\Admin\Documents\AWS_test_s3\venv\Scripts\python.exe
# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $
# Author: Guenter Milde
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code.
"""
try:
import locale
loc... | [
"salomekariuki2020@u.northwestern.edu"
] | salomekariuki2020@u.northwestern.edu |
7235263640152d56990e710466dad45c4b7f817f | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /mrex/metrics/tests/test_common.py | 27be6f705fd1d384f9a902c6518ff891fc0eb1e9 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,155 | py |
from functools import partial
from itertools import product
from itertools import chain
from itertools import permutations
import numpy as np
import scipy.sparse as sp
import pytest
from mrex.datasets import make_multilabel_classification
from mrex.preprocessing import LabelBinarizer
from mrex.utils.multiclass impo... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
4f8bac6b5e0090131a6376b376fa7e0af1e5899b | c9a910c3ebfed5a9c76c4681a0ce39fb7cb6ba08 | /Project/settings/staging.py | 4c57472bc36aa38c563f22e128c317cce623d292 | [] | no_license | gideonw14/django-starter | 8ba1dfaeba0951835254a0fd19b7b4da28210e44 | dff4ac695fd4cdde2f28789aa791d112e56e03a2 | refs/heads/master | 2021-07-12T07:09:37.720285 | 2017-10-16T22:33:43 | 2017-10-16T22:33:43 | 106,753,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | # Staging version for running a semi-private version of the site on a production
# server. This is where managers and clients should be looking before your work is
# moved to production. | [
"gideonw14@gmail.com"
] | gideonw14@gmail.com |
de89526204340fed105a0efb1a4cfd7137b26f44 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/tenth/rank_2i26_I.py | 4c80ed792391aea378782cf42541231cd379011d | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
6ac3aed8fa2a8988fe9eef16f03367f0f03734ed | 0c3afb070e7c8d52b66d32272e8dd6da93e3186b | /minerals_app/apps.py | 0c782dd5812f21ef4a5fde65d11417871c88ba1c | [] | no_license | FVPukay/mackys-minerals | b8d1f19478f975cc0bfa49aa3f091d6c77c3afb9 | ce3f472917b40637bf27d6a53a1141aabbc07855 | refs/heads/master | 2023-04-27T11:18:46.585575 | 2022-11-06T00:14:59 | 2022-11-06T00:14:59 | 206,874,503 | 1 | 0 | null | 2023-04-21T20:36:48 | 2019-09-06T21:10:04 | Python | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class MineralsAppConfig(AppConfig):
name = 'minerals_app'
| [
"frederickpukay@gmail.com"
] | frederickpukay@gmail.com |
6b8fd04745c1d69c819cc2f7e2ca46f5d6b25e51 | de23310ac55a7e72e853ca43ebdbce28358a4bb9 | /models/residual_viz.py | 35bfe4f16c0edf9e74ad6977b2482c5ad2f72ede | [] | no_license | mehdidc/zoo | ea5f97b1402e9501db53cd418271614afe378dc0 | 194efb0098679c065de51b0f4d4864cb415b17f7 | refs/heads/master | 2020-04-28T02:28:37.576822 | 2016-10-31T06:06:21 | 2016-10-31T06:06:21 | 174,899,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,157 | py | #!/usr/bin/env python
"""
Lasagne implementation of CIFAR-10 examples from "Deep Residual Learning for Image Recognition" (http://arxiv.org/abs/1512.03385)
With n=5, i.e. 32-layer network from the paper, this achieves a validation error of 6.88% (vs 7.51% in the paper).
The accuracy has not yet been tested for the ot... | [
"mehdi@cherti.name"
] | mehdi@cherti.name |
4a6cebd005e0514777d65f241202ecc0c147dfc6 | b43398f48ac2c7ac31918fd4415b149691d28a17 | /YOLO_v3_Object_Detection/bbox.py | 506f05a11bf536f07e4f22ed4efe588e863102d1 | [] | no_license | ake020675/RoadCrackDetection | f6c9b933dc37d6b5667175e431f38b26a5a52874 | 5e93b66c706f28c394895b213cfe48fd3a27cf81 | refs/heads/master | 2023-01-03T04:15:06.161880 | 2020-10-26T08:28:15 | 2020-10-26T08:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | from __future__ import division
import torch
import random
import numpy as np
import cv2
def confidence_filter(result, confidence):
conf_mask = (result[:, :, 4] > confidence).float().unsqueeze(2)
result = result * conf_mask
return result
def confidence_filter_cls(result, confidence):
max_scores =... | [
"49043498+ZawLinTun16925410@users.noreply.github.com"
] | 49043498+ZawLinTun16925410@users.noreply.github.com |
8adfff16b60943bb8d918070b4995a2715c7150d | da5dd3c4172b1d1238f8c6c43589f84f984a34ec | /mtg.py | 871aeeb0798096cea320ea903d71ec26d7c329a5 | [] | no_license | JKFrantz/BlueStew | 497dfe3b51f1c864f101e4a240eefc2d7efa54e1 | ad246a9f79668139807af107708dcdc8e02e314a | refs/heads/main | 2023-04-12T21:22:26.952477 | 2021-05-12T04:57:48 | 2021-05-12T04:57:48 | 365,330,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,944 | py | import glob
import os
import numpy
import scrython
import pandas as pd
import time
from collections import defaultdict
class Card:
def __init__(self, dict):
# val_list must be a dictionary with keys like "cmc"
self.values = dict
# return method for any variable
def get(self, val):
retu... | [
"noreply@github.com"
] | JKFrantz.noreply@github.com |
2ae7e9e029e0318f8546701a477685f345344028 | acb1e1a381c1dd47847cc67441fe5891f9eed382 | /app/models/models.py | 8b0dc22ce3a0ef6990ec08a493d77ce741da3584 | [] | no_license | zzgzhang/microblog | c2b469a32f88a2d2968bca57917bf4d8d5040ccd | 414b78d57f1e9dc91a3fd6ae04f39b7f12030f3a | refs/heads/master | 2021-01-19T19:25:51.066270 | 2017-08-25T01:41:35 | 2017-08-25T01:41:35 | 101,192,758 | 0 | 0 | null | 2017-08-25T01:41:36 | 2017-08-23T14:56:54 | Python | UTF-8 | Python | false | false | 3,793 | py | import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from app.models import engine
from sqlalchemy.orm import relationship, backref
from app.models import session
from app import app
Base = declarative_base()
followers = sa.Table('followers', Base.metadata,
sa.Column('f... | [
"zhenyuanwei@foxmail.com"
] | zhenyuanwei@foxmail.com |
2e2462e1cee4dda266056451ce2d7caaf0cbdad7 | d77decc90e901a1ba7b1c20bb3058deb1f3fabe1 | /coba.py | 0b92d661fd2fff83d96e6c7cca49146900318a45 | [] | no_license | widhera/PerpusOnAir | 30689d2ffc1078fff6936fc6d4df41a03dcc5372 | 10d59d171e484c220cbfaf141e106651b200c7b1 | refs/heads/master | 2020-04-10T09:33:32.961446 | 2018-12-19T10:04:27 | 2018-12-19T10:04:27 | 160,940,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import pymysql
db = pymysql.connect("localhost", "root", "yoza", "perpusonair")
cursor = db.cursor()
query = "SELECT * from buku "
cursor.execute(query)
result = cursor.fetchall()
print result | [
"widheramahana@gmail.com"
] | widheramahana@gmail.com |
944dd514a48ddc17daad3a0c927a6afa0d754240 | f99a71291f8b2acdeedf7bf8bc7e37ad3a4c79e1 | /backend/main/app/modules/mail.py | 599e6746e5afbdf05946c4035c8314cfef2d3de1 | [] | no_license | benson40111/SmartBike_Parking_Project | 8190ced843958be7dba639f58689d6194d19d420 | d94eab83d1d495ec5abffad651e7c338671b12e2 | refs/heads/master | 2021-09-24T09:17:53.763744 | 2018-10-06T14:12:18 | 2018-10-06T14:12:18 | 116,125,717 | 0 | 1 | null | 2018-10-06T14:12:06 | 2018-01-03T10:46:33 | HTML | UTF-8 | Python | false | false | 941 | py | import smtplib
from app.conf.config import gmail_user, gmail_password
from email.mime.text import MIMEText
from email.header import Header
from app import logger
class mail:
def __init__(self):
self.server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
self.server.ehlo()
self.server.login(gmail_... | [
"madness48596@gmail.com"
] | madness48596@gmail.com |
086b967156eedb27a1230bbede5ad1ea56377365 | 4e01bb5dfd42e1a80ac63ec55e98c0ae11ceeaac | /exercises/implementation/append_and_delete.py | f9cf77884b59e05fefd23a2e891e56a215a43d1d | [] | no_license | 98sean98/hackerrank | 990c0e074180837586bbfce839712b784704ad31 | 0d633a2a2ff1ddbbab67d99ad7650020c214fb0b | refs/heads/master | 2022-04-16T22:34:24.724014 | 2020-04-12T21:25:47 | 2020-04-12T21:25:47 | 255,172,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | #!/bin/python
import sys
s = "abaaaa"
t = "abaaaaaaa"
k = 5
# s = raw_input().strip()
# t = raw_input().strip()
# k = int(raw_input().strip())
count = 0
# remove the first letter
def remove_first_letter(oldstr):
if oldstr != "":
return oldstr[1:]
else:
return oldstr
# return first letter
def... | [
"seanchok@gmail.com"
] | seanchok@gmail.com |
03600cc8214045434b642323a45c09a881382679 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /syn_mem_corruption_3switch_fuzzer_mcs/intermcs_5_/replay_config.py | 7aef30971cd0c4b996594cb00d2313e431ebf28b | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import Replayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pox.... | [
"b-github.com@wundsam.net"
] | b-github.com@wundsam.net |
cd7b1c735c48d2803238e6ba0ddab6a70ce5d66f | d0eccc58972cc3946b2a105551b8e48205d85c1d | /general/wit_clip.py | a85357da8f44f7db00bcd07879fd260bc71e3bcf | [
"MIT"
] | permissive | peternara/DALLE-datasets | 8848d0b3e1266dddee00a0ba15e85b2fd6eeb91b | 527e54aeac879bc4da669fa5c5b64c9354890728 | refs/heads/main | 2023-08-07T05:17:49.872327 | 2021-10-07T17:58:40 | 2021-10-07T17:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,463 | py | import os
import argparse
import time
import pickle
from tqdm import tqdm
import pandas as pd
from multiprocessing import cpu_count #, get_context
from helper_scripts.wit_url_downloader import download_wit_urls
from helper_scripts.wit_clip_class import CLIP
from helper_scripts.wit_dtype import DTYPE, DFLENGTH, DFLENGTH... | [
"robvanvolt@gmail.com"
] | robvanvolt@gmail.com |
4500182d81ed9e0c2cdaa86f3343436b856ccd07 | 325b1cef3e82013abbf9c8270c5ec7b44b9adc2f | /lab7/informatics/d/for/I.py | 17a518b58ea2b225e83fdac36cc7caef04cd1057 | [] | no_license | shagyrovmaksat/WDSpring2021 | adb4456d6ee456aab479c048f209f87031bd9842 | 7884ac7aac2603d5d1814bacc9e7293c48f2180f | refs/heads/main | 2023-04-02T06:32:36.712900 | 2021-04-13T07:51:22 | 2021-04-13T07:51:22 | 334,648,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import math
n = int(input())
cnt = 0
for i in range(1, math.floor(math.sqrt(n)) + 1):
if n % i == 0:
if(n // i == i):
cnt += 1
else:
cnt += 2
print(cnt) | [
"noreply@github.com"
] | shagyrovmaksat.noreply@github.com |
1abd82cd32e985e35728a631c81c33ef0fe62b70 | 481ce69bd3611715fef0be99c655c95d67f16d5f | /riopy/tests/test_symops.py | a44f6bd76716d46e50bf17f299cbedb403e45b81 | [
"BSD-3-Clause"
] | permissive | fsimkovic/riopy | 0ffed18c72573e824affa97d5c17ca462c5f2031 | 5dc4083d1c0919d94ceeac802d3fb40748b947f3 | refs/heads/master | 2021-03-24T10:14:25.904758 | 2018-08-30T13:16:02 | 2018-08-30T13:16:02 | 117,836,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py |
import unittest
from riopy.symops import SymmetryOperator
class SymmetryOperatorTest(unittest.TestCase):
def test___init___1(self):
symops = SymmetryOperator.ops("P1")
self.assertTrue(len(symops) == 1)
self.assertTupleEqual((0.0, 0.0, 0.0), symops[0].t().as_double())
self.assertT... | [
"felixsimkovic@me.com"
] | felixsimkovic@me.com |
a7733a3cb52937e8a091ff034739072679920e13 | 7cb839566d9bc2a4cdc1da7af1044ab006642afa | /emojiconverter/facetoemoji/views.py | f09b689fca4b6d233f7ae9d1eb2ec82b8aeaa5b2 | [] | no_license | FalakChhikara/FaceEmoji | 84a4195791099fc0b9ca6e8ba4c38f224dfc4ed6 | ed14a2d03663eb10f594ede762d0b37a6cf3174b | refs/heads/master | 2022-06-07T19:24:47.221178 | 2020-05-07T03:24:11 | 2020-05-07T03:24:11 | 261,701,635 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,878 | py | import cv2
from django.shortcuts import render, redirect
import numpy as np
import pathlib
from tensorflow import keras
from tensorflow.keras import backend as K
from tensorflow.keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau
filepath='Model.{epoch:02d}-{val_acc:.4f}.hdf5'
checkpointer = Model... | [
"falakchhikara2001@gmail.com"
] | falakchhikara2001@gmail.com |
59e1363d026e1cf5c641f40106aba606a342065e | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_337/ch169_2020_06_21_16_48_03_433219.py | d50363959fd13d06ed505512e563e82d36dc80ab | [] | 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 | 390 | py | login = input('Login?')
lista = []
while login != 'fim':
if not login in lista:
lista.append(login)
else:
i = 1
k = True
while k:
login2 = login+str(i)
if not login2 in lista:
lista.append(login2)
k = False
i+=1
... | [
"you@example.com"
] | you@example.com |
48ef9a81a9fa311571610eb4ba62f12c78f8c6f7 | 8fdffd0ef99fa16201c4e75d16e15ccf0c6698e3 | /assign3_01.py | 532e8623ab2afa47a29c0d6292bf11bb073286e5 | [] | no_license | dirtyfish/AI-2014 | 616d18f01a8efe39e0c0c6d022f0ffbdcf0e1a54 | 7ed6fd8519139b22c91eeee768b8703ac2eea3cc | refs/heads/master | 2021-01-02T08:22:00.514362 | 2014-04-20T17:35:06 | 2014-04-20T17:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | #!/usr/bin/env python
"""This examples demonstrates a simplish water effect of an
image. It attempts to create a hardware display surface that
can use pageflipping for faster updates. Note that the colormap
from the loaded GIF image is copied to the colormap for the
display surface.
This is based on the demo named F2... | [
"espenvh@gmail.com"
] | espenvh@gmail.com |
1a462c2c8ad88fb921bfca9717f9c097a1acc83c | 3fe53dceb5e2b66e4b4f16b8b2826bb622c814f4 | /api/settings.py | 1ef374bf50a898d5d14703cbf2becf1945877365 | [] | no_license | terror12/arrecs_backend | e4d2a7df484d5d7d5cec82fe95d1aaf4363a0db1 | e465627a2e72afb9337fb98e2750dcef232372de | refs/heads/master | 2022-12-07T02:45:17.660044 | 2020-09-05T11:28:27 | 2020-09-05T11:28:27 | 287,525,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,650 | py | """
Django settings for api project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
import... | [
"ascerra@redhat.com"
] | ascerra@redhat.com |
50a8d27c1d813c6ed8183b40f90329c05166936e | 5a6030a8d67207fcf77359c8d6c3fbd4860d1144 | /project/routes.py | 44a24ec1c52ac49029a2673d6a91f303357123fb | [] | no_license | atharv6f/Bengaluru-Real-Estate-price-prediction | 3a71a3b384993ce2d5d32b256e3748898a05b208 | d7330833443c846ceadf2c993c52bd2ac4d29999 | refs/heads/master | 2022-12-18T17:51:08.102823 | 2020-09-06T18:44:00 | 2020-09-06T18:44:00 | 293,140,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,733 | py | import os
import secrets
from PIL import Image
from flask import render_template, url_for, flash, redirect, request, abort
from project import app, db, bcrypt, mail
from project.forms import (RegistrationForm, LoginForm, UpdateAccountForm,
AppForm, RequestResetForm, ResetPasswordForm)
from ... | [
"atharv6f@gmail.com"
] | atharv6f@gmail.com |
c71e156f811307de345da807ee15cfe276b92a55 | f23c1741a63acd9d431077c4b2068e4072a72d51 | /permutation.py | a92b11d13ab718087d9f9ce651ba2472f6a711a6 | [] | no_license | Martin9527/LeetCodeTest | b188c997ab01a38201bd5ba792cdc104ca79d1d4 | 5f860c8fd2d7d7ff94eca6065d643cc4ea204abf | refs/heads/master | 2020-05-23T11:21:54.543063 | 2019-12-08T10:37:42 | 2019-12-08T10:37:42 | 186,735,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | class Solution(object):
def permute(self,nums):
size = len(nums)
if not size :
return []
result = []
curAns = []
usedNums = set()
self.backTrack(nums,size,curAns,usedNums,result)
return result
def backTrack(self,nums,size,curAns,usedNums,result):
if size == len(curAns):
import copy
ans = cop... | [
"="
] | = |
e5af3a05af1c55f4de514b9b82f99141101c9200 | 8aa0d1d407bb1c66d01261f7e2c4e9832e856a2d | /experiments/experiments_gdsc/hyperparameter/plots/plot_nmtf_gibbs_hyperparameter.py | dd3218e5fb59f547aca48d1125e82075eea0af28 | [] | no_license | garedaba/BNMTF_ARD | 59e3ec1dbfd2a9ab9f4ec61368ec06e3783c3ee4 | 0a89e4b4971ff66c25010bd53ee2622aeaf69ae9 | refs/heads/master | 2022-01-16T06:57:12.581285 | 2018-06-10T10:22:12 | 2018-06-10T10:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | """
Plot the performances of NMTF Gibbs for different hyperparameter values, for
three different sparsity levels.
"""
import matplotlib.pyplot as plt
import numpy
''' Plot settings. '''
MSE_min, MSE_max = 600, 1400
values_lambda = [0.0001, 0.001, 0.01, 0.1, 1., 10., 100.]
fractions_unknown = [0.2, 0.5, 0.8]
folde... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
4b4b0881f30e1b3c546fe8a0e886bdc18dba6a0d | 88ec9caf2c504f83bf192ca7fac6b712b6e1c2f7 | /New_Year_Candles.py | 2886ad4b9cfd32b66fe3f94eb42e610b6e0cb622 | [] | no_license | nitinverma99/Codeforces---1000 | 69ceb3fb0ee155e1e1574d884a49412bb0854d86 | f7f388cd2319e9425d63065717c0e612d46799dc | refs/heads/master | 2023-05-11T22:28:17.987429 | 2021-06-04T19:07:00 | 2021-06-04T19:07:00 | 373,936,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | a,b = list(map(int, input().split()))
# print(a + (a-1)//(b-1))
total = a
left = 0
while(a>=b):
total += a//b
a = a//b + a%b
print(total) | [
"nitinv0504@gmail.com"
] | nitinv0504@gmail.com |
1825529811ad6388a02fe1b5071b9d69c47ea4b5 | 9259d9ede798102042f88177e94be765bb487929 | /tut/settings.py | bff22769574e4c9c236a30548dddd0f5dff3cc51 | [] | no_license | malcolms7/tut | 417335a8bb24606e9a8420fe1fd433f250c46444 | fecadae8f88786ddf237150473ba5890c1ad88ab | refs/heads/master | 2016-08-06T15:37:01.398099 | 2015-06-26T11:06:33 | 2015-06-26T11:06:33 | 38,108,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | """
Django settings for tut project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths in... | [
"malcolm@swordfish.co.za"
] | malcolm@swordfish.co.za |
317532f1b4fd432f8a028467d86425206e67c3a8 | c8fed2de2e73811c57cca397abd2e3323df33bba | /FeatureExtractor/correlation_identifier.py | c2ea4cec85d5cad26183ec9b56e3355ac658a1f1 | [] | no_license | jsonbao/MolecularFeatureEngineering | 267b29e85e82f6d2916157b858f8ecd7658ce09b | 8498cc487eca66a976aaf18f8f63918c29640684 | refs/heads/master | 2021-01-15T09:03:07.750254 | 2016-04-13T21:08:56 | 2016-04-13T21:08:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,309 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import config
import molecule_feature_matrix
import csv
import os
# from sklearn import linear_model
__author__="Aakash Ravi"
# def identify_uniform_features( feature_matrix, num_features ):
# "This function takes in a matrix of size (n x m), where... | [
"aakash_ravi@hotmail.com"
] | aakash_ravi@hotmail.com |
e613b4269825bc5de44e5ac692827adf17b711a4 | a5f6d1d089456196c8282bcdb31db44be3ebaeed | /testSet/testSubmitFeedback.py | 1fe219b5e496bb6766bab860dfff882b79f3d553 | [] | no_license | ChristianXu/BTCCQA_Mobi | 9fa9727d61715668bed6d4e64ddb87371acc98e1 | bc9fb3ce31478c801c8896b6b2c2580e9b2c1b89 | refs/heads/master | 2020-09-27T16:08:18.957108 | 2017-03-07T02:54:48 | 2017-03-07T02:54:48 | 66,329,331 | 0 | 0 | null | 2017-03-07T02:54:49 | 2016-08-23T03:19:30 | Python | UTF-8 | Python | false | false | 1,431 | py | __author__ = 'sara'
import unittest
import logging
from comm import get_element
from comm import ReadConfig
from comm import bsnsCommon
from time import sleep
from comm import common
from comm import Log
logger = logging.getLogger()
get_element = get_element
class TestSubmitFeedback(unittest.TestCase):
def se... | [
"1638306719@qq.com"
] | 1638306719@qq.com |
292d5ee0888ecac142f7b24a25d3c8b3cd5a498e | f18593e4501ba4c4d7c0f1453250905449aa5cdb | /test.py | ad4613a25e7a1d57061da5f9f24ad4933b917131 | [] | no_license | scottsfarley1993/python-neotoma | 9ebf770403cfaf4dad9c6f3af9099a6156f11eef | 8ef27dd9635056a63747080385a7b0532db49613 | refs/heads/master | 2021-01-21T16:53:57.912348 | 2016-02-23T00:57:55 | 2016-02-23T00:57:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import urllib2
from multiprocessing.dummy import Pool as ThreadPool
def dbInit(host, user, pw, database):
| [
"scott@firesphere.org"
] | scott@firesphere.org |
c5834f02447506a5bf1c385dce52dce8b33f03af | 9d27a601c5418b20aaa93ee0e792d4c585843427 | /src/classify_emotion.py | 11e901e89bae8d60db8b0b3c150c40638f74fd38 | [
"MIT"
] | permissive | NathanHouwaart/EmotionRecognition | cbd6676a42872600052da0e9c60fb5b3a480eb2d | 4eb4478286a1dc925f8b4983923e31c421700338 | refs/heads/master | 2022-04-20T18:19:37.918100 | 2020-04-19T18:39:23 | 2020-04-19T18:39:23 | 257,060,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,026 | py | import os
import cv2
import time
import numpy as np
import onnxruntime
import sys
import matplotlib.pyplot as plt
class FERModel:
def __init__(self, model_path):
self.dimensions = (64, 64)
self.model_path = model_path
self.session = onnxruntime.InferenceSession(self.model_path, None)
... | [
"nathan.houwaart@student.hu.nl"
] | nathan.houwaart@student.hu.nl |
488ec8cc2ff42ab4f1bb862fb0893e4eeb043557 | 6a242a855a413f11213f2a7e2ced95619ca087a2 | /flaskapp.py | fcb07b123633ca9e996d708a190b0ce1e82e6a18 | [] | no_license | Knugn/ACC-A3 | a28750703180c36ac638890b0f39f465e942d53a | f4d1251072c125d41bd3fe7aa874ce4ace0ea4df | refs/heads/master | 2021-01-10T16:49:29.963467 | 2015-10-28T19:35:26 | 2015-10-28T19:35:26 | 43,636,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,757 | py | from flask import Flask, jsonify, url_for
import sys
import swiftutil
from celeryapp import celery
from celery import group
import celerytasks
import time
import json
import timeit
from collections import Counter
from operator import add
flask = Flask(__name__)
sc = swiftutil.getswiftconnection()
def setupcontexttask... | [
"david.ryman@hotmail.com"
] | david.ryman@hotmail.com |
94e70bf6deabed67dd9378651c4c5af909762b47 | 0d8486c1d55c40bebea7c5428930f18165d2d0e9 | /tests/asp/AllAnswerSets/tight/7-queens.asp.test.py | 58599c3c79d3455d9b87dcc51342b0dc08b3fe6f | [
"Apache-2.0"
] | permissive | bernardocuteri/wasp | 6f81bf6aa8fb273c91bbf68ecce4ecb195a55953 | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | refs/heads/master | 2021-06-08T11:58:25.080818 | 2020-10-05T16:57:37 | 2020-10-05T16:57:37 | 124,245,808 | 0 | 0 | Apache-2.0 | 2018-03-07T14:13:16 | 2018-03-07T14:13:16 | null | UTF-8 | Python | false | false | 11,082 | py | input = """
1 2 0 0
1 3 0 0
1 4 0 0
1 5 0 0
1 6 0 0
1 7 0 0
1 8 0 0
1 9 0 0
1 10 7 6 11 12 13 14 15 16 17
1 11 7 6 10 12 13 14 15 16 17
1 12 7 6 10 11 13 14 15 16 17
1 13 7 6 10 11 12 14 15 16 17
1 14 7 6 10 11 12 13 15 16 17
1 15 7 6 10 11 12 13 14 16 17
1 16 7 6 10 11 12 13 14 15 17
1 17 0 0
1 18 7 6 19 20 21 22 23 2... | [
"carminedodaro@gmail.com"
] | carminedodaro@gmail.com |
66721f5989f7f1546552f135b1514f55b1b361c8 | 25bc83cf1c829694c6a8fea271060218822bd2c0 | /credTweakAttack/pass2path_model.py | 8f6d6e2560391c9a93af0b4a14c2adb5f7a1187f | [] | no_license | Bijeeta/credtweak | 5608569b5590786e6cdb6d9e3d9dd576c03064cd | c604599bac3267eecce105d35c2b05e90605c3f5 | refs/heads/master | 2022-08-19T11:02:32.182796 | 2022-08-03T20:48:26 | 2022-08-03T20:48:26 | 187,112,821 | 19 | 10 | null | 2020-09-12T19:28:56 | 2019-05-16T23:08:32 | Jupyter Notebook | UTF-8 | Python | false | false | 28,086 | py | '''
pass2path
A variant of seq2seq Encoder-Decoder RNN model that learns pairs of
(password, transition path), where given a password and a transition path, a
new password is generated.
This model is based on JayPark's seq2seq model (Python 2): https://github.com/JayParks/tf-seq2seq
Number of parameters:
m - dimensio... | [
"bijeeta@deepsec.tech.cornell.edu"
] | bijeeta@deepsec.tech.cornell.edu |
285b5d35eb6f94c89715ad4fe68307437cf9ffc0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/302/92006/submittedfiles/testes.py | 8d4dc26344d08e3707ea45e11e79240ce3625d53 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | lista1 = [1, 3, 4,]
lista1[len(lista1)-1]
print(len(lista1))
'''a = [8.0 , 5.0 , 10.0 , 5.0]
print(a)
print(len(a))
a.append(0.0)
print(len(a))
for i in range(len(a)-1, 0 , -1):
if i ==1:
a[1] = 2.0
else:
a[i] = a[i-1]
print(a)
print(len(a))
'''
'''
a = []
for i in range(1,5,1):
a.append(f... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f76699d346192bb4d093ede35ffb7ae1693a1b0d | a266a3c9adf8be327593a6e3e8e49b6f68f32caf | /ArticleSpider/spiders/lagou_hr.py | 3a63d40cf073be95754fae00f4a5601f0dc1fee1 | [] | no_license | duyanyong2017/ArticleSpider | 28309017ee823b2cb6afacda4f174ce7631f9c27 | 25859f08852de350b091aa02b8ed04cf30268bac | refs/heads/master | 2022-08-03T14:18:35.515197 | 2020-05-28T14:40:56 | 2020-05-28T14:40:56 | 265,598,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | # -*- coding: utf-8 -*-
import os
import pickle
import time
from datetime import datetime
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
import selenium
from settings import BASE_DIR
from items import LagouJobItemLoader, LagouJobItem
from utils.common import... | [
"18896738910@163.com"
] | 18896738910@163.com |
c7eff140736aa3fb99e332946ccc1d762259cc03 | 4d9bdc1444ab73858a123b8273b72e1d74a9233d | /funNLearn/src/main/java/dsAlgo/hashmap/common_user_browsing_history.py | 178e2090b3ecca365c535fa19ff5e9caec2706a8 | [] | no_license | vishalpmittal/practice-fun | f7ca1389d758f93ddf2ddc3a58f2592b7caabab4 | 727dec2e23e765925a5e7e003fc99aeaf25111e9 | refs/heads/master | 2022-07-11T18:31:49.574410 | 2022-02-26T23:05:12 | 2022-02-26T23:05:12 | 51,132,794 | 0 | 1 | null | 2022-06-29T19:34:05 | 2016-02-05T07:34:32 | JavaScript | UTF-8 | Python | false | false | 3,593 | py | """
Tag: list, hashmap
We have some clickstream data that we gathered on our client's website.
Using cookies, we collected snippets of users' anonymized URL histories while they browsed the site.
The histories are in chronological order, and no URL was visited more than once per person.
Write a ... | [
"vmittal@barracuda.com"
] | vmittal@barracuda.com |
96aac0b4b4bb06d1a1361336110a66ef306f8784 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_sp_outer/Jobs/TIPS_Pc/TIPS_Pc_cation_neut_inner0_outer2/TIPS_Pc_cation_neut_inner0_outer2.py | a0c28b5d437cb4a23e82114742f6ee0128900f05 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 6,693 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
d8e69b8e34aeccacee227ed7afc368d4d8ea68a0 | 7492136ed1c7ea853988d3a8487970a59eacc7b5 | /code/geopaparazzi/projects/migrations/0003_auto_20200115_1258.py | 2cdca5a526734e46dff293eb15e3dd9a29ad8d25 | [] | no_license | romanDj/server-geopaparazzi | 85e5184406ee0563e3be93dd8d4b824c9fc31895 | ce73cb18ef1d03525281847b8121f89cae13a8b7 | refs/heads/master | 2022-03-29T15:19:36.877833 | 2020-01-15T19:16:14 | 2020-01-15T19:16:14 | 229,759,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | # Generated by Django 2.2.9 on 2020-01-15 12:58
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_subdivision_participants'),
]
operations = [
... | [
"true-rock99@ya.ru"
] | true-rock99@ya.ru |
fc260cf8fb0b600ddeb4d654025ef404f5827a97 | 6711cd9a995cefbcde18a83017a07c588d0294f5 | /accounts/urls.py | 18fadabd1e6f86d2918522574933576b7beb5c43 | [] | no_license | RohithSangati/AuthenticationApp | f68b3b0391c0c4f4f2f511d92674f1c923ca766f | fa09d15a5bd220027d152968d32a7150e29d924c | refs/heads/master | 2023-06-27T08:37:36.631520 | 2021-07-28T10:01:09 | 2021-07-28T10:01:09 | 389,277,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('register',views.register,name='register'),
path('login',views.login,name='login'),
path('logout',views.logout,name='logout')
] | [
"sangatirohith@gmail.com"
] | sangatirohith@gmail.com |
ccc220f2b8000f31ef1d3cf1ab310fba566c2af0 | b4691d2ef3249ad976ad476b68c5822058ba4cb3 | /LSTM_dynamic_padding.py | eebce7dfa28ad053b7a7e8279e8ecc18a65500b6 | [] | no_license | lucapierdicca/Train_Eval_ActivityRecoLSTM | 202bc401e8df5132195a62bb675fb9ad1f731d14 | faf722b9517f1b8fb950798f79ada305cce2bb75 | refs/heads/master | 2020-03-23T01:44:09.933072 | 2018-09-28T10:03:32 | 2018-09-28T10:03:32 | 140,934,241 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 25,365 | py | import tensorflow as tf
import numpy as np
import pickle
from pprint import pprint
from sklearn.model_selection import train_test_split
from sklearn.metrics import confusion_matrix, classification_report
import os
import time
import datetime
#-----------------------------------------------------------------
#-------... | [
"luca.pierdicca@gmail.com"
] | luca.pierdicca@gmail.com |
6d89a4cdf4198eb91c73355a6b6c82e8c64fd3d0 | f0f8760fc044215b46d9f58357df2d85baba5bd4 | /qa/users/apps.py | 1db58ba3fa6d3c571d5fb327386b005409113f6d | [
"Apache-2.0"
] | permissive | xhh1105/django | e5f5691a343b96ca8551ce32c1e13650957bbdb4 | aad4b0c38ad5069aee1acf7fa173e9f1ec26d34f | refs/heads/master | 2022-11-23T18:19:17.302857 | 2019-07-18T11:52:07 | 2019-07-18T11:52:07 | 197,558,576 | 0 | 0 | Apache-2.0 | 2022-11-22T04:08:55 | 2019-07-18T09:43:09 | Python | UTF-8 | Python | false | false | 302 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class UsersConfig(AppConfig):
name = "qa.users"
verbose_name = _("Users")
def ready(self):
try:
import qa.users.signals # noqa F401
except ImportError:
pass
| [
"xhh1105@gmail.com"
] | xhh1105@gmail.com |
28ec5ecaa812f96b31614edf419ad219348942f6 | 75f55944d023ebf2531c53d406d17f301e9a0ab8 | /animechat2.py | e53106c2e170d2c81c7d1fc14905e15c5635dd0b | [] | no_license | yugo-salem/helloneko | 3b5aec877c9f9ae22cfe6fb302cd3e9de24f9e41 | 49692fc18f72d6d34f5ce51ddbb5822061bc6e2c | refs/heads/master | 2021-01-11T22:27:02.906980 | 2017-04-05T17:19:10 | 2017-04-05T17:19:10 | 78,963,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | #!/usr/bin/env python
# encoding: utf-8
# pylint: disable=bad-whitespace
# pylint: disable=missing-docstring
import sys
import os
from datetime import datetime
import time
import locale
import threading
import curses
import requests
from flask import Flask, request, redirect, url_for
from flask.templating import ren... | [
"cutenekochan777@gmail.com"
] | cutenekochan777@gmail.com |
4d56eaa289df490614282d92d296eda8adb8a58a | c43c88015f9498aed5f3b5a339d245c31781444e | /Free/plm/report/component_report.py | cbebbbcac4378084e142a272266da61b6cff36e8 | [] | no_license | mulaudzicalvin/perpul | 65106d41d5197fea17628ac1a7fa7e581d29d75e | 00e3a5ee1771d2e09a48460ca23c2e9c2ef507d6 | refs/heads/master | 2020-03-09T18:39:33.131420 | 2018-02-05T05:17:36 | 2018-02-05T05:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,346 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OmniaSolutions, Your own solutions
# Copyright (C) 2010 OmniaSolutions (<http://omniasolutions.eu>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
... | [
"daniel.podvesker@perpul.co"
] | daniel.podvesker@perpul.co |
7e74abaeb0078b3ee92242a7cc866c13d76bc37f | 81982a278946fab96d74e3f711c937647faec036 | /Trabalhos/a1.py | 32584fb6bf8a53c7a44f632933f6fc2cdb41d8aa | [] | no_license | juanengml/Prog1UTFPR | 3f1b71888a0883a4e12922a0c09cce622ca27458 | aca289ffece71b4ca4339fa8779a1d2a9076aecc | refs/heads/master | 2021-06-23T09:58:37.167188 | 2019-06-14T01:21:51 | 2019-06-14T01:21:51 | 145,451,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | #Escreva um programa que leia duas matrizes 3x3 e apresente na tela o resultado da multiplicacao destas matrizes.
import numpy as np
a = np.matrix('1 2 3 ; 4 5 6; 7 8 9')
b = np.matrix('1 2 3 ; 4 5 6; 7 8 9')
print np.dot(a,b)
| [
"juanengml@gmail.com"
] | juanengml@gmail.com |
977ff947eef1978e0f1e2b0d8ecbe588b9c14a93 | d2798cd94a17d8c6d86ca336c9348fb0a34294b5 | /src/3/ngitung.py | b0bc75425a30463c60fc8ee861f74b7f91fc7a16 | [
"MIT"
] | permissive | dimasmaulana24/pemrograman2 | 9fd410d2c754483d42bb1189aa74d1fd28932fec | 8eabbd7172e66091511ae9b41dcfd2bcaca9805d | refs/heads/master | 2020-08-18T23:08:56.273475 | 2019-10-17T17:17:00 | 2019-10-17T17:17:00 | 215,845,712 | 0 | 0 | MIT | 2019-10-17T17:11:46 | 2019-10-17T17:11:46 | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 11 06:24:23 2019
@author: awangga
"""
class Ngitung:
def __init__(self, a, b):
self.a = a
self.b = b
def Penambahan(self):
r = self.a + self.b
return r
def Pengurangan(self):
r = self.a - self.b
return r
def Perkalia... | [
"rolly@awang.ga"
] | rolly@awang.ga |
f2d83f9c85e10655fd77903e001b57c1b6743ce8 | eeb06c4643850920a4b726631f2c5a8dadc3b920 | /consumer.py | 473f636e5e505ae4ecbdb417bf0413a405b94efd | [] | no_license | AlanFil/flask_project | 483fe3b94b3a6b658207616f3096c13906a6263f | 133be7e3320d57bdd5688909850d5bdc3e03af3b | refs/heads/master | 2023-03-29T18:45:59.596160 | 2021-04-08T19:28:13 | 2021-04-08T19:28:13 | 355,698,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import json
import pika
from main import Product, db
params = pika.URLParameters('amqps://zobyksdf:tEXN4vKXrQskmY9Lmi39zqk5IcdHzkSE@kangaroo.rmq.cloudamqp.com/zobyksdf')
connection = pika.BlockingConnection(params)
channel = connection.channel()
channel.queue_declare(queue='main')
def callback(ch, method, propre... | [
"maildoalana@gmail.com"
] | maildoalana@gmail.com |
dfd2c9c84434876a23e1a72a9b5e5deb43e76f42 | de2cf38982336ba752dc83242d163b3aebfcac70 | /Python_BigPicture_1/mtsite/mtsite/wsgi.py | 91d111396bf6ee65e759c9e00797818f3572b62e | [] | no_license | goelg08/Python | 344b38edda9c459ce86cecf7de76699d84266924 | 596da249225cfdcb48360d45e644fc2c3205197f | refs/heads/master | 2021-10-07T17:46:29.295697 | 2021-09-25T11:41:54 | 2021-09-25T11:41:54 | 199,595,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for mtsite 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"Priyanshu.Goel@factset.com"
] | Priyanshu.Goel@factset.com |
f72cc027f3c302262eb787439af41f96e2076840 | 8567618001fad9f083d2fa76a2f219fff6bb8c9b | /bigfile.py | fb0a84404d520f5ca4fa7afdc49590e1a6b5248a | [] | no_license | li-xirong/w2vvpp | 4490537a78f9e948ca4783e20fa133accccd9faf | 51d96e654ffbb7ce6cb2ec03e91d1ab5301f92c7 | refs/heads/master | 2022-07-15T01:02:18.436532 | 2020-01-01T04:16:40 | 2020-01-01T04:16:40 | 200,593,330 | 28 | 16 | null | 2022-06-21T22:59:55 | 2019-08-05T06:14:03 | Python | UTF-8 | Python | false | false | 5,142 | py | import os, sys, array
import numpy as np
class BigFile:
def __init__(self, datadir, bin_file="feature.bin"):
self.nr_of_images, self.ndims = map(int, open(os.path.join(datadir,'shape.txt')).readline().split())
id_file = os.path.join(datadir, "id.txt")
self.names = open(id_file).read().stri... | [
"xirong_li@126.com"
] | xirong_li@126.com |
dc5820795cb85edd778b49c8d81deb89ef8b37bd | f0202a8d38a859d79b720fbc1956ab4ba1c4ffb8 | /django_input_collection/migrations/0012_auto_20220421_2220.py | 9549cf228110d0a8b5075ba045ffaca124ceadd2 | [
"Apache-2.0"
] | permissive | pivotal-energy-solutions/django-input-collection | 534d7a2cdcba4da3922829c739917e2b13fd810c | 20ac7b0bc6a78a7c342ed319a2ac5522e28af976 | refs/heads/master | 2023-06-23T15:06:50.193333 | 2023-06-20T22:00:58 | 2023-06-20T22:00:58 | 146,794,774 | 0 | 0 | Apache-2.0 | 2022-10-12T21:52:07 | 2018-08-30T19:09:19 | Python | UTF-8 | Python | false | false | 2,981 | py | # -*- coding: utf-8 -*-
# Generated by Django 3.2.12 on 2022-04-21 22:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("django_input_collection", "0011_auto_20190308_2259"),
]
operations = [
migrations.AddField(
model_name="... | [
"steven@pointcircle.com"
] | steven@pointcircle.com |
ed3b09788c37f6f93130edadcb1bfe343d812d9b | 9d6faca0255f1772d065229cb8bd051fb3b4da9a | /model_mnist.py | 99b9536042a48781380498c33f5948d3c769f90e | [
"MIT"
] | permissive | NeuralNetworkingTechnologies/Conditional-Gans | 467b10a4e18511208fa89a393522621814c4828c | bd077c7bf3f193cebec02c9222b8147334133bc9 | refs/heads/master | 2021-08-18T16:32:31.751111 | 2017-11-23T08:50:00 | 2017-11-23T08:50:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,412 | py | from utils import load_mnist
from utils import save_images
from utils import vis_square
from utils import sample_label
import cv2
from ops import conv2d
from ops import lrelu
from ops import de_conv
from ops import fully_connect
from ops import conv_cond_concat
from ops import batch_normal
import tensorflow as tf
im... | [
"noreply@github.com"
] | NeuralNetworkingTechnologies.noreply@github.com |
d70f60641b1e6d7ecea83be0cb6d27700661fb24 | fe2753d5f7638f50dedd847a434461b935b90235 | /trail/spiders/easy.py | e83661159bc1f90893191e0bac89812e510fb75d | [] | no_license | teamzot/Crawler | eab63af2fcedfd507281eb577dde54ceae0537e8 | 634c76809d4f38123d38e9c4342c40bb2d34cac3 | refs/heads/master | 2020-03-31T18:27:43.097802 | 2018-10-15T20:58:27 | 2018-10-15T20:58:27 | 152,459,597 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | # -*- coding: utf-8 -*-
import scrapy
import datetime
import logging
from trail.items import TrailItem
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from scrapy.loader import ItemLoader
from scrapy.http import Request
class EasySpider(CrawlSpider):
name = 'easy'
... | [
"zhujiaqi.apply@gmail.com"
] | zhujiaqi.apply@gmail.com |
d64a94d04f433741f0b07047cfc4f842fc484967 | 285ef22aace9c4aa40c6311ba49444cf1f7b7cc6 | /tools/accu-dump-xar | 3895664952fa2ca0a8af922c57570f0ae806e90b | [] | no_license | russel/hugo-site | 9d61e115bc63ef7eec9a8396a6c0a5606de8144a | c32a6207bb18c6b45dcae4fcfd9d8eb3b8d9cf32 | refs/heads/master | 2020-04-18T06:02:07.872251 | 2020-03-30T10:53:27 | 2020-03-30T10:53:27 | 167,303,291 | 0 | 0 | null | 2019-01-24T04:31:18 | 2019-01-24T04:31:18 | null | UTF-8 | Python | false | false | 7,359 | #!/usr/bin/python3
#
# accu-dump-xar
#
# Dump Xaraya journal files to individal JSON files.
import argparse
import datetime
import json
import pathlib
import sys
import pymysql
def toutf8(s):
try:
return s.encode('latin1').decode('utf-8')
except:
return s
def dump_articles(db, outputdir, pub... | [
"jim.hague@acm.org"
] | jim.hague@acm.org | |
a5ea641c931a8768c01f47ceb5f09ed009af4204 | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/encodings/mbcs.py | 5f56e6e4b8e55e8e1447875202fe15cbdaa2a26d | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | ../../../../.cipd/pkgs/2/_current/lib/python3.8/encodings/mbcs.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
47ee46aa5db53692f70c96faa5a2d6d1f3588a9d | 59611a23bae874752b349c913e23a007eb9ad718 | /controllers/default.py | 37e3f038e46567b87300b7ef53b4efcd743a6010 | [
"MIT"
] | permissive | vahidnouri/Parkinson_registry | b60504cd19901073c3727a0652f96a6ac9e4d378 | ecd993d456807f66e8e7b6ada0e07e2f8b14af23 | refs/heads/master | 2020-07-29T20:01:50.509872 | 2020-06-30T08:11:29 | 2020-06-30T08:11:29 | 209,942,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,425 | py | # -*- coding: utf-8 -*-
IP = '192.168.25.32\\Genetic Drive'
permission_denied = lambda: dict(msg='permission denied!')
@auth.requires_login()
def index():
if permit('reception'):
user_signature = False
else:
user_signature = True
msg = None
user = auth.user
del... | [
"noreply@github.com"
] | vahidnouri.noreply@github.com |
3dc11225bc631940673ee0dc4948b04e54bc4460 | aaa05e97411070603dc87ff8e79eae2dc0856320 | /aws/projects/004-phonebook-web-application/phonebook-app.py | 9f3db5dcae4cabfba1298d9fe32edd5a71f9e5b3 | [] | no_license | devinlimit/Clarusway_aws_devops_workshop | 3e9b74b4ac31bc02564d1946edb0c89bacdef0d7 | 0dff381ae54dd4983191a37dd06b96934e8ed80a | refs/heads/master | 2023-01-23T20:45:21.964022 | 2020-11-21T10:47:57 | 2020-11-21T10:47:57 | 292,507,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,038 | py | # Import Flask modules
from flask import Flask, request, render_template
from flaskext.mysql import MySQL
# Create an object named app
app = Flask(__name__)
db_endpoint = open("/home/ec2-user/dbserver.endpoint", 'r', encoding='UTF-8')
# Configure mysql database
app.config['MYSQL_DATABASE_HOST'] = db_endpoint.readli... | [
"devinlimit@gmail.com"
] | devinlimit@gmail.com |
0c44f570aac05f6528e1e1c49e0360d1afcfe04b | 2e153b94076937b230a152ad912f0c4b6810413e | /server/pylanchatd | 097853c5b753c3369ffa5c41a5045cb19db9ce89 | [] | no_license | saurav-malani/Chat-Application | 0784efbfff60f10d4874221f7bd2956b693101d1 | 19ab48215d82d0298f1aab2d1f204dfaffc4681f | refs/heads/master | 2020-03-30T09:49:38.908795 | 2018-10-01T13:36:38 | 2018-10-01T13:36:38 | 151,094,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,927 | #!/usr/bin/env python
import time
# Twisted
from twisted.internet.protocol import Protocol, Factory
from twisted.web import server, resource
from twisted.internet import reactor
# Basic Datastructures and Configuration Parser
from User import User
from Users import Users
from ConfigurationParser import Parser
# Encr... | [
"malani@localhost.localdomain"
] | malani@localhost.localdomain | |
9990f31750b3e822f4d86e256ebb9274b1118e58 | 02f4bd96aa7aba1e5e2734cd89b1db57afac0c51 | /ui/locker.py | c792beda4a65fb6cd2b5deeedee2553274d97429 | [] | no_license | jbadonai/file-encrypter | 6a72678279f4e452732da28eb90252599f11165d | b821daccce9748d2b8b543a767744395ff38cdd0 | refs/heads/main | 2023-04-09T10:36:50.960312 | 2021-04-11T10:14:03 | 2021-04-11T10:14:03 | 356,877,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,778 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'locker.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindo... | [
"jba_onlinework@yahoo.com"
] | jba_onlinework@yahoo.com |
e4d38da92d86aa517c776e552be806858ea7e31e | 948d84d2e3fc04e353a11384d8570308174242f5 | /17-Numpy/numpy-indexing.py | 11653d3652d5b8b607738f0216cf7655bc401292 | [] | no_license | omerfarukcelenk/PythonMaster | a0084a800b8a41cd2ad538a7ca3687c26dc679ec | 0db8f8b0ea2e1c2d810c542068cfcf1a3615f581 | refs/heads/main | 2023-04-16T17:42:05.501904 | 2021-04-26T21:19:27 | 2021-04-26T21:19:27 | 361,896,109 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import numpy as np
numbers = np.array([0,5,10,15,20,25,50,75])
result = numbers[5]
result = numbers[-1]
result = numbers[0:3]
result = numbers[:3]
result = numbers[3:]
result = numbers[::]
result = numbers[::-1]
numbers2 = np.array([[0,5,10],[15,20,25],[50,75,85]])
result = numbers2[0]
result = numbers2[2]
result = ... | [
"omerfar0133@gmail.com"
] | omerfar0133@gmail.com |
cda1f89438ec06db8ca93501a5f2d7fd562a8b17 | 9aa834f603031a86236c457efe5ecbf168215da0 | /tweets/forms.py | 3ec807cc79cfe8b35bb0a211b0f8d465ea69b09f | [] | no_license | paragkulkarni/Django_mytweets | 814aac760c1c04d5b6cf0ac6c182a76f0846e3a1 | 984269dae48fe2c3f170dfc6de5d6796cb66d478 | refs/heads/master | 2021-09-05T05:02:57.466778 | 2018-01-24T08:23:25 | 2018-01-24T08:23:25 | 117,959,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django import forms
class TweetForm(forms.Form):
text = forms.CharField(max_length=160, widget=forms.Textarea(attrs={'rows':1, 'cols':85}))
country = forms.CharField(widget=forms.HiddenInput(),required=False)
| [
"paragkk80@gmail.com"
] | paragkk80@gmail.com |
19ab53e2d0a45af4d68d2fe50e6b0e1e19b6ffd2 | 546199ff1eb5d4b5dbedf98cee9f8010857f4280 | /retrain_mixsvgp.py | a20ed065833547d877b5202e17435cd1c875e2a5 | [] | no_license | karltayeb/ipsc | 854db1e08fbb29cd97e38f288484d0e8a5d18200 | 3aa76431cda460c44baeea832b4897f5253053a6 | refs/heads/master | 2020-03-22T23:00:42.821625 | 2018-09-30T22:10:49 | 2018-09-30T22:10:49 | 140,784,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | import numpy as np
import gpflow
import gpflow.multioutput.kernels as mk
import gpflow.multioutput.features as mf
from MixtureSVGP import MixtureSVGP, generate_updates
import pickle
from utils import load_data
import sys
import os
minibatch_size = 10000
grad_iters = 50
model_path = sys.argv[1]
params, assignments, el... | [
"karl.tayeb@gmail.com"
] | karl.tayeb@gmail.com |
200a0c214acff2cccff7133ae68f381b0699de4b | d6265afea582ef9d0b282d0dbaf582ef2015a6f4 | /tests/satosa/metadata_creation/test_saml_metadata.py | 49cff97a4cadfb8c3cca7baeb70e08e9ac3e0e73 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | peppelinux/SATOSA | c94b0d2f7fa07b3b8a751f548b8166452e9e084f | 12d9f2532e334978e9a614946d77cc5b217b4383 | refs/heads/master | 2023-08-10T08:08:22.199322 | 2020-04-13T17:26:27 | 2020-04-13T17:26:27 | 180,346,947 | 3 | 0 | Apache-2.0 | 2021-08-24T08:23:33 | 2019-04-09T10:56:02 | Python | UTF-8 | Python | false | false | 18,113 | py | import copy
from base64 import urlsafe_b64encode
import pytest
from saml2.config import SPConfig, Config
from saml2.mdstore import InMemoryMetaData
from saml2.metadata import entity_descriptor
from saml2.sigver import security_context
from saml2.time_util import in_a_while
from satosa.metadata_creation.saml_metadata ... | [
"rebecka.gulliksson@umu.se"
] | rebecka.gulliksson@umu.se |
1e4126b28d998826ae65e2f07cc731f5c4d9a1ea | 994bf7ff0c5ea352fdd8e6ce4f87e915e2060ccd | /django-env/lib/python3.7/copy.py | d2e972d2a990fd7a0d877d0fd6a01f3bb999edd0 | [] | no_license | MhmdNadyMhmd/django-app | 7f4621dcfc2e6f083c3f3bae123f0f37590570ec | 29a4fc8b48a7640b99ad97d364b1c38e80535bcc | refs/heads/master | 2020-04-18T07:32:40.308180 | 2019-02-04T08:46:08 | 2019-02-04T08:46:08 | 167,356,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /home/mhmd/anaconda3/lib/python3.7/copy.py | [
"mohamed.nady.m.ali@gmail.com"
] | mohamed.nady.m.ali@gmail.com |
8fd2c926a6858bc0b84c062a635d6b2b6be7ab79 | 8595ca431e2f367ed84b5d0ec1a62786b5c72fbd | /6.1/main.py | 09c87a7d090fd9b57d24c695d3f99f7e563c6589 | [] | no_license | bleungwpg/PythonNeoPixelTutorial6 | 80d5bbab736ed8266e1cde1d696174ae4584e2cd | cfcbbb4e795a35794294771e1ba8e3d4e0ccafe4 | refs/heads/master | 2020-03-30T00:03:57.910367 | 2018-11-23T02:55:24 | 2018-11-23T02:55:24 | 150,503,664 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import globalvariables
import time
import board
import neopixel
pixpin = board.A3
numpix = 128
strip = neopixel.NeoPixel(pixpin, numpix, brightness=0.1, auto_write=False)
def showMessage1():
# reset previous colors
strip[96] = (0,0,0)
strip[103] = (0,0,0)
# show color
strip[0] = (255,0,0)
s... | [
"noreply@github.com"
] | bleungwpg.noreply@github.com |
5d9ddcd5643b7d3a09a7a2df7d052784a9a314f5 | 30302d215a012a079edf05a4e14e932888385def | /ddht/v5_1/alexandria/typing.py | e73bd07c5b075b4ed6d6eac7f99be2677b7a8cae | [
"MIT"
] | permissive | NhlanhlaHasane/ddht | e54975a7fcf4e9bfa29771ee6b78c5e9a5991aff | 142911d134ff839f3f79ff8fe9e45d3fe5a58cd0 | refs/heads/master | 2023-05-31T05:09:06.371320 | 2021-06-03T22:31:22 | 2021-06-03T22:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from typing import NewType
ContentID = NewType("ContentID", bytes)
ContentKey = NewType("ContentKey", bytes)
| [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
58bbcb0b913a6f6d65e9cc3f765cf80b1e6d8d8d | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fabric/rssnmppol.py | 4738ca78412d8a6382b312d0f46b6ee434811e5c | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 8,086 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
ee2f56938dfb533153bb1cedc2c37b2895664a90 | 15a68c799f107725a40ed9dd56345bcc09ae7365 | /test.py | 40ca14fe708e83935c49a74cba2a84bc7a351b7f | [] | no_license | gz51837844/GibbsLDApy | 484f2c2f10c90df07e82104f25d0a744f20fd362 | 4f062ca36977661840b627e0b1f3c19e7433e092 | refs/heads/master | 2022-11-29T19:10:09.588482 | 2020-08-06T01:56:20 | 2020-08-06T01:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: Jasperyang
@license: (C) Copyright 2013-2017, Jasperyang Corporation Limited.
@contact: yiyangxianyi@gmail.com
@software: GibbsLDA
@file: test.py
@time: 3/6/17 8:41 PM
@desc: This is for testing!!! all the functions
'''
from DataSet import *
from Document import *
f... | [
"472530484@qq.com"
] | 472530484@qq.com |
f54cf52d0cbde5c7faefa2abb24c20a99be5e0ee | bf40d6324345de28469e34f754bbcaac9e04a42a | /src/fracture_propagation_model.py | 1bd16f8ef38643147273d8a7cf8ce5adbc86dde1 | [
"MIT"
] | permissive | pmgbergen/Numerical-modelling-of-convection-driven-cooling-deformation-and-fracturing-of-thermo-poroelastic-m | 2bae87f18abb3f08c2c26a45d260ffb7789f14ad | dc258123d2481b4051760bf70075d7d4e69b3c2c | refs/heads/main | 2023-01-28T09:09:29.265893 | 2020-12-10T09:24:16 | 2020-12-10T09:24:16 | 320,229,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,487 | py | """
Model class to be used together with an existing/"physical" model to yield a full propagation
model.
Will also be combined with case specific parameters.
"""
import scipy.sparse as sps
import time
import numpy as np
import porepy as pp
import logging
from typing import Dict, Any
logger = logging.getLogger(__name... | [
"ivar.stefansson@uib.no"
] | ivar.stefansson@uib.no |
a3d39a3decdee7b76f6712fe6da82843068afeb4 | a631984152b1449df9ef156cf80a033f6a5692ed | /General Python/LTP - Introduction to Python [PluralSight]/LTP - 05 - Shopping.py | d6ac05ab4182b38f3b0c15993ae15e5b5f37d29c | [] | no_license | john-m-hanlon/Python | 2f58e20ba56b3dede3baf6f5ed259d741434108b | 56ebf291b2d8d15f47c942c49d9f40d0ae18741e | refs/heads/master | 2020-06-11T09:47:09.188169 | 2017-03-14T03:32:51 | 2017-03-14T03:32:51 | 75,688,794 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #
# A simple program to identify grocery items that user wants to purchase
# LTP - 05 - Shopping.py
#
__author__ = 'JohnHanlon'
import sales.shopping_cart
import sales.shopping_order
cart = sales.shopping_cart.Cart()
order = sales.shopping_order.Order()
order.get_input()
while not order.quit:
cart.process(order... | [
"hanlon.johnm@gmail.com"
] | hanlon.johnm@gmail.com |
68d8399c5199cd6c1ac9a2c275edb439b8a5ab47 | c66955c6fc178955c2024e0318ec7a91a8386c2d | /programQuick/chapterEleven/mapIt.py | f66811ddbe725a952063e3f0d855d57f0bd18aa5 | [] | no_license | duheng18/python-study | a98642d6ee1b0043837c3e7c5b91bf1e28dfa588 | 13c0571ac5d1690bb9e615340482bdb2134ecf0e | refs/heads/master | 2022-11-30T17:36:57.060130 | 2019-11-18T07:31:40 | 2019-11-18T07:31:40 | 147,268,053 | 1 | 0 | null | 2022-11-22T03:36:51 | 2018-09-04T00:49:42 | Python | UTF-8 | Python | false | false | 353 | py | import webbrowser, sys, pyperclip
if len(sys.argv) > 1:
# Get address from command line.
address = ' '.join(sys.argv[1:])
else:
# Get address from clipboard.
pyperclip.copy('mapit 870 Valencia St, San Francisco, CA 94110')
address = pyperclip.paste()
print(address)
webbrowser.open('https://www.... | [
"emaildh@163.com"
] | emaildh@163.com |
435e90d2b0debc710dd2aca553b76e51ea39e688 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/operations/_big_data_pools_operations.py | 2b2366e730881713afa1086c0e769bf1a8d28656 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 6,664 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
9c2d4ee881706a7dad71ad011c33a475eab37bfd | e0c76ae542e3d37807b413eb725f716b88611948 | /core/views.py | 949619a01bef43fd025b723d26ef67458e2b866e | [] | no_license | nicholas-karimi/django-rest-todoAPI- | 713136b1fcab92db972c2e7ac5b5620f88c4d15e | 975aa3fc75ef649b2afe298bd2cb7828bd623da7 | refs/heads/master | 2023-08-25T03:00:56.803070 | 2021-10-13T21:56:22 | 2021-10-13T21:56:22 | 416,905,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | from django.shortcuts import render
from django.http import JsonResponse
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import Task
from .serializers import TaskSerializer
@api_view(['GET'])
def apiOverview(request):
# endpoints to be returned
api_urls =... | [
"kariminic@gmail.com"
] | kariminic@gmail.com |
da327466a9c5966169ed0e73790c57d204126c2b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/244.py | 1aad3f70f9fbf37a7323274a79680d37008e458c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | #!/usr/bin/env python
# encoding: utf-8
import os
def parse_sequence(fileDescriptor):
# Returns a sequence to complete
f = fileDescriptor
sequence = f.readline()
sequence = sequence.split(' ')
n = int(sequence[0])
sequence_a = []
sequence_b = []
sequence_r = []
have_color = False... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.