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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c24f5a6b8e96190564084f530d4657416c379e8 | c96c71714fbffeb937a1c2054fc0d87d1f64759e | /4user_input2.py | 25504fae4493fa451f7038e56d735c61c8c2e2d0 | [] | no_license | ashikkhulal/Python-references | 0d6f6d1952a3f9793e8f6fb2927cf13d3527b90b | eef0e1c7cfb436a5d5120f843313db72207afd0a | refs/heads/main | 2023-05-06T03:16:52.134715 | 2021-06-04T12:03:00 | 2021-06-04T12:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #another user input example
convert_to_units = 24
name_of_unit = "hours"
def days_to_units(num_of_days):
return f"{num_of_days} days are {num_of_days * convert_to_units} {name_of_unit}"
my_var = days_to_units(20)
print(my_var) | [
"askhulal@gmail.com"
] | askhulal@gmail.com |
5970ad2abd6066e8c1306089a4496fdc713f1347 | e6548bd30f1e446869d662aa5d4f4e51f3562336 | /player/modifier_env.py | 47014ccfd8a66deda98c5c24e9c8ea88c56c7238 | [
"MIT"
] | permissive | Saevon/webdnd | acfb39fd36ca740b5d16fccb1c0ba9c374dfb37b | 4dd5d30ae105ede51bbd92bf5281a6965b7d55f4 | refs/heads/master | 2020-05-17T09:08:51.995778 | 2015-05-23T00:02:46 | 2015-05-23T00:02:46 | 1,882,009 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py |
# Isolates the user's code
MODIFIERS_ENV = '''
def mod(character):
# Allowed imports that the user will has access to
from collections import defaultdict
if (%(cond)s):
%(mod)s
'''
# TODO indent multiline codes
def modifier(modifier, default):
mod = None
try:
code = MODIFIERS_ENV % {
... | [
"blastowind@gmail.com"
] | blastowind@gmail.com |
c32c95339c291c9e95d3a9a68086eadfbc24dc88 | 56d62ed2e8815b676743350e68f78902d5751dc0 | /helper-scripts/convert-log-to-json.py | 8441597c1042ccf242ce5eefee0256f3e32a5cc7 | [
"MIT"
] | permissive | ddsky/keras-machine-learning-framework | e6636dc9a9b806c49647bf317bceed670b0807f8 | 049ee78984f2f61165ff67506b0ced74b2928be9 | refs/heads/master | 2021-01-03T07:54:30.609349 | 2020-02-12T08:26:15 | 2020-02-12T08:26:15 | 239,989,480 | 1 | 0 | MIT | 2020-02-12T10:50:10 | 2020-02-12T10:50:10 | null | UTF-8 | Python | false | false | 16,925 | py | # Example:
#
# user$ python helper-scripts/convert-log-to-json.py processed/experiments/best_optimizer/inceptionv3/food-50-80-20-rmsprop-0.01-0.5-7-0.0-0.0
#
import re
import pprint
import json
import os
import sys
pp = pprint.PrettyPrinter(indent=4)
class ConverterLogJson:
path_root = 'F:/data'
... | [
"bjoern@hempel.li"
] | bjoern@hempel.li |
a3f96162e166e04aa924d86d2183051caf02be55 | 6ab8538e9eab8335cf15479d47500d5341fef536 | /IMDB web scraper/fileRenamer.py | 886df1a2492f5c269b0d39be9c0800cdb195bb74 | [] | no_license | ggutierrezdieck/Python-scripts | 08e58df082abf621f65545d905ac981fe197bb0c | 757a47146111c9eb0e04c5255bed074d0ec5aa83 | refs/heads/master | 2021-03-30T10:01:13.860663 | 2020-05-05T17:59:34 | 2020-05-05T17:59:34 | 248,041,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 17 15:19:10 2020
@author: Gerardo
Script uses data sraped from scraper to
rename files on specified directory
"""
import os
import string
from scraper import imdbScraper
#TODO: check seaon indexes are givern in right order
s = imdbScraper('https://www.imdb.com/title/t... | [
"ggutierrezdieck@gmail.com"
] | ggutierrezdieck@gmail.com |
512b79677cc6d53107b828c9ee04c381c8a4f6b8 | 29ee344bc2b0958fb7e8ff5f71959e12d14f68dd | /binary_tree.py | 73b4211db50d49d9db4ca4845aed8defc9fc6c59 | [] | no_license | sukurcf/DSA_old | e58b643a0000e5aae16bf891950c87da78226e59 | 122b45b5149c85a12c59f68bab7771a2ff868d1e | refs/heads/master | 2023-03-30T00:15:54.964910 | 2021-04-03T12:17:21 | 2021-04-03T12:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | class BinarySearchTreeNode:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def add_child(self, data):
if data == self.data:
return
elif data < self.data:
if self.left:
self.left.add_child(data)
... | [
"sukurcf@gmail.com"
] | sukurcf@gmail.com |
aee081f84f4cfd1ec700a2dcd6667125a7860bca | 3f6ff3fb43903c06ed8f4d6ea45fcf2e0e6dd406 | /glo/BlackPearl/stationbase/vision/Detection.py | 0a839cdf4fc224b439f405280453d52edfe3e8dc | [] | no_license | jmprovencher/Treasure-Picker-Robot | 83a84d094e4612df8b38c0bb82f0240b98c74fe5 | f0a4fe7e3f4cc7b652566230bea830a4ab04a4c9 | refs/heads/master | 2020-12-11T03:54:00.090223 | 2016-04-18T02:53:01 | 2016-04-18T02:53:01 | 49,666,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import cv2
class Detection:
def __init__(self, image, numeroTable):
self.imageCamera = image
self.numeroTable = numeroTable
def trouverCentre(self, contourForme):
MatriceCentreMasse = cv2.moments(contourForme)
centre_x = int(round(MatriceCentreMasse['m10'] / MatriceCentreMasse... | [
"sebastien.garvin@gmail.com"
] | sebastien.garvin@gmail.com |
9b91b53619610988e6d250b034efe7da5a146e21 | 1c3ca7f5aa4ec1541af2636fc8c6aac68e5f0308 | /etc/console.py | f80841af8bd9cdeeef842cda7de33b56b16fcb80 | [] | no_license | DanielWeitzenfeld/three-seven-six | 3fbdba14d31d5cbb58464395fea62fc9653ef169 | 88305a1f1be9e8c2e818da7f0a262274f7e5b1f5 | refs/heads/master | 2020-05-31T17:05:41.546526 | 2014-10-03T03:02:11 | 2014-10-03T03:02:11 | 24,245,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | import os
original_startup = os.environ.get('THREE_SEVEN_SIX_ORIGINAL_PYTHONSTARTUP')
if original_startup:
execfile(original_startup)
import warnings
warnings.filterwarnings('ignore')
import logging
from pprint import pprint
import pandas as pd
from datetime import datetime
import three_seven_six
from three_s... | [
"dweitzenfeld@gmail.com"
] | dweitzenfeld@gmail.com |
73ebae05c0e4ff482d88a84db54732c2b429ff32 | 87756be133c7d825883e96b6b7368a405872dd90 | /scripts/relate_thiessen_to_bioregions.py | 35cad29808c2cc4ae9db48f7a7b6ae42208101d9 | [
"BSD-3-Clause"
] | permissive | WuNL/locus | b51f028fc409e1a6a5538edc35838f41c1fd9830 | 0d85af2050fc00cfe0d92cea771480cee2c25702 | refs/heads/master | 2020-12-25T23:47:33.114235 | 2014-11-17T20:25:15 | 2014-11-17T20:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | from django.core.management import setup_environ
import os
import sys
sys.path.append(os.path.realpath(os.path.join(os.path.dirname(__file__), '..', 'locus')))
import settings
setup_environ(settings)
from fbapp.models import ThiessenPolygon, GeneratedBioregion
for gb in GeneratedBioregion.objects.all():
... | [
"rhodges@ecotrust.org"
] | rhodges@ecotrust.org |
88af1e1775d6df77735796278e0cad9c7dbd9207 | 00af09f4ac6f98203910d86c3791c152184ace9a | /Lib/tkinter/test/test_tkinter/test_geometry_managers.py | 83e658877ea3b79863275502589704f07f9cc287 | [] | no_license | orf53975/CarnosOS | 621d641df02d742a2452fde2f28a28c74b32695a | d06849064e4e9f30ef901ad8cf90960e1bec0805 | refs/heads/master | 2023-03-24T08:06:48.274566 | 2017-01-05T16:41:01 | 2017-01-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122,987 | py | <<<<<<< HEAD
<<<<<<< HEAD
import unittest
import re
import tkinter
from tkinter import TclError
from test.support import requires
from tkinter.test.support import pixels_conv, tcl_version, requires_tcl
from tkinter.test.widget_tests import AbstractWidgetTest
requires('gui')
class PackTest(AbstractWidgetTest, unitte... | [
"Weldon@athletech.org"
] | Weldon@athletech.org |
c4609b4e73003cd4ff46d873f10ebd2f3055589c | 009f3c640ab7b8e5eb1b7fc901ba9caeef67bf38 | /Loan Management/Loan/Management/views.py | 9ad5c6771f27eeaa80b9097150a303d97a35718d | [] | no_license | hussain-mohammed/Tasks | aec82198be0785f97f722093bae01968601b4719 | 3557465f6a5ad63f054b5a3ca875b226603edfc4 | refs/heads/master | 2022-09-09T23:06:08.332789 | 2020-01-11T05:18:36 | 2020-01-11T05:18:36 | 214,174,666 | 1 | 0 | null | 2022-08-30T11:00:48 | 2019-10-10T12:17:00 | Python | UTF-8 | Python | false | false | 4,928 | py | from django.contrib import auth
from rest_framework import permissions
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from .serializer import UserSerializer, ProfileSerializer, DisplaySerializer, LoanDetailSerializer, StatusSerializer, \
Fo... | [
"mohammed.hussain@fissionlabs.com"
] | mohammed.hussain@fissionlabs.com |
e183cd7b1b121ae5dfe37e403c15da9fee7f5a95 | 7ad167ae4be07c95081708d8b2434f8ce92a1345 | /Search/JumpSearch.py | 097d1271e1f18a1d5281bf0417fce938290d8e84 | [] | no_license | faiderfl/algorithms | 92b895c2a3910f2ff844c6181c58f4837034c22f | 638b2199975e80db846dbba044b30381185d8e7f | refs/heads/main | 2023-05-30T20:13:08.029047 | 2021-06-03T17:19:32 | 2021-06-03T17:19:32 | 354,863,354 | 0 | 0 | null | 2021-04-05T15:23:20 | 2021-04-05T14:33:21 | Python | UTF-8 | Python | false | false | 1,001 | py |
import math
def jumpSearch( arr , x , n ):
# Finding block size to be jumped
step = math.sqrt(n)
# Finding the block where element is
# present (if it is present)
prev = 0
while arr[int(min(step, n)-1)] < x:
prev = step
step += math.sqrt(n)
if prev >= n:
... | [
"faiderfl@outlook.com"
] | faiderfl@outlook.com |
db72d759572f3a6e470c8b488b827d75f75fd8e7 | 6f01d400ccae559e00499c923a1842be6e2b7c91 | /game/game/middlewares.py | 1abfe9d14b75459fefe5cbb94a2119cac1ec4d14 | [] | no_license | panghupy/17173- | a17c47f1d409575a4644c5945116c92b5f07f47e | 1236f844e20613679c40fff705272ba995a0799e | refs/heads/master | 2020-03-25T10:12:56.833939 | 2018-08-06T06:50:58 | 2018-08-06T06:50:58 | 143,687,442 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class GameSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"15166396925@163.com"
] | 15166396925@163.com |
f36723a15842f15e3d2ae8f3717c4311c4c80c77 | 1958fbff3c73d51642d383218db0765f865bb8a2 | /venv/bin/epylint | de3d6b68cbe56327a09f3e42992c5cb513471f04 | [] | no_license | amanzap2610/blog | b429f84ea752a86042c2f2b339d3a605c9c424ac | 4cd6a7a669275cb929783b9e8419470f875f96cd | refs/heads/master | 2022-06-13T06:21:42.442044 | 2020-05-08T06:38:15 | 2020-05-08T06:38:15 | 262,039,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/zapbuild/Desktop/dream_blog-master/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"amansaxena.zapbuild@gmail.com"
] | amansaxena.zapbuild@gmail.com | |
8972d88b74539a835067f0bbb4c298a83f1c92d6 | 8b87bacd1a433807c07cfb39fb718d31bac5c416 | /MIT python course/Ass 3/hw3.py | cdff423ad7d5d16e4a3d835e19c89af1ff5e9ce2 | [] | no_license | rvcjavaboy/eitra | 643d9fd9377f878ff786c997e477e97a3d15bfc1 | cd8c7cd74361e4ca345a084f7b85f78b024e60af | refs/heads/master | 2021-01-16T19:57:18.101471 | 2017-11-13T19:55:25 | 2017-11-13T19:55:25 | 100,191,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | '''
Author: Ranjit Chavan
Date : 8 Aug 2017
'''
#--------------------------------------------- Exercise 3.1-----------------------------------------------------
def list_intersection(a,b):
c = []
for elem in a:
if elem in b:
c.append(elem)
return c
list_intersection([2, 3], [3... | [
"rvcinfo9600.com"
] | rvcinfo9600.com |
88401a331ee45c507049db8674c322ac25606c39 | 00f522bfc5b0a93da6018845ab79374815f3068d | /news/models.py | 1cec958aa9a32b21f767e9c3f8ed4b1158de4673 | [] | no_license | AbduXalim/news | 0dd4da68e86cda6adb886b0670e2e5d812ebcb42 | e41bccfdbf6c4c661f825a62b989b2cfa0e92ffd | refs/heads/main | 2023-08-31T20:54:09.739878 | 2021-10-24T18:24:33 | 2021-10-24T18:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django.db import models
class Post(models.Model):
title = models.CharField(max_length=150)
text = models.TextField()
def __str__(self):
return self.title | [
"khalim.5052@gmail.com"
] | khalim.5052@gmail.com |
788d74a0541595cac3c54e408e4d3d2a423cdc26 | 4b157ab5270ba430a6d7c1594ea41ceea89b7ab2 | /dataview/items/management/commands/dbimport.py | 202892882682d5ee3d0dae54641cf1e52de4ef88 | [
"MIT"
] | permissive | estin/pomp-craigslist-example | 6a06e0671b189b45d7f688583c052b3e23efd010 | c019686776ff2235f92ece9cea19874631a561b9 | refs/heads/master | 2021-01-10T12:07:30.035957 | 2017-11-21T19:55:40 | 2017-11-21T19:55:40 | 52,002,919 | 38 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import logging
from django.db import transaction
from django.core.management.base import BaseCommand
from django.core.exceptions import ValidationError
from dataview.items.models import CraigsListItem
from craigslist.pipeline import KafkaPipeline
from craigslist.utils import get_statsd_client, METRIC_ITEMS_IMPORTED_K... | [
"tatarkin.evg@gmail.com"
] | tatarkin.evg@gmail.com |
06a049cddec948aa575fb610476d3c0283618784 | a46d3b261147ed38af57b4905a2bf5aaca74616f | /server/serve_videodemo.py | 83ac50e51958c9688f5182af503893e7fa4a63b9 | [] | no_license | ResidentMario/cnn-cifar10 | 0e1cd9192492c86300faeb922389c2d07bc432ca | 32565392ffc34349f49b4886e714c1a52dd6099c | refs/heads/master | 2023-08-20T15:22:12.616090 | 2021-10-19T22:30:51 | 2021-10-19T22:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import torch
from torch import nn
import torchvision
import numpy as np
import base64
from PIL import Image
import io
from spell.serving import BasePredictor
# Inlining the model definition in the server code for simplicity. In a production setting, we
# recommend creating a model module and importing that instead.... | [
"demouser@Kevins-MacBook-Pro.local"
] | demouser@Kevins-MacBook-Pro.local |
45d6cdcdcf5d305c813f5e774b4103af7fd3d956 | a6eddf9fb53e94131bf06fff52bb7207998a9d8f | /scoring/scoring.py | eddf4771be2bc6e1a7470c2284ede10d64d4d2ac | [
"MIT"
] | permissive | ugo-en/word-similarity-checker | 64b9b2a2131c2b7beb533788b0acda399b685006 | 0ba91bd2be3e39229dbd653994c8f21c90f4ae62 | refs/heads/main | 2023-06-03T01:16:18.841805 | 2021-06-20T23:25:57 | 2021-06-20T23:25:57 | 378,669,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from fuzzywuzzy import fuzz as fz
def score(word1,word2):
"""
This function uses a sequence matcher to check the two words and using the token set ratio, determine the similarity
in structure between two words, statements or phrases
:param word1:
:param word2:
:return:
"""
word1 = str(... | [
"ugochukwuenwachukwu@gmail.com"
] | ugochukwuenwachukwu@gmail.com |
b4729aeb7d1d1ca7fc8785b02f4a3190a9ebce0b | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /build/android/pylib/chrome_test_server_spawner.py | e1eb6b384f6e6a1e0bc2403273b1358a03e5acb7 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 16,082 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""A "Test Server Spawner" that handles killing/stopping per-test test servers.
It's used to accept requests from the device to spawn and kill instances of ... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
842b53f556e40e7ee2ce73b314af3c48d09ff59a | 44b87d9faad99d542914c35410ba7d354d5ba9cd | /1/examples/srearch_a_letter.py | db0f0ae9e3b4cbc2f8eb95912e5afe20241d5f02 | [] | no_license | append-knowledge/pythondjango | 586292d1c7d0ddace3630f0d77ca53f442667e54 | 0e5dab580e8cc48e9940fb93a71bcd36e8e6a84e | refs/heads/master | 2023-06-24T07:24:53.374998 | 2021-07-13T05:55:25 | 2021-07-13T05:55:25 | 385,247,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | x=input("enter the word ")
y=input("enter the letter you want to find ")
flag=0
for i in x:
if i in y:
flag=1
if flag==1:
print("entered word found ")
else:
print("not found") | [
"lijojose95@gmail.com"
] | lijojose95@gmail.com |
bbb074712cc9a9c9e029fc23002222f68bbe6a4b | b9c2c910c5ad41bc50d06a96be192f9aabae8f2d | /test_recipes.py | 8119e0c9f29af8dd5b1ef8bb940cc19b68a5a50c | [] | no_license | ehtishammalik/flaskAPI | 916f24d2af631b9b263438915ad37370cf5d312c | 426582350edc88eea6c1c8d7fd5dfb8d7e960915 | refs/heads/master | 2020-03-19T06:53:58.332916 | 2018-06-07T04:37:06 | 2018-06-07T04:37:06 | 136,064,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | # test_bucketlist.py
import unittest
import os
import json
from app import create_app, db
class RecipesTestCase(unittest.TestCase):
"""This class represents the recipes test case"""
def setUp(self):
"""Define test variables and initialize app."""
self.app = create_app(config_name="testing")
... | [
"ehtisham2014@namal.edu.pk"
] | ehtisham2014@namal.edu.pk |
97a827d7b0708abd7097d9584f3982d0ecd0389a | 91dde0bebc61ced8d1891afdc67931b667324576 | /neutron/tests/functional/agent/linux/pinger.py | a79e8235683fd79ce5adf013d9a38ab0d2893bd6 | [
"Apache-2.0"
] | permissive | cernops/neutron | e7108657a8f038178c8420582be05d9c7e417ba1 | 0c0e233290a0012f4d8320d047de63f213984944 | refs/heads/master-patches | 2020-12-25T02:10:56.430751 | 2014-03-24T14:50:23 | 2015-02-09T12:09:05 | 31,379,379 | 3 | 1 | null | 2015-02-26T17:30:41 | 2015-02-26T17:30:41 | null | UTF-8 | Python | false | false | 1,802 | py | # Copyright (c) 2014 Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | [
"mangelajo@redhat.com"
] | mangelajo@redhat.com |
2265b5e10e6f12363d3479fd90a21760370817c1 | 078b8189025dd0e40482dac41a0278841d64e41f | /nonap/bin/ctest | f9075389d11922878d031739a2ac77f54d07dd4a | [] | no_license | Priyesh1202/WakeUpDriver | 48d38e4980efde5d61287f7e09924ffd0e3d7972 | bc1bbf00ec381b46d3c0f96c389d8dc610408766 | refs/heads/master | 2022-09-15T03:43:32.881136 | 2020-05-22T05:21:12 | 2020-05-22T05:21:12 | 266,022,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/mac/PycharmProjects/NoNapping/nonap/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from cmake import ctest
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(ctest())
| [
"priyesh.vakharia@gmail.com"
] | priyesh.vakharia@gmail.com | |
0014fee21c6de7bad486f03dc5345e6fd33a2f08 | 3f664b12b161a745dac15424aecfc8fec2cbe9c6 | /Implementatie/Uitvoering_ElGamal.py | 7b0cd11c8c22eb474aab5651079d7054b9a8d026 | [] | no_license | QuirijnMeijer/EKC | 30e11611b3878dd0b52793f072323185357a074e | 37fb276f961a93215caf2df1738fd5a5cd553ff6 | refs/heads/master | 2022-01-27T17:29:36.898749 | 2019-06-21T16:10:39 | 2019-06-21T16:10:39 | 37,132,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # --->
# Voor gebruik in IDLE (Windows):
# --->
import sys
import os
z = os.path.dirname(os.path.abspath(__file__))
sys.path.append(z)
# <---
# Samenvoeging klassen voor een demonstratie van het ElGamal systeem.
from ElliptischeKromme import *
from ElGamal import *
# Start van het script
K = ElliptischeKromme(5, 1,... | [
"Quir@live.nl"
] | Quir@live.nl |
6baa75859da9119851b4c6adfc501d072f6dcab7 | de0a4650b26be18826a2ef3fa5a7c05bdb733d30 | /PredictView.py | 5315dc1160f161704f4d40091ed23ba44cb84704 | [] | no_license | Githubowy-Juliusz/SI-Projekt | fd9db2e1c0fa551f1256c468f9cb3db6e0b8f812 | 966c7260674544ad23096b658a9850ba357ad437 | refs/heads/master | 2022-08-26T04:50:04.235248 | 2020-05-26T10:23:57 | 2020-05-26T10:23:57 | 265,535,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,850 | py | from PyQt5 import QtCore, QtGui, QtWidgets
import numpy as np
import random
class PredictView(object):
def setupUi(self, MainWindow, predictions):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(600, 622)
self.central_widget = QtWidgets.QWidget(MainWindow)
self.central_widget.setObjectName("central_w... | [
"githubowy-juliusz@wp.pl"
] | githubowy-juliusz@wp.pl |
26c4e08d795fe5047e6277af93086c7796f3774d | f152d89efeebc5c00c54cf7819f539aec920aa2d | /reviewboard/webapi/decorators.py | 02674e04c176a61adb67121de06093f144b15995 | [
"MIT"
] | permissive | yang/reviewboard | c1c0cee37133004c2857ed6daac136697baa92dd | b893e0f28bc5d561124aaf09bc8b0e164f42c7d5 | refs/heads/master | 2021-01-18T11:04:37.694088 | 2010-11-27T00:09:27 | 2010-11-30T00:48:14 | 1,115,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from django.http import HttpRequest
from djblets.siteconfig.models import SiteConfiguration
from djblets.util.decorators import simple_decorator
from djblets.webapi.core import WebAPIResponse, WebAPIResponseError
from djblets.webapi.decorators import webapi_login_required, \
webapi... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
b502c34d90948fd8a14029ada56a2c31ec8154d9 | 22967425b2a8556092a6499bbf8dbb24d355d17d | /show_room/migrations/0003_auto_20190509_1302.py | 99f26050d6513c1736a883b10d285c0b4aec2fd9 | [] | no_license | avi202020/Car-management-System.Safaricom-Hackathon | 68936d9016a77bb325d2e551eeb46f427ee72571 | 42401877062080428cb24e03b9d08727165a6bdb | refs/heads/master | 2023-03-17T13:04:27.388669 | 2019-05-09T20:36:39 | 2019-05-09T20:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2019-05-09 10:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('show_room', '0002_auto_20190509_0724'),
]
operations = [
migrations.AddFiel... | [
"ngahu@joels-MacBook-Pro.local"
] | ngahu@joels-MacBook-Pro.local |
d0f2925daf7db34217f561cf6b3a564ef62b0e35 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /93o6y6WKFpQKoDg4T_11.py | c80cfdfb6ad9743783da2aa0233e0db5d7d02133 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py |
def sort_by_length(lst):
return sorted(lst , key = len)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9bd86ffac705571ef4bfa149ecc3a36fde4e9145 | 9330310ef2074289824adb4aef2b3ded52f6463f | /doc/conf.py | 2ffb8fa2543f210354555137d2502cc9d85c78a9 | [] | no_license | RahulSundar/pyCSalgos | 7d94ec695da894d637c76822d3afd26d25e4d4b1 | c3fe7c00f6fdfa4843cde4beafeafe931f199252 | refs/heads/master | 2022-04-08T10:40:13.237110 | 2020-03-10T19:16:24 | 2020-03-10T19:16:24 | 273,650,976 | 1 | 0 | null | 2020-06-20T06:20:48 | 2020-06-20T06:20:47 | null | UTF-8 | Python | false | false | 8,284 | py | # -*- coding: utf-8 -*-
#
# pyCSalgos documentation build configuration file, created by
# sphinx-quickstart on Fri Jul 4 15:52:00 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
#... | [
"nikcleju@gmail.com"
] | nikcleju@gmail.com |
41fc157c2f3b1045e9cea61068ad1773f69efd18 | fcdc5d3df5e947fc89ddb6ecb4c0cf73677a5213 | /blatt_2/MadGraph5_v1_3_20/ex_2/bin/change_compiler.py | 207c61313b8c31cf8954c9c513e708bd52d7afad | [] | no_license | harrypuuter/tp1 | 382fb9efe503c69f0249c46a7870ede088d8291d | e576e483dc77f6dcd477c73018ca2ea3955cd0c7 | refs/heads/master | 2021-01-10T11:38:16.467278 | 2016-01-27T16:28:46 | 2016-01-27T16:28:46 | 45,135,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | #!/usr/bin/env python
import re, sys, os
g77 = re.compile('g77')
gfortran = re.compile('gfortran')
def mod_compilator(directory, new='gfortran'):
#define global regular expression
rule={'S-REGEXP_g77+gfortran+re.I':''}
if type(directory)!=list:
directory=[directory]
#search file
file_to_... | [
"brommer.sebastian@gmail.com"
] | brommer.sebastian@gmail.com |
cfad3b76668f178f392f7b7a01d24f1ce83b31b6 | 278c14d55dc88f29146152cff1e5a8fbdecd56b6 | /movies/migrations/0001_initial.py | 81ee850016e3b9fc7fb1aa4e0b94558d8cc97a21 | [] | no_license | taras0024/movies_api | 4147feb28a584e82f8658ee6af12ce3ee2c4fb9d | 0736063298d82695205278e356acca6740790516 | refs/heads/master | 2023-06-26T22:12:20.958983 | 2021-08-02T12:58:51 | 2021-08-02T12:58:51 | 391,381,245 | 0 | 0 | null | 2021-08-02T12:58:51 | 2021-07-31T14:38:08 | JavaScript | UTF-8 | Python | false | false | 7,547 | py | # Generated by Django 3.2.5 on 2021-07-31 18:17
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Actor',
fi... | [
"74822918+taras0024@users.noreply.github.com"
] | 74822918+taras0024@users.noreply.github.com |
0b02b8215e812d6887a344afd2a09cde9a10285c | 6ca9afb63a27d57ef55f7decb98ad7904c43e49b | /curriculum-learning/ppo_lstm_combine_observation.py | 464abdd7755359efa13899c4cd2eaaf6ecacad40 | [] | no_license | binaryoung/COMP4026-MSc-Projects | 7a7c39002ec24b95568c7a0ddeeb2a8e1037b117 | 2e24f752c94e64baf74e28889ea5141c7436c0e4 | refs/heads/main | 2023-07-19T07:20:30.604564 | 2021-09-09T23:51:27 | 2021-09-09T23:51:27 | 384,158,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,065 | py | import math
from datetime import datetime
import os
from distutils.dir_util import copy_tree
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.distributions import Categorical
import torch.multiprocessing as mp
from torch.utils.tensorboard import SummaryWriter
im... | [
"me@xiayang.me"
] | me@xiayang.me |
d32ac14755d361830a569a982e178869af8f8ab2 | 5b166e7bb66bec25126ce6622162075956397d07 | /util/ptime.py | 9e8d0c87311e923abc944809a991fe3d56a1f8aa | [
"BSD-3-Clause"
] | permissive | nigeljonez/newpyfibot | 15f859c9434629a7d579346d0400f326dcad87b1 | de090f1521dee8523d4a083b9665298e4e97d847 | refs/heads/master | 2021-01-22T11:46:22.344509 | 2012-09-12T10:25:28 | 2012-09-12T10:25:28 | 936,129 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | #!/usr/bin/python
# -*- coding: iso8859-1 -*-
## (c)2004 Timo Reunanen <parker _et_ wolfenstein _dit_ org>
import time
import re
_exact=r'''
^
(?P<hour> \d{1,2}) ## hour
[:.]
(?P<min> \d{2}) ## minutes
(?:
[:.]
(?P<sec>\d{2} ) ## secods (optional)
)?
$
'''
_add=r'''
^
[+]
(?: ## ho... | [
"riku.lindblad@dda364a1-ef19-0410-af65-756c83048fb2"
] | riku.lindblad@dda364a1-ef19-0410-af65-756c83048fb2 |
23c32a446cf61a05dcb2d470239b1d3c0c4f49da | 794f225c248e84b29f03e5ae472bd995b8dd86a4 | /doppler/all_data/4-18/20130418-13_0_10_peak_combine.py | 48b82d42269036337f95766e2c30e0ba539b80ea | [] | no_license | yuyichao/jlab2s13 | 1113a537bf9f1d44ff96324f290a16abf265fb20 | 9b09c3af9f4d3311633996635ccf75f04a97c117 | refs/heads/master | 2023-02-21T18:08:12.739055 | 2013-09-14T03:52:57 | 2013-09-14T03:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | fit2_s = [3.9008432047451302, 3.8773342085960469, 3.9957833609585491]
fit_a = [-1.2819999999999998, -1.2679999999999993, -1.2711428571428618]
fit2_a = [500.51428571428562, 500.68571428571403, 500.61428571428576]
fit_s = [0.012207605867885846, 0.0094353400058313219, 0.010353561336037447]
peaks = [{'name': ['f85_3_4'], '... | [
"yyc1992@gmail.com"
] | yyc1992@gmail.com |
f238d04a62268f719a0026d5246ae6552ad08c38 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/arc/025a.py | eca2c9978b657cb946922fb4f5f37b40b06e0566 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | D = list(map(int, input().split()))
L = list(map(int, input().split()))
ans = 0
for d, l in zip(D, L):
ans += max(d, l)
print(ans) | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
1ecc874b213fc22f21d508f94489dafa53895c49 | bd74dc8476d75da1404745be2096959b56094589 | /front-end/node_modules/fsevents/build/config.gypi | 496727b745c3802046b782a1282ee7c4bdf0442f | [
"MIT"
] | permissive | schrius/user-story | f61635c33d18efdda7651634ee7ce433d23463cc | 0b75d4ee37eefde88e18b376eb256a3113bbbcc5 | refs/heads/master | 2023-02-07T21:50:37.988877 | 2020-04-03T15:45:25 | 2020-04-03T15:45:25 | 252,211,758 | 0 | 1 | null | 2023-01-24T01:53:10 | 2020-04-01T15:18:09 | JavaScript | UTF-8 | Python | false | false | 5,717 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"schriusty@gmail.com"
] | schriusty@gmail.com |
3a737f83ba061fbfef963c7cd42c69dbf53fec5e | 1bbf0e6d0993346744644c4059638f410ca02225 | /hamm.py | c29d69ec20c2e27c344921468e9861aaf4a96bcf | [] | no_license | nickrod518/rosalind | 3e95d0dc369ca2f577de15f9212fdc06de9b1ac3 | 52e5deccdd414a422612b49927ff1912f6534ef9 | refs/heads/master | 2021-10-11T21:15:51.837771 | 2019-01-29T21:31:42 | 2019-01-29T21:31:42 | 125,309,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | hamming_distance = 0
s = input()
t = input()
for i in range(len(s)):
if s[i] != t[i]:
hamming_distance = hamming_distance + 1
print(hamming_distance)
| [
"Nick.Rodriguez@dhgllp.com"
] | Nick.Rodriguez@dhgllp.com |
0f09cb023d84fff197d03b8360e4b1da14b7a9d5 | 6969a1aa70b4eb7a33ba7d02b5d68530481582c4 | /double_integar.py | 00a792328eed7bff1109d217cde7a112a97c4f4d | [] | no_license | Diassia/Code-Wars-Practice | aa5122a495d5b348aaa4252f42f18902cddbfc1e | aeed92f2946a2462e5cb7e5016d4b421b6d0c4ce | refs/heads/master | 2023-02-18T02:58:27.591886 | 2021-01-15T11:16:19 | 2021-01-15T11:16:19 | 310,811,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | def double_integer(i):
return i * 2
i = 2
print(double_integer(i)) | [
"shaw.kayleighemma@gmail.com"
] | shaw.kayleighemma@gmail.com |
d1c5245e21bd7b2194b251a3d5c8575240a0d15b | 4a44462dcc68ba86e0d724b8beb936069cd86fb7 | /wetectron/modeling/poolers.py | abbf27d12261f63b8c31e186747caaf9ed38f42e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Yang-sso/wetectron_cyyang | 63752c01cee64ab02b4e713c48118ccd50aa1368 | 42bfe4fc2483d7182c7824ac6384ebd6c3483db5 | refs/heads/main | 2023-03-30T04:33:05.625396 | 2021-04-01T03:58:01 | 2021-04-01T03:58:01 | 353,564,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,915 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import torch
import torch.nn.functional as F
from torch import nn
from wetectron.layers import ROIAlign, ROIPool
from wetectron.config import cfg
from .utils import cat
class LevelMapper(object):
"""Determine which FPN level each RoI in a s... | [
"1005131989@qq.com"
] | 1005131989@qq.com |
2eae17add959a016d7283acf078ab01ad7b91b0f | ac513f7dc549fc0dbc0e9a7ccaeb77991b7ce5ea | /pycoders/home/migrations/0010_auto_20190215_2124.py | bb713ce39344a617034dc3c67f46d9c222ec4921 | [] | no_license | Adarsh-Shrivastava-001/Codeutasava3.0 | 728cea794963c7a34549e5ca7918bf81f25b1838 | 0dc28e67ed8c572f4b194487f4d926de32997c31 | refs/heads/master | 2022-12-15T06:55:26.279237 | 2019-02-17T10:55:06 | 2019-02-17T10:55:06 | 170,688,965 | 0 | 2 | null | 2022-11-22T02:22:57 | 2019-02-14T12:37:52 | CSS | UTF-8 | Python | false | false | 739 | py | # Generated by Django 2.1.7 on 2019-02-15 21:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0009_product_description'),
]
operations = [
migrations.CreateModel(
name='SearchTerm',
fields=[
... | [
"pupalerusikesh@gmail.com"
] | pupalerusikesh@gmail.com |
29ec23545290463394c1ecc3c7fcde737362edd5 | 3b42fc083bd59cd0f16b256206e59e7c1286a219 | /diccionario.py | fab40d09beb8d01270b21bd57049c76a83d863ad | [] | no_license | robertdante/Python | 9ee63cba4c1cca1fc11cd318db9ab7d604aa0048 | 579ba688302db4d3e36b7eceea14e556b904c3ad | refs/heads/master | 2023-06-09T15:12:37.579033 | 2021-06-24T09:50:34 | 2021-06-24T09:50:34 | 355,795,936 | 0 | 0 | null | 2021-04-13T10:21:26 | 2021-04-08T06:56:18 | Python | UTF-8 | Python | false | false | 610 | py | #Crear un diccionerio
cancion = {
'artista' : 'metallica', #llave y valor
'cancion' : 'enter sandman',
'lanzamiento' : 1992,
'likes' : 3000
}
print(cancion)
#Acceder a un elemento concreto del diccionario
print(cancion['artista'])
print(cancion['cancion'])
#Utilizar un valor del diccionario co... | [
"robert.dante3@gmail.com"
] | robert.dante3@gmail.com |
d130c48d189ce6a8f79f9a900a9f651c67482890 | 37fd103f6b0de68512e3cb6098d0abb9220f5a7d | /Python from scratch/027_inclass_reg_ip.py | 65e07f0162c6062580b2d1a4687b6a61fbc22782 | [] | no_license | FlyingMedusa/PythonELTIT | 720d48089738b7e629cad888f0032df3a4ccea2c | 36ab01fc9d42337e3c76c59c383d7b1a6142f9b9 | refs/heads/master | 2020-09-11T18:17:17.825390 | 2020-04-21T16:38:03 | 2020-04-21T16:38:03 | 222,150,066 | 0 | 0 | null | 2020-04-21T16:38:04 | 2019-11-16T19:37:33 | Python | UTF-8 | Python | false | false | 471 | py | import re
words = ["eloelo320", "blah@", "192.168.0.1", "asd.asd.20"]
pattern = "^\w+$" # or (longer): "^([A-Z]|[a-z]|(\d))*$"
id_pattern = "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"
for word in words:
match = re.search(pattern, word)
if match:
print("matched")
else:
print("not matched")
p... | [
"sleboda.m98@gmail.com"
] | sleboda.m98@gmail.com |
a4293d97c9d3bbe71c06656a6165bb7e7a066120 | 7ea5d546ef433fb95e089033ca2373b413365c02 | /read.py | c42a82eaab610802f22ea8991fb842223e73b635 | [] | no_license | NIKKON-LAWRANCE/OCV-Python | 140fdbc2d6752afcd8a7627cb35785da256d6e1a | 6066115271273e0f2f70e1bffa62202fa01d3120 | refs/heads/main | 2023-06-25T22:59:16.606634 | 2021-07-24T11:08:38 | 2021-07-24T11:08:38 | 389,012,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import cv2 as cv
img = cv.imread('Photos/Cat-2.jpg')
cv.imshow('Cat-2',img)
cv.waitKey(0) | [
"write2subrata@outlook.com"
] | write2subrata@outlook.com |
acb51fce28782b1e64bb7fd83ce39d45260ae110 | 175d6cff12514da71aafef6b9ff48dd56a87db2d | /alveus/widgets/customized_menu.py | 76d6dbee02fa885e376a161e4dfb7dd9543930bf | [
"MIT"
] | permissive | FrederikLehn/alveus | d309eea98bd36f06709c55a18f0855f38b5420a9 | 71a858d0cdd8a4bbd06a28eb35fa7a8a7bd4814b | refs/heads/main | 2023-06-26T02:29:59.236579 | 2021-07-30T11:07:17 | 2021-07-30T11:07:17 | 391,029,935 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import wx
from wx.lib.agw.flatmenu import FMRendererMgr, FMRenderer, FlatMenu, FlatMenuItem
from wx.lib.agw.flatmenu import FMRendererXP, FMRendererMSOffice2007, FMRendererVista
from wx.lib.agw.artmanager import ArtManager, DCSaver
import _icons as ico
class CustomFMRendererMgr(FMRendererMgr):
def __ini... | [
"noreply@github.com"
] | FrederikLehn.noreply@github.com |
2fdec4c0f0f3dab907001d6f75807c4de79d3ff9 | 6f1cadc49bc86ea49fd32c64397bfecfd9666f19 | /C2/pulsar/implant/migrations/0002_auto_20150827_1851.py | ca655a540d156e556deace4637d8d630fee4b98d | [
"BSD-3-Clause"
] | permissive | killvxk/Pulsar-1 | f073c2273e9d4040acc3842963b018d920e78aa4 | d290c524674eabb0444ac8c0b1ee65ea1ad44f1f | refs/heads/master | 2020-06-24T22:38:25.551118 | 2019-07-27T03:45:25 | 2019-07-27T03:45:25 | 199,111,787 | 0 | 0 | null | 2019-07-27T03:44:52 | 2019-07-27T03:44:51 | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('implant', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='implant',
name='uuid'... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fa8beb3f3c45d810e244afa3a207660de72aae1e | c829a8654d4adcba7944f1aa48c2643c2a2a2803 | /sony_utils/split.py | 64caf82d8c17086980dca4436a62a0b48901e234 | [] | no_license | muma378/Utils | d85390f84226b63474c815285acb6ce351ac0c22 | a6ae14f86de360bdabd9fa7f39cd8b05bbd505fb | refs/heads/master | 2020-05-21T13:35:51.908847 | 2017-02-05T06:11:45 | 2017-02-05T06:11:45 | 48,424,512 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
import sys
import subprocess
import datetime
CMD_TEMPLATE = "cut.exe {src_wav} {dst_wav} {start} {end}"
NAME = "emotion_F_"
DECODING = 'gb2312' if os.name=='nt' else 'utf-8'
# split the wav as the information provided by several columns
def split_by_cols(cols_file, src_wav, dst_dir='.', name_prefi... | [
"muma.378@163.com"
] | muma.378@163.com |
d032794e6b78ff7d03d03deda884cfbf3e772619 | caa175a933aca08a475c6277e22cdde1654aca7b | /acondbs/db/__init__.py | 5656bd250d55b0a328a26007e1eeb74511f46e9f | [
"MIT"
] | permissive | simonsobs/acondbs | 01d68ae40866461b85a6c9fcabdfbea46ef5f920 | d18c7b06474b0dacb1dcf1c6dbd1e743407645e2 | refs/heads/main | 2023-07-07T04:33:40.561273 | 2023-06-28T22:08:00 | 2023-06-28T22:08:00 | 239,022,783 | 0 | 1 | MIT | 2023-06-26T20:36:39 | 2020-02-07T21:07:46 | Python | UTF-8 | Python | false | false | 1,054 | py | """SQLAlchemy and DB related
This package contains functions, classes, and other objects that are
related to SQLAlchemy and the DB except ORM model declarations.
"""
from pathlib import Path
from flask import Flask
from flask_migrate import Migrate
from .cmds import (
backup_db_command,
dump_db_command,
... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
229e0f9a4c85fab546dc07bac2a45ae56cccfd74 | dff8c4c57f16b6d53e03a63578cc1a7488603745 | /model_params/network_intrusion_detection_model_params.py | 4465287f54054f9bbf61095a8a707b2eab15119a | [] | no_license | lexmao/NuPic_Network_Anomaly_Detection | 062ae519860a50c86b5edacffe5b78583f6d47d0 | 94dcbd04349c3c3e34b73ccaebe1e5f479eaeffe | refs/heads/master | 2021-05-01T13:41:21.867550 | 2015-11-17T18:35:35 | 2015-11-17T18:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | MODEL_PARAMS = \
{ 'aggregationInfo': { 'days': 0,
'fields': [],
'hours': 0,
'microseconds': 0,
'milliseconds': 0,
'minutes': 0,
'months': 0,
'seconds': 0,
... | [
"sanketdesai@juniper.net"
] | sanketdesai@juniper.net |
fd78af3570754694ae18160dcad79b077bc0eeb9 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Dbase/TableBrowser/dbview.py | 9975899912c220e9ca0a023de57601b57da0cc5b | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | ##################################################################
# view any existing shelve directly; this is more general than a
# "formtable.py shelve 1 filename" cmdline--only works for Actor;
# pass in a filename (and mode) to use this to browse any shelve:
# formtable auto picks up class from the first instance ... | [
"zui"
] | zui |
468d0a666c8113677278318e8707cab353abf5b9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nninsid.py | 467654f6a73883390386eb7cdecf2765d99eb6ea | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,302 | py | ii = [('BentJDO2.py', 1), ('MarrFDI.py', 1), ('RogePAV2.py', 4), ('KembFFF.py', 1), ('RogePAV.py', 3), ('RennJIT.py', 5), ('LeakWTI2.py', 2), ('UnitAI.py', 3), ('KembFJ1.py', 1), ('WilkJMC3.py', 1), ('LeakWTI3.py', 2), ('PettTHE.py', 18), ('PeckJNG.py', 1), ('BailJD2.py', 1), ('AdamWEP.py', 33), ('FitzRNS3.py', 16), ('... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
45d7bb9e577d90e6669bedad91fe02a0067a2061 | 41cd1bcff0166ed3aab28a183a2837adaa2d9a07 | /allauth/account/decorators.py | eb906aad176d794c9e8a3407a9d1495c7ae1d76d | [
"MIT"
] | permissive | thomaspurchas/django-allauth | 694dde8615b90cd4768e7f9eda79fdcf6fe3cdb6 | d7a8b9e13456180648450431057a206afa689373 | refs/heads/master | 2022-02-04T03:18:25.851391 | 2013-05-20T11:26:55 | 2013-05-20T11:26:55 | 7,754,028 | 1 | 0 | MIT | 2022-02-01T23:04:02 | 2013-01-22T14:44:56 | Python | UTF-8 | Python | false | false | 1,627 | py | from django.contrib.auth.decorators import login_required
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.shortcuts import render
from .models import EmailAddress
from .utils import send_email_confirmation
def verified_email_required(function=None,
login_url=None,
... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
3bd0738ae8c589c40d9afde3f06436f12a90c507 | e87bdc4ee3328f79358df088c4f30aa73312127a | /python/motap/schemamodels.py | c9327f64e43c791447b41ae99d31844b89560854 | [] | no_license | n-raghu/KnowledgeBase | c50d9033392a78c560c7a137672df04c8aef3d5e | 5ce1c261bac77dd0dbbc39a124409f0ac38ca6ad | refs/heads/master | 2023-06-22T15:38:34.076176 | 2021-07-20T05:36:39 | 2021-07-20T05:36:39 | 117,502,463 | 0 | 0 | null | 2021-06-10T16:06:25 | 2018-01-15T05:46:37 | Python | UTF-8 | Python | false | false | 374 | py | from typing import Any
from pydantic import BaseModel
class AddrSchema(BaseModel):
address_matched: Any
customerID: int
dob: str
income: int
bureauScore: int
applicationScore: int
maxDelL12M: int
allowedFoir: int
existingEMI: int
loanTenure: int
currentAddress: str
bur... | [
"raghu@LCHVWXVJ2.inspireme.local"
] | raghu@LCHVWXVJ2.inspireme.local |
3397fdf03555cbfe28cc3fed54c3f4f02c8e6c2b | 091155389673325cfe8b0da3dc64c113f1ded707 | /playground/segmentation/coco/solo/solo.res50.fpn.coco.800size.1x/config.py | 66f251fa6baf96372bfaf789658e15cbd0595e82 | [
"Apache-2.0"
] | permissive | Megvii-BaseDetection/cvpods | 7b7c808257b757d7f94d520ea03b370105fb05eb | 2deea5dc659371318c8a570c644201d913a83027 | refs/heads/master | 2023-03-22T00:26:06.248877 | 2023-03-10T10:05:26 | 2023-03-10T10:05:26 | 318,124,806 | 659 | 91 | Apache-2.0 | 2023-03-10T10:05:28 | 2020-12-03T08:26:57 | Python | UTF-8 | Python | false | false | 1,606 | py | import os.path as osp
from cvpods.configs.solo_config import SOLOConfig
_config_dict = dict(
MODEL=dict(
WEIGHTS="detectron2://ImageNetPretrained/MSRA/R-50.pkl",
),
DATASETS=dict(
TRAIN=("coco_2017_train",),
TEST=("coco_2017_val",),
),
SOLVER=dict(
LR_SCHEDULER=dict... | [
"wangfeng02@megvii.com"
] | wangfeng02@megvii.com |
277571a417c6a61cf258823e99aa8cd8e87866d3 | d44bb073602c0bb772ddc6d0069a50f6c6ab2726 | /app/libs/token_auth.py | da506b199d502f25e5c9701d719a8819ccef0985 | [] | no_license | LinRuiBin/LrbFlaskApi | 9c1cdeb3dfd2eab8592366469f1649abc1c83799 | 79831f954f923800c7bf151499aa2b789f6e6b50 | refs/heads/master | 2020-04-22T09:35:24.441443 | 2019-11-18T07:07:13 | 2019-11-18T07:07:13 | 170,277,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | """
Created by LRB on 2018/5/7.
"""
from collections import namedtuple
from flask import current_app, g, request
from flask_httpauth import HTTPBasicAuth
from itsdangerous import TimedJSONWebSignatureSerializer \
as Serializer, BadSignature, SignatureExpired
from app.libs.error_code import AuthFailed, Forbidden... | [
"3gtc@3gtcdeMac-mini.local"
] | 3gtc@3gtcdeMac-mini.local |
c3c87b8bb46040b5d54aafcfb934e3418f8026a0 | 00c983525359dd64253838ed262e8b5d58a83a51 | /myvenv/bin/tabulate | 4256cd35ab715b86987e5bb0af4c80ca7da497c7 | [] | no_license | pancham12/my-first-blog | a31bbb6c73b61ddd77a4a365198a58975ddb621e | 690414d8dcc4dfeedaced63fa4e541e6557caadd | refs/heads/main | 2023-01-24T22:15:49.230346 | 2020-12-07T12:44:04 | 2020-12-07T12:44:04 | 319,234,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/ctp/djangogirls/myvenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tabulate import _main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(_main())
| [
"satishpandeyctp@gmail.com"
] | satishpandeyctp@gmail.com | |
5338446b2f453b8f2ace178642776954ee701a35 | 87b9950749f574955e9e98dc6bc33ac54172afe4 | /sort.py | 46030c5769b34d17a13b340b1c126abc641de656 | [] | no_license | LapTQ/basic_stuff | 0d300477e84be1590ff1c87730c947e81b3d39ed | 553029bba822881fd53b3984b7b5fb27134f6663 | refs/heads/master | 2022-10-18T11:26:15.985049 | 2020-06-13T11:30:52 | 2020-06-13T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | from math import*
S = [2, 4, 5, 2, 0, 0 ,11]
def selection_sort(S):
n = len(S)
while n != 0:
max_index = 0
for i in range(n):
if S[max_index] < S[i]:
max_index = i
S[n - 1], S[max_index] = S[max_index], S[n - 1]
n -= 1
def bubble_sort(S):
for t ... | [
"phanmemmaytinhtql@gmail.com"
] | phanmemmaytinhtql@gmail.com |
2ff81651816ba76c5c00cb22c79aa48032295ac9 | c6884ab0176fdfae661781d14d82a1e4f3341ea1 | /Trainer.py | 37299aa463a1e94b5ec9b0019554be2d1138e117 | [] | no_license | Aiyai/BEAM | cc34f6f2ff8980a51bbb9733fb3118cbe42a1bd5 | 1e1af5b74aaf3873342966c75d1f9befe24af2f7 | refs/heads/main | 2023-06-16T13:43:59.229865 | 2021-07-07T02:34:21 | 2021-07-07T02:34:21 | 368,384,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | import tensorflow as tf
import numpy as np
import random
import time
from Source2 import BEAM
from model import DQN
tf.app.flags.DEFINE_boolean("train", False, "학습모드. 게임을 화면에 보여주지 않습니다.")
FLAGS = tf.app.flags.FLAGS
MAX_EPISODE = 10000
TARGET_UPDATE_INTERVAL = 1000
TRAIN_INTERVAL = 4
OBSERVE = 100
s... | [
"noreply@github.com"
] | Aiyai.noreply@github.com |
f35f61f558bf3f2eec45c5998c609a43851bb1f7 | a9f3f473b5fbf7903398aa76506cbf14f0f175c3 | /desafio022.py | d69317e5a948681622373b1cd222188a968fdb50 | [] | no_license | lucaalexandre/Exercicios_de_Revisao_PS | 9ff2ea34a8fed2be732d781460b3380b7e01b28d | d2f4083de72537498141e3a13249f90a4dff6954 | refs/heads/master | 2020-06-05T10:00:25.093908 | 2019-06-17T18:51:15 | 2019-06-17T18:51:15 | 192,401,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | carros = ['bmw','fusca','chevete','nissan'] #alterando a ordem da lista de forma alfabetica
print(carros)
carros.sort()
print(carros)
| [
"lucaalexandrepp@gmail.com"
] | lucaalexandrepp@gmail.com |
92a70b4dae4aa1f4b18b52ea14ca07ed69d71f6a | 4ae6ea6cf39ef18e11b7e35387c3f955097885f5 | /mass_flask_core/tests/test_report.py | 6a594976432d084017810452037c58b85c71fff6 | [
"MIT"
] | permissive | tbehner/mass_server | 6f71ebcb9056914b1984275bc19b88d666f27c3e | 99523f7d845d7da9f3f213054fd1c718202dffe3 | refs/heads/master | 2020-03-27T15:31:12.963233 | 2018-09-13T11:33:46 | 2018-09-13T11:37:37 | 146,723,278 | 0 | 0 | null | 2018-08-30T08:57:15 | 2018-08-30T08:57:15 | null | UTF-8 | Python | false | false | 659 | py | from mass_flask_core.models import AnalysisSystem, Report, Sample
from mixer.backend.mongoengine import mixer
from mass_flask_core.tests import FlaskTestCase
class ReportTestCase(FlaskTestCase):
def test_is_repr_and_str_correct(self):
system = mixer.blend(AnalysisSystem, identifier_name='ReportTestSystem... | [
"rumpf@cs.uni-bonn.de"
] | rumpf@cs.uni-bonn.de |
3ca83b5ee9aa17f09f5494f17a549ed8845ac7fd | 962b3deeb5cdf8c6276f8f12e4140acfc355e380 | /pages/views.py | 72f7ce3e9a1d7afa3fe230a501957f751b8ccb54 | [] | no_license | Vanman007/DjangoHelloWorld | a61a1a531f0a0c6e62529685f480fd65b8417920 | 914313d27433cc2d6e8bff759a8ba3aa7bd075b0 | refs/heads/master | 2023-08-05T05:34:41.677359 | 2020-07-03T09:17:58 | 2020-07-03T09:17:58 | 276,859,194 | 0 | 0 | null | 2021-09-22T19:32:43 | 2020-07-03T09:20:08 | Python | UTF-8 | Python | false | false | 174 | py | from django.shortcuts import render
from django.http import HttpResponse
def homePageView(request):
return HttpResponse('Hello World!')
# Create your views here.
| [
"thom37q2@stud.kea.dk"
] | thom37q2@stud.kea.dk |
694d54351021516c58b602ce17e432ee15a16afa | 88e4eea8976f0e16882abd7745c76e6d036c95c6 | /app/main/service/static_service.py | 2d19fddcaac0e1430d65ea14f0958553b6472c6c | [] | no_license | akosfi/tandem-backend | f06e0fc3c0faac439acdc698152d9404e19c7627 | a918be9377c5283959e1f756a45ed7ad02bc49b9 | refs/heads/master | 2022-12-09T23:18:35.654598 | 2019-12-08T19:05:29 | 2019-12-08T19:05:29 | 217,534,366 | 0 | 0 | null | 2022-09-16T18:12:12 | 2019-10-25T13:00:03 | Python | UTF-8 | Python | false | false | 407 | py | from app.main.model.language import Language
from app.main.model.topic import Topic
from app.main.model.learning_goal import LearningGoal
def get_all_languages():
return Language \
.query \
.all()
def get_all_topics():
return Topic \
.query \
.all()
def get_al... | [
"fiakos1997@gmail.com"
] | fiakos1997@gmail.com |
da4c8a1958dd330eaf162d6671a89f44adfb9e9b | 2d055d8d62c8fdc33cda8c0b154e2b1e81814c46 | /python/demo_everyday/JCP092.py | 1c735a70fcd427c2fa6645875af40395d658774f | [
"MIT"
] | permissive | harkhuang/harkcode | d9ff7d61c3f55ceeeac4124a2a6ba8a006cff8c9 | faab86571ad0fea04c873569a806d2d7bada2e61 | refs/heads/master | 2022-05-15T07:49:23.875775 | 2022-05-13T17:21:42 | 2022-05-13T17:21:53 | 20,355,721 | 3 | 2 | MIT | 2019-05-22T10:09:50 | 2014-05-31T12:56:19 | C | GB18030 | Python | false | false | 292 | py | '''
【程序92】
题目:时间函数举例2
1.程序分析:
2.程序源代码:
'''
if __name__ == '__main__':
import time
start = time.time()
for i in range(3000):
print i
end = time.time()
print end - start
| [
"shiyanhk@gmail.com"
] | shiyanhk@gmail.com |
73199b52b898b470c3bb8e2c68de555ebab6a237 | 354ff630d5eed81ffe67be28dd82b990a733a1cd | /pysim/information/histogram.py | b5c2e51802a07e918c9766dcc879d029036a221c | [
"MIT"
] | permissive | superpig99/pysim | 22ba1521c0002f815f5d074114109461e0cc35fc | 4cd5f0987d3cbdeba1c932ca845df1b0bd9d46bf | refs/heads/master | 2023-05-15T05:30:01.272708 | 2020-04-02T14:25:35 | 2020-04-02T14:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from typing import Union, Optional, Dict
import numpy as np
from scipy import stats
def hist_entropy(
X: np.ndarray,
bins: Union[str, int] = "auto",
correction: bool = True,
hist_kwargs: Optional[Dict] = {},
) -> float:
"""Calculates the entropy using the histogram of a univariate dataset.
Opt... | [
"emanjohnson91@gmail.com"
] | emanjohnson91@gmail.com |
11c42f6ff62c800055b8f8fdd6208766d0f11118 | 083b88c2d8b3fe659c0409046ff9255ef773ce4d | /erpnext/hr/doctype/driving_license_category/driving_license_category.py | 594bacc0716184bc810bd91a6c3fb7eb45d84617 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AmanRawat882/ErpNext-1 | 4293dd13f1d958f85190b524b5498f5d6da3f5b6 | d1f04f9a622977aaac6d5e4a1b122bb64561646d | refs/heads/master | 2020-03-30T10:13:25.573202 | 2018-10-01T15:20:32 | 2018-10-01T15:20:32 | 151,111,101 | 0 | 1 | NOASSERTION | 2018-10-01T15:30:57 | 2018-10-01T15:24:52 | Python | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class DrivingLicenseCategory(Document):
pass
| [
"31853960+AmanRawat882@users.noreply.github.com"
] | 31853960+AmanRawat882@users.noreply.github.com |
bb17338132d0fcb1250887d972dddb667bf6c522 | 4c45ade71fd51f4f1f0f8bc058595c1d96be9faa | /client.py | d831f4c1ac3a17984885d484850fe7872a5c72cd | [] | no_license | Eddieative/gopher_server | 95e256b96728dc42d8d4a075bf1965de269a15e8 | d02c71282bf8c7bf83b2fb0584d763f320ec3026 | refs/heads/master | 2021-01-01T04:19:49.840482 | 2016-04-28T12:02:33 | 2016-04-28T12:02:33 | 57,298,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
addr = ('localhost', 9010)
sock.connect(addr)
try:
message = 'testfile'
sock.sendall(bytes(message.encode('utf-8')))
r_text = ''
while not r_text.endswith('.'):
getData = sock.recv(1024)
r_text += getData.decode('... | [
"aalshehri@luc.edu"
] | aalshehri@luc.edu |
6666b3365e0d37967b4d4ae4f0b7c9dc074e3729 | 401d664697e0df149281ca94ea88f6eee3e609f0 | /python/03_hashmaps/serialization/14decoding_2.py | a5652a603b54d1c36a61569e0ce3aed7b266607d | [] | no_license | git-mih/Learning | 6806fd14f174b908781714e4c3d15da1c6f63307 | 36ea5cb3ed8da0fb2de43f718d4446bbf000a670 | refs/heads/main | 2023-08-30T02:09:18.299638 | 2021-10-26T01:36:23 | 2021-10-26T01:36:23 | 360,233,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | import json
from decimal import Decimal
from datetime import datetime
from fractions import Fraction
# json.loads function parameters (parse_float, int, constant)
j = '''
{
"a": 100,
"b": 0.2,
"c": 0.5
}
'''
def make_decimal(arg): # arg: '0.2' <class 'str'> // arg: '0.5' <class 'str'>
return Decimal(arg)
# par... | [
"git.mih@gmail.com"
] | git.mih@gmail.com |
6bd7da921ee4e5f2c38d8dd8832742960949e196 | caac09a412ed9783e31e6254ba937d2ff1495dc8 | /test/calculator_tests.py | 974b8a61d0acd5e288c2f2b26d39039e3047ccc2 | [
"MIT"
] | permissive | ace-racer/lint-ut-circleci | c01095e9e41137a80499a03a81075ec86b4a9862 | f1d6b43f97b5146c4a168636d8517a8d02a3b21e | refs/heads/master | 2020-08-29T07:15:51.532944 | 2019-10-28T05:30:34 | 2019-10-28T05:30:34 | 217,963,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import unittest
from calculator import Calculator
class CalculatorTests(unittest.TestCase):
def test_add(self):
calculator = Calculator()
self.assertEqual(calculator.add(10, 20), 30)
def test_subtract(self):
calculator = Calculator()
self.assertEqual(calculator.subtract(1... | [
"anuragchatterjee92@gmail.com"
] | anuragchatterjee92@gmail.com |
59ad9eddb03fe048a25f77b63e3e08a4bbce689b | fca8b86b9b3e898cc2a95a8c5cde5d47d93669da | /meal_planner/meal_planner/urls.py | f97206489fee9c3de736c04b8b3e3ea04ecb00c2 | [] | no_license | 0mppula/Python_Web_Applications | 38233b45cad8061023a62b0ee37eba8e5fcec45b | 88b8491a54d544a917b3ab5c782d1cf42aff05e6 | refs/heads/master | 2023-04-22T22:58:59.533305 | 2021-05-06T15:58:27 | 2021-05-06T15:58:27 | 354,778,942 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """meal_planner URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"omppula_1@hotmail.com"
] | omppula_1@hotmail.com |
c03d219ec2ab38266c4a728f3e735d3a3b9a4a0f | c1074ebc044feed56e4eacce3dbc0132a331f170 | /Demo/nilearn_cache/joblib/nilearn/image/image/high_variance_confounds/func_code.py | 304e121de206df2b7032aad8469baf5f438eea09 | [
"MIT"
] | permissive | CSCI4850/S19-team4-project | e8833405605100289a93ad82d8de67c5239a25e5 | e6b7dc6a092a48feed16a6bd7695963075729525 | refs/heads/master | 2020-04-23T22:17:48.215317 | 2019-05-01T19:24:17 | 2019-05-01T19:24:17 | 171,497,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,419 | py | # first line: 28
def high_variance_confounds(imgs, n_confounds=5, percentile=2.,
detrend=True, mask_img=None):
""" Return confounds signals extracted from input signals with highest
variance.
Parameters
----------
imgs: Niimg-like object
See h... | [
"amc2bg@mtmail.mtsu.edu"
] | amc2bg@mtmail.mtsu.edu |
7d92be792fe9bc678bf2c071fd1541bc4b2eba8b | 39474a97c77a3375e352583a9e73b985f575f689 | /var/lib/buildbot/workers/openxt2/buildbot.tac | 498d5d555f9afb649c6d5e2e0aa4e0fc99905ef5 | [] | no_license | OXTbuilders/builder2019 | f94f57696c703798b31aad5fbdfa01cdec8e57fc | c3c423ccaa0b4b1d4d7dc061a25ea93e845ed354 | refs/heads/master | 2020-07-25T00:40:14.762435 | 2019-12-27T20:02:19 | 2019-12-27T20:02:19 | 208,100,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | tac |
import os
from buildbot_worker.bot import Worker
from twisted.application import service
basedir = '/var/lib/buildbot/workers/openxt2'
rotateLength = 10000000
maxRotatedFiles = 10
# if this is a relocatable tac file, get the directory containing the TAC
if basedir == '.':
import os.path
basedir = os.path.ab... | [
"oxtbuilder@github.com"
] | oxtbuilder@github.com |
affceff77f635d0497cd5689551643a3bedcc0cc | 07d8ae8dd0a4d199bd4564c6bccae146eafedf95 | /src/main/2D_plot/plot_subproblem_perfect_electric.py | ec7edeb6b05abf1404ed0aaf3c368a58097b1608 | [] | no_license | eedxwang/3D-Facet-Finite-Elemen-Method | b202d4e49fc7ca8befc2c414840a00a73afdcc15 | 0a77c2eff28fb367f672304ac2896d13021f3f1e | refs/heads/master | 2021-10-25T09:03:38.171535 | 2019-04-03T08:41:13 | 2019-04-03T08:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,605 | py | clear_all()
import sys
reload(sys)
sys.setdefaultencoding("utf8")
import numpy as np
import matplotlib.pyplot as plt
import math
mu0=4*math.pi*pow(10,-7)
plt.rc('font',family='Times New Roman')
plt.close("all")
axis_font = { 'size':'24'}
#savepath=r"C:\Anderson\Pessoal\01_Doutorado\08_Relatorios_Papers\4_CEFC_2016\Fo... | [
"nunes.anderson@gmail.com"
] | nunes.anderson@gmail.com |
68da50086cfa822b13bcf50fd59125d841ba6b0b | 618412e294ad520b71cbd8761ea92675634780ce | /training_scripts/mobileNet-3-generate_tfrecord_nasaweb.py | cc03cc07769858fcce17379171d37918cea89834 | [] | no_license | cloud-graphics-rendering/aiclients-pictor | 88ef4be3d06d9dce81cdbcfc8d54dda8a70f8fce | d5425b7ea72809f677f9b253667479140de8c08b | refs/heads/master | 2022-12-26T14:06:46.759092 | 2020-10-10T04:08:51 | 2020-10-10T04:08:51 | 289,418,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,303 | py | """
Usage:
# From tensorflow/models/
# Create train data:
python generate_tfrecord.py --image_path=xxx/figures --csv_input=data/train_labels.csv --output_path=train.record
# Create test data:
python generate_tfrecord.py --image_path=xxx/figures --csv_input=data/test_labels.csv --output_path=test.record
... | [
"liuty10@gmail.com"
] | liuty10@gmail.com |
6a5cafcf6f8b670c1c3a830f0502074d89470102 | 0dfc473870552ac9384a8b24e96046728a42f6ed | /utest/model/test_control.py | 1a17f6adb5d948f24ea2250696f2a05d093168e7 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | rmf/robotframework | fecb4821fd308d107ae94ee3077a2d968ad9163d | a26cd326d1a397edc56993c453380dcd9b49e407 | refs/heads/master | 2023-09-03T07:04:30.300003 | 2021-11-16T11:01:32 | 2021-11-16T11:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | import unittest
from robot.model import For, If, IfBranch, TestCase
from robot.utils.asserts import assert_equal
IF = If.IF
ELSE_IF = If.ELSE_IF
ELSE = If.ELSE
class TestFor(unittest.TestCase):
def test_string_reprs(self):
for for_, exp_str, exp_repr in [
(For(),
'FOR I... | [
"peke@iki.fi"
] | peke@iki.fi |
29c48053784a6f6b40a6b5ba0c848c3ad67b2000 | 420eecae12598477a4005026a250a94bb872ef81 | /DAGMan/setup.py | 6c6ab5acc87dbf616290a6a869c1212b3cdc414c | [] | no_license | chadfreer/submit-examples | c65da1ebf7b6aee9b20a30a4d6b48a30bd02e1c1 | cc416b30c7ff7f133e7d3cd69854886a99e3fc91 | refs/heads/main | 2023-07-08T12:34:36.267389 | 2021-08-18T13:56:04 | 2021-08-18T13:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | #!/usr/bin/env python
cwd = os.getcwd()
condor_script = cwd+'/submit.condor'
retries = 2
njobs = 3
submit_script = cwd+'/scratch/dag.submit'
f_out = open(submit_script,'w')
for job_num in range(njobs):
outfile_name = 'outfile_'+str(job_num)+'A.txt'
outfile_loc = cwd+'/output/'
f_out.write("JOB\tjob" + str(job_n... | [
"paus@mit.edu"
] | paus@mit.edu |
3bab5fd0dca3ad22bc56bdd19efda33ed4dc420b | 14c357212705e10ccfd9be8f4e3a73c6858f9d9a | /test.py | 1169e62b18f339f491f1258c4e07265019e4c1a7 | [] | no_license | nemodrive/illumination-augumentation | 9fa5c4bd0e853532f789b5ac59ce68ff5d79dc49 | be4dc9386d8b3ddf32e54a9f9566ea4a9f48de3e | refs/heads/master | 2020-12-21T20:25:13.042247 | 2020-02-07T18:30:14 | 2020-02-07T18:30:14 | 236,547,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import torch
import torch.nn as nn
if __name__ == '__main__':
loss = nn.BCEWithLogitsLoss()
sigmoid = nn.Sigmoid()
target = sigmoid(torch.zeros(10))
prediction = sigmoid(torch.ones(10))
score = loss(prediction, prediction)
print(score) | [
"teodor.poncu@gmail.com"
] | teodor.poncu@gmail.com |
7d8fb50e7ee7527432b24d8fb50d44b1c35dfd89 | 74482894c61156c13902044b4d39917df8ed9551 | /test/test_address_coins_transaction_confirmed_data_item_mined_in_block.py | fe17c1e565968234e57b107948c613cf49feb8da | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 1,446 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
0e27e62c78e34f3cfa3f84cec519ddb6dd185365 | f1d3feda6ac37a038dfb12edea7b68e98a6b21de | /star_wars.py | 8801f69861d314f503b32a1d0045bb588d960f7d | [] | no_license | V4stg/starwars_API | e3c34ecb0bbf13981c6880aa9dc72680b088bd5a | 89433b611ef5c423168c1cc3186a62e9b9e85c81 | refs/heads/master | 2021-09-08T18:52:47.081094 | 2018-03-11T18:44:05 | 2018-03-11T18:44:05 | 124,786,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | from flask import Flask, session, redirect, url_for, request, render_template, flash
import data_handler
import hash_handler
import os
app = Flask(__name__)
@app.route('/')
@app.route('/index')
def index():
return render_template('index.html')
@app.route('/signup', methods=['GET', 'POST'])
def signup():
if... | [
"lukacsb@gmail.com"
] | lukacsb@gmail.com |
612213953cb108d3d16c0943e76c7e9036ae4c5f | ba54bb2549de073c044ec4933b86073476ac5204 | /Dynamic_Programming/max_subarray_product.py | 6ad9aa98ef8ec368d97b5b3dc67e4205d09b5eee | [] | no_license | varshanth/Coding_Algorithms | 412eb75c82727501176b6e35a5bbf98e1033f3e5 | 3fea767a1cc123d04149e43c57c85791add84cc6 | refs/heads/master | 2021-05-14T12:30:26.955680 | 2018-02-18T05:07:11 | 2018-02-18T05:07:11 | 116,407,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | '''
LeetCode: Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number)
which has the largest product.
For example, given the array [2,3,-2,4],
the contiguous subarray [2,3] has the largest product = 6.
Solution: O(n)
Algorithm:
1) Initialize 3 variables to the 1st el... | [
"varshanth.rao99@gmail.com"
] | varshanth.rao99@gmail.com |
35fc5efa1749d525fd3f6ab1157d93a404cbc1e3 | 4c657d5568cd49ae2ea9c8e6d22b522c6798a9bd | /urllibDemo/Test6.py | e46a579a07410868557762526ed6aae18c105599 | [] | no_license | Tralo/PyStudy | 696f1b2bbc74904ce9808097e792962d0f91bf63 | 4a9c6e4e03592ba3b827b66aad95d6560e3bbac1 | refs/heads/master | 2020-03-13T20:28:52.154544 | 2018-05-31T09:09:24 | 2018-05-31T09:09:24 | 130,459,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | import requests
r = requests.get('http://github.com')
print(r.url)
print(r.status_code)
print(r.history)
| [
"13580548169@163.com"
] | 13580548169@163.com |
b2fd2e9fee6bf8fa35803a124f8eeb8b9f912b67 | 9b8232dd0c3039fd850bf3d829f35fd394dde436 | /setup.py | 710522684373f77d479107f07d2a3dc977cd4b41 | [
"MIT"
] | permissive | solvip/icelandic_holidays | 019813e39e6857af353903c483ecd02aa27d8846 | d9da734b5c73d7c588d814b85da427d58d6767b9 | refs/heads/master | 2021-01-22T05:23:58.142176 | 2013-10-26T01:25:04 | 2013-10-26T01:25:04 | 11,962,358 | 1 | 1 | null | 2018-04-26T12:42:01 | 2013-08-07T22:43:17 | Python | UTF-8 | Python | false | false | 1,600 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Sölvi Páll Ásgeirsson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | [
"solvip@gmail.com"
] | solvip@gmail.com |
aac20397a75eddaa76c1781124bc4879759427c2 | b222a5b5a84ce5d4fa0ddb084cffd1619a84a17c | /sequence_equation/sequence_equation.py | 7a5ca7223035ab0aec3fa4aea0a2b337cc528cbd | [] | no_license | unabl4/HR | a51a5d461b3d126e1021646b9f210e099b8627b3 | 1aaf96734b8845c911d20a4955d3ffd64a2d16b9 | refs/heads/master | 2021-04-05T23:55:27.202440 | 2018-11-04T22:44:46 | 2018-11-04T22:44:46 | 125,117,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # https://www.hackerrank.com/challenges/permutation-equation/problem
#!/bin/python3
# Complete the permutationEquation function below.
def permutationEquation(p):
m = {}
for a,b in enumerate(p):
m[b] = a+1
return [m[m[x+1]] for x in range(len(p))]
n = int(input())
p = list(map(int, input... | [
"unabl4@gmail.com"
] | unabl4@gmail.com |
6b1cb6b3f7a0424e75690bd37f4236afbe5ea656 | bb1de00b37731388b9cb8ffa3b03f477400724bf | /P10_LetterGradesWithInputValidation.py | dda2a64d50ce6c66337cbb211a79ba0a6b19b64d | [] | no_license | brandoni27/PythonClassScripts | 5a144b492dee1e7fcfbd4a43d293d3f9e7e19a9c | 33ae7c6a9f555d1d95787d7336f6b7ace0e74b3e | refs/heads/master | 2020-06-06T04:54:23.983084 | 2019-06-19T02:23:25 | 2019-06-19T02:23:25 | 192,642,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | # LetterGradesWithInputValidation.py
# Brandon Washington
# 2/18/2019
# Python 3.6
# Description: Program which computes the sum and product of two numbers entered by the user.
print("Please enter your score")
score = int(input("score: "))
if score < 0:
print("ERROR. Please enter a score between 0 and 100")
elif ... | [
"noreply@github.com"
] | brandoni27.noreply@github.com |
63cf41744528735b8ce635cd20d67ea167667d91 | f06f4bbaafbc672ec3f369038936e4dd7ad7c977 | /kresto/data.py | 2d717a1fafcf4dddcf57ea79c129d72deb4d23ac | [] | no_license | euphoris/kresto | 898fd3d56e35956a4977b450928f0725fe7250a9 | 0a4253aeb87010bd613dd9f8c455ee33e856959d | refs/heads/master | 2020-05-19T10:31:48.532303 | 2014-01-20T14:54:32 | 2014-01-20T14:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | from cStringIO import StringIO
import os
import zipfile
import html2text
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.pdfpage import PDFPage
from .corpus import Corpus
def load_corpus(path):
... | [
"euphoris@gmail.com"
] | euphoris@gmail.com |
34388cc7991e265a2d2a7205564eea29555d92d6 | b8078e923e942744af03cec354efda40fc004eb5 | /leapyr.py | c246390d82c88af57fad573dd87440a2679f5901 | [] | no_license | sarathkumarselvam/sarathkumar-s | 1019c4d6742597fea73304403dc17ec39471b597 | 83fe47bd51f4026a63cf4d523c0876ed93f5a487 | refs/heads/master | 2020-05-27T20:17:50.053735 | 2019-06-18T06:01:58 | 2019-06-18T06:01:58 | 188,776,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | year =2020
if(year%4==0):
if(year%100==0):
if(year%400==0):
print("{0} leap year".format(year))
else:
print(" {0} not ".format(year))
else:
print(" {0} leap year".format(year))
else:
print(" {0} not ".format(year))
| [
"noreply@github.com"
] | sarathkumarselvam.noreply@github.com |
538993cfd91beecc42fc208fc0c19cbd03b0c868 | 088d9d76d696f26d0f0bbe8f9d1ee0acc8757356 | /dartsharp/transpiler.py | 44b3a37abfa4838e4ec0aeb3d3ef54a1788908a8 | [
"MIT"
] | permissive | yczhangsjtu/DartSharp | c1b15ee8b0db1556421c69bbc5bb70cad581b714 | f25171e1a9c7b462f4f6b931fe1785ebf7adf333 | refs/heads/master | 2021-01-04T18:56:05.180777 | 2020-06-09T00:06:35 | 2020-06-09T00:06:35 | 240,718,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,762 | py | from dart.function import FunctionLocator, ConstructorLocator, VariableDeclareLocator,\
FunctionalParameterItemElement
from dart.expression import DartListElement, FunctionInvocationElement, DoubleDotElement,\
is_capitalized, AssignmentElement
from dart.classes import ClassLocator, GetterLocator
from dart.globals i... | [
"yczhangsjtu@gmail.com"
] | yczhangsjtu@gmail.com |
e7573159e65752f462dbbbfb65d3985f11302c75 | 2ef39fbd5563f0bb7fd8f23126271c08dd150a34 | /conanfile.py | a64e1e02e47b08443b1952726e6e6193997b22ec | [
"Unlicense"
] | permissive | trondhe/cmake_template | 600a57b46379b870c4c639e2051971817f47b391 | 3da9f35eddd33bd3dfb30801d0c297b04470c6ff | refs/heads/master | 2021-06-20T00:21:54.561059 | 2021-03-04T14:50:28 | 2021-03-04T14:50:28 | 193,145,505 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | from conans import ConanFile, CMake, tools
class ConanRecipe(ConanFile):
name = "cmake_template"
version = "0.0.1"
build_requires = "doctest/2.3.8"
settings = "os", "compiler", "build_type", "arch"
generators = "cmake_paths"
scm = {
"type": "git",
"url": "https://github.com/tro... | [
"trondhe@gmail.com"
] | trondhe@gmail.com |
68913152d5b97da002f080df76762c68465c39b6 | d5214b1331c9dae59d95ba5b3aa3e9f449ad6695 | /quintagroup.portletmanager.footer/tags/0.1/quintagroup/portletmanager/footer/interfaces.py | 4d27adc4144d611762c6bb453a6342a6cfbfc063 | [] | no_license | kroman0/products | 1661ee25a224c4b5f172f98110944f56136c77cf | f359bb64db22f468db5d1e411638790e94d535a2 | refs/heads/master | 2021-01-10T07:58:04.579234 | 2014-06-11T12:05:56 | 2014-06-11T12:05:56 | 52,677,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from plone.portlets.interfaces import IPortletManager
#from plone.app.portlets.interfaces import IColumn
class IFooter(IPortletManager):
""" Portlet manager that is rendered in page footer
Register a portlet for IFooter if it is applicable to page footer.
"""
| [
"olha@4df3d6c7-0a05-0410-9bee-ae8b7a76f946"
] | olha@4df3d6c7-0a05-0410-9bee-ae8b7a76f946 |
bad2caa5dc65eb15a125293126cdd9ef6b32b2a1 | 815b4c2cca8cc1dc0be8bc1c7e89128e1bf2c6d6 | /xnr_0429/xnr/timed_python_files/fb_tw_trans_timer.py | 24e6fa8e066fc102cfad2eb6842da2a11a9333bf | [] | no_license | BingquLee/xnr1 | d60e1a6b07757564bf105fa31d36c8ddeb14992b | dc41ff4efc97c681fef002e4cb7ba58e149f7ff3 | refs/heads/master | 2020-03-20T04:13:18.728441 | 2018-06-09T06:50:59 | 2018-06-09T06:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess
#import os
import time
base_path = '/home/xnr1/xnr_0429/xnr/timed_python_files'
def test(index_pre, user_index, redis_task):
base_str = 'python /home/xnr1/xnr_0429/xnr/timed_python_files/fb_tw_trans_base.py -t ' + index_pre + ' -u ' + user_index + ' -... | [
"dayuanhuiru@163.com"
] | dayuanhuiru@163.com |
3a0a7b1b54fe3bc56854a04230ad020df1409104 | c429f611b3129bcbb0be8ae8b0e92aa1376eadeb | /python/losses.py | c7729d87a17a2391280bff973e06424b058a2d70 | [
"Apache-2.0"
] | permissive | mahmoudnafifi/ffcc | eda7ffacbc3de5fbc29dae0dac0a8d6f6160e9a0 | c52b225082327ea34bed80357dbff004fc9926ba | refs/heads/master | 2022-12-13T03:18:51.416191 | 2020-08-20T01:06:20 | 2020-08-20T01:06:20 | 284,583,995 | 1 | 0 | Apache-2.0 | 2020-08-20T01:06:22 | 2020-08-03T02:25:32 | MATLAB | UTF-8 | Python | false | false | 12,511 | py | # 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"fbleibel@google.com"
] | fbleibel@google.com |
7d517f5071579ffb986776d0c0cfd895cedd02aa | fd01bc8c5612bd2ede5d6c24de2fbf8efb51b378 | /trees/avl.py | 8ff32ad9e19ea0a4ff46c33626e5217923af46b0 | [] | no_license | mageMerlin8/EDA_Tarea5 | 67353bb853abde5c54017f733ce417dcb7bfc257 | ca2da3c3b4043a9caf8689deaa765c0bcb8baf95 | refs/heads/master | 2020-03-29T17:53:28.133057 | 2018-10-04T16:12:27 | 2018-10-04T16:12:27 | 150,184,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,344 | py | from trees.bst import *
class NodeAVL(NodeB):
def __init__(self, nodo):
NodeB.__init__(self, nodo.dato, right=nodo.right, left=nodo.left)
self.fe = None
self.fe = self.getFE()
self.feChanged = True
def getFE(self):
if(self.right):
r = self.right.getHeight()
... | [
"emilio.1997@gmail.com"
] | emilio.1997@gmail.com |
b0654c2a2d79501a23167110aa08c91d2f74bc55 | ff99c677aba11e27c252f773b52cd54f5de79279 | /ctt-server/openapi_server/models/test_artifact.py | eb26e77d966f8b9e136f61f7fd8c85e4776ebb27 | [
"Apache-2.0"
] | permissive | radon-h2020/radon-ctt | b7eeb82f59e36e2a258d0a2ba9cd9483eb3dd247 | 97fcf5e800a0129d24e119b430d94f07ca248ba9 | refs/heads/master | 2023-01-04T23:44:49.611599 | 2021-09-15T15:34:41 | 2021-09-15T15:34:41 | 235,379,642 | 0 | 7 | Apache-2.0 | 2022-12-27T15:56:38 | 2020-01-21T15:48:45 | Python | UTF-8 | Python | false | false | 5,920 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server import util
class TestArtifact(Model):
"""NOTE: This class is auto generated by OpenAPI Ge... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
5ca72c6c700407fd220a82ddff1badf68a2fed1c | d06f858599b9ba34dbaf376275188c3cd90ccd79 | /ex1b_logreg.py | ae8e9304d414eaa4992d08576e4eb502a77df208 | [] | no_license | pprivulet/UFLDL | 950eaf3dc683e4d426475491d746c93830d85ee8 | 0725c1badd41d45e16a1a48e4b15496530775c08 | refs/heads/master | 2021-01-21T16:52:44.120723 | 2016-02-24T01:51:08 | 2016-02-24T01:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | from scipy.optimize import fmin_cg
import numpy as np
from load_mnist import *
def sigmoid(z):
return 1.0 / (1 + np.power(np.e, -z))
def gradient(theta, X, y):
m = X.shape[0]
h = sigmoid(X.dot(theta.T)).reshape(m, 1)
errors = 1.0/m * (h - y).reshape(m, 1)
g = X.T.dot(errors)
return np.ndarra... | [
"mehrshad.shams@gmail.com"
] | mehrshad.shams@gmail.com |
c0a784d30dad0c513d92a9c68106968303511b43 | 25bfbef581c596efc5e4fa45e00302226c7d4174 | /Baek_2231.py | 8a6bcca2fceae73b83ab6205537d8afacd37ac0f | [] | no_license | rukipgus/Algorithm | 1077afee5d829d0db46dd14ee40b42ca175d1922 | 30faa2f2ee62dc5a5c8a3e3c0ebfb67f09c10bbd | refs/heads/master | 2020-07-30T04:10:54.313824 | 2020-05-21T05:08:26 | 2020-05-21T05:08:26 | 210,080,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | a = int(input())
b = 0
for i in range(a):
if sum(map(int, list(str(i))))+i == a:
b = i
break
print(b) | [
"noreply@github.com"
] | rukipgus.noreply@github.com |
55172d74274a5029a46af2e63ad7bc84ef53715a | d2bd1931ae47ded0ee016446aa1a7cfd8bd8c2ca | /examples/async_reconnecting_ssl_client.py | 466e7e09da8cc61a2197f49c2c2d73241e855424 | [
"BSD-2-Clause"
] | permissive | odidev/pycapnp | b16cfb1e5add27a2cbfda887eaf04185830a9c43 | 6aa59476a021cef601b0a7193a8bc7573aad31c0 | refs/heads/master | 2023-07-13T03:30:16.545614 | 2021-06-08T04:30:48 | 2021-06-08T04:30:48 | 399,744,596 | 0 | 0 | BSD-2-Clause | 2021-08-25T10:34:18 | 2021-08-25T08:25:25 | null | UTF-8 | Python | false | false | 4,743 | py | #!/usr/bin/env python3
import asyncio
import argparse
import os
import time
import socket
import ssl
import capnp
import thread_capnp
this_dir = os.path.dirname(os.path.abspath(__file__))
capnp.remove_event_loop()
capnp.create_event_loop(threaded=True)
def parse_args():
parser = argparse.ArgumentParser(usage=... | [
"haata@kiibohd.com"
] | haata@kiibohd.com |
2e46ca438c5563c30626e67f49c017cbe8470086 | e6946ee7772172aad21a0d9e4e2c62f995a5255f | /Main.py | 4cb81577230792f650c39a1370b4054ae2639a6a | [] | no_license | YuvarajParimalam/Leedscale-Automation | 242db57e7a76013718cd2027c89cc095cd724fe1 | 3c9991415008d00097c1f1e5637d012cabf76383 | refs/heads/master | 2023-07-10T14:02:24.816523 | 2021-08-16T02:35:09 | 2021-08-16T02:35:09 | 376,780,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import configparser, os
from Scripts.Lolagroove import Lolagroove
from Scripts.Lead_Processor import Lead_Scraper
from Scripts.Campaign_update import Lead_Update
config = configparser.RawConfigParser()
configFilePath=os.path.join(os.getcwd(),'config.ini')
config.read(configFilePath)
CampaignName=config.get('Lolagroov... | [
"yraj3224@gmail.com"
] | yraj3224@gmail.com |
2d661f3c74df52da90897d2e5452fbd1684e8bd0 | 6c1e361d39444d50e3e0b69bcc28edc6cd770744 | /tango_with_django_project/rango/migrations/0007_userprofile.py | 5315d0185fee73317cd1ccdf80d7a65c99dd2a80 | [] | no_license | CoffeeDrinker-22302/WAD2 | 40e3d7a04e8cd2a3b5220fbc70e187cad9421acb | b233a468de121123a3efb1adb0f07c05dcf980f4 | refs/heads/master | 2021-01-11T21:13:26.410625 | 2017-02-09T21:47:09 | 2017-02-09T21:47:09 | 79,270,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-06 19:27
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"2301714T@student.gla.ac.uk"
] | 2301714T@student.gla.ac.uk |
186c8a6037e77f28642555ead4bdde0ddb084806 | f6dc02306dc3bce551325dd6c23d256b2d491323 | /flask/server.py | e1fbc75f04316242e6691bbd6f4ddf9ef492ba24 | [] | no_license | fndjjx/interesting | 47217f8a3410c5678b6cddf6df887d7c3e6e288d | 85ff2c8905fc4e88ddeadf4b117fd7225988ffce | refs/heads/master | 2021-01-17T14:41:44.634772 | 2017-03-29T08:07:18 | 2017-03-29T08:07:18 | 55,332,482 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from flask import Flask, render_template
from flask.ext.bootstrap import Bootstrap
app = Flask(__name__)
bootstrap = Bootstrap(app)
@app.route("/<name>")
def index(name):
#return '<h>Hello world!</h>'
return render_template('index3.html')
if __name__ == "__main__":
app.run(host='192.168.56.101')
| [
"yi.lei@unidt.com"
] | yi.lei@unidt.com |
b9071b7473d0802dc1743dd7203c33543df399ac | eb479fcf4486dc88d43253cad4f041531130b1f2 | /main.py | 0c800970affb21d7876cb3f3f9682e14bda448c7 | [] | no_license | stephaniecallejas/Lab-4 | 147dc1efb8c3b7936d8399aa9767cc6378f66004 | ff5a2b0554678f93567c6ec556e0fff16e8791f6 | refs/heads/master | 2020-04-06T08:19:37.107582 | 2018-11-28T17:22:39 | 2018-11-28T17:22:39 | 157,301,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # Coded by Stephanie Callejas
# Last Edit: 12 Nov 2018
# CS2302 Lab 4 B Project
# Instructors: Diego Aguirre and Saha, Manoj Pravakar
# Goal: Determine if a given anagram is a valid word in the english language using hash tables
from chaininghashtable import ChainingHashTable
# f is used to populate the tree with the ... | [
"scallejas2@miners.utep.edu"
] | scallejas2@miners.utep.edu |
9e659d3dac0f1d116cf3bf103dea84c8451b82e1 | 6bdccbb5c387629078dba012f0bf325848631916 | /a1_classes.py | 995bc6cff683a2d41862aaefb23a987aaf3af6f4 | [] | no_license | jc527847/A2 | 97716d7be8445d5053b888f7609e0652e90cb092 | 9e514481c005e4d93a7a2035aa23cfc44be79975 | refs/heads/master | 2022-12-21T11:00:06.142266 | 2020-09-27T12:28:58 | 2020-09-27T12:28:58 | 299,025,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | from placecollection import PlaceCollection
MENU_STRING = "\nL - List places\nA - Add new place\nM - Mark a place as visited\nQ - Quit\n"
place_collection = PlaceCollection()
def main():
place_collection.load_places()
print("Places To Visit 1.0 - by <Chen chen>")
menu()
def place_list():
... | [
"noreply@github.com"
] | jc527847.noreply@github.com |
9238735c616b761d46ddac069fc56687c03ed507 | 26de9d17042ff75b46c041ee3000fb29aed19197 | /ITinformation/apps/job/migrations/0004_auto_20200320_1719.py | dd3d3ea0f520634a1a4dcf4fd0c3d0f7a5e5e9f0 | [] | no_license | cdlsy/ITinfo | b8ba9c28c4435474184f085942d3be54d5c9c00e | 22bc7374ebec85e952378f213806ca90874396a5 | refs/heads/master | 2021-05-21T16:43:38.571020 | 2020-04-03T12:24:43 | 2020-04-03T12:24:43 | 252,721,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | # Generated by Django 2.2 on 2020-03-20 09:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('job', '0003_auto_20200320_1702'),
]
operations = [
migrations.AddField(
model_name='jobssku',
name='fromsite',
... | [
"962082877@qq.com"
] | 962082877@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.