blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba3fa88b6a2b401c8ad9cba50fff6ed7e0e78f72 | 1444d4164a00048d7909f0d398b2b40f6a0e83cf | /base/forms.py | 7fec7e694d6bd6b5a346be818bdeb977cdd0074c | [] | no_license | kaliqwang/temp-project | a4ff733c9d878b2db71ac91c143728ef64c401d3 | 2202019b310fd1d252ba19910d39fc66a6805f59 | refs/heads/master | 2021-01-15T08:05:49.917076 | 2016-09-12T01:46:25 | 2016-09-12T01:46:25 | 62,323,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django import forms
from categories.models import *
category_form_field = forms.ModelChoiceField(required=False, queryset=Category.objects.all(), empty_label='General (default)', widget=forms.Select(attrs={'class': 'form-control'}))
| [
"kaliqwang@yahoo.com"
] | kaliqwang@yahoo.com |
c37e80edfe6457d891f7033eb84a80f4921c502d | 1b3f5baa3e68efb9759ff0d275a6579315a46db5 | /code/Sina_spider3/Sina_spider3/scrapy_redis/dupefilter.py | 69be3b1a0cba86db42cb548f8602aa6491266e5f | [] | no_license | udengcnf/caonong | 8dd9fdf260a633fddfc1c023fe0f4d53c6da0715 | ab955a25b2412d37200da7cb397b7c3a49ee5d82 | refs/heads/master | 2022-12-12T08:52:28.267050 | 2018-10-09T08:08:12 | 2018-10-09T08:08:12 | 152,211,242 | 0 | 1 | null | 2022-12-08T00:48:19 | 2018-10-09T07:57:40 | Python | UTF-8 | Python | false | false | 1,492 | py | import time
import re
from scrapy.dupefilters import BaseDupeFilter
from . import connection
class RFPDupeFilter(BaseDupeFilter):
"""Redis-based request duplication filter"""
def __init__(self, server, key):
"""Initialize duplication filter
Parameters
----------
server : Re... | [
"udengcnf@163.com"
] | udengcnf@163.com |
9dbce5a205715864fe1a7c7716aa7609d6d60015 | ee9c71b8d2fcd5c2e5e43e4b43b52660a3a86f0d | /tests/test_service/test_models.py | 4b6b7439ccbc130041d1dbd4a4b0d3bbc7df3d8f | [] | no_license | amenegola/via-challenge | adc0b716044933ceaa68975fc25c34a494c60d6b | 28cb6965ece35b0590df4dfc7ea079747b8cfad2 | refs/heads/master | 2023-04-05T03:08:26.119080 | 2021-04-26T01:55:44 | 2021-04-26T01:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py |
import pytest
from app.models.payload import PredictionPayload
from app.models.prediction import PredictionResult
from app.services.models import IrisModel
def test_prediction(test_client) -> None:
hpp = PredictionPayload.parse_obj({
"sepal_length": 5.1,
"sepal_width": 3.5,
"petal_length... | [
"afonsomenegola@gmail.com"
] | afonsomenegola@gmail.com |
063580b8ea1f404affc36ba54723626f0fb970b9 | e1249dd27d7bd6c60540247f905408a0fb4978b3 | /news/tests.py | d1787c110f86b2d38b5ca930248acb2529904b47 | [] | no_license | Kibet1816/Mtribune | fd6426047abbb80c76902fd3127fd42f2505cf7f | c01e96a9b4a191efaf649fa0fd415c77c08918f2 | refs/heads/master | 2021-09-09T15:50:51.465564 | 2019-07-19T06:09:28 | 2019-07-19T06:09:28 | 197,712,168 | 0 | 0 | null | 2021-09-08T01:08:16 | 2019-07-19T06:08:18 | Python | UTF-8 | Python | false | false | 1,991 | py | import datetime as dt
from django.test import TestCase
from .models import Editor, Article, tags
# Create your tests here.
class EditorTestClass(TestCase):
"""
Test class for the editor model class
"""
def setUp(self):
"""
Creates instance of Editor module before each test
""... | [
"kibet1816@gmail.com"
] | kibet1816@gmail.com |
c0c816ccd585d12a4a4cdc8bb717b7b915727bee | 39c872f5a3bc6d4854cc551bb63b28ce9dfc4343 | /week8/informatics/4/d.py | 93e1183add93195361b424d5ef0e5e47e1f37321 | [] | no_license | Torebekov/Web | d7110b9f4955650e1261bb75286167d68e3382d1 | 5b6a5ce573554de4998e3337d23aef99f41bf88f | refs/heads/master | 2021-04-07T15:23:52.905545 | 2020-04-09T17:43:45 | 2020-04-09T17:43:45 | 248,686,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | n = int(input())
arr = list(map(int, input().split()))
cnt = 0
for i in range(0,n-1):
if (arr[i+1] > arr[i]):
cnt += 1
print(cnt) | [
"Torebek.arman14@gmail.com"
] | Torebek.arman14@gmail.com |
ce91687d35a53c3509f9896e895a9ad39d8ed9c7 | 17bb12cfab49f1890d1a64b1fe9281523d588931 | /lib/python2.7/site-packages/django/test/simple.py | cca4319a3dba5e1d44fe74cee23da5d9ddb5614a | [] | no_license | jagsgill/319-server | 7515f629a3f7f8b633e25c881a7fdab7fc898c06 | 368d840aa0d28b861d2e9a6fad1abf25e2121124 | refs/heads/master | 2021-01-21T03:38:59.763685 | 2016-05-27T06:06:18 | 2016-05-27T06:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,969 | py | import unittest as real_unittest
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db.models import get_app, get_apps
from django.test import _doctest as doctest
from django.test.utils import setup_test_environment, teardown_test_environment
from django.test.testcases... | [
"eliasjf@britecontent.com"
] | eliasjf@britecontent.com |
7bbf39d1e8473191af66738cca5df93645bda953 | 5233e3750f6780c4223b59f69652fe126719b44c | /tests/test_utils/perf/scheduler_dag_execution_timing.py | 0998a979497fa74e49ad40d3b73e946a66a51958 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | wojsamjan/airflow | 4cbbf534609cd3f8e000e56adff3ed95e37e0941 | 2938acd817561c79674ca333b83ee1972248df98 | refs/heads/main | 2023-07-20T02:13:34.748062 | 2021-08-04T13:44:06 | 2021-08-04T13:44:06 | 389,624,894 | 2 | 0 | Apache-2.0 | 2021-07-26T12:29:22 | 2021-07-26T12:29:22 | null | UTF-8 | Python | false | false | 10,987 | py | #!/usr/bin/env python3
# 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 licenses this file
# to you under the Apache License, Version 2.0 (the
# "L... | [
"noreply@github.com"
] | noreply@github.com |
28a679d2bbcfff95fd757e00e51007662facaf2b | d5a1e7287dac6ca08805668f43b94ed2894cb429 | /venv/wal_steam/bin/symilar | b0402d79ee9922bb28ab89d8dd4c95c79b60ce59 | [
"MIT"
] | permissive | codysork/wal-steam | 0268cbe6e68af0486542d78ab929a0efc895f596 | deafd81fafdb0e4f2f03a18bc596d172f8ffd3bf | refs/heads/master | 2022-04-11T21:39:31.768861 | 2020-04-11T05:03:18 | 2020-04-11T05:03:18 | 254,550,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/cody/Code/active_projects/wal_steam/venv/wal_steam/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"codysork@tutanota.com"
] | codysork@tutanota.com | |
3ddcb05e08a3005dc4531a8c18cde61f46d65228 | 54328dddfad0d1d6f10b83a7a103fceef1fa20f3 | /examples/4_write_smart_contracts.py | a80e04a3823029d6f861cb050936886c2edc62d8 | [] | no_license | fengjianli007/learn-web3.py | 34104aa869bbb8adce81e977ff778a0565520126 | d989d5119831e41bc79598e021dce462b67edf5b | refs/heads/main | 2023-03-18T09:52:48.132882 | 2021-02-01T09:51:09 | 2021-02-01T09:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | import json
from web3 import Web3
# Set up web3 connection with Ganache
ganache_url = "http://127.0.0.1:7545"
web3 = Web3(Web3.HTTPProvider(ganache_url))
# TODO: Deploy the Greeter contract to Ganache with remix.ethereum.org
# Set a default account to sign transactions - this account is unlocked with Ganach... | [
"noreply@github.com"
] | noreply@github.com |
0e3f366f9b2f023474aa0f26b034f046a6e738bd | 4ade37d929b07b1eea07337b9cc843661a66e6d0 | /trails/feeds/nothink.py | f40ae15122ffc7c0e6f962eac4765945bd5dded1 | [
"MIT"
] | permissive | Dm2333/maltrail | bade5c99583b99f4ad1128aef295e95c977d82b1 | 2f32e0c3ff65544fc07ad3787d4d9b210f975b85 | refs/heads/master | 2021-04-12T10:44:25.125653 | 2018-03-20T11:50:40 | 2018-03-20T11:50:40 | 126,193,051 | 1 | 0 | MIT | 2018-03-21T14:40:05 | 2018-03-21T14:40:03 | Python | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
"""
Copyright (c) 2014-2018 Miroslav Stampar (@stamparm)
See the file 'LICENSE' for copying permission
"""
from core.common import retrieve_content
__url__ = "http://www.nothink.org/blacklist/blacklist_malware_irc.txt"
__check__ = "Malware IRC"
__info__ = "potential malware site"
__reference__ ... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
04b84eff2004079efaec07d2daa7735e3fc45d0f | 0239d5a1d32807766740c0e80c098660d944b8ab | /support_functions.py | 975ab1aee0c230ab749d12a90adeba1eb610f1e4 | [] | no_license | etzimopoulos/Job-descriptions-topic-modelling-using-NLP | c4d46ca7b00abb040b0471740bc6e6a863f6dbfc | ae30c0b0251ec66656fd317d6b7446fa3a766e87 | refs/heads/master | 2023-02-11T21:20:02.752507 | 2021-01-07T05:33:28 | 2021-01-07T05:33:28 | 303,058,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,264 | py | import re
import pandas as pd
import spacy
from io import StringIO
from html.parser import HTMLParser
# Function to extract "e-mail" from dataframe column
# Input:
# * Dataframe "df"
# * Column "df_column" to extract e-mail from
# Output: Enriched dataframe with addional column labelled "Email"
def extract... | [
"etzimopoulos@DESKTOP-HI9P6E4.localdomain"
] | etzimopoulos@DESKTOP-HI9P6E4.localdomain |
5b9c711cc45e6a97a52a2ff2383cc9df5707e3b5 | 00a3db4204f764b2d4e49867b198c0203b3e7732 | /retrain.py | 92607ee0fcd71fdcd712efb583ebf9aff10cb6a7 | [] | no_license | Madhavraob/tensorflow | 555397b7146753234299c26654156e2e99c7f47e | 6b37014ceeb7e1bd025f2fa6c162b4dd9597e859 | refs/heads/master | 2020-03-20T05:55:16.610336 | 2018-06-24T04:15:36 | 2018-06-24T04:15:36 | 137,231,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,284 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"madhavrao039@gmail.com"
] | madhavrao039@gmail.com |
9e3734912b799939a9397bacbaef09fc026224bd | 6d59cfe648a1aa4bfcb6deffad161e0c91a2e018 | /python/fibonacci.py | fe8f7ce85408c0c9ce137ba168869288c9d0e350 | [] | no_license | jclane/beginner-project-solutions | cf0b3c823c0748d15d288e97325deb6aceecb649 | bbf714dc5656d26653facfdfad14d2f878f9e71a | refs/heads/master | 2022-08-27T02:17:35.467041 | 2021-10-21T20:39:45 | 2021-10-21T20:39:45 | 144,029,894 | 2 | 5 | null | 2022-08-19T09:40:38 | 2018-08-08T15:01:25 | Python | UTF-8 | Python | false | false | 985 | py | import sys
def loop_fibonacci(n):
sequence = []
count = n
num1 = 0
num2 = 1
i = 1;
while (i < count):
result = num1 + num2
num1 = num2
num2 = result
sequence.append(result)
i += 1
return sequence[-1]
def recursive_fibonacci(n):
if (n < 2):
... | [
"justin@justinlane.me"
] | justin@justinlane.me |
9733520e6f04dfdc874e0b809d31c3aa548e2f2e | 65d78065d21d82e66df6fedfb059bef60b3eadb0 | /get-transcript/run-get-transcript.py | 75f4cb5a742d8cf4b88f0d379e5c525607805afc | [] | no_license | jamie7533/OkZoomer-Transcript | a3e404270024a8b6ce626c55bcb5e53f20d64f70 | dd56cd0ccea7c945f05c17c2b62675eedfdc5eb1 | refs/heads/main | 2023-01-22T06:24:32.080244 | 2020-12-05T14:09:31 | 2020-12-05T14:09:31 | 310,171,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import get_transcript as gt
# steps before running:
# 1) run localhost:8080 server
# 2) zoom.us/oauth/token?response_type=code&client_id=FEc1Rq0JTi2MFfHNH94DgA&redirect_uri=http://localhost:8080
# 3) make sure id, key, secret, and code all correct
# example meetingIDs: 92023192477 (07/31 Chemistry Expo, unreachable),... | [
"lee.jamie.july@gmail.com"
] | lee.jamie.july@gmail.com |
42d8d8a5983a916bfb5a4b569ba7a0f5a573d60e | 825c04efbe29987a572d93ae58674c4a4d9eff02 | /hack_chat_related/test.py | 193160bee9cb1e4a2e669a2ea3e4cbd203b9a848 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | Cynthia7979/tools-programs | ba969e6a93e9d2648d99ad059a924d242444889f | 2ede956cdc141009e998aff73741751b0af82166 | refs/heads/main | 2023-08-17T22:53:34.937503 | 2023-08-15T03:54:13 | 2023-08-15T03:54:13 | 131,550,964 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | import hackchat
import re
import random
def try_reply(chat, message, sender):
print(f'{message} ~{sender}')
if message == '/help':
chat.send_message('Unknown command. Type "/help" for help.')
if message.lower() == '@helpbot mod me' and '@HelpBot' in message:
chat._send_packet({'c... | [
"CynthiaWang7979@hotmail.com"
] | CynthiaWang7979@hotmail.com |
95e6efc21f874e8cbb14105844d0c4e9889e9913 | 87633b2791a1f6993f9889da0e3aef3d87515bd8 | /wallet/models.py | 40996486017d49a70ef2c6f92e5e3169e9373f33 | [] | no_license | skhemka/myWallet | ab9d0ac9a4b363f80f74dcd587b8fc87cd07563e | 79fa4c0e73e72d8c4b9160161e31ada33abf9038 | refs/heads/master | 2021-01-18T13:58:55.009681 | 2014-10-23T04:05:59 | 2014-10-23T04:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | from django.db import models
# Create your models here.
class Wallet(models.Model):
#style has unique id
style = models.AutoField(primary_key=True,unique=True)
#name is a string
name = models.CharField(max_length=20)
#creating a tuple of sizes
SIZES = (
('Tiny', 'Tiny'),
('Nor... | [
"skhemka@cmu.edu"
] | skhemka@cmu.edu |
c8405e6db823f6caa4f4fa53b1e56b1d815544a4 | 7185c84a4f05b00b57306a7284a86f9a2e55bfbf | /tests/test_trade.py | 1fa4f1384c441ab98ef36092bbec452d8ceb1dca | [
"BSD-3-Clause"
] | permissive | namdori61/epymetheus | 39cbdfa99f73876561fe24cddf16ed8aade153b6 | 3df4409449d2990a28984880771cbbcbd90f32b1 | refs/heads/main | 2023-06-03T20:48:25.411104 | 2021-06-26T02:34:38 | 2021-06-26T02:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,670 | py | from tabnanny import check
import numpy as np
import pandas as pd
import pytest
from epymetheus import Trade
from epymetheus import trade
from epymetheus.benchmarks import RandomStrategy
from epymetheus.datasets import make_randomwalk
from epymetheus.trade import check_trade
class TestTrade:
# handmade univers... | [
"noreply@github.com"
] | noreply@github.com |
a02f2f0bfd5d5ad48cdb800b64fc936725445b41 | a463913fa1d9e4dc307bc324b9b326f022bb3d04 | /setup.py | 2cf0569c81a94a08301c8453e1da0cd1b83a9709 | [
"Apache-2.0"
] | permissive | ognibit/sudoku-solver | a9ae832443017cba09ccf95676de2b492f9263a3 | 1c47b80b36b4bd57a11a4084e04defd849531782 | refs/heads/master | 2022-07-11T03:26:12.115835 | 2019-08-21T13:24:39 | 2019-08-21T13:24:39 | 203,585,842 | 0 | 0 | Apache-2.0 | 2022-06-21T22:35:46 | 2019-08-21T13:04:41 | Python | UTF-8 | Python | false | false | 239 | py | from setuptools import find_packages, setup
setup(
name='sudoku',
version='0.1',
description='Sudoku resolver',
author='Omar Rampado',
author_email='omar@ognibit.it',
package_dir={'': 'src'},
packages=find_packages(where='src'),
) | [
"rampado.omar@gmail.com"
] | rampado.omar@gmail.com |
5a7763b78d952b82ede1266770bbc6d491f04581 | 9095c97832eb826596f45f15e0212e37632eb99b | /cogs/destiny.py | 61fe3b2690a637287aefa10f27b66710bd8d6f95 | [
"MIT"
] | permissive | jgayfer/spirit | 87f6b0d9a64d5774be7d63e3b2b41440f3a9bc57 | 024bc60727f92fb742daf0d28a3465a56820a7c0 | refs/heads/master | 2021-08-18T16:07:56.156560 | 2020-03-12T17:18:02 | 2020-06-30T23:46:11 | 97,080,410 | 37 | 26 | MIT | 2020-06-30T23:46:13 | 2017-07-13T04:37:20 | Python | UTF-8 | Python | false | false | 2,049 | py | from datetime import datetime
import asyncio
from discord.ext import commands
import discord
import pydest
from cogs.utils.message_manager import MessageManager
from cogs.utils import constants
class Destiny:
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.cooldown(rate=... | [
"gayfer.james@gmail.com"
] | gayfer.james@gmail.com |
314a9d16b72183371e44376024ab7a29a3ee36ef | 9ec244e57b023e2515ca94768d1581f950c6b4c3 | /Course_3/extracting_from_json.py | 2d1e0bacabd67646d2fc8c0d4400d48b828089eb | [] | no_license | pstatonvt/python | 5e73d56d641dec7b1990645cf3a33ee25dc4c5ba | 5c33c9bf0444e46e3a668b905313e9563dab50f0 | refs/heads/master | 2018-11-11T09:49:58.927745 | 2018-04-05T02:28:02 | 2018-04-05T02:28:02 | 119,099,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | '''
Read the JSON data from that URL using urllib and then parse and extract the comment counts from the JSON data, compute the sum of the numbers in the file and enter the sum below:
'''
import urllib.request, urllib.parse, urllib.error
import json
url = 'http://py4e-data.dr-chuck.net/comments_72209.json'
print("Loc... | [
"30532152+pstatonvt@users.noreply.github.com"
] | 30532152+pstatonvt@users.noreply.github.com |
6c36391267af20d2d0df7f255c2d1d4f98c496d0 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003650.py | 2809c442b3ba17c08e9f9aa9bc7b006e27b8a3e8 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
a4df1412e80429c8ca05612b28da392af78863c4 | 06fa1aefc051ee0d6c325afef13dfcc14e52c6e4 | /ulmo/runs/SSL/MODIS/v2/ssl_modis_v2.py | 26d4899ae5c17be07d9a144ad971c07e06b78342 | [] | no_license | cxzhangqi/ulmo | 98e7b2783720b13f0e31a8bdf6ae70ab2a217bc7 | c1c570e75332243b8a2a16a8d6c68544e1ba02cd | refs/heads/main | 2023-06-30T19:15:04.279986 | 2021-07-31T19:45:51 | 2021-07-31T19:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,898 | py | """ Module for Ulmo analysis on VIIRS 2013"""
import os
import numpy as np
import time
import h5py
import numpy as np
from tqdm.auto import trange
import argparse
import h5py
import umap
from ulmo import io as ulmo_io
from ulmo.utils import catalog as cat_utils
from ulmo.ssl import analysis as ssl_analysis
from ul... | [
"xavier@ucolick.org"
] | xavier@ucolick.org |
a72f0bb734f78996b6c8a0a8578a918645788692 | 25753fa4df2ef0137d579aa57a3e5a94dc0208ec | /hw2/hw2plots.py | 0ed6d58f2f45d3ceeceaae79133be80d8aa47416 | [] | no_license | yunqingjia/ae4132 | 9b37145c4bfda051890a9ec0e6b4adc5480627a9 | a6ffa4178d18dbb3ce6ce626432da9df83ed1a3f | refs/heads/main | 2023-04-14T06:44:47.178260 | 2021-04-15T22:15:36 | 2021-04-15T22:15:36 | 339,821,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,793 | py | '''
Spring 2021 AE 4132 HW2
author: yjia67
last updated: 02-24-2021
'''
import numpy as np
import matplotlib.pyplot as plt
class FEAHW2():
def __init__(self):
pass
# Problem 1.4
def p1_4(self, x):
# Define the input parameters for the specific case
P = 400 # N
q = 100 # N/... | [
"yjia16@outlook.com"
] | yjia16@outlook.com |
fdf4b28c90591a0e42da76b3766885884aa09407 | 2c3944f909009446547c3c11c01bcee71ecc6813 | /nova/virt/driver.py | 34dc5f544cbe20d640282bc338774d79ed69ed92 | [
"Apache-2.0"
] | permissive | prathyu1/openstack-nova | f5a5eb3ca8c120f1e70d6af90d48f4c80f666817 | 7551d299d331fe5eddf1691c4cdd030710e945b3 | refs/heads/master | 2020-12-24T13:08:01.944193 | 2011-08-19T10:06:30 | 2011-08-19T10:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,041 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Justin Santa Barbara
# 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.apach... | [
"brad@nicira.com"
] | brad@nicira.com |
628c8032ad010e825f937c0191ed5e5aff74e426 | f2b4e7e228165ab0d3180e1b2fdebaa491814101 | /merge_sort_algo.py | 29e538fbbca300b6acd4056cd438b3ad7833a3df | [] | no_license | abhijith365/python-small-projects | a446f999d01cc441fd85734093fd88d30349c25e | d4bc8a867581d86bd70acc1192565266d4654ed6 | refs/heads/main | 2023-04-12T09:16:06.454703 | 2021-05-08T15:43:53 | 2021-05-08T15:43:53 | 353,774,236 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | def merge(list1, list2):
new_list = list()
a = 0
b = 0
while a < len(list1) and b < len(list2):
if list1[a] < list2[b]:
new_list.append(list1[a])
a += 1
else:
new_list.append(list2[b])
b += 1
while a < len(list1):
new_list.ap... | [
"noreply@github.com"
] | noreply@github.com |
a92c3d27cff1afd868912161f01af88540ff3aa4 | feafb15c0f6953cd1e6ac46ed7ea04bdb72cb545 | /prep.py | a79434a2f1cc3ad382668e323a49b9a0e3c9705d | [] | no_license | danielgildea/FFNN4POSTagging | 074dd1f6e29227702d1fc2e1a0f0ca83b1bee5df | c266663bb596e66ea20533e1b5392e8cb5f4f466 | refs/heads/master | 2021-07-25T03:31:10.421596 | 2017-11-07T17:03:09 | 2017-11-07T17:03:09 | 109,767,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py |
import os, sys, json
def gen_vocab(path):
vocab = {'#pad#':0, '<s>':1, '</s>':2, '<unk>':3, }
tags = {}
for line in open(path, 'rU'):
for i, x in enumerate(line.strip().split()):
if i == 0:
continue
elif i%2 == 1:
x = x.lower()
... | [
"noreply@github.com"
] | noreply@github.com |
7a7ac53b9fac6c2c985f1f6895ea8395a7a81456 | 66549903b5d456594cdf1bd8d6b2eb7d732d59e2 | /k_means/k_means_cluster.py | 44a2d5a8677d8bb78cc8af245bd43465f079af53 | [] | no_license | softsankar/ud120-projects-master | d17dcc1bfc94cd6953ff802d7abd08c1398e75a9 | 1394183396d8ecdb507629158c4c3198f6a84320 | refs/heads/master | 2021-05-12T03:04:44.990961 | 2018-01-16T00:40:08 | 2018-01-16T00:40:08 | 117,607,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,439 | py | #!/usr/bin/python
"""
Skeleton code for k-means clustering mini-project.
"""
import pickle
import numpy
import matplotlib.pyplot as plt
import sys
import math
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
def Draw(pred, features, poi, mark_poi=False, name="imag... | [
"sn6123@us.att.com"
] | sn6123@us.att.com |
8e28090f58f278acd4f9e0769f6ef83b18ffa38a | 6ef829a3294bb89d826ec1123bd53f9fe8d4bfbb | /logger/migrations/0001_initial.py | 3a0ef490382c02b142ab348a9670827a8f40c927 | [] | no_license | dynoto/iplogger-django | 7d8e826d2885b0386dbb2680b9b87348a48fc481 | 1f1c3046370f26cef6a3288dd07ee2f0838c9e0e | refs/heads/master | 2021-01-21T05:55:04.230329 | 2013-10-31T15:21:07 | 2013-10-31T15:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,496 | 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 model 'Peer'
db.create_table(u'logger_peer', (
(u'id', self.gf('django.db.models.fields... | [
"dynamic.dante@gmail.com"
] | dynamic.dante@gmail.com |
7b06d2e6bac8c5b2bf1173dada4466de94cc00f7 | 9d8721c19c55067d99fdd66e62bcb89a081fe7a3 | /Non-binary PS/step3.py | 12f50718e3365c610e1e1c22942f94d9c426ace2 | [] | no_license | GALI17/Non-Binary | a80b4b4ec9465bb1130e6351bbbdab867144e03a | 0426c2708168d2b47645fbf033e35c713f163d7b | refs/heads/master | 2020-05-25T13:38:59.485783 | 2019-05-21T12:04:54 | 2019-05-21T12:04:54 | 187,826,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | import os
import numpy as np
input_file = []
real_file = []
inputData = "G:\\KY2\\p\\"
realData = "G:\\python_demo\\res\\res_p\\"
all_real = []
def read_1(inp): # ok
path_dir = os.listdir(inp)
for allDir in path_dir:
child1 = os.path.join('%s%s' % (inp, allDir))
print(child1)
input... | [
"402152175@qq.com"
] | 402152175@qq.com |
d3a11910ed3fdea69de7c645452f9f813ff830b1 | 241fc4d8d2eb75eae0fa0bf2cd72a32f8ddfcfd7 | /terminal_monitoring/terminal/models/accesspoint.py | 979ff7b5b97f860440a3c730cb82463ec84d4613 | [] | no_license | armadarama/terminal_monitoring | 9c1174a6bcd3b6a731fdf973daf82139914869b1 | 0df300b96395d1ddeaf524d9215350bb2e11440d | refs/heads/master | 2021-01-21T15:13:37.074101 | 2017-06-23T09:43:36 | 2017-06-23T09:43:36 | 95,378,461 | 1 | 0 | null | 2017-06-25T18:33:15 | 2017-06-25T18:33:15 | null | UTF-8 | Python | false | false | 348 | py | from django.db import models
class Accesspoint(models.Model):
name = models.CharField(max_length=100, default ="", null=False, blank=False)
ip_adress = models.CharField(max_length=50, default ="", null=False, blank=False)
site = models.ForeignKey('Site', on_delete=models.CASCADE, null=True, blank=True)
def __str... | [
"noreply@github.com"
] | noreply@github.com |
9378d7d14ff7c7d642bdcdd49c810545cc6a1e2e | 71885763aa3fcad7ea183a712d01f8abe37825c1 | /testcasesFB.py | 94ae1c0e526df5cbabb38a2a98bcce45d26c91c2 | [] | no_license | rjchand07/Fb_Login_automation_selenium | 1339dd0e036108762c11d790afe63a227d1ffb16 | 0146b96a4b99400f17c52b986c1fef47575c1c74 | refs/heads/master | 2020-12-02T14:04:14.337108 | 2019-12-31T05:30:40 | 2019-12-31T05:30:40 | 231,031,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | from selenium import webdriver
import unittest
from pages.loginpage import LoginPage
from pages.logoutpage import HomePage
import HtmlTestRunner
class FB_Login(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.driver = webdriver.Chrome(executable_path="C:/Drivers/chromedriver_win32/c... | [
"noreply@github.com"
] | noreply@github.com |
0f785c69999e4751d3f76e4a4133d914656979c7 | 2918007c9002ce1ead3f076ff0cf2f91ab647963 | /work/utils/tiler/tiler_helpers.py | 70dece559ee7764027dbb0ef2a89d971a8ccabde | [] | no_license | MrMaksimize/geostack | 3fa7297585efa708fb5a3e1a38bc05220f0d3c7f | c0044575361a545d8e229d24fbf8c9c0f1b4ccc6 | refs/heads/master | 2021-09-04T10:17:05.858700 | 2018-01-17T22:43:52 | 2018-01-17T22:43:52 | 112,034,950 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | import os
import json
def check_environ_vars():
""" Make sure database environment variables are present """
## Check all environment variables are defined
env_vars = ['DB_NAME', 'DB_USER', 'DB_PORT', 'DB_HOST', 'DB_PASSWORD']
for env_var in env_vars:
if env_var not in os.environ:
... | [
"max@maksimize.com"
] | max@maksimize.com |
0dc314ba39b82b2b3583fde6190975d292d52f80 | 8d5b5acec80889f08584e3b7b0dcc86534420ccd | /tests/ArrayTest.py | 5f914d1f7a22c47b4455ffdaba239744ebc2143a | [
"MIT"
] | permissive | dpep/py_rekey | 5f4a460afa7ba2bcc87a466f9df313503d2cf3d8 | 99d2d7ffe1bdc68f583a504c9943e30bb3717d14 | refs/heads/master | 2023-02-09T02:57:57.831488 | 2023-01-31T23:12:09 | 2023-01-31T23:12:09 | 79,070,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | #!/usr/bin/env python
import os
import sys
import unittest
sys.path = [ os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) ] + sys.path
from rekey import rekey
class ArrayTest(unittest.TestCase):
def test_basic(self):
data = [
{'k': 'a', 'v': 2},
{'k': 'b', 'v': 4}... | [
"pepper.daniel@gmail.com"
] | pepper.daniel@gmail.com |
b8d7a99ad4e5d9a13b4ce30cd3d4f23c799f5ddd | 6e928e1651713f945c980bca6d6c02ac5dce249a | /task1/3.py | 7cd2b6493d849db45fc01607283f0cb988c3dd8e | [] | no_license | Akzhan12/pp2 | 97334158b442383df32583ee6c0b9cab92a3ef45 | 56e33fd9119955ea8349172bf3f2cc5fbd814142 | refs/heads/main | 2023-06-28T08:30:11.068397 | 2021-07-29T08:34:43 | 2021-07-29T08:34:43 | 337,359,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | a = list(map(int, input().strip().split()))
print(*a[::-1]) | [
"noreply@github.com"
] | noreply@github.com |
2a62f1bef54bfd2cb7615ca2e9e0483f7ca9fd76 | 5ab2ccf70fddd30ea88155f2a5adb0711bf3dc9a | /Chap10/factorsingles.py | 5d413a283dcbbe5de549074b7b5cbee0eafea399 | [] | no_license | jdukosse/LOI_Python_course-SourceCode | 32d66fd79344e9ab9412a6da373f2093b39cad92 | bf13907dacf5b6e95f84885896c8f478dd208011 | refs/heads/master | 2020-12-05T23:27:53.862508 | 2020-01-24T13:42:28 | 2020-01-24T13:42:28 | 232,276,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | n = int(input("Please enter a positive integer: "))
factors = [x for x in range(1, n + 1) if n % x == 0]
print("Factors of", n, ":", factors)
| [
"jdukosse@hotmail.com"
] | jdukosse@hotmail.com |
dd7f146df693ac042cde1345a5080c70862c344e | 222a7d69a78f1350772c9c8bfb0b36c640e5cd6e | /MarlinJobs/CalibrationConfigFiles/Stage59Config_5x5_30x30.py | 2b94d6d91472c95d504b20257b87d7e3b5afb347 | [] | no_license | StevenGreen1/JERDetailed | 2a8cb30ec32781791ba163e5125bcdb87239e9a4 | 27ed19dc0930570f16019b2c7820ae715dd0ec57 | refs/heads/master | 2021-01-17T06:55:11.384992 | 2016-08-10T14:41:38 | 2016-08-10T14:41:38 | 44,620,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | # Calibration config file for testing
# Digitisation Constants - ECal
CalibrECal = 42.3662496409
# Digitisation Constants - HCal
CalibrHCalBarrel = 50.3504586994
CalibrHCalEndcap = 55.6419000329
CalibrHCALOther = 30.5873671511
# Digitisation Constants - Muon Chamber
CalibrMuon = 56.7
# MIP Peak position in directed... | [
"sg1sg2sg3@hotmail.co.uk"
] | sg1sg2sg3@hotmail.co.uk |
9461f02ac4fdcbf48b760055e18b17a595c5d8e0 | 5451997d7b691679fd213d6473b21f184a5c9402 | /pymaze/wsgi.py | 4aff83a8a210e68f9e6d3d976da790c63895747e | [
"MIT"
] | permissive | TerryHowe/pymaze | 9ba54c7d328abf94f6709593795a587f28be752b | a5b7e90b5019a5f99a7f80317796ace72ca0754f | refs/heads/master | 2022-05-01T07:39:17.896430 | 2022-04-23T10:41:48 | 2022-04-23T10:41:48 | 89,522,507 | 1 | 0 | MIT | 2022-04-23T10:41:49 | 2017-04-26T20:13:13 | Python | UTF-8 | Python | false | false | 390 | py | """
WSGI config for pymaze 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
91b0e721835c085fa2a63efd9e75126f6092da46 | d1f9a4e40cd3529114c3b0109716ed5240776ef6 | /pondiBackend/wsgi.py | 38dfe9586cd065774850e73fcbd8813f18d5bef8 | [] | no_license | UCLA-Creative-Labs/pondi-backend | c7b6a0ffa0f94cd675a5960f7cb3d52d53bc4e33 | 1da935e9d7f80ec6328190f83b4b03b7d20343b6 | refs/heads/master | 2022-11-01T15:27:42.657872 | 2019-03-09T20:42:28 | 2019-03-09T20:42:28 | 168,284,898 | 0 | 2 | null | 2022-10-18T03:20:17 | 2019-01-30T05:30:02 | Python | UTF-8 | Python | false | false | 404 | py | """
WSGI config for pondiBackend 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"donle22599@g.ucla.edu"
] | donle22599@g.ucla.edu |
2c34a179a28321b7c74dce48f2090b771156f159 | 546b40c438935fa32fc954152c6f7d7e5c515950 | /project/manage.py | 152fb29152193fa9e9daa3b3774e487a9c9343a0 | [] | no_license | xj-sun/gjango_project_reminder | fc8732fc4595c65cc749bdd8fae219af53da81e9 | f2f1309868330876afcbe3b7a3140de21886109f | refs/heads/master | 2023-01-12T07:40:25.271229 | 2020-11-02T23:06:12 | 2020-11-02T23:06:12 | 309,514,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | #!/usr/bin/env python
import os
import sys
import pymysql
pymysql.install_as_MySQLdb()
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "WeatherProject.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above imp... | [
"xj.sun77@gmail.com"
] | xj.sun77@gmail.com |
5eff0169132197e41737862349d9ad181777010a | fe8f7febac1ff93b829256cdfd0be69e94498c76 | /python/fluent_python/code/clockdeco_param.py | 4700886d4acf8383701a414070e3f4635df7f784 | [] | no_license | bioShaun/notebook | c438eba1d29b736704c3f5325faf15ad61a1e9d5 | ce5f477a78554ed0d4ea5344057c19e32eb6c2b8 | refs/heads/master | 2020-03-26T16:16:06.458545 | 2018-08-23T00:54:53 | 2018-08-23T00:54:53 | 145,090,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import time
import functools
DEFAULT_FMT = '[{elapsed:0.8f}s] {name}({args}) -> {result}'
def clock(fmt=DEFAULT_FMT):
def decorate(func):
def clocked(*_args, **kwargs):
t0 = time.time()
_result = func(*_args, **kwargs)
elapsed = time.time() - t0
name = func... | [
"ricekent@163.com"
] | ricekent@163.com |
7522538dc5536b972327606ff3f23566c717f5f1 | 90b82685728eca7e3c27e486f55edc8d53683b36 | /Two Sum II - Input array is sorted/method2.py | 1bab4ef673a061f124c4c1b14d750a549a25f647 | [] | no_license | breathfisheva/Algorithm | 5ead5da8499e4d9d975629846f790b8328dcd678 | 559a83e60b2dd8a427ade127d471a923c16b0c43 | refs/heads/master | 2020-04-16T23:34:09.172743 | 2019-04-30T09:30:06 | 2019-04-30T09:30:06 | 166,016,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # numbers = [2,7,11,15], target =17 [1,2]
class Solution:
def twoSum(self, numbers: 'List[int]', target: 'int') -> 'List[int]':
num_dict = {}
for i in range(len(numbers)):
difference = target - numbers[i]
if difference not in num_dict:
num_dict
print(... | [
"hongliu_goodluck@sina.com"
] | hongliu_goodluck@sina.com |
188cc3859ee548a752611803d9bf62dc492fb892 | ed5605829992fba080872c02396038e00713abd2 | /PCchatbot/timer_v3.py | 935189283716fd784a019867775d7f3226d40aca | [] | no_license | BonHyuck/kakao-chatbot | 0c39936b754e1702c892bc6eae7747073669c775 | c7609aad8f6656685ef0ea5225619f4ba9de38b2 | refs/heads/master | 2023-03-09T21:09:22.635059 | 2021-02-26T02:26:22 | 2021-02-26T02:26:22 | 342,438,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,719 | py | import time, win32con, win32api, win32gui
# 시간 맞춰 메시지 보내기용
import datetime
import schedule
import time
import requests
import json
from random import choice
################################
# API를 가져올 URL
# api_url = 'https://chatbotkakao.herokuapp.com/api/'
# # 카톡창 이름, (활성화 상태의 열려있는 창)
# kakao_opentalk_name = 'SSAFY... | [
"qhsgur0126@gmail.com"
] | qhsgur0126@gmail.com |
fa73989a846dd0e102e265866470599140b05bf7 | 4f348d157a7c299168221840ddd9103a324cd9b3 | /python/lib/python3.6/site-packages/wolframalpha/__init__.py | 0df9c535bf46eb9b5ab25df6015842b72666dda9 | [
"MIT"
] | permissive | Leovaldez42/IRI | 61c47ee166a9a07c78a8b40ab3ba689359e0f1c7 | 97358a3c15558c333c099657f77ed7e39542a40e | refs/heads/master | 2022-12-13T02:45:44.053132 | 2022-05-21T05:43:51 | 2022-05-21T05:43:51 | 248,300,523 | 0 | 1 | MIT | 2022-12-08T03:51:12 | 2020-03-18T17:37:54 | Python | UTF-8 | Python | false | false | 5,174 | py | import itertools
import json
from six.moves import urllib, map
import xmltodict
from jaraco.itertools import always_iterable
from . import compat
compat.fix_HTTPMessage()
class Client(object):
"""
Wolfram|Alpha v2.0 client
Pass an ID to the object upon instantiation, then
query Wolfram Alpha usin... | [
"gaurav4.037@gmail.com"
] | gaurav4.037@gmail.com |
e7e3c115506553ab1cbc5ca31ff9c0144325dd24 | 16e266cf50a712ed29a4097e34504aac0281e6cb | /Functions/venv/lib/python3.6/site-packages/_TFL/_SDG/_C/Macro.py | 75f2950512e90bf9922859188d30c81a9164101c | [
"BSD-3-Clause"
] | permissive | felix-ogutu/PYTHON-PROJECTS | 9dd4fdcfff6957830587b64c5da3b5c3ade3a27e | 8c1297dbda495078509d06a46f47dc7ee60b6d4e | refs/heads/master | 2023-06-05T04:41:36.727376 | 2021-06-25T20:36:52 | 2021-06-25T20:36:52 | 380,348,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2004-2007 TTTech Computertechnik AG. All rights reserved
# Schönbrunnerstraße 7, A--1040 Wien, Austria. office@tttech.com
# ****************************************************************************
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http... | [
"you@example.com"
] | you@example.com |
7775be82e021226fc10fea241d6eba2f833ed71c | 88cfb75d37784ac3e82eb4fa1aa5e59d98216318 | /unet/main.py | bac148462d0bd86e0e8b19a4a38fceffcf2e251b | [] | no_license | waveflow-team/MRI_RL | 9d71a708e4637cf0818d1e0266796b76bc5b9abd | 7c60a1caa025b13f1aa41e4c71e0006248ebe2e9 | refs/heads/master | 2023-04-30T22:19:37.039595 | 2021-05-16T15:05:08 | 2021-05-16T15:05:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,112 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import logging
import pathlib
import random
import shutil
import time
from collections import defaultdict
import numpy as np
import cv2
impo... | [
"869228108@qq.com"
] | 869228108@qq.com |
f7aae61ca9fb68f5eef8a568456a9cbeba341313 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4461294.3.spec | e94005b8acdac761a61712abf74af485df3afd67 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,999 | spec | {
"id": "mgm4461294.3",
"metadata": {
"mgm4461294.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
92351aa4578e54f2dbb89bf7349b16cd1eb86635 | c77517d7737ca0c478df697a81b719afe4670730 | /src/extractor/v2ph_downloader.py | 3065776beda545566d8b05e5ec7dfefdb0932314 | [] | no_license | fakegit/Hitomi-Downloader-issues | e7e30aa33b7367c1195d6678f4685fb779c373e1 | 87239ca7d2fdb6c75260256255284bb2ec4ac172 | refs/heads/master | 2023-08-31T05:37:45.708795 | 2023-08-18T04:52:05 | 2023-08-18T04:52:05 | 216,877,228 | 0 | 0 | null | 2023-08-18T07:56:37 | 2019-10-22T17:57:31 | Python | UTF-8 | Python | false | false | 2,745 | py | #coding:utf8
import downloader
from utils import get_ext, LazyUrl, Downloader, try_n, clean_title, get_print, print_error
import ree as re
from translator import tr_
from timee import sleep
import errors
from ratelimit import limits, sleep_and_retry
import clf2
def setPage(url, p):
url = url.split('?')[0]
if ... | [
"mangrovn@gmail.com"
] | mangrovn@gmail.com |
7063c350be3106e041dfdd46c8437d1c9a94ed5b | 478085586c1024fa9e5f29adfdfa36d2e81ab4a9 | /DBExternal/sheets/admin.py | 6aa187642ddc97e9782a736782afd078a7e53f05 | [] | no_license | lokitparas/dbext | 7936c0818cb3b0b7f58d6bf7d1e0e7349aa923e8 | 960e4858802359431149661f49e32f26bfc40fba | refs/heads/master | 2021-01-10T07:35:35.287299 | 2015-10-25T08:14:07 | 2015-10-25T08:14:07 | 44,876,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from django.contrib import admin
from sheets.models import User
class UserAdmin(admin.ModelAdmin):
list_display = ('user_name', 'full_name', 'email_id')
search_fields = ('user_name', 'full_name','email_id')
admin.site.register(User,UserAdmin)
# Register your models here.
| [
"lokit95@gmail.com"
] | lokit95@gmail.com |
52045a258db9a2bcca56b5f377b9c294935e8f3f | 7b7059a0c2933a4a2d93eef21753efa3cb881ea3 | /pythonclub/club/tests.py | 9be61160b40e8469bea19c1ae10bfba4bcf141b6 | [] | no_license | zacharyforreal/ITC172W19 | 09371efb799513c427e513a57085c8f6f5835ac8 | 78c4c62dfe1e5dc307e45f90d9cc6bfea2994780 | refs/heads/master | 2020-04-15T18:58:28.598149 | 2019-03-04T20:23:56 | 2019-03-04T20:23:56 | 164,932,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,684 | py | from django.test import TestCase
from .models import Meeting, MeetingMinutes
from .forms import MeetingForm
from datetime import datetime
from django.urls import reverse
# Create your tests here.
class MeetingTest(TestCase):
def test_stringOutput(self):
meeting=Meeting(meetingtitle='March Meeting')
... | [
"noreply@github.com"
] | noreply@github.com |
67fe0dfcb5c153b4c32facb723119ab674916e38 | 0d24433894b0b2955a351fdf63a10173b948b3fc | /teafacto/models/kb/kmm.py | 7ca1f4c4f4c097e27c9903aa3c6c9e5f35652957 | [] | no_license | linxiexiong/teafacto | 9209bea80bd76d84c18b7f8afb353b61f0fba8b2 | 1c749ee66dc21c2efe6b4d105f227c35ae969815 | refs/heads/master | 2021-06-16T15:16:40.064465 | 2017-05-05T18:25:42 | 2017-05-05T18:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,256 | py | from math import ceil
import numpy as np
import theano
from teafacto.core.trainutil import SGDBase, Saveable, Profileable, Normalizable, Predictor, uniform
from theano import tensor as T
from teafacto.blocks.seq.rnn import RNUBase
__author__ = 'denis'
# Knowledge Model - Margin objective
# all models here assume si... | [
"lukovnik@drogon.iai.uni-bonn.de"
] | lukovnik@drogon.iai.uni-bonn.de |
92bba575db131ecb81e258e799c8fe97176c7229 | 790000422363c1f25856a893ee18c057c93b97c5 | /venv/Scripts/django-admin.py | 191f3a9c0b2534ec50f17d728bc2ba2fb5f3ba65 | [] | no_license | TaurusTTT/pythonProject | 677f8806a2c66d0e1c36d01496ba7ff539e0bfc1 | 161eca3d378cd09cd4c197a8e645a3b67ba9cd9c | refs/heads/main | 2023-05-01T04:53:30.727376 | 2021-05-21T06:33:33 | 2021-05-21T06:33:33 | 369,411,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | #!e:\pythonproject\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecated in Dj... | [
"2259167291@qq.com"
] | 2259167291@qq.com |
902f951e4f1ddeb0e5cb517b5c5edece567b9a8a | ee749b299eea02f1b75c7eb4f88634337eda61f3 | /canvas.py | 44ec4c501076a23d2db2c7ae87e06078bc2632aa | [] | no_license | CommanderAsdasd/coregl-python | 807bcd4c27916850cd716a57a34b982d082f5b4a | 1b7bdf1e57c5cc5bf25448bac3ab02975988c068 | refs/heads/master | 2021-05-26T21:03:42.501566 | 2012-11-30T18:17:33 | 2012-11-30T18:17:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from PyQt4 import QtCore
from PyQt4.QtOpenGL import *
from OpenGL.GL import *
from time import time
# Set this 'None' to refresh as rapidly as possible
ThrottleFps = 60
class Canvas(QGLWidget):
def __init__(self, parent):
if hasattr(QGLFormat, 'setVersion'):
f = QGLFormat(); f.setVersion(3, 2)... | [
"philiprideout@gmail.com"
] | philiprideout@gmail.com |
03c89f87bc946fe9d2a1f054e5f392aa88cc88c2 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /carbon/common/script/net/httpAuth.py | 4e0d808e60ebe4b4b14cadffc1f8dc510f115517 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | #Embedded file name: carbon/common/script/net\httpAuth.py
import base
import cherrypy
import httpJinja
import macho
import blue
import const
import base64
from datetime import datetime
SESSION_KEY = '_cp_username'
AUTH_LOGIN_URL = '/auth/login'
DEFAULT_URL = '/default.py'
def CreateSession(username, password):
ses... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
f9f43a57aff6d186fac941ac113039397543bfa9 | 04215e8902d2f9166a7e1d8d71fda3ada2aa698f | /PPleap64-20190507T002238Z-001/PPleap64/src/PPleap.spec | 9336ccc120834aaf904a21fd519d13fee6f25f51 | [] | no_license | kewigit/HOMAKE-LIFE | 6253b02f120e89f7c96800ddde43163be9b691fa | c31399f083164a9a7770fd04d3bfb7bbc5792926 | refs/heads/master | 2020-05-20T00:34:56.445366 | 2019-05-07T00:26:34 | 2019-05-07T00:26:34 | 185,290,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['PPleap.py'],
pathex=['C:\\leappy\\PPleap\\src'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_... | [
"noreply@github.com"
] | noreply@github.com |
57d931978089c77e1a9bf8f1f030c7080d8ae3e2 | 0fd4b9a8e6547181fcced852cf36de718435bcf9 | /setup.py | 4344a0b29b1d60d9a219005fda1e59f0feaeb767 | [
"Apache-2.0"
] | permissive | mrphil007/fitbit-to-sqlite | cd5de223f034f5df23c4e3262016d39df891350a | 4d3251b21d06535a42b1b6dad47ded8d91085a14 | refs/heads/master | 2023-03-02T04:17:16.119924 | 2021-02-08T21:51:30 | 2021-02-08T21:51:30 | 293,362,280 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from setuptools import setup
import os
VERSION = "0.6"
def get_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
setup(
name="fitbit-to-sqlite",
description="Save data from Fitbit ... | [
"phil_rossiter@hotmail.com"
] | phil_rossiter@hotmail.com |
47e63239e3fe7aa7c0a976c444fa2b54ccbe19be | e0f1741c37dfe6301c16a3fb1d1f43f80107ae9c | /anchor/app/handlers/LoadHandler.py | 8ce3d2f4a2420d6a6c50d7b76fa50b3f6527b019 | [
"Apache-2.0"
] | permissive | ysenarath/anchor | 3a5a253903d993bef72277c26dbcf300aa45503f | 63dc0cd7aabda4a15c4c9f4b63089a36c5b0b97b | refs/heads/master | 2020-04-17T14:41:37.186636 | 2019-02-04T11:17:44 | 2019-02-04T11:17:44 | 166,667,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | class LoadHandler(object):
def __init__(self, app, container):
self.app = app
self.initial_app_loading = True
self.container = container
def OnLoadingStateChange(self, **_):
self.container.navigation_bar.updateState()
def OnLoadStart(self, browser, **_):
self.contai... | [
"wayasas@gmail.com"
] | wayasas@gmail.com |
d148508116d7f6a7c1fb1f99872f33438fbfd494 | ddac4cbcec1324137512670a074c881872131042 | /main.py | 3152ed4b7e74a4a26130b8df43d1be1fa5588104 | [] | no_license | gyllone/pidmining | 0973af97c1ae2b880a4378f8ffdc3ec4c70da0fe | 2fe7af59ccd2e10c630df118f227fc10f77a8052 | refs/heads/master | 2022-04-02T02:55:25.888261 | 2019-12-03T01:17:04 | 2019-12-03T01:17:04 | 225,501,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,862 | py | import hashlib
import time
import math
from multiprocessing import Pool, Queue
maxnounce = 0xFFFFFFFF
Kp = 0.00005
Ki = 0.000001
Kd = 0.000001
class BlockHeader:
def __init__(self, prev_hash, merkleroot, nounce, difficulty):
self.prev_hash = prev_hash
self.timestamp = time.time()
self.merk... | [
"45535386+gyl19930522@users.noreply.github.com"
] | 45535386+gyl19930522@users.noreply.github.com |
4466a2abca31c0e9c8d3a8409692b09c96f09089 | 81a43dc312d177f9cb3ad4fc53e88843bce2613e | /dataloader/valdata.py | a25898d71437306cbbcb2538b5c545a5f12e5085 | [] | no_license | 1006927966/multi_label-classification- | 055aec013b8e39da655d576df28ea1b54ac91baa | dd8acfd7a65a4017dbf73267a7e5ec8dc64eb38e | refs/heads/master | 2023-08-20T15:06:11.665465 | 2021-10-19T06:30:03 | 2021-10-19T06:30:03 | 418,796,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | from torch.utils import data
import torchvision
import os
from PIL import Image
import cv2
import torch
class Testdata(data.Dataset):
def __init__(self, txtpath, nclass):
self.nclass = nclass
self.txtpath = txtpath
with open(txtpath, "r") as f:
lines = f.readlines()
self... | [
"wujilong@58.com"
] | wujilong@58.com |
2bce87c9c7fb3f4e749371dbf2235b8eda903e80 | a9a91f8d1de0672f9c6fddde448a3fd09c8c8c1c | /bot_en/data/merge_intents.py | f07655ae271e9217a159d85993cc5a4a32b5c82a | [] | no_license | bobokingbao/opn_Rasa_ch | bc49be28d864bdbfbbc5e0e58a9d7052f56f74ce | 371c105927a73478bf8ec22f0e45331488e5892e | refs/heads/master | 2022-02-28T05:22:52.637934 | 2019-09-26T10:45:01 | 2019-09-26T10:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | import glob
import os
def write_intent_data(data_dir, outfile):
files = glob.glob('intents/*.md')
for fname in files:
with open(fname, 'r') as infile:
outfile.write(infile.read() + '\n')
outfile.write('\n')
def create_train_file(train_file, data_dir):
with open(train_file, ... | [
"32243939+faysoserious@users.noreply.github.com"
] | 32243939+faysoserious@users.noreply.github.com |
0bf2971e3039b5214949b6943375e867b6c63f9b | 43a27b80ce1a8cf422142f5a43044917ff17a7cf | /python/leetcode/JumpGameII.py | 280c6e1aa70fdec8048493455bbab69f335a22c0 | [] | no_license | bignamehyp/interview | 321cbe4c5763b2fc6d2ba31354d627af649fe4ed | 73c3a3e94c96994afdbc4236888456c8c08b6ee4 | refs/heads/master | 2021-01-25T08:49:30.249961 | 2015-03-07T07:34:00 | 2015-03-07T07:34:00 | 23,125,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | class JumpGameII:
def jump(self, A):
maxPos = A[0]
if len(A) == 1:return 0
if maxPos >= len(A) - 1: return 1
jumps = 1
prev = maxPos
pos = 1
while pos <= prev:
curJump = pos + A[pos]
if curJump > maxPos:
maxPos = curJum... | [
"huangyp@kalman.(none)"
] | huangyp@kalman.(none) |
d1832ec2bedb704f090af6d27a3a27a0abf67623 | 8bb4060c4a41d1ef1b31c59fb8b9bc375e3e2ba4 | /setup.py | c26e6e1cb822af51c1da20528c39ff488e7edd81 | [] | no_license | hanxianzhai/distribution | a6c5f96bb954e7e18bae0d6a7ac6976fae59d332 | 628f670f4ed39478007e3402a77653f6596d0529 | refs/heads/master | 2021-04-01T06:21:29.086943 | 2020-03-18T03:55:28 | 2020-03-18T03:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import config
from init import app
if __name__ == '__main__':
app.run(
host='0.0.0.0',
port=config.app_conf["server"]["port"],
debug=False
)
| [
"tanshilinmail@gmail.com"
] | tanshilinmail@gmail.com |
11b4e29e48e64daf9e518e97f7b322a944e14bcf | 737e346e95db2e9dbbdb4225e1630726ddc48aba | /res50_models.py | 5847d49f8011c926c5a9e6cd3cf26701851c007d | [] | no_license | 160209-wyj/more_label_classifiter | 4c1f58d2b2f4d847082c19958e28d8d7c00714e9 | 6b58e180542dec887823581f8c980e9b97587749 | refs/heads/master | 2022-11-30T20:07:55.473587 | 2020-08-03T02:44:20 | 2020-08-03T02:44:20 | 284,583,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | import torchvision.models as models
from torch.nn import Parameter
from util import *
import torch
import torch.nn as nn
class GCNResnet_junjie(nn.Module):
def __init__(self, model, num_classes, in_channel=300, t=0, adj_file='data/voc/voc_adj.pkl'):
super(GCNResnet_junjie, self).__init__()
self.f... | [
"onepiece_wyj@163.com"
] | onepiece_wyj@163.com |
715ffd43d80ae19e11dfa747979a2cc759c46682 | 08f57a2f45872a7cd0ac7674ec65dc0ded456939 | /python/CheckColorList.py | 224d1833ee685b05116340d2ec558f0889d0327f | [] | no_license | shrutipatil12/python_basic | d64320b32fbd396f6125a07691d382a102c3492d | 5b5c3bab1b6794a3b41ada5bbeaed496c3db95c8 | refs/heads/master | 2020-05-13T17:52:16.921565 | 2019-04-16T08:48:58 | 2019-04-16T08:48:58 | 181,646,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #Program to print out a set containing all the colors from color_list_1 which are not present in color_list_2.
First_ColorList=set(["White", "Black", "Red"])
Second_ColorList =set(["Red", "Green"])
print(First_ColorList.difference(Second_ColorList))
| [
"shrutidpatil12@gmail.com"
] | shrutidpatil12@gmail.com |
1b5412cedc70b10bbd0bfbba6281dd0865e34950 | 616fb296ebea1f92065deb1298efeb801b86dd24 | /8.2.py | 41a1ca4a39aa8b9122c53884712869086910623f | [] | no_license | viniciusgaia/ALP | f35ec687ec72732dd7233c2c5f7265a1530c7015 | 78d0b660d75154d6e74f44ebe5a15925afca5d73 | refs/heads/master | 2021-07-12T17:45:11.469697 | 2017-10-17T14:00:02 | 2017-10-17T14:00:02 | 107,211,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | L=[]
X=int(input())
Y=0
Z=0
while X>0:
L.append(X)
X=int(input())
Y=Y+1
while Y>0:
print(L[Z])
Y=Y-1
Z=Z+1
| [
"noreply@github.com"
] | noreply@github.com |
d8d7f4ad88d3eb2ce71b3254408e14271af8b247 | ada6108e4bc4cd67cdcfa273b5120f9276848c51 | /api/settings.py | 39ad3d11d059016c5a917506f628db75fefa6dd6 | [] | no_license | cadesalaberry/restobook | 5d7ead658c069bee95cb81bf0b985a90e0fc9c2b | 7417a91f3d41796ca213337cb064f6792daa4d3a | refs/heads/master | 2021-04-26T16:43:27.958339 | 2015-11-19T17:34:45 | 2015-11-19T17:34:45 | 46,409,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | # Let's just use the local mongod instance. Edit as needed.
# Please note that MONGO_HOST and MONGO_PORT could very well be left
# out as they already default to a bare bones local 'mongod' instance.
MONGO_HOST = 'localhost'
MONGO_PORT = 27017
MONGO_USERNAME = 'user'
MONGO_PASSWORD = 'password'
MONGO_DBNAME = 'restobo... | [
"cadesalaberry@yahoo.com"
] | cadesalaberry@yahoo.com |
917ff7a2f3ef54ab890027acb1e0d2212a7b26fe | bed67992036dc2a63b49c8e05b4999db1d7b7537 | /preprocessing.py | f0b6d2606b6a6738feb6add215906d9561618238 | [] | no_license | archmaester/Language-models | 7c5c69f29d9691d72a642023ec0cd3e3911bdc20 | e5a75716fb33c51cd07fde98d64086ef69032f11 | refs/heads/master | 2022-03-30T14:24:17.594602 | 2020-01-28T17:26:39 | 2020-01-28T17:26:39 | 123,162,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | # -*- coding: utf-8 -*-
#Importing the required libraries
import string
import re
import os
import operator
import sys
import pickle
from collections import Counter
from nltk.corpus import gutenberg
from nltk.corpus import brown
from sklearn.model_selection import train_test_split
class preprocessing:
def p... | [
"keswanimonish@yahoo.com"
] | keswanimonish@yahoo.com |
027954b13256b665ac1641929f4678fcdca3ee95 | a1657a0c5c8f3f8b51b98074293e2f2e9b16e6f4 | /libs/pipeline_model/tensorflow/core/framework/function_pb2.py | ed2c403e475d8930c09fb9f953cc005855abe240 | [
"Apache-2.0"
] | permissive | PipelineAI/pipeline | e8067636f5844dea0653aef84bd894ca2e700fc6 | 0f26e3eaad727c1d10950f592fe1949ece8153aa | refs/heads/master | 2023-01-07T15:27:33.741088 | 2022-10-25T23:01:51 | 2022-10-25T23:01:51 | 38,730,494 | 2,596 | 512 | Apache-2.0 | 2020-01-30T23:00:08 | 2015-07-08T03:49:23 | Jsonnet | UTF-8 | Python | false | true | 12,092 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tensorflow/core/framework/function.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"chris@fregly.com"
] | chris@fregly.com |
4b6bf36934127b6fd1ddad4d55f7e0f076890cc1 | 6d57588687d4f45781e37c1f64ba7cd0a19b1b7d | /TUTORIAL/BASIC_TUTORIAL/build/colour_tracking/catkin_generated/pkg.installspace.context.pc.py | bb6cf24824b011bd68b75dfb045da21e4cb34f2a | [] | no_license | amuazdev/kamerider | 97e47875b9720a9787b1158ba4187db5b3b34be8 | 5ba691b086c15dca822df66ace3d82370d3611f1 | refs/heads/master | 2021-01-20T21:46:31.124407 | 2014-12-03T10:34:26 | 2014-12-03T10:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "colour_tracking"
PROJECT_SPACE_DIR = ... | [
"seow@seow-Satellite-M840.(none)"
] | seow@seow-Satellite-M840.(none) |
d39089e713ed30221353891d1ae9b48da72fab8c | 084f304f51c2d253b7d414be458a76f568652f2c | /ssad/trainer/trainer.py | 83cb65a95de273802c37b10fbf9d7fb74e1e5f6b | [] | no_license | G-Morgen/SSAD | 1fdf2923b6c1252ae056efef5a7833e9e89a0cd2 | 4d7431d77a2ad033a63585cddd02e5dd2b2e1387 | refs/heads/master | 2022-12-11T15:44:35.516457 | 2020-09-11T07:46:10 | 2020-09-11T07:46:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | import logging
import ssad.typehint as T
from ssad.trainer.augs import TrainerAugs
from ssad.trainer.dataset import TrainerDataset
from ssad.trainer.dataloader import TranerDataLoader
from ssad.trainer.model import TrainerModel
from ssad.trainer.optimizer import TrainerOptimizer
from ssad.trainer.criterion import Trai... | [
"taikiinoue45@gmail.com"
] | taikiinoue45@gmail.com |
1f5493262a109e0a6edc210a66af4d4d875a8d39 | 9a34a8dcf477e95b8018ba733e4420aba64e9ad7 | /Facial_Recognition_Part3.py | 6d49616490bcd2f5072baaf9e6abdb0f01a8ff16 | [] | no_license | harshpandey2202/Facial-Recognition-master-ver1.0 | 079529f3b81b1976fa15961528c5aa0656936148 | 71da6f048151b32bc77d01630b2238109692bb51 | refs/heads/main | 2023-07-28T09:32:10.829321 | 2021-09-15T15:24:10 | 2021-09-15T15:24:10 | 406,820,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | import cv2
import numpy as np
from os import listdir
from os.path import isfile, join
data_path = 'faces/'
onlyfiles = [f for f in listdir(data_path) if isfile(join(data_path,f))]
Training_Data, Labels = [], []
for i, files in enumerate(onlyfiles):
image_path = data_path + onlyfiles[i]
images = c... | [
"noreply@github.com"
] | noreply@github.com |
3e9f8690f1fdeb9b8434f9e7392e0f940dd1544a | 1567fb032fb73057b60b7ae4830c195b29164c8b | /englxx/english/__openerp__.py | 769773e599efb1129ebbbde460fdfbc03957f39a | [] | no_license | guparo/myaddons | 76967a02135198ba53335d39f766c7d987a7b02d | 3e10debb5215a525782b84a1786d09e8927e7231 | refs/heads/master | 2016-09-06T09:03:59.992662 | 2015-11-08T23:55:17 | 2015-11-08T23:55:17 | 42,006,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | {
# Theme information
'name': "English",
'description': """
""",
'category': 'Theme',
'version': '2.0',
'depends': ['base'],
# templates, pages, and snippets
'data': [
'views/english.xml',
],
# Your information
'author': "Ing. Adriel G. Patino",
'website': "... | [
"guparo@hotmail.com"
] | guparo@hotmail.com |
718491d7f1c8475ee325a0f5fbcf52180b644f84 | 51e76fef9e12a3c51474d6f5e53cf13a4344c0d2 | /com/qiwx/hello.py | c0e816208ae1bbe4818de5be4b477a9849af84fe | [] | no_license | qiwx2012/PycharmProjects | 942b9800a637dc9ae54325bba763dc6c3e83c994 | 6624d4760d4e39ba422d134461b00a9d60529532 | refs/heads/master | 2021-08-15T05:59:45.844663 | 2017-11-17T13:42:24 | 2017-11-17T13:42:24 | 110,513,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | import os
import com.qiwx.modle_test
print("hello world");print("hello world");
if True:
print("真");
else:
print("假");
# str=raw_input("请输入: ")#输入函数
#
# print("你输入的内容是:"+str)
# str = input("请输入:");
# # print ("你输入的内容是: "+str)
# print ("你输入的内容是:", str)
try:
fo = open("D:\\a.txt", "w+")
except:
print(... | [
"qiwx@jingzhengu.com"
] | qiwx@jingzhengu.com |
63539348bba3fde558235a97e5430cf24506d30e | 4ef0dd7433679b6098eb83f28a5d99c0c5f697ec | /firstdjango/firstdjango/urls.py | 6c396bbb5f221dabc286d68977e23a7a54e76ab8 | [] | no_license | chadeddington/django-intro | 6e8d6fa5c21f6531f14712a59314d3935f9c1055 | e7214720fe53cad0d3e2c36e6f6a9aaff2ca5a39 | refs/heads/master | 2021-01-10T13:28:47.967104 | 2016-01-10T05:23:11 | 2016-01-10T05:23:11 | 49,354,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from django.conf.urls import include, url
from django.contrib import admin
from inventory import views
urlpatterns = [
# Examples:
# url(r'^$', 'firstdjango.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', views.index, name='index'),
url(r'^item/(?P<id>\d+)/', views.it... | [
"edd11001@byui.edu"
] | edd11001@byui.edu |
a647bbaa9c5647bcc76693b3373a5c1ca73ef960 | 45c59a36ee268507577faf01c32a1e67951e7ac4 | /keycontrol.py | f3b3c9db1c5e43c9c6c64bd5fa2a5371bcdaaae9 | [] | no_license | Neuralis-AI/4-as-RaspberryPi-Jetson-Robotarm | 3e551b963108a155ba987f6e6a7a82c7c0e52867 | 777fee532d447301fae58bcf9a3678fca8dc1492 | refs/heads/main | 2022-12-29T13:24:05.738962 | 2020-10-16T19:31:44 | 2020-10-16T19:31:44 | 303,527,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | import keyboard
import time
import sys, termios, tty, os
import RPi.GPIO as GPIO
import pigpio
def getch():
fd = sys.stdin.fileno()
old_settings = termios.tcgetattr(fd)
try:
tty.setraw(sys.stdin.fileno())
ch = sys.stdin.read(1)
finally:
termios.tcsetattr(fd, termios.TCSADRAIN, ... | [
"noreply@github.com"
] | noreply@github.com |
e30511824f1a5a7e47e2e3e9cf66480227c6ff48 | d051f250e2997d4714a59f8a62459d5b5212711a | /viewfitz.py | b6efdf7a33b4256248488a739853f69fe2ca3bb7 | [] | no_license | AlexGKim/NearbySupernovaFactory | 7a45f59285d91f687c46b703b39ec6df3256cca1 | 5c7db9be397d85a26aaf9196f9e75d2f3aab8998 | refs/heads/master | 2021-01-23T21:43:55.620413 | 2018-10-22T15:27:04 | 2018-10-22T15:27:04 | 56,637,164 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,393 | py | #!/usr/bin/env python
import pickle
import pystan
import matplotlib.pyplot as plt
from matplotlib import rc
import corner
from matplotlib.backends.backend_pdf import PdfPages
import numpy
import sncosmo
import scipy
import cPickle
import matplotlib as mpl
import sivel
mpl.rcParams['font.size'] = 18
ext=''
f = ope... | [
"akim@251.51.243.131.in-addr.dhcp.lbl.gov"
] | akim@251.51.243.131.in-addr.dhcp.lbl.gov |
f4083d9caacac46d82b5af00e2b6de6a7e873ede | 8182619b9ad4fb1ed0a6cac43eb7e7732edf2dd8 | /code/seperate_SQuAD.py | bbcd271b2b8d7ac9a59b6e1a5448e979bd374c9c | [] | no_license | asd36952/baseword | 24769856dc910654ebef2db142e66415b313561f | dd0350015bcd47e42de2d8d7c87088247726b771 | refs/heads/master | 2020-03-19T06:05:49.255390 | 2018-09-20T12:30:07 | 2018-09-20T12:30:07 | 135,990,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,110 | py | import spacy
import json
from stanfordcorenlp import StanfordCoreNLP
import os
import copy
# open StanfordCoreNLP Server by
# java -Djava.io.tmpdir=/home/asd36952/tmp -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9001 -timeout 15000
nlp = StanfordCoreNLP('http://localhost', port=9001)
with open... | [
"asd36952@gmail.com"
] | asd36952@gmail.com |
ca5d6b2879751e7673fa68b88318d020bd236dcd | 97be3873520588917e25c716fa9f5a1ae560d3a8 | /DAMIAN_COLOMA/rango3.py | 3d693fb7d628e3e61f0db6a3cd34eba2aa39dcc9 | [] | no_license | Kiaradamiancoloma/T07_DAMIAN-MENDOZA | e8c6fd661d3af23181f0dcd7a5aed339d281d196 | e3b949c88da8ae6d124fb0307aebf6d2be7e11a1 | refs/heads/master | 2020-11-25T03:48:32.384142 | 2019-12-17T03:38:29 | 2019-12-17T03:38:29 | 228,488,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | #programa que pida una sentencia al usuario
#la muestra 10 veces en pantalla
#Declaracion
sentencia=""
#input
sentencia=input("introduce una sentencia:")
for i in range(10):
print(sentencia)
#fin_for
| [
"kdamianc@unprg.edu.pe"
] | kdamianc@unprg.edu.pe |
4536077050ca081f63e917e475246ef43ecdfeb1 | d20261590a01d7de3964b00eb11747fcc6e92230 | /train.py | 8d14dd4d124a5eaf087663b99844bcec31b1c392 | [
"MIT"
] | permissive | lcpizzo/RE-BERT | 58573fe28797f674cc59b820293da294d263eabc | 45da3ee9094e317e353ab871b110dc378724e940 | refs/heads/main | 2023-05-06T08:56:36.947516 | 2021-06-02T20:40:12 | 2021-06-02T20:40:12 | 338,139,457 | 0 | 0 | NOASSERTION | 2021-02-11T20:06:51 | 2021-02-11T20:06:51 | null | UTF-8 | Python | false | false | 9,593 | py | # RE-BERT training model
# Adapted from LCF-BERT (ABSA-Pytorch)
import logging
import argparse
import math
import os
import sys
import random
import numpy
from sklearn import metrics
from time import strftime, localtime
from transformers import BertModel
import torch
import torch.nn as nn
from torch.utils.data impo... | [
"ricardo.marcacini@gmail.com"
] | ricardo.marcacini@gmail.com |
822c231cf8d32a36c2a9f6df488f6181ea21b234 | f4b43fe66d74ce5c37d61c446301241f7bf6394d | /src/com/kaiyouhu/pygmo/icq/icq_algo1.py | 68e6fba7db0a6375a141938a8193e0b13947bc8b | [
"MIT"
] | permissive | KaiyouHu/Evolutionary | 6cb6042db9b670c3a5a35e9a7661dc5be6997e90 | 2dd8e3e1d093779261c8d0d7071e3c69afa7f239 | refs/heads/master | 2020-04-17T17:55:29.121825 | 2019-04-14T14:01:38 | 2019-04-14T14:01:38 | 166,804,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,875 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: kaiyouhu@gmail.com
# Algorithm 1 shows the evolutionary algorithm
# used for optimizing diversity in 2018-Evolutionary
# Diversity Optimization Using Multi-Objective Indicators.
import math
import pygmo as pg
import numpy as np
from matplotlib.patches import Ci... | [
"kaiyouhu@gmail.com"
] | kaiyouhu@gmail.com |
a55e6dd8f6599beefbce85b4bc9676cbcb715e9d | cdf724225ac99ab92f54734d412ffea56e184579 | /sum3.py | d6dd47f5c0c99eee9c2c585011b71364e657e67c | [] | no_license | BillBrazerZhang/LeetMySolutions | 994d9a66c8dc4caa219a7fdd201b660c3d0312f4 | 3ed257c31f5eca3da5e28f684c8d69ce363ae4c6 | refs/heads/master | 2020-03-28T11:04:47.115194 | 2018-09-11T17:27:46 | 2018-09-11T17:27:46 | 148,175,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
nums.sort()
for i in range(len(nums)-2):
if nums[i] > 0:
break
if i > 0 and nums[i] == nums[i-1]:
continue
... | [
"931053259@qq.com"
] | 931053259@qq.com |
c465884d567497e9ae951e45904530afaca452a4 | 7d58a9c73835bd7206011a6a098abdfdc1c6290f | /streamers/apps.py | d9be14d1aa9f537b99d9c82fb6504a23482befd0 | [] | no_license | perna/live-coding-calendar | 0a15139b6062aa8cd3fc3bc3e5732eb9be7f9a29 | 3cefee921123ea36fafbee927fde5951416c4701 | refs/heads/master | 2022-09-17T07:56:21.653471 | 2020-05-19T01:49:46 | 2020-05-19T01:49:46 | 265,101,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class StreamersConfig(AppConfig):
name = 'streamers'
| [
"andersonmeira@outlook.com"
] | andersonmeira@outlook.com |
38115bbbde5eccbb9da1ee4b815a45adc9218485 | a847c161a8fb523c0500a32ea07957a59a3d26a7 | /venv/Scripts/easy_install-script.py | 2affe41652cbd3558bfbd7d6635a87d99ed43b2a | [] | no_license | mrmm2703/spotify-data-analyser | ac3bd4b1eeb8c81a949d7c595af1d78fd3a9a575 | 5e87b7270c68b5b45e760705e5bbcdf950e29552 | refs/heads/master | 2022-11-11T13:47:37.406199 | 2020-07-04T22:36:50 | 2020-07-04T22:36:50 | 277,195,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\mrahm\PycharmProjects\SpotifyDataAnalyser\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scr... | [
"35401592+mrmm2703@users.noreply.github.com"
] | 35401592+mrmm2703@users.noreply.github.com |
90a57dd681903b99a7c918852839cb708b7a7b9d | ff98245b7b504f3dc2212f9b34d169a36fbd463e | /notify/utils.py | c7e7d05c0537a0c3d35b9f6c91009a2c3616b6ec | [] | no_license | OpenJUB/roomer | 909748193004a21995f8c4650f3192f2cd65700c | 2d60ec8f5aeb47db47fd3ed9105b0543aa599be7 | refs/heads/master | 2023-02-05T17:29:23.342657 | 2018-05-06T07:44:16 | 2018-05-06T07:44:16 | 58,051,191 | 1 | 1 | null | 2023-02-02T02:48:31 | 2016-05-04T12:43:46 | Python | UTF-8 | Python | false | false | 1,414 | py | # What do we want?
# Function to mail one user
# Function to mail a set of users
# Basic mail template
# Reply-To header
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.conf import settings
class Notification(object):
sender_address = "USG Housing <housing@j... | [
"x32000@gmail.com"
] | x32000@gmail.com |
6a405e8f55909b6ed9222b949bef9230edd24b17 | abfa0fcab2bc9a9c3cccbc3a8142cdd4b2a66ee9 | /698-Partition to K Equal Sum Subsets.py | 8aceeaa11fdcd8709c3a984236173baf0a4fbd70 | [] | no_license | JinnieJJ/leetcode | 20e8ccf3f8919028c53e0f0db86bcc2fbc7b6272 | 26c6ee936cdc1914dc3598c5dc74df64fa7960a1 | refs/heads/master | 2021-04-15T09:18:08.450426 | 2021-03-06T01:53:27 | 2021-03-06T01:53:27 | 126,275,814 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Solution:
def canPartitionKSubsets(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
sums = [0] * k
subsum = sum(nums) / k
nums.sort(reverse=True)
l = len(nums)
def walk(i):
if i == l:
... | [
"noreply@github.com"
] | noreply@github.com |
037c8b61d186d7d441688db7e43383624627ba9d | 07b67e1268a2bad53c8fdb98e55c5271d0b65f5c | /maze.py | f4590c0c9f5d43f5d6fe96e8f083862e19f52a5e | [] | no_license | puszolek/pythonCD | 93bcd506126694308268d4348a021af56c95671e | 51bab35c115bf5c3e6219a54bb2e78f5f35a477d | refs/heads/master | 2020-04-29T07:38:43.916853 | 2019-06-01T11:43:58 | 2019-06-01T11:43:58 | 175,960,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import pgzrun
TITLE = "Maze runner"
WIDTH = 600
HEIGHT = 800
RUCH = 5
CZERWONY = (255, 0, 0)
alien = Actor('alien', anchor=('center', 'center'))
gorna_sciana = Rect((0,0), (WIDTH, 30))
dolna_sciana = Rect((0,HEIGHT-30), (WIDTH, HEIGHT))
def draw():
screen.fill('black')
alien.draw()
scree... | [
"noreply@github.com"
] | noreply@github.com |
278d03131baf2cb82d60e4823f4f5a6a1b57b993 | 6cc266e5b179ad84aaad3d1afc804b5e6f71738b | /src/python/aetherinstinct/utils/args.py | 929b3ce9618ae9dc96c890402b1d1253d7f3e44a | [
"MIT"
] | permissive | roadnarrows-robotics/aetherinstinct | 9a369f10724e506561e0b2b45b772819e260f37f | 29ddde4878c2fa6dac902145cb8ef9da4d61b5c6 | refs/heads/master | 2023-08-23T02:48:06.188463 | 2021-10-27T19:24:15 | 2021-10-27T19:24:15 | 202,207,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | """
Command-line argument parsing with structured printing.
See the argparse python module for details to extend argument parsing.
\LegalBegin
Copyright 2019-2020 Aether Instinct LLC. All Rights Reserved
Licensed under the MIT License (the "License").
You may not use this file except in compliance with the Licen... | [
"robin.knight@roadnarrows.com"
] | robin.knight@roadnarrows.com |
f5b6996f6d110579dab1debed30100c651f25190 | 4a01ffb82c91e40003dc2af2d262f745c8de0ad4 | /Autokey/Autokey/arrow_shift_right_righthand.py | 88f4d53800ba3a6eb885db75b723d7369de00d6e | [] | no_license | fire3420/Program_settings | c4810da8e36a8e4a096baad80081c3d82c06545b | 83d8b8a72e47373c12bd72e41267833069073cd4 | refs/heads/master | 2021-11-22T14:02:17.066582 | 2021-09-22T06:47:16 | 2021-09-22T06:47:16 | 245,595,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # Enter script code
output='<shift>+<right>'
keyboard.send_keys(output)
| [
"fire3420@gmail.com"
] | fire3420@gmail.com |
e3355a62cfa3419230804429ae53ad3575c2c690 | f462b2b37559bfb56737497c61b86b334e9495ec | /carina_ATPG/dft_def.py | b46d651f690dd98d21e46c7d6ad16e00798e6d21 | [] | no_license | archubw/spec | 5e223060ec84ed86e4e9cb1909e46a4eb0685650 | a69f45b16e1bf4a8c2f5fcbf8a315e26235270b2 | refs/heads/master | 2023-03-23T07:41:09.694070 | 2020-03-03T06:08:55 | 2020-03-03T06:08:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,589 | py | import os,re, time
import jinja2
templateLoader = jinja2.FileSystemLoader(searchpath="./")
templateEnv = jinja2.Environment(loader=templateLoader)
sdf_template = templateEnv.get_template("sdf_annotate.v_template")
system_f_template = templateEnv.get_template("system.f_template")
inter_i_template = templateEnv.get_temp... | [
"ngohongtiep@gmail.com"
] | ngohongtiep@gmail.com |
a9fdf9bba26d8d16049e97b55c3565160bbc4345 | d0649156b8d0f43f2c56e01a017cd22823d0c17d | /static/zoddockapp/migrations/0012_coupon.py | 2d31c184fdfe8704124d725e3667b5e9dde9df08 | [] | no_license | Masozera/Django-Ecommerce-Site | 579cc4606ff60693a3957479125f2fb2c113286a | be00c2ac9f505def240771b20ec5daa4150e4303 | refs/heads/main | 2023-02-16T06:25:44.217546 | 2021-01-08T06:14:59 | 2021-01-08T06:14:59 | 309,270,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Generated by Django 3.1.3 on 2021-01-07 11:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zoddockapp', '0011_auto_20210107_0055'),
]
operations = [
migrations.CreateModel(
name='Coupon',
fields=[
... | [
"masozeravictor@gmail.com"
] | masozeravictor@gmail.com |
f984f6c5cb1ec6e7c28b3348ce58cd076ce640af | 2633341946717144a40aa7e01997f8e120e4708a | /Microdados_env/bin/pip3.6 | 1ebc3c7b3c4ac960edfe73a751f6d542078eb9a1 | [] | no_license | fmasanori/Analise-de-Dados-INEP | 2a713d0071d592df2413ae501f34970679c9be52 | a440a050ed6e63efbeca64722fe6fa9f59d4c2d6 | refs/heads/master | 2020-09-25T05:55:05.814580 | 2019-12-03T20:03:53 | 2019-12-03T20:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | 6 | #!/home/joaomedeiros/MicrodadosINEP/Projeto__env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jv.medeiros.gallina@gmail.com"
] | jv.medeiros.gallina@gmail.com |
1f0f69d04585b8216b8268a4c3dc0e5868618db7 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/1289. Minimum Falling Path Sum II/solution2.py | e9ebe9c9ba9a53af13d879fb8d254dac546a99d0 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | class Solution:
def minFallingPathSum(self, arr: List[List[int]]) -> int:
m = len(arr)
n = len(arr[0])
@lru_cache(None)
def count(i: int, j: int) -> int:
if i >= m: return 0
m1 = m2 = inf
k1 = k2 = 0
for k in range(n):
... | [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
9dfaf0509cd3d6fbd7492758c17e1697f340ea68 | cb4938dd6f0920fe7e248775736545ca97a82a90 | /mysite/settings.py | 54c83a0aa5016bad0043a5103a0fefdc4102fcaa | [] | no_license | Ibrahima829/my-first-blog | a3617616a638dcee12c3a8dd4d37b619b0ce4e0c | c775dd0312776a55456692cf959eb3947f00e4c3 | refs/heads/master | 2020-11-26T03:21:58.439032 | 2020-01-09T01:57:23 | 2020-01-09T01:57:23 | 228,951,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"ne18064@azec.ac.jp"
] | ne18064@azec.ac.jp |
8e11f4f47bcc9920ff00d8d8335fac826b8cc5b6 | 82ad02db4e5a52610e42ef9ae0349447d403aecf | /cloudmesh/RESTClient/lib/python3.6/warnings.py | dca323329b9993bc152f9e24c15fc6ca7bb8fef6 | [] | no_license | cybertraining-dsc/hid-sp18-524 | c10820b923e8c21d05859f1162338900e0a91dee | 3d6e4b67f6b11792b4f311b8a471eaae7c09edaf | refs/heads/master | 2022-11-29T21:15:17.163374 | 2018-05-09T18:40:50 | 2018-05-09T18:40:50 | 287,411,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /home/hao/.pyenv/versions/3.6.4/lib/python3.6/warnings.py | [
"tian4damien@gmail.com"
] | tian4damien@gmail.com |
0a8e4fd31c5356ee3f4dfba423680ebe181f9d4b | 97a075ae8c23fdae35f314ce51151afcfd10d1c5 | /SimpleEgzampleofRectFunction.py | 1e9067649fb15a96a0bc643d9ca140f882ff2921 | [] | no_license | Kotmin/Understanding-neural-networks-with-sentdex | 4a0985496ec650918c107657b0bdea831e0ff07c | 6b00d9e910c24902e23d201ce0416f5c272aaf8c | refs/heads/master | 2023-07-12T10:21:25.300382 | 2021-08-13T01:43:39 | 2021-08-13T01:43:39 | 387,929,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import numpy as np
np.random.seed(0)
X = [ [1, 2 ,3 ,2.5],
[2.0,5.0,-1.0,2.0],
[-1.5, 2.7, 3.3 , -0.8]]
inputs = [0,2,-1,3.3,-2.7,1.1,2.2,-100]
output = []
for i in inputs:
output.append(max(0,i))
print(output) | [
"70173732+Kotmin@users.noreply.github.com"
] | 70173732+Kotmin@users.noreply.github.com |
1e4806f3da02024209018420eeba717b7075f943 | 179f86c2fbc213d25c21b6488d059b435def2923 | /geomldl/wsgi.py | ff8d5b0007b9770f3d96cc9d5bd44a253e7431e2 | [] | no_license | mt-lids-sefi/geomldm | ec2781f5c53bb93b700eaf7906aa564827456bcb | 7763fd316d920e85b8e6b8361531606a7fd10a2b | refs/heads/master | 2020-04-29T14:39:51.703350 | 2019-03-20T12:24:17 | 2019-03-20T12:24:17 | 176,203,713 | 0 | 0 | null | 2019-03-20T12:24:18 | 2019-03-18T04:21:08 | Python | UTF-8 | Python | false | false | 391 | py | """
WSGI config for geomldl 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"tejedamarcia@gmail.com"
] | tejedamarcia@gmail.com |
7e1d66c0f2227add3fc6fe096afb431bb7980d92 | 67f4facf8c778c3db51f8e24f59466714377e75e | /ecommerce/src/accounts/views.py | 9775dd360ec5b4fd7f012db60fa0ff58a76fc18e | [] | no_license | abdelmachti/Ecommerce_Django | 0bfe4df1c50a64c749aae636de94004646911b01 | 9ec6d93be45078173e5278a1f4f77e5aa9325a22 | refs/heads/master | 2021-02-08T19:40:16.694232 | 2020-05-04T23:10:25 | 2020-05-04T23:10:25 | 244,185,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, get_user_model
from django.views.generic import CreateView , FormView
from django.utils.http import is_safe_url
from .forms import LoginForm, Regis... | [
"machtiabdel@gmail.com"
] | machtiabdel@gmail.com |
a1e52a91e357303211b4c8fe930b7a9191201e08 | 48140ff3c69fe22ecd7eed084ffd308522f861ee | /src/data.py | 12c033411fd23691b43338b649f2c5f875600216 | [] | no_license | attilusleung/CornellCreatives | 1d9e9ae0a766ebba80dfb177dde794e036eb2859 | 48bab38856e64b6a1dbad8e7afcfb2c40cb86d5b | refs/heads/master | 2020-04-09T03:28:27.179758 | 2018-12-03T04:35:26 | 2018-12-03T04:35:26 | 159,983,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,516 | py | from flask_sqlalchemy import SQLAlchemy
import datetime
from secrets import token_hex
from bcrypt import checkpw, hashpw, gensalt
from exceptions import *
db = SQLAlchemy()
#TODO: REPLACE kwargs.get with kwags[<something>] for initializers
#that need to throw an error
class User(db.Model):
"""
A model that ... | [
"aqcrazyboy@cornell.edu"
] | aqcrazyboy@cornell.edu |
207a9b2451f25fc9bd95d56c22d2aee58a576cad | 2cbd06a38bdedff491e25b7cff464d91a7abcb11 | /store/migrations/0001_initial.py | 778a8f6d2c523376ab8ab1ca15f1af1251489f39 | [] | no_license | yrarjun59/Python-Django-Ecommerce-Website | 6577f623f361298681dd494990fb791f07651fd6 | 5b3d2691158fe083ff7e9fbdff70d266f0ca65cc | refs/heads/master | 2023-05-12T13:59:52.200885 | 2021-06-02T06:20:07 | 2021-06-02T06:20:07 | 342,809,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | # Generated by Django 3.0.3 on 2020-06-29 06:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"yrarjun59@gmail.com"
] | yrarjun59@gmail.com |
7a79bff67cf9d6148338e6e1465395f08c394acb | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/module_utils/facts/hardware/aix.py | 442f4a95486811ff2e1f40a4627017bb23de131b | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,947 | py | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
66ccd59ba1664f4dac23f2184a0658a7b08954f6 | db27667a4a4014f46e904b1c57be40ba97c629a9 | /Code/二 CH2基础语法和数据类型/First.py | 861e22eca1afa8927026c268136fd11f9d027793 | [] | no_license | jiningzhao/PythonBasic | 61d5db1438064e3f122ac993367565b33a1be1b7 | c12dfc3182f0f7a9b00a3b61b72e468567c4f6eb | refs/heads/master | 2022-11-28T16:17:36.202859 | 2019-10-21T14:46:20 | 2019-10-21T14:46:20 | 216,591,310 | 0 | 1 | null | 2022-11-16T16:31:58 | 2019-10-21T14:39:05 | Python | UTF-8 | Python | false | false | 27 | py |
b=60
a=5
c=4
c*=a
print(c) | [
"jiningzhao@newbanker.cn"
] | jiningzhao@newbanker.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.