blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6602d7be56388caf6e20e065c13acd98b8b65dcd | d175411dc1068dedc60d0497f8e8514555d58975 | /preprocess.py | bbaa2e018ce6fba15fa437a9701ed10bed078683 | [] | no_license | CirQ/CIKMmining | 1fd49118da0db90e97e301d341f8b3cb1ba8e1ef | a47c9cdce18eb9b8e662440fc8826c2e2783f275 | refs/heads/master | 2020-12-03T00:29:47.402238 | 2017-07-02T16:45:15 | 2017-07-02T16:45:15 | 90,642,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CirQ
# Created Time: 2017-05-08 09:25:07
def get_row_in_dataset(dataset): # dataset can only be train, testA, testB
with open("/media/cirq/All matters/CIKM/%s.txt" % dataset, "r") as r:
while True:
line = r.readline().strip()
... | [
"cirq999@163.com"
] | cirq999@163.com |
521e571bd3a79c4c63b21c88324b5819c877109b | 3e7b2ebb64e9e324ce47d19def21ae62cc1e56a6 | /Problem-solving/UVA/10071 - Back to High School Physics.py | 5a579f8a8411865d8f846b8806547b4904b98228 | [] | no_license | shuvo14051/python-data-algo | 9b6622d9260e95ca9ffabd39b02996f13bdf20d1 | 8f66ff6f2bd88a0ae48dac72e4ea6c5382a836ec | refs/heads/master | 2023-02-03T03:04:01.183093 | 2020-12-13T10:13:15 | 2020-12-13T10:13:15 | 274,106,480 | 0 | 0 | null | 2020-07-05T06:33:28 | 2020-06-22T10:24:05 | Python | UTF-8 | Python | false | false | 90 | py | try:
while True:
v,t = map(int,input().split())
print(2*v*t)
except EOFError:
pass
| [
"shuvo1137017@gmail.com"
] | shuvo1137017@gmail.com |
91e8fcd5f83531ebe8d9ff42b9b393532a7f36f5 | 06b2cdd32aa7110b9fcf8090487f81c0fd112d07 | /pyexe/procmail.py | c9e4dc4152256777b51577a4af20efed82d4b99b | [] | no_license | tuian/winterpy | 3050e7562ec0ed57052f5f36d970a4ecce093912 | fb3da76d583890472207683e4919d7be146d8f91 | refs/heads/master | 2021-01-20T02:19:12.146785 | 2017-08-19T04:08:05 | 2017-08-19T04:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | #!/usr/bin/env python3
import sys
import re
import io
from email import header
from simplelex import Token, Lex
from mailutils import decode_multiline_header
reply = Token(r'R[Ee]:\s?|[回答][复覆][::]\s?', 're')
ottag = Token(r'\[OT\]\s?', 'ot', flags=re.I)
tag = Token(r'\[([\w._/-]+)[^]]*\]\s?', 'tag')
lex = Lex((reply... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
6285bec09869c96c550b642390092cab73c7434a | 5db26e37400dcd5c95530465357be1acfdce01ac | /Python/Remove_Duplicates_from_Sorted_List.py | f80739e5078fe5d028f21e02fc7e1add8495d24a | [] | no_license | lmx0412/LeetCodeInPython3 | 84e3036025538604ef2fc6b626543de6e87f4d82 | 456f83915ff59323891e5aaf33eb7feeb553dc9a | refs/heads/master | 2022-03-06T06:26:49.812775 | 2022-02-16T08:11:00 | 2022-02-16T08:11:00 | 121,228,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | # pylint: disable-all
import unittest
"""
Description:
Given a sorted linked list, delete all duplicates such that each element appear only once.
Example 1:
Input: 1->1->2
Output: 1->2
Example 2:
Input: 1->1->2->3->3
Output: 1->2->3
"""
class ListNode:
def __init__(self, x):
self.val... | [
"1024260510@qq.com"
] | 1024260510@qq.com |
f408edbcd23e994916a76a8d9df92ad59a515c21 | a26f34239feebb59a73cc1c5730bb350a8c4ce1f | /app/recipe/tests/test_recipes_api.py | 3aa4dd6b17979bbc5c48a4b4d608dd2aa3d19162 | [] | no_license | LukaszMalucha/Django-REST | 361024a5eaf46a1c425d71df3bb37339cc1ba5b4 | 5629889fcf9e072adeae18013dd11dd320a103dc | refs/heads/master | 2021-08-22T10:39:11.666672 | 2020-05-15T12:49:03 | 2020-05-15T12:49:03 | 142,205,757 | 1 | 0 | null | 2021-06-10T21:09:29 | 2018-07-24T19:48:03 | Python | UTF-8 | Python | false | false | 5,165 | py | from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Recipe, Tag, Ingredient
from recipe.serializers import RecipeSerializer, RecipeDetailSerializer
RECIPES_... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
e71475b38193cc3d4ed1848a2d31f86844acdecd | 99deab5f52fd7262a26de9aa5d0163bfa738590f | /python/leetcode/tree_bst/510_in_order_successor.py | 2fd58586b6fd1affe3b38cc52b6e5128c005624f | [] | no_license | zchen0211/topcoder | e47fc07c928b83138e27fd6681b373ce499480b0 | 4d73e4c1f2017828ff2d36058819988146356abe | refs/heads/master | 2022-01-17T16:54:35.871026 | 2019-05-08T19:26:23 | 2019-05-13T05:19:46 | 84,052,683 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py | """
510. Inorder Successor in BST II (Medium)
Given a binary search tree and a node in it, find the in-order successor of that node in the BST.
The successor of a node p is the node with the smallest key greater than p.val.
You will have direct access to the node but not to the root of the tree. Each node will have ... | [
"chenzhuoyuan07@gmail.com"
] | chenzhuoyuan07@gmail.com |
945982de41a158945afd90377f2fd321c325e05f | 09c54360cd36134671f55079201e2ab6eb6f8de5 | /src/python/pants/backend/shell/tailor.py | abc8d9fb02057b311dcda594e67e2fd92c74889f | [
"Apache-2.0"
] | permissive | chebbyChefNEQ/pants | 5de4fa9684103427b85ca632bf751506b5e16621 | a53b9d29a160f36f9af1d1a2c43a693b6a55fa55 | refs/heads/main | 2023-08-15T12:07:52.846972 | 2021-09-25T16:04:09 | 2021-09-25T16:04:09 | 404,178,736 | 0 | 0 | Apache-2.0 | 2021-09-08T01:57:22 | 2021-09-08T01:57:22 | null | UTF-8 | Python | false | false | 2,545 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
import os
from dataclasses import dataclass
from typing import Iterable
from pants.backend.shell.target_types import ShellLibrary, Shunit2Tests, Shunit... | [
"noreply@github.com"
] | chebbyChefNEQ.noreply@github.com |
bcd4c17ab5a06fe99f3c43abb1302429ee58b698 | 622820c4e962a48762848f2e04f0c5f5d6fe4e7e | /leukemia/gene_annotation_rna_processing.py | 21d3a51df813b46d480c0008317ecc1efb47202b | [] | no_license | lillianpetersen/activity-by-contact | e805ead4ab9aaf810d6d7ef2371a57dab978fcc3 | 6b85c31a3ce723a8d47cac753be5fe5d02b63625 | refs/heads/master | 2020-09-07T20:10:25.391202 | 2020-02-03T18:33:10 | 2020-02-03T18:33:10 | 220,900,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,072 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sys import exit
from scipy import stats
from collections import Counter
import statsmodels.stats.multitest as multi
from collections import defaultdict
import re
import gzip
wd = '/pbld/mcg/lillianpetersen/ABC/'
wdvars = '/pbld/mcg/lillianpete... | [
"lilliankay.petersen@gmail.com"
] | lilliankay.petersen@gmail.com |
cc1051b78d5c6c430cb982290b310e1b78a7d710 | e39d4196fe0c896a42c1e7bb80fcdb6903e2d14c | /ch10/10_1.py | 769cc07d0b15f218948792f26efc0587e81473ad | [] | no_license | ZY1N/Pythonforinfomatics | eacb8a8d7feb6757155c3c0fde657bba6013a588 | 14f201171ee39aaa2d9171b5e77c345d15dfbdc4 | refs/heads/master | 2020-05-26T18:20:40.233616 | 2019-06-13T20:28:03 | 2019-06-13T20:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | #Exercise 10.1 Revise a previous program as follows: Read and parse the From
#lines and pull out the addresses from the line. Count the number of messages from
#each person using a dictionary.
#After all the data has been read print the person with the most commits by creating
#a list of (count, email) tuples from the ... | [
"yinzhang@e1z2r2p3.42.us.org"
] | yinzhang@e1z2r2p3.42.us.org |
81e9c826c7c1eaef4d87398db1b57e8f407b20e2 | a382716034b91d86ac7c8a548a63d236d6da8032 | /iaso/migrations/0020_account_default_version.py | ffbd274b92d6be478aa8cddaeb589518644218e4 | [
"MIT"
] | permissive | lpontis/iaso | 336221335fe33ca9e07e40feb676f57bbdc749ca | 4d3a9d3faa6b3ed3a2e08c728cc4f03e5a0bbcb6 | refs/heads/main | 2023-08-12T20:34:10.823260 | 2021-10-04T07:34:50 | 2021-10-04T07:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.1.11 on 2019-11-28 11:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("iaso", "0019_auto_20191127_1602")]
operations = [
migrations.AddField(
model_name="account",
na... | [
"tech@bluesquarehub.com"
] | tech@bluesquarehub.com |
d5cfa50ece48fbb131a3a7fc27a6bddf6c237979 | f806deeb28680f87e436b8c0910c0d40983d9c4a | /shop/wsgi.py | a7e1b4d5ee28d399903f73b8602cc79f83336d57 | [] | no_license | AzamatSydykov/pyshop_test | 34e3bae7fa07485291007630544a65da832aaa40 | 9033ed1c4a74e27d744b86b89f07421f7deae7ef | refs/heads/master | 2023-04-02T14:31:38.170029 | 2021-04-02T11:39:28 | 2021-04-02T11:39:28 | 353,988,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | """
WSGI config for shop 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/3.1/howto/deployment/wsgi/
"""
import os
from whitenoise import WhiteNoise
from django.core.wsgi import get_wsgi_application
from ... | [
"l0808las@gmail.com"
] | l0808las@gmail.com |
98b3426127bb99afab2b65254acaddd837d59b19 | 7dbe7a85f3b3ee3d163bb1864233a2cea084f1bd | /tests/conftest.py | 22b005f628ee912287dc2ac0f0ad96a77dfca87b | [
"BSD-3-Clause"
] | permissive | gnprice/rupypy | 82ae3a6133e762db8ff11f62ecfafccf9718bf6a | b37b29f3f64b4fb976b75fcd5f2b3b7cf2525f94 | refs/heads/master | 2020-12-25T01:51:01.126815 | 2012-10-14T23:47:20 | 2012-10-14T23:47:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import copy
def pytest_funcarg__space(request):
# Inside the function so various intitialization stuff isn't seen until
# coverage is setup.
from rupypy.objspace import ObjectSpace
# Building a space is exceptionally expensive, so we create one once, and
# then just deepcopy it. Note that deepco... | [
"alex.gaynor@gmail.com"
] | alex.gaynor@gmail.com |
ec379213d9e9990438292b83b965639bcdf794f1 | 3acb90a1e97a0e851c6e4b1b57dda78ec5e3e3b4 | /problems/maximum_size_subset_with_sum.py | 0796ed279279222b049ad34e3a8afb5180c153dd | [] | no_license | jhyang12345/algorithm-problems | fea3c6498cff790fc4932404b5bbab08a6d4a627 | 704355013de9965ec596d2e0115fd2ca9828d0cb | refs/heads/master | 2023-05-15T10:26:52.685471 | 2021-06-01T14:57:38 | 2021-06-01T14:57:38 | 269,333,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | # This is an extended version of the subset sum problem.
# Here we need to find the size of the maximum size subset
# whose sum is equal to the given sum.
from pprint import pprint
# def max_subset_with_sum(arr, s):
# n = len(arr)
# cache = [[0 for _ in range(n + 1)] for __ in range(n + 1)]
# ret = 0
# ... | [
"jhyang12345@naver.com"
] | jhyang12345@naver.com |
638a8e16c973c212a5a3f75aad9ae44281492433 | c2d7bee139ac41ed31c664c98867345ca9537120 | /kaggle_environments/envs/lux_ai_s2/test_agents/python/main.py | a7837dac8f789ddd28a409f0491811616795d2b4 | [
"Apache-2.0"
] | permissive | Kaggle/kaggle-environments | b184c0ffdadbf6a4277153e2f4cfc8700b90424b | e80a16e0c957237221167184df81035e9fc0d937 | refs/heads/master | 2023-09-01T02:50:19.091441 | 2023-08-31T18:31:25 | 2023-08-31T18:31:25 | 228,697,796 | 269 | 177 | Apache-2.0 | 2023-08-31T18:19:38 | 2019-12-17T20:39:57 | Jupyter Notebook | UTF-8 | Python | false | false | 2,324 | py | import json
from typing import Dict
import sys
from argparse import Namespace
if __package__ == "":
from agent import Agent
from lux.config import EnvConfig
from lux.kit import GameState, process_obs, to_json, from_json, process_action, obs_to_game_state
else:
from .agent import Agent
from .lux.con... | [
"noreply@github.com"
] | Kaggle.noreply@github.com |
7ef6f8fb10b7db187aec1a53e9a1c743cc1f62ad | 77db6591c5884204d6016bfa89b33691bac38813 | /tamaya/migrations/0001_initial.py | 30142f817f2e10784af4ac5fddf1f6f2ab75817d | [] | no_license | jbukoski/iltf-signal-webmap-suite | 4fc0aafa977e911a1071872f7adbaf2e7d0da37c | b8374e9cfcc80501a8f632721a7cb9b76e668f6b | refs/heads/master | 2021-03-27T11:20:37.174667 | 2020-12-31T18:03:20 | 2020-12-31T18:03:20 | 79,853,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,544 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-12 07:30
from __future__ import unicode_literals
import django.contrib.gis.db.models.fields
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migra... | [
"jacob.bukoski@yale.edu"
] | jacob.bukoski@yale.edu |
1e902a4337bd78acf19366639ed7099562d1b862 | 4c10b9340d37cbd33c50401c3b50cc5030ed0a68 | /src/transformers/utils/doc.py | a5610a32ba6ba4e5340dcac3024e7823c8c3028a | [
"Apache-2.0"
] | permissive | jmhessel/transformers | edd041e90f5ec80af591e160b134a86e50961b24 | 25c451e5a044969eb91e1e481574a2bfca5130ca | refs/heads/main | 2023-01-06T21:14:23.193802 | 2022-11-14T21:32:50 | 2022-11-14T21:32:50 | 566,081,752 | 1 | 0 | Apache-2.0 | 2022-11-14T23:34:57 | 2022-11-14T23:34:56 | null | UTF-8 | Python | false | false | 39,118 | py | # Copyright 2022 The HuggingFace Team. 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 applicabl... | [
"noreply@github.com"
] | jmhessel.noreply@github.com |
bfe95bf2133abbcf730d8bfcde647cd39a0b0566 | 6ede75099fc38a682e030d70051389ea182d6cc2 | /実装/クライアント/sidi2/incomeexpensesapi/menu/migrations/0030_auto_20201220_1600.py | ac289e2b32745ce412c3f49524bf52b13b178444 | [] | no_license | hangtran93tk/team06 | 0d86e59be866d7f6bda1b6c81f725ca1f80eba0f | 89000be20c18d3b9610c240b25c7c1944fc68d6d | refs/heads/master | 2023-03-12T11:58:03.802711 | 2021-02-26T03:51:36 | 2021-02-26T03:51:36 | 279,473,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # Generated by Django 3.0.5 on 2020-12-20 07:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('menu', '0029_auto_202012... | [
"hangtrand6qt1@gmail.com"
] | hangtrand6qt1@gmail.com |
e4ffd15029d81b16c7e5358ed60f6b17ff8e7e28 | 8db839ce40bb09b3634201ffbf3dae5342457d95 | /DictProj1.py | fec142ba107a6466b6094dc01013e5269f332a3e | [] | no_license | Liam876/HomeWork-Dina | e2803cba6de2fb9e8103837373805eef4f3dda28 | e40596c14244cf8a608cbfc1715d5ad7db44fd61 | refs/heads/master | 2023-01-13T00:45:40.108337 | 2020-11-06T13:19:38 | 2020-11-06T13:19:38 | 212,346,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | def createdic(t): # Gets num of keys to be in dic
dictionary = {} # Returns formed dic
for rep in range(t):
a = rep + 1
print(str(a) + " time")
key = getinput("key")
value = getinput("value")
if key in dictionary:
output = []
li = [dicti... | [
"noreply@github.com"
] | Liam876.noreply@github.com |
8fd2eb0d7376aa61d889e25e31931f69fc97eb78 | c0129f53d99fbcdd690b54ba64a8fe1a54432a99 | /data_process/py/extraction.py | c96b5910470abde3fdf074f40377e95b7262ee1a | [] | no_license | zhoumaneo/LCZ_classification-based-deep-learning- | ea34d9e3062ecd119613a336dc1f03e898429f6f | 5d6ea2fbab1cc13bfdec98434e243b95c4a51c53 | refs/heads/master | 2020-06-18T14:16:40.852682 | 2019-08-28T03:59:16 | 2019-08-28T03:59:16 | 196,329,811 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import arcpy
import os
path = os.getcwd()
print(path)
arcpy.CheckOutExtension("spatial")
arcpy.gp.overwriteOutput=1
arcpy.env.workspace = "vectors"
raster = "rs_img\\site2_remote_img_clip.tif"
masks= arcpy.ListFeatureClasses("*","polygon")
for mask in masks:
print(mask)
out = "rs_img\\"+"site2_"+mask... | [
"15638828135@163.com"
] | 15638828135@163.com |
1abd27f0ea85df15651b05977861eaf8c8516a52 | eeacfabfb918c9b0f922a4f6a96e50e63f029fad | /001.py | 2395e2a91db46145085b45f4a13edd2d54a9abe1 | [] | no_license | lch743/Python | f36af505f24cd88ab9900354d14f6a62f71f108c | c5bf64def9703842eefab2423347d16a9ae4478d | refs/heads/master | 2021-01-20T15:44:20.024352 | 2012-12-11T08:07:16 | 2012-12-11T08:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | import string
table=string.maketrans('abcdefghijklmnopqrstuvwxyz','cdefghijklmnopqrstuvwxyzab')
print 'map'.translate(table)
| [
"lch743@gmail.com"
] | lch743@gmail.com |
49967edba567be68611b0031fc718b09de9692db | e26104b7d6cc8042b64715cfb6c82e6ef393f439 | /venv/lib/python3.7/site-packages/pyexcel_ods-0.5.6-py3.7.egg/pyexcel_ods/odsr.py | 9aa3cee734f50dcfb60d114292874c36944d5215 | [] | no_license | kartikeyj96/python-basics | 2a08289600d25c79f7835c7c147e7dbd304934b2 | c56806580d8a67e38230fefe2a148eb2d89df158 | refs/heads/master | 2020-09-15T12:10:53.823270 | 2019-11-22T21:51:59 | 2019-11-22T21:51:59 | 223,440,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,422 | py | """
pyexcel_ods.odsr
~~~~~~~~~~~~~~~~~~~~~
ods reader
:copyright: (c) 2014-2017 by Onni Software Ltd.
:license: New BSD License, see LICENSE for more details
"""
# Copyright 2011 Marco Conti
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in co... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5d1f7611d21754e12f876d8d2824ff8575e53efb | 4215ff4aa3383f2145c416a9f5a0501f70445555 | /xxxy/Day_two/multi_process/process_cuiqinghua_crawl_mysql.py | bf8f433bb7a2316c412f8131948310029c7addc6 | [] | no_license | spareribs/scrapy-examples | abb93ce217b87af683d222e01de4de559e5288fd | ecb41e28bdfb0814ee90b2df2202562ab9f4a20f | refs/heads/master | 2021-01-20T03:29:08.888312 | 2019-03-27T05:29:15 | 2019-03-27T05:29:15 | 89,544,769 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Time : 2017/6/21 20:01
# @Author : Spareribs
# @File : process_cuiqinghua_crawl.py
# @Notice : 这是使用宽度优先算法BSF实现的全站爬取的爬虫 - 多进程
"""
import os
import urllib2
from collections import deque
import json
from lxml import etree
import httplib
import hashlib
from pyblo... | [
"370835062@qq.com"
] | 370835062@qq.com |
0d1f402739ad994b6d9b7d80a0dff023821abdc9 | 35245b4d66310c90da4f5d2cf5f2792714b281ac | /Django/waterwatchapp/management/commands/test_db_connection.py | f31e9fa386f31d65994a443aaec9e8f8818604e9 | [] | no_license | JaschaMuller/web_app_base | 7e2538335e4302245fa3d1166f4667b33aa71ed1 | 7b33a5be36febe2b65ae1e02aa4b50717959472f | refs/heads/master | 2023-08-31T00:25:55.642478 | 2021-10-09T20:08:14 | 2021-10-09T20:08:14 | 318,662,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from django.core.management.base import BaseCommand
from django.db import connections
from django.db.utils import OperationalError
class Command(BaseCommand):
def handle(self, *args, **options):
db_conn = connections['default']
try:
c = db_conn.cursor()
except OperationalError:
connected = False
... | [
"jascha.muller@gmail.com"
] | jascha.muller@gmail.com |
f013402f3952e50353dfcc3d35f383e3cc53f977 | 7ed67ecfa65ee6c770689e6bf45b75ed817713c8 | /MatrixMultiplication/matrixmultiplication.py | ff83425b1324a3fc63704a632dfaf281cbc99045 | [] | no_license | rendaixu/CompositionMR | fa0402be85a1d8bee40ef23bc412aa198b98f2c9 | 2d655729a3ad6d68b19ff55c403b3ddffcb859e5 | refs/heads/master | 2021-09-13T18:41:41.514542 | 2018-04-28T06:12:34 | 2018-04-28T06:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,553 | py | import sys
def trim(c, jc):
index = 0
for i in c:
if i == 0:
break
else:
index = index + 1
c = c[0: index]
jc = jc[0: index]
return c, jc
def Normalization(n,m,c,ic,jc):
result_c = []
nz = 0
for i in range(n):
temp = []
for j in r... | [
"qiukun11@sina.com"
] | qiukun11@sina.com |
925910732b6f517b22a530362178bdbe84f9ceeb | 072b36de31ecd906a14de7cf8434546302f51657 | /intent_detection/encoder_clients.py | 05b6ae3305b9e14d89716fc2edf94124b3adae4f | [
"Apache-2.0"
] | permissive | solversa/polyai-models | a9b991e1bc567097a45ea48fc13113449211dbba | 5ea0f961270e8f04c24bd3f3f1cf30cddb8268f2 | refs/heads/master | 2022-11-06T11:16:28.866610 | 2020-06-24T16:53:19 | 2020-06-24T16:53:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,493 | py | """Sentence encoder library for tensorflow_hub based sentence encoders
The included sentence encoders are:
- BERT: https://arxiv.org/abs/1810.04805
- USE multilingual: https://arxiv.org/abs/1907.04307
- ConveRT: https://arxiv.org/abs/1911.03688
Copyright PolyAI Limited.
"""
import abc
import os
import pickle
import... | [
"noreply@github.com"
] | solversa.noreply@github.com |
84e27abcbf77a8326005c61b2a757da7bacca739 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/kusto/v20210101/attached_database_configuration.py | 946ae232ce58b45d17af011ef974b0437c9ea1a7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,081 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
e621edac8b6236ada83c404b082d7857b31371de | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/carbon/common/lib/jinja2/lexer.py | e5a21bb93528b239c8fe57cd40d85f1a50ddb173 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 17,748 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\jinja2\lexer.py
import re
from operator import itemgetter
from collections import deque
from jinja2.exceptions import TemplateSyntaxError
from jinja2.utils import LRUCache, next
_lexer_cache = LRUCache(50)
white... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
19ec32991e20e05769722e0f500cec98f9848466 | 433a7d9cca052a12e5095d36dfdb5e7126668f2b | /backend/inscourse_23147/settings.py | 9b86d22a2800d2d17d4f6d1faafb2803cc0f60c3 | [] | no_license | crowdbotics-apps/inscourse-23147 | e60ee992bce724ff3867d49ed8700a0b32d8c6a8 | e50764e04e71c0d29e5c3b8a905cdb153d6902a3 | refs/heads/master | 2023-01-23T10:54:04.697210 | 2020-12-03T03:45:16 | 2020-12-03T03:45:16 | 318,065,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | """
Django settings for inscourse_23147 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
impo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ccae046c0f8494eb003afba5478f44c47ba4bc01 | 9d7f5e04f951884880c4636dc95e4db53893fedf | /Tool/KFDataTool/Py/Cheetah/Compiler.py | c0ae90d092015e1cdcee17a59f809f13f6582109 | [] | no_license | Keyf0/KFData | 78b93907f01a37a1f6ec978587f0280483911ad9 | 46146e5ee8540f0cba2d6cdd0c9ec4f6d69b8930 | refs/heads/master | 2022-03-24T19:13:21.353121 | 2019-11-29T18:25:44 | 2019-11-29T18:25:44 | 217,873,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,519 | py | '''
Compiler classes for Cheetah:
ModuleCompiler aka 'Compiler'
ClassCompiler
MethodCompiler
If you are trying to grok this code start with ModuleCompiler.__init__,
ModuleCompiler.compile, and ModuleCompiler.__getattr__.
'''
import sys
import os
import os.path
from os.path import getmtime
impo... | [
"329052613@qq.com"
] | 329052613@qq.com |
b000eea6b4fe6367d08925b8fa050bc5b3370610 | 89ab6ddbd077a9bc4e5b7a79d458baaf7516fa4f | /kwstandbyclient/v1/shell_commands/nodes.py | b8227a0f094d3b17faa87ae16d42e2e3251a149d | [
"Apache-2.0"
] | permissive | frossigneux/python-kwstandbyclient | 2ec1b7c326728260860cdc6682a91c990d552aff | 7d9d4235ec97f6761344e3d880b5acbb60e592a9 | refs/heads/master | 2021-01-19T16:51:33.707765 | 2014-03-17T16:34:36 | 2014-07-12T13:11:15 | 20,718,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,816 | py | # Copyright (c) 2014 Bull.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, sof... | [
"francois.rossigneux@inria.fr"
] | francois.rossigneux@inria.fr |
198a2b094565fec7c23f34cb39554603de366025 | 9f1ebef0f493ba2d7b72861a72a68bf17cda5c85 | /packages/augur-core/tests/contract.py | 9cfe4f4e17b7b2838e924831e7cd37b861999b04 | [
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-3.0-only",
"MIT"
] | permissive | MicrohexHQ/augur | c2bd62cb04a825f3661f7b10fb7b4efeab5065a4 | dad3ce5678e14482bb3b3cc925d398b6d659b2f5 | refs/heads/master | 2020-07-27T00:11:12.315221 | 2019-09-16T13:03:15 | 2019-09-16T13:03:15 | 208,801,012 | 0 | 0 | MIT | 2019-09-16T13:02:11 | 2019-09-16T13:02:11 | null | UTF-8 | Python | false | false | 2,825 | py | from eth_tester.exceptions import TransactionFailed
from decimal import Decimal
class Contract():
def __init__(self, w3, w3Contract, logListener=None, coverageMode=False):
self.w3 = w3
self.w3Contract = w3Contract
self.address = self.w3Contract.address
self.abi = self.w3Contract.ab... | [
"achap5dk@gmail.com"
] | achap5dk@gmail.com |
65777f375fdc631125c33c071fd30d9ea4168f09 | 1b0545444cdf3bb0cb38279d1de1dc7448a6dae5 | /src/petsProject/PUPG/urls.py | 7e30d8bb47b5d40215606b9a858e33fe7ebc231f | [] | no_license | JacobGros/pets | 5795f8a3f68a4323b4cda37ac51fb09cc934a55b | 495e8aa4b452fa37f1159701642b95473fa1a4df | refs/heads/master | 2020-03-29T12:18:52.090127 | 2018-12-11T21:48:16 | 2018-12-11T21:48:16 | 149,893,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from django.urls import path
from PUPG import views
urlpatterns = [
path("", views.index, name="index"),
path("submit/", views.PetCreateView.as_view(), name="submit"),
path("leaderboard/", views.leaderboard, name="leaderboard"),
path("vote/", views.vote, name="vote"),
path('person/<int:pk>', views... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
6f7752e41013abe69aceec822e6aa473025712a8 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/gr/m_biped_leg.py | febedbbdec798af635d5931aa4fa4ac89c849e53 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,713 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program 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 2
# of the License, or (at your option) any laTter version.
#
# This program is... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5ddad824f9a1771ecc0c22e87edfbcb5638cd2de | b00873d36e44128ce30623da0ee3b556e4e3d7e7 | /solutions/solution34.py | 9127e90dde3024fbdc1b4a09dbba1eba976718bf | [
"MIT"
] | permissive | Satily/leetcode_python_solution | b4aadfd1998877b5086b5423c670750bb422b2c8 | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | refs/heads/master | 2021-07-18T07:53:10.387182 | 2021-07-17T06:30:09 | 2021-07-17T06:30:09 | 155,074,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | class Solution:
def searchRange(self, nums: 'List[int]', target: int) -> 'List[int]':
if len(nums) == 0:
return [-1, -1]
left, right = 0, len(nums) - 1
while right > left:
mid = (left + right) >> 1
if nums[mid] < target:
left = mid ... | [
"ladfmcl@126.com"
] | ladfmcl@126.com |
24f98750f19eae082a24931ba18df9130c6d5f8c | 7fed9926b605213f207ef24804c419078defbde0 | /mission/constants/config.py | 4809adee6e07b4dae66f11846558712c16dfbd41 | [
"BSD-3-Clause"
] | permissive | zhaohongqiang/software | 12ad1330ea3a2c57526d1000f289560a2083a1d0 | 7ac106ef84c33deb99267246125a6be17ef9d164 | refs/heads/master | 2020-05-29T12:30:00.527923 | 2016-07-19T06:06:17 | 2016-07-19T06:06:17 | 63,673,097 | 1 | 0 | null | 2016-07-19T07:52:12 | 2016-07-19T07:52:11 | null | UTF-8 | Python | false | false | 9 | py | teagle.py | [
"software@cuauv.org"
] | software@cuauv.org |
cf94c18f53619b6515f45a13125ddacd43f35fb4 | 97e0d474658f4fae5d68def8c23719a7e98eca32 | /ghost/client.py | 19928c5a07b0b7267afc30f4b37a7f28d29fbc16 | [] | no_license | leonardormlins/fateclando | 3e8ba807599e1a132d2cd40c5eacafe2310cb2b1 | 08f1b0d4c46606c0190f2b0c49bc282f6ad73f29 | refs/heads/master | 2022-11-26T13:15:39.001807 | 2020-07-22T13:54:31 | 2020-07-22T13:54:31 | 280,486,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import socket
import rsa
def encrypt_message(text, pub_key):
return rsa.encrypt(
text,
rsa.PublicKey.load_pkcs1(pub_key, format='PEM')
)
def capturePublicKey():
filePath = "/home/leo/Documents/Fatec/5Semestre/Branquinho/fateclando/ghost/ghostPub.txt"
file = open(filePath,'r')
pub_... | [
"leonardolins.ext@hotmail.com"
] | leonardolins.ext@hotmail.com |
dbbfedb8e5a864c4327ba65f8e0c6a5752f63d8e | d0a9175e68911f7d79ad106027c12ac0981674f9 | /CodeAcademySolutions/Custom_Print.py | 3a2ee5d187325f3254f213d318668bb0cc9600ce | [] | no_license | mwongeraE/PythonProjects | 595199e177e6782605fd50da9c91e9fd29464cf9 | 0326841b063a64a4240bc3318c2d688eedbd158d | refs/heads/master | 2021-09-23T12:11:12.481485 | 2018-09-22T13:48:00 | 2018-09-22T13:48:00 | 106,571,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | board = []
for x in range(0,5):
loop = ["O"] * 5
board.append(loop)
def print_board(board_in):
for row in board:
print row
board
| [
"evansmwongera@gmail.com"
] | evansmwongera@gmail.com |
5110b63f13df8031bb400f7ac712f28be4fdf17f | ff47a30ca8475a657adef3c2ca1d087f2c3ed1c9 | /Ch4.py | 24dc3801f5a0335aebf2aadc774b9298ad84ec50 | [] | no_license | bliotti/crypto-challenge | 0dc90ddad008a9c58a08e9e85484970e07ac2272 | 08a9ec93acbf94684bc8b06e4218718e73cb71ec | refs/heads/master | 2020-08-01T14:48:36.599709 | 2019-12-14T09:00:41 | 2019-12-14T09:00:41 | 211,026,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # https://cryptopals.com/sets/1/challenges/4
# Detect single-character XOR
# One of the 60-character strings in this file has been encrypted by single-character XOR.
# Find it.
# (Your code from #3 should help.)
from Ch3 import decodeByLetter, areWords
f = open("Ch4.txt", "r")
max = 0
for x in f:
c = areWords(de... | [
"bliotti@protonmail.com"
] | bliotti@protonmail.com |
31e86eeceb39f0063b0cc4250e5d9c3ea0a0e852 | 370c67c6aa1632b9df30df3f85351364e830efcb | /client_menu.py | 6552b9ec1dd4a72159aee21f6572d4efb05a7a6e | [] | no_license | AvivBenShoham/screen-party | c02b33019469459108773009758271d0bbf80f44 | d4a0560ab565dcb730987e7a9207182cd0137cb8 | refs/heads/master | 2022-01-14T17:31:22.750213 | 2019-06-13T20:14:33 | 2019-06-13T20:14:33 | 191,825,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | from tkinter import *
from tkinter import messagebox
from client import client
client_online = False
myclient = None
"""tries to connect to host"""
def try_to_connect(): #no need to pass arguments to functions in both cases
global client_online
global myclient
global root
if myclient ==... | [
"noreply@github.com"
] | AvivBenShoham.noreply@github.com |
3348482129614559bf562009587fd0cd8f650a76 | bf885fc079ee6b70baaddd22fd921637aa2e8e13 | /arrays/kth_largests.py | 7cea40fcc298e73c4ab53907a369e9f08818e008 | [] | no_license | ashish-bisht/Ds-and-Algo | 006f7412a8b20cced7da261452864a09edd4b4db | a042127b5b51bcb632e5e0bf08b130b554f10c3f | refs/heads/master | 2020-09-16T03:10:19.648329 | 2020-04-18T08:55:26 | 2020-04-18T08:55:26 | 223,632,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import heapq
def kth_largest(nums, k):
return sorted(nums)[-k]
nums = [3, 2, 1, 5, 6, 4]
k = 2
print(kth_largest(nums, k))
def kth_largest_heap(nums, k):
heap = []
for num in nums:
heapq.heappush(heap, num)
for _ in range(len(nums)-k):
heapq.heappop(heap)
return heapq.heappo... | [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
2ef0da07a4bdf9994bd84d2d88cd026c975b1d7e | c9ee283fe1e5a2538d990c4399bd1f4c4091a985 | /wordcount/views.py | 8af5cdf5cc80851de1043ebb2922fcd2edb43700 | [] | no_license | xgarbagelab/wordcount-project | 5cefce5e00807c945e84f44b3c0c86cf96169ad5 | abc9767c75b3bf7d0de98260817eaea75bf57d6a | refs/heads/master | 2020-03-09T10:38:45.229805 | 2018-04-09T09:01:35 | 2018-04-09T09:01:35 | 128,741,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from django.http import HttpResponse
from django.shortcuts import render
def homepage(request):
#return HttpResponse('Hello'
return render(request,'home.html')
def count(request):
fulltext=request.GET['fulltext']
wordlist = fulltext.split()
word_dictionary={}
for word in wordlist:
if w... | [
"madhusudan707@gmail.com"
] | madhusudan707@gmail.com |
45cead8da98c2c33ffdf9692f4f051e3884b5fb6 | d231cb5d54cb14bc4b40d5ba56709f80a1f9d4c1 | /WMass/python/postprocessing/scripts/copyDir.py | a42a37dc1bdce2a94dc311a5e937a05cf2b180ba | [] | no_license | WMass/cmgtools-lite | 179d7083878b8cb1de14835b8c0a76a51bfd6a1e | 025b7ec338ee7f574ad802a958ec6214995c2ac9 | refs/heads/wmass94X | 2022-07-03T13:09:16.634404 | 2020-08-31T06:39:42 | 2020-08-31T06:39:42 | 108,602,987 | 0 | 8 | null | 2022-02-04T23:04:41 | 2017-10-27T22:56:41 | Python | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/env python
import os, sys
import re
if __name__ == "__main__":
from optparse import OptionParser
parser = OptionParser(usage="%prog [options] inputDir outputDir")
parser.add_option("-p", "--pretend", dest="pretend", action="store_true", default=False, help="Don't run anything");
parser.add... | [
"cippy91@gmail.com"
] | cippy91@gmail.com |
514ad159680cee8af058ad18c3d94bc9d7b281b8 | 6656aa66a16ae34bdb967dd502aadedf27dc2ddb | /file/palindrome.py | 668a20b11822bc6f0c9254c631ad29a2ec24ba6b | [] | no_license | Lucidhomme/Python | a7e654ba2b1abeea48a15d22d976681d3cdb40e5 | b51ba56c0d74c9d820260885f1f5af04cdd99d9d | refs/heads/main | 2022-12-24T16:34:28.336819 | 2020-10-09T15:08:48 | 2020-10-09T15:08:48 | 302,671,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | # 서비스패키지 밑 파일 패키지 밑 palindrome모듈생성, 파이썬 베이스밑에 palindrome caller모듈 생성
# 회문(palindrome)
# 단어를 거꾸로 읽어도 제대로 읽는 것과 같은 단어 또는 문장
# level, sos, rotator, 'nurses run'
# 기준점이 필요하다. 첫 글자와 마지막 글자를 비교
# 반복문
# //
# str = 'jslim9413'
# idx = len(str) // 2
# print(str[idx])
# 특정단어가 들어 왔을 때 이 단어가 회문인지 아닌지 검사하는 함수
def isP... | [
"noreply@github.com"
] | Lucidhomme.noreply@github.com |
6d587149211c6466c6606dfa59659a94f16ff35b | 75a9c9a3f0c92b31e4682c3b452ca528858b521c | /kEdge/TestRegistration.py | 58eb5613777c0c6fd5ef24a21c74190c86c492e7 | [] | no_license | DoctorEmmetBrown/Pagaille | 1ccf58db6895c0035d8d48a142fce808661b4883 | 443635cab835281cc8a13c92fe5e898a52f72bfb | refs/heads/master | 2020-04-29T17:08:53.597371 | 2019-07-18T15:03:02 | 2019-07-18T15:03:02 | 176,288,407 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | __author__ = 'embrun'
import numpy as np
import matplotlib.pyplot as plt
from skimage import data
from skimage.feature import register_translation
from skimage.feature.register_translation import _upsampled_dft
from scipy.ndimage import fourier_shift
image = data.camera()
shift = (-2.4, 1.32)
# (-2.4, 1.32) pixel off... | [
"ines.zaouak@gmail.com"
] | ines.zaouak@gmail.com |
a72647356ffc9aa6166402b5689ac88fec136576 | b6fd722600334071987e5b25787d672d002d0d82 | /restful_ajax/wsgi.py | 169e87c6785a188c457fd1f55e3e4173bcd19c39 | [
"MIT"
] | permissive | Divinity360/VclinicApi | 789be9c6d919d0985c9ce276d45556275579e5d7 | 7271e2143a1399aabad9e32c8538a29efe81d774 | refs/heads/master | 2022-12-09T21:36:15.752993 | 2020-02-05T22:03:51 | 2020-02-05T22:03:51 | 238,483,133 | 0 | 0 | MIT | 2022-12-08T06:18:30 | 2020-02-05T15:28:34 | JavaScript | UTF-8 | Python | false | false | 173 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "restful_ajax.settings")
application = get_wsgi_application()
| [
"thedivinitysoft@gmail.com"
] | thedivinitysoft@gmail.com |
d205ecf93b379b1f946455216374e1b917657a8d | 9d5e20547dbd675442f82952511506974b4c8e7b | /pyscf/pbc/df/mdf.py | fc784cffdbd7b54c06c749edb22f6b05e43347b6 | [
"Apache-2.0"
] | permissive | tyanderson176/pyscf | 9072b68bf4c6544deec11cd259e67406bed6b2a6 | a5c480338c4725d5ffb023e12266862bdee6b3aa | refs/heads/master | 2020-08-22T17:05:37.115630 | 2019-10-20T23:59:23 | 2019-10-20T23:59:23 | 216,443,034 | 0 | 0 | Apache-2.0 | 2019-10-20T23:48:44 | 2019-10-20T23:48:43 | null | UTF-8 | Python | false | false | 17,446 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
0dc2326977bac2dd04182a4f66eed643b31298e0 | c7feb89550b180fb67f0d9dd0de342e271ee2f94 | /src/metric.py | 3caa2ff76773b28a59d02920424a79aabcec0496 | [] | no_license | nielsarts/energymonitoring | b8cb94f106ecdbfd7a36649c02d8236d9e08be01 | 0b9070069f8cada5b08b399e66b4e6916f3ef552 | refs/heads/master | 2020-05-01T16:35:17.629262 | 2018-08-11T22:40:44 | 2018-08-11T22:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,964 | py | #!/usr/bin/python
# software based on
# TP-Link Wi-Fi Smart Plug Protocol Client
# For use with TP-Link HS-100 or HS-110
#
# by Lubomir Stroetmann
# Copyright 2016 softScheck GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You... | [
"e.a.kuijpers@hva.nl"
] | e.a.kuijpers@hva.nl |
a9b05d089d341d0a3b1eab6aff004a19bb131807 | 9972d0d7f5678963344da089f5cdeb033a97db46 | /Py/pg_karpathy_keras_kreplication.py | 58a19b28a746a957e7a7dd346817411dee673e05 | [] | no_license | blakecc/RLworkingFolder | e00fbc7ee60295ad7ea47ebb46f6451a24766982 | 85affc56809ab9616b4fa4111c627e4357a0a9a2 | refs/heads/master | 2021-09-07T22:41:40.258030 | 2018-03-02T11:03:51 | 2018-03-02T11:03:51 | 122,582,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,438 | py | import numpy as np
import _pickle as pickle
import gym
import os
from keras import layers
from keras.models import Model
from keras import backend as K
from keras import utils as np_utils
from keras import optimizers
# from keras.layers import advanced_activations
# from keras.layers.convolutional import Conv2D
# from... | [
"blake.rsa@gmail.com"
] | blake.rsa@gmail.com |
1cab05e8df2ef56696b693b546524a113f199941 | 9923b156c529a38088c05cdd7d4b454b93603446 | /tests/test_provider_events_monitor.py | 751fe7545b9815bed4bdfc630af8821cd1d08bca | [
"Apache-2.0"
] | permissive | nevermined-io/gateway-events | fb9f7eefb3c34f9639bc2fa54062649efc2f74b4 | 5e70ad7ee7f9964314f21b5dfc60bb241f964344 | refs/heads/master | 2023-03-15T08:47:58.358646 | 2020-11-06T16:16:17 | 2020-11-06T16:16:17 | 257,318,216 | 0 | 0 | Apache-2.0 | 2021-03-26T00:37:57 | 2020-04-20T15:08:07 | Python | UTF-8 | Python | false | false | 4,408 | py | import time
from contracts_lib_py.web3_provider import Web3Provider
from common_utils_py.agreements.service_agreement import ServiceAgreement
from nevermined_gateway_events.provider_events_monitor import ProviderEventsMonitor
from tests.conftest import get_consumer_account
from tests.resources.keeper_helpers import (... | [
"enrique@keyko.io"
] | enrique@keyko.io |
a2a9fceea4e11f10be4c0e8af2593734c4b133ee | 5095200e9ca55cd3a37af34ed44448c02e2a1bb5 | /paddlehub/compat/task/config.py | f464cce162899582ffaf7ac57e1505e14f045507 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHub | 8712603ef486c45e83eb0bc5725b0b3ed3ddbbde | b402610a6f0b382a978e82473b541ea1fc6cf09a | refs/heads/develop | 2023-07-24T06:03:13.172978 | 2023-03-28T11:49:55 | 2023-03-28T11:49:55 | 162,672,577 | 12,914 | 2,239 | Apache-2.0 | 2023-07-06T21:38:19 | 2018-12-21T06:00:48 | Python | UTF-8 | Python | false | false | 1,982 | py | # coding:utf-8
# Copyright (c) 2019 PaddlePaddle 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 req... | [
"wuzewu@baidu.com"
] | wuzewu@baidu.com |
2455f838db84ea0b765dedc72fed46711631ee90 | 2a73b2be1379b368d675d641db4254dd2a7f202b | /django_app/member/views/profile.py | 2e39e04f473f03b9a7a6e4418c7fc70372dcb03a | [] | no_license | recordingbetter/Instagram-practice | 610dcb5417657ed80b35848d14053d4afe9651fb | 5f0142dc468d2e74778f463d6f0ec58892afcdf6 | refs/heads/master | 2022-12-14T01:33:19.161868 | 2017-08-03T02:22:40 | 2017-08-03T02:22:40 | 93,719,756 | 1 | 0 | null | 2022-12-08T00:00:14 | 2017-06-08T07:26:10 | Python | UTF-8 | Python | false | false | 2,647 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse
from ..forms import UserEditForm
User = get_user_model()
__all__ = (
'profile',
'profile_edit',
)
def... | [
"recordingbetter@gmail.com"
] | recordingbetter@gmail.com |
bfdb6e1d74f2f88ec6366964c86e81f107fcfa47 | cbade68fac51a0228aad4414c1e06bde6611e36a | /venv/bin/easy_install-3.8 | 9b9e302a5c00e7f53eaacc6bf7e9e725fb594d13 | [] | no_license | Roger-Aguiar/python_plus_postgresql | 04483f47f176db766a664dcc94292d4d763ce070 | f06113ba70014bcddfb99d8c196e429ce2820f4d | refs/heads/master | 2022-11-25T18:45:45.152608 | 2020-08-01T09:51:52 | 2020-08-01T09:51:52 | 283,590,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | 8 | #!/home/roger/Desktop/Files/Studies/Python/Python_with_postgresql/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"roger.silvaaguiar@yahoo.com.br"
] | roger.silvaaguiar@yahoo.com.br |
8aa8a71d1233dc911af7a391b8b3275700a57763 | de764e803d7975fa231e109b74446dd1d5acc033 | /make_data/scratch.py | 579f73337d842635c3426ca8ae4ac7865b491a5f | [] | no_license | cjohnst5/akm_codePYTHON | e5a1e064de7f09b0bb0194d1be3306a5c9dda293 | fdaa39b8a4a4588aac34ae5a52aa424e284b1b8c | refs/heads/master | 2021-01-19T07:46:25.940305 | 2017-04-13T21:06:25 | 2017-04-13T21:06:25 | 87,570,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from sklearn.neighbors import NearestNeighbors
import numpy as np
X = np.array([[-1, -1], [-2, -1], [-3, -2], [1, 1], [2, 1], [3, 2]])
nbrs = NearestNeighbors(n_neighbors=2, algorithm='ball_tree').fit(X)
distances, indices = nbrs.kneighbors(X)
row = range(0,6)
column = [0, 1, 1, 1, 0, 0]
indices2 = zip(row, column)
... | [
"Carla Johnston"
] | Carla Johnston |
e7d04e8f27af5bd5ec4a2388ad5cd8b583dee39a | 23735e41c2003c7a5033d710be75b72b69081423 | /backend/run.py | 96fc8e0c6b6ba66a1a79634e260d7bb1c2dd8355 | [] | no_license | mhb8436/angular-flask-seed | 2f2088ed41b53331f741ce84b9e73e02b35ea48a | fa4e7880c0dfb3d0d0278de2ce213c8699470ca3 | refs/heads/master | 2020-12-03T10:27:06.665553 | 2014-05-12T09:36:46 | 2014-05-12T09:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/env python
from server import app, db
if __name__ == "__main__":
# print app
# print app.config['SQLALCHEMY_DATABASE_URI']
app.debug = True
db.create_all(app=app)
app.run(host='0.0.0.0',port=5001, debug=True)
| [
"mhb8436@airplug.com"
] | mhb8436@airplug.com |
15db74b3a5783b25bd95000b3c44f4a50e4d509d | f182e4b941ae17dc867ee9ef363e034235fd5823 | /python/CoordinatesHelper.py | 59b78bdaa40855d2dc8087a7c7c710e3911bc7bf | [
"MIT"
] | permissive | aquenneville/siliconmilkroundabout-company-parser | 693821ce39e053ee3fbf4e2eed8191d9bd0639eb | 14065ba7e075f102d269833e88fb5e84e8276412 | refs/heads/master | 2020-03-18T05:06:56.491046 | 2018-06-15T10:14:03 | 2018-06-15T10:14:03 | 134,325,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import urllib.request
import json
Class PostcodeToCoordinateHelper:
def convert(postcode):
res = urllib.request.urlopen("http://api.postcodes.io/postcodes/SE18XX").read()
data = json.loads(res)
c = Coordinates(data["result"]["longitude"], data["result"]["latitude"])
return c
def createGoogleMap... | [
"alainquenneville@gmail.com"
] | alainquenneville@gmail.com |
578c5fc2c8be63b7f3953a5c391eaeb6c36f8f12 | 5ba0f5e77c3cc6782683387386490ce359db0ed8 | /bin/f2py3 | 3b295d185c6d312ddbdcef2aaddc0d028625c4af | [] | no_license | 0aksinmarathon/blog_api_jwt | e273c9865070a4614b8e8d971ca06d58005ed3be | b420abd4f503872ca8e6941d0631ed25d7d6b7ab | refs/heads/master | 2023-02-13T09:05:39.719367 | 2021-01-10T09:18:40 | 2021-01-10T09:18:40 | 328,342,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/Users/manako/blog_api/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"shintaro.manako@gmail.com"
] | shintaro.manako@gmail.com | |
c4b7118b2880818c79cc6b237a64b43d935b9dfe | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/api/yang/modules/tech/content/qwilt_tech_content_line/tech/content/line/analyzer/potential/potential_maapi_base_gen.py | 7cd9cd20b07f97439aaca55200d85426178ed85f | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,492 | py |
# Copyright Qwilt, 2012
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: naamas
from a.infra.basic.return_codes import ReturnCodes
class PotentialMaapiBase(object):
def __init__ (self, logger):
raise NotImplementedEr... | [
"afeset@gmail.com"
] | afeset@gmail.com |
c860740882ec34e2bcb0dbcf0500ca6422ae34cc | 33d091a4b5ce3f956c3347d31413588e0e23e461 | /client/views/views_1.py | 7f31353bda763514867cc2207e25dfc874a44de9 | [] | no_license | tejaswinipatne/tech_dev | 90d700096801aaf1e49f31aa33c61e925c055410 | bfd7c24e6f53a055af011f39317e84742867dd13 | refs/heads/master | 2020-12-02T05:22:34.636220 | 2019-12-30T11:42:08 | 2019-12-30T11:42:08 | 230,903,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74,864 | py | import ast
import json
from user.models import user
from zipfile import *
from django.conf import settings
from django.contrib import messages
from django.core import serializers
from django.core.mail import send_mail
from django.http import HttpResponse, JsonResponse
from django.shortcuts import (get_object_or_404, r... | [
"tejupatne231995@gmail.com"
] | tejupatne231995@gmail.com |
bc231e520ceb1357dc73d5477d07af529ef19a92 | df9098c0167537c589b43e5d55cd36209a2e3478 | /drivingsim_vav/fetch_gym/envs/fetch_env.py | 193ceb8a1239b55cc1d6dac59051a561768fc3e1 | [
"MIT"
] | permissive | dsbrown1331/vav-icml | 60ef7ef6947d2ec2b6faae4d5d0e40116f7fab05 | 90f40c2b5b52f3cc142ffd4e02bb82d88e1e221d | refs/heads/main | 2023-06-04T14:30:39.451312 | 2021-06-24T22:34:46 | 2021-06-24T22:34:46 | 375,876,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,986 | py | import numpy as np
from fetch_gym.envs import robot_env, rotations, utils
def goal_distance(goal_a, goal_b):
assert goal_a.shape == goal_b.shape
return np.linalg.norm(goal_a - goal_b, axis=-1)
class FetchEnv(robot_env.RobotEnv):
"""Superclass for all Fetch environments.
"""
def __init__(
... | [
"dsbrown1331@gmail.com"
] | dsbrown1331@gmail.com |
3ba7356fdb9012933809c6514df3118f37343543 | a2b20597759990445081057d35d113434cfcf970 | /stubs/typeshed/typeshed/stdlib/multiprocessing/forkserver.pyi | df435f00ebe770e9d572a874b269089844b7dca9 | [
"MIT",
"Apache-2.0"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 1,064 | pyi | from _typeshed import FileDescriptorLike, Unused
from collections.abc import Sequence
from struct import Struct
from typing import Any
__all__ = ["ensure_running", "get_inherited_fds", "connect_to_new_process", "set_forkserver_preload"]
MAXFDS_TO_SEND: int
SIGNED_STRUCT: Struct
class ForkServer:
def set_forkserv... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
43479fbf0082baa527fe671a3c356aad32639f5d | 4c84cdd3ac80b9121aab75a9950b713633876c86 | /src/GetFromfileURL.py | 86386b57f50d2f6b5232cf48fa1f34c8d67c6da0 | [
"MIT"
] | permissive | Yang-33/vjudge-atcoder-submitID | 5a8d687211b0e5ac2965bb3cdf01f6a47ba679ad | 5b87594322a337e6acb25c84470d273427413445 | refs/heads/master | 2021-05-03T04:32:15.053231 | 2018-02-08T15:04:16 | 2018-02-08T15:04:16 | 120,618,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py |
def GetfromfileURL(filename):
URL = []
with open(filename,'r') as File:
for line in File:
URL.append(line)
return URL
| [
"kasai.yuta0810@gmail.com"
] | kasai.yuta0810@gmail.com |
87755ae2bc42ff08eecb4df2ddff94c8c977fea3 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D13A/REGENTD13AUN.py | 0525003744529b5867628652bbb213f144f0eef8 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 3,511 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD13AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'CUX', MIN: 0, MAX: 1},
{ID: 'PNA', MIN: 1, MAX: 99, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
de135e77c6e7eb05a6ea85251c74670b01fd1e46 | f78141cb2d1a8e10ee45739a0bc0f5a3b50182b1 | /printpdfslides.py | c6e23000edc6bfdca6fce44195d7b856cc2802af | [] | no_license | mprat/MEET-sessions | 329a4193ac4e409b1702a8901f6d2db1516557d8 | 9295bd1b7379d30ef1acfc81af27f66736041d16 | refs/heads/master | 2021-01-17T09:33:36.008808 | 2014-06-24T08:36:52 | 2014-06-24T08:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import io
import sys
if len(sys.argv) != 2:
print "type the name of the notebook as the command-line argument"
else:
notebook = sys.argv[1]
path = notebook + '.slides.html'
flag = u'@media print{*{text-shadow:none !important;color:#000 !important'
with io.open(path, 'r') as in_file:
data = in_file.readlines(... | [
"michele.pratusevich@gmail.com"
] | michele.pratusevich@gmail.com |
e7473bdf2d22f720b9d59aa51182d6e104d57893 | d6e36762821f30c589d335e1cedb937280741739 | /stubs/openpyxl/openpyxl/chart/pie_chart.pyi | a5ba7cb1f9e12bf770623d12b40f49dd651fb916 | [
"Apache-2.0",
"MIT"
] | permissive | nobuggy/typeshed | 4c20c86c14878b667e587a72fd2bdd25454413cf | d1bfd08b4bc843227d097decfd99d70272a1f804 | refs/heads/master | 2023-05-26T14:51:54.136347 | 2023-05-10T15:06:41 | 2023-05-10T15:06:41 | 72,130,850 | 0 | 0 | null | 2016-10-27T17:16:09 | 2016-10-27T17:16:09 | null | UTF-8 | Python | false | false | 2,623 | pyi | from _typeshed import Incomplete, Unused
from abc import abstractmethod
from typing_extensions import Literal
from openpyxl.chart.axis import ChartLines
from openpyxl.chart.label import DataLabelList
from openpyxl.descriptors.base import Alias, Typed
from openpyxl.descriptors.excel import ExtensionList
from openpyxl.d... | [
"noreply@github.com"
] | nobuggy.noreply@github.com |
c2b924b0282404ab40c9b7abf7ed0cb453c95c82 | c1c46664b27d051bfba4a9682d87aa222878ed4d | /example/hello.py | 8fe668ebaf18a1f30404835ff037007a07f950ee | [] | no_license | xen/sanic-jinja2 | 89c272f09c29d9b86bca6adbbd14ff78a01b8e9c | d47150c840484a45465be00350975901483e9950 | refs/heads/master | 2021-05-13T19:04:15.228612 | 2019-01-10T11:54:59 | 2019-01-10T11:54:59 | 116,883,658 | 1 | 0 | null | 2019-01-09T23:11:19 | 2018-01-09T23:42:27 | Python | UTF-8 | Python | false | false | 1,103 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from sanic import Sanic
from sanic_session import InMemorySessionInterface
from sanic_jinja2 import SanicJinja2
app = Sanic()
jinja = SanicJinja2(app)
session = InMemorySessionInterface(cookie_name=app.name, prefix=app.name)
@app.middleware("request")
async def add_se... | [
"xuzenglin@gmail.com"
] | xuzenglin@gmail.com |
a1b08ef48c0364a480cb6ad6021eabc885470856 | c61145e8771724575f67ae5738dd6cbb9626a706 | /user_profile/serializers.py | 26c0f3f64190e52de4dff520d28ce9b21132e9d9 | [] | no_license | Seredyak1/test_task | 1399dd082f4281ca6f72d036f4df4c1c6945dafe | a5d433b827df46ffa95dd6dd91245b204884674f | refs/heads/master | 2020-04-16T08:03:04.521740 | 2019-01-16T09:33:47 | 2019-01-16T09:33:47 | 165,409,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from django.contrib.auth.models import User
from rest_framework import serializers
class RegistrationSerializer(serializers.ModelSerializer):
"""Serializers registration requests and creates a new user."""
password = serializers.CharField(
max_length=32,
min_length=4,
write_only=True
... | [
"sanya.seredyak@gmail.com"
] | sanya.seredyak@gmail.com |
a9c219c55a6c714a749abe05fee1b4855327675c | 55736be550881db62a03e9dfe81307f57617b3e5 | /noodles/serial/namedtuple.py | 8300af856f66dfe106926fe907061ad0827d8496 | [
"Apache-2.0"
] | permissive | atzeus/noodles | a19dbf7d909b1714279f6864171005a84b1e37db | 2d608de26cf6d4070dc1cbf6491419163e446d4b | refs/heads/master | 2021-08-24T06:50:01.732948 | 2017-12-08T10:25:56 | 2017-12-08T10:25:56 | 113,578,184 | 0 | 0 | null | 2017-12-08T13:37:47 | 2017-12-08T13:37:47 | null | UTF-8 | Python | false | false | 1,041 | py | from .registry import (Registry, Serialiser)
from ..utility import (object_name, look_up)
class SerNamedTuple(Serialiser):
def __init__(self, cls):
super(SerNamedTuple, self).__init__(cls)
def encode(self, obj, make_rec):
return make_rec(tuple(obj))
def decode(self, cls, data):
r... | [
"j.hidding@esciencecenter.nl"
] | j.hidding@esciencecenter.nl |
d0ce41cc1efceafd9623ff9a80888835debd0069 | f247b81da7a7f2cf6f0359764fd67d49d7394596 | /python/ca_model.py | e39803c363075632f68aee5c4a42e3450dc1cc6d | [] | no_license | parameterized/neural-ca | 2147b45a33d543032f56be4802e882488aef1f79 | 5bbfb056f18bf34858c06cbaf5848f09cb1fcb6d | refs/heads/master | 2023-04-03T01:32:10.040110 | 2022-09-20T03:34:56 | 2022-09-20T03:34:56 | 240,561,234 | 2 | 1 | null | 2023-03-25T00:36:10 | 2020-02-14T17:16:35 | Lua | UTF-8 | Python | false | false | 1,421 | py |
import numpy as np
import tensorflow as tf
from tensorflow.keras.layers import Conv2D
def get_living_mask(x):
alpha = x[:, :, :, 3:4]
return tf.nn.max_pool2d(alpha, 3, [1, 1, 1, 1], 'SAME') > 0.1
class CAModel(tf.keras.Model):
def __init__(self):
super().__init__()
self.model = tf.keras... | [
"troyk212@gmail.com"
] | troyk212@gmail.com |
1521683d07646c7e056b0d4a8d501fb5a9f6137d | d529a8f43f6bcac487f3ab9ad76c61aabb91a508 | /Extra long factorials.py | ca054c3ceca1133a2c461ada6da5c92200f4596b | [
"MIT"
] | permissive | abhisheks008/Developer-Students-Club-UEM-Kolkata-CP-Contest | e8aaeafa648b096acf7f208cf9bddf8f2a6d7d29 | d141b8872fb3e8c0b37c182690f8df9385a58953 | refs/heads/main | 2023-01-12T01:56:22.615080 | 2020-11-14T03:34:30 | 2020-11-14T03:34:30 | 310,984,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # Extra long factorials of DSC UEM Kolkata Competitive Programming Contest
# Solution in Python Programming Language
# Author Abhishek Sharma
# Date : 08.11.2020
from math import factorial as f
print (f(int(input())))
| [
"noreply@github.com"
] | abhisheks008.noreply@github.com |
762a77d82a2ed0c4c1b8939e46c0ac75ff59cfe8 | 56db3cb3e93ea92604dad79371e233bcf1cffad9 | /Greenspace/settings.py | 63b8f5087d069fe5f6d5daa9d749195e5f372be5 | [] | no_license | devendra-pandey/Greenspace | 52c2a0b6e9e9b133e45d188b50e1400e4ef304f9 | d858a4c6f83771b12241a341e02f82e0f6194996 | refs/heads/master | 2022-04-14T23:09:12.541102 | 2020-02-14T17:15:20 | 2020-02-14T17:15:20 | 240,560,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | """
Django settings for Greenspace project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"devendra.dpandey02@gmail.com"
] | devendra.dpandey02@gmail.com |
a42db2ea9b8fe08f8e0eec1d9a55e6ccac6aaeae | 8f3751ae9249cd013d754ce8dc5e83ad4bbc6a02 | /output.py | 4c27ed09fedaf183261384cc1ffdf87eedbdd86b | [] | no_license | ishidur/NeuralNetworkPlotter | b7bfc08afae21a554f28cf0046f1ef106ada9c68 | 4e3511a93ab2d5c0878cd68b6d9ff95ace84eb1a | refs/heads/master | 2021-03-27T10:36:17.293905 | 2017-08-30T04:43:55 | 2017-08-30T04:43:55 | 101,734,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,397 | py | import numpy as np
import matplotlib.pyplot as plt, numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
from matplotlib import cm
from pylab import *
def sigmoid(x):
return 1 / (1 + np.exp(-x))
# Components of network(l=0,1,2,,,)
# neurons ... | [
"ishidu-ryota-fz@ynu.jp"
] | ishidu-ryota-fz@ynu.jp |
08605913b8523532604ffdc39e1ce0712d36ba0a | 282ecc293288f6ea84abe66c84f98fe2dd9f0835 | /Project_2/pipelines/simple_preprocessors.py | 23c9588e6ea656867a09ff0fd88b256a4d68af33 | [
"MIT"
] | permissive | TitoGrine/IART_Project | b61d771e2389164833d280d6306bb4cddc9f5dea | a387cface38473fa90e132207847887b43a69cec | refs/heads/master | 2022-12-15T21:04:24.315639 | 2020-09-19T14:43:21 | 2020-09-19T14:43:21 | 242,172,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.pipeline import make_pipeline
from preprocessors.lemmatization import Lemmatization
from preprocessors.tokenizer import Tokenizer
from preprocessors.utils import fit
def simple_pipeline(x, y, clsf):
model = make_pipeline(Tokenizer(preserve_... | [
"andrefmrocha@live.com.pt"
] | andrefmrocha@live.com.pt |
17630cb458f4d2ca573790240cf6ab249946ed4d | 0c6e76b147e165f0108a6371fb0ec728b8c52ec4 | /data.py | 7e2bfeebea6c795d237072811201073c6201daab | [
"MIT"
] | permissive | delwende/inflected-abbreviation-expansion | a1c4908c77388bf2bdaa4b4a5705b8ef1b6ce67c | 850c8490ec16e4de6e469912397e8e91b5bbba74 | refs/heads/master | 2020-03-19T12:46:43.324277 | 2018-06-06T17:16:10 | 2018-06-06T17:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | import gzip
from copy import copy
from itertools import chain
from pathlib import Path
from xml.etree.ElementTree import iterparse
def overlapping_grouper(iterable, n, prefix_symbol=('', ''), suffix_symbol=('', '')):
queue = [prefix_symbol] * n
offset = int(n // 2)
for idx, item in enumerate(chain(iterabl... | [
"petezor@gmail.com"
] | petezor@gmail.com |
81a36f9edec913d3549c0af94feff76ee65ac580 | 05b9f3aa55a4fb89c9474d77bc58cfe18d800622 | /test2.py | dbedeafdbae3710983de3e17c0c3929be4398f78 | [] | no_license | LezardWhiteGlint/Practice_backup | 718c5608982ac5a1b6c3d74d60327753792282a9 | c0b4475684cbb0e131e40ad7b116162c4f7529c9 | refs/heads/master | 2020-03-25T20:17:37.125541 | 2019-03-04T07:17:39 | 2019-03-04T07:17:39 | 144,124,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | def ulti_display(weeklist,daily_h,date):
total = 0
data = []
message = []
for weekday in weeklist:
for i in range(len(date)):
if weekday == date[i]:
data.append(daily_h[i])
total = total + daily_h[i]
#print "<html><body>"
for i in data:
ho... | [
"30715385+LezardWhiteGlint@users.noreply.github.com"
] | 30715385+LezardWhiteGlint@users.noreply.github.com |
a30be66391f29c734f4450832265dd84031abf3d | 0a69dbc358b7114285b983ff435825cfc9f6a04a | /recipes1.py | 86b855f28b61a0d39c6558b61081d14418d13263 | [] | no_license | jrovegno/MachineLearningRecipes | 9711f429a676d52ab967bc77ceb2ae5159722837 | 3d2a9fd7e2ad25febbb22b33e80a3dd3b501e86b | refs/heads/master | 2021-01-19T03:03:10.755268 | 2016-07-20T21:52:13 | 2016-07-20T21:52:13 | 63,817,073 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import numpy as np
from sklearn import tree
from sklearn.datasets import load_iris
features_dict = {1:'smooth', 0:'bumpy'}
labels_dict = {1:'orange', 0:'apple'}
features = [[140,1],[130,1],[150,0],[170,0]]
labels = [0,0,1,1]
clf = tree.DecisionTreeClassifier()
clf.fit(features, labels)
print clf.predict([[150, 0]])
| [
"javier.rovegno@gmail.com"
] | javier.rovegno@gmail.com |
dfce5b807530a3a4f49147428f9734961831ee7d | b8fe8b4bbd4694d2636c31643252fac4b62d1fe3 | /Desktop/Mhakave/APp/src/Home/admin.py | 36ca4d384276f60072b9f3c946d434c25043ba26 | [] | no_license | indraw705/django | f7339ab7f919522c0bc58792365562a03630f08d | 3e05dde353185f1d5bf7139b2a5d582ec050ed0b | refs/heads/master | 2021-01-12T04:12:29.087198 | 2017-02-09T14:42:54 | 2017-02-09T14:42:54 | 77,545,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django.contrib import admin
# Register your models here.
from .forms import SignUpForm
from .models import SignUp
class SignUpAdmin(admin.ModelAdmin):
list_display = ["__unicode__", "timestamp", "updated"]
form = SignUpForm
# class Meta:
# model = SignUp
admin.site.register(SignUp,SignUpAdmin) | [
"="
] | = |
cce6ffb32fcbb73d9c09532d13b9173fde291e94 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FJZJJMM/YW_FJZJJMM_SZSJ_103.py | 2be689302212420534b553c97e1696e9d1e56c5c | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
f6c75d42e11df14d53847eeda1c2906c9ef684e5 | 9ff036f0cb2c5a9850af69181d016f5ca11ab63d | /week-02/day-1/square.py | 6532ab2375ca22bfe3282718631617a9636490c2 | [] | no_license | balintnem3th/balintnem3th | bd48f8aa7e79c718049f50e52bdd6be9ccf7b251 | 58bf033314466d96ed5b81b3642f04149fc463b0 | refs/heads/master | 2021-05-11T08:06:20.545375 | 2018-03-25T23:58:32 | 2018-03-25T23:58:32 | 118,041,790 | 0 | 0 | null | 2018-01-18T21:42:43 | 2018-01-18T21:42:43 | null | UTF-8 | Python | false | false | 170 | py | user_input= int(input("Give me a number:"))
print('%'* user_input)
for index in range(1,user_input-1):
print('%'+ ((user_input-2)* ' ') + '%')
print('%'* user_input) | [
"balint.nem3th@gmail.com"
] | balint.nem3th@gmail.com |
bb1475121d62a7908a964aaaf795d0eb6cac5093 | 2e47a9f02dbc1d88411a630994b8f8d092038cfe | /dragon/bin/pip2.7 | 1573dec81e5b175435ee416f37a8cd98852c67c7 | [] | no_license | mathewcmartin/dragon | 1386357eb99904483c9a33ff0370087303ecfb58 | 0aac30f90c8e553de11decf9a36084fa976c2c7a | refs/heads/master | 2021-01-01T20:06:55.403634 | 2017-08-01T20:55:00 | 2017-08-01T20:55:00 | 98,766,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | 7 | #!/home/mathewcmartin/Projects/dragon/dragon/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"chactasstryker@gmail.com"
] | chactasstryker@gmail.com |
b22ef7dcc0d2a7bdd70dc2123f3593c6c0156719 | 3df8c9f513627187311c67260e8e28d02825eab0 | /src/transformers/utils/__init__.py | 42e856d9e4acb3d5c4ec7dc5b24b3d6cb0b7649f | [
"Apache-2.0"
] | permissive | ondewo/transformers | 9245322d33e09bf4d4529375c40ea2373d9701bd | 45bd44f215eb0a42d2b5994548756d506750b9d3 | refs/heads/main | 2023-05-08T11:59:01.284482 | 2023-05-07T14:12:23 | 2023-05-07T14:12:23 | 637,418,744 | 0 | 0 | Apache-2.0 | 2023-09-04T14:23:00 | 2023-05-07T13:56:14 | Python | UTF-8 | Python | false | false | 6,277 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. 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/L... | [
"noreply@github.com"
] | ondewo.noreply@github.com |
cddc26b4115c69d78efcb569dfef642b7f2d2117 | f7f3b63d6743624529e02d2192b92db15751943f | /leetCode33/33_Search_in_Rotated_Sorted_Array.py | a12fca8b60aaa48dc57a971c34c9ff1d3a5db7e4 | [] | no_license | JhaPrashant1108/leetcode | 0d461556a3ea3b35ba756a90f064d20fc53aff37 | d33f8e43aed926f210ce7eed32e0f6b8011d28c7 | refs/heads/master | 2023-08-24T18:57:06.215997 | 2021-10-07T12:10:27 | 2021-10-07T12:10:27 | 288,906,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | class Solution:
def search(self, nums, target):
if not nums or len(nums) == 0:
return -1
l, r = 0, len(nums) - 1
while(l < r):
mid = (int)(l + (r-l)/2)
if (nums[mid] > nums[r]):
l = mid+1
else:
r = mid
st... | [
"prashant.jha0008@gmail.com"
] | prashant.jha0008@gmail.com |
86305fbe815e2d06c1391d16d43539401c7146a4 | 7b09d42fdfcd2c2dbf6e3eefb3adfa99e9df794b | /gym_PET/envs/dimsiz.py | f5a7c842e5f3f0799274ce4e26b6d8a4e0af4bf3 | [] | no_license | mcbrs1a/TestPet | 294a0bf8f62c2e808e0b7c7b956b54b13ed9e963 | 6f910da44835b560af80c15a0a5f439b140b70c9 | refs/heads/master | 2021-09-11T01:30:47.652102 | 2018-04-05T18:31:21 | 2018-04-05T18:31:21 | 114,370,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #get dimensions and size of image
def dimsiz(im):
dim=len(im.shape)
sz=im.shape
if dim==2:
fx, fy = im.shape
print('two dimensions')
sz= fx, fy
return sz
else:
fx, fy, fz = im.shape
print('three dimensions')
sz= fx, fy, fz
return sz
sz=d... | [
"smithR50@cardiff.cf.ac.uk"
] | smithR50@cardiff.cf.ac.uk |
cb71b7a1c80c4a725d89d8b324b87b7a22d6991c | d8c80a8c7f38ea917b3076dc82844f678cf05412 | /setup.py | e367ab68bdc967db1a78ff81a4197ed1b8a0478c | [
"MIT"
] | permissive | openlobby/openlobby-server | dcac830c0ffeae8d039d9d4f4324271ec1126a89 | b7a1a2b73e903c4da57970926844b0639dce5aae | refs/heads/master | 2023-04-04T01:47:06.477282 | 2018-11-11T22:07:24 | 2018-11-11T22:07:24 | 110,363,977 | 7 | 3 | MIT | 2021-04-20T17:40:09 | 2017-11-11T17:08:33 | Python | UTF-8 | Python | false | false | 1,026 | py | from setuptools import setup, find_packages
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="openlobby",
versio... | [
"jan.bednarik@gmail.com"
] | jan.bednarik@gmail.com |
d33aa0643b569cebb4309c3a629bde092d02e7ac | b6ffc3b8717ebbeb96ca0d2b91cfb7de62a58b68 | /growth rate üLCDM.py | d6654562c49df035e355b4294a57946daf822031 | [] | no_license | laya-laya/Dark-Energy-models | 43968ed07a535247a32d2ef71aec5b8828484310 | 65cc0e31b28138a69407c4f433e727cdb0dc53e9 | refs/heads/master | 2020-04-29T03:09:24.875235 | 2020-02-01T10:53:55 | 2020-02-01T10:53:55 | 175,798,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | import numpy as np
import matplotlib.pyplot as plt
#from scipy.integrate import quad
from scipy.integrate import odeint
OM = 0.29
#gamma = 0.545
sigma8 = 0.8
z_star = 0.537
def E(z):
if z > z_star:
Ez = np.sqrt( 1-((0.75*OM)/(1+z_star))-(0.25*OM*((1+z_star)**3))+(OM * np.power(1 + z,3)))
else:
... | [
"noreply@github.com"
] | laya-laya.noreply@github.com |
1e24fdbcd189652e333de928e8269c95f940fac0 | 42310122958f2f7d65cbc1f419f9e8d44c0e829e | /HomePageProject/manage.py | d0514acf568aa2aef640efaf1a738cbb391e653d | [] | no_license | nomanalvi/UserInterface | 092c684649d73fece14bafe8d3c5a3146be37173 | e3c85a4c6bb1f3af3ba6166e42d0bde77a0e1494 | refs/heads/master | 2022-12-02T18:09:56.424258 | 2020-08-26T13:39:07 | 2020-08-26T13:39:07 | 290,504,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HomePageProject.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"maanalvi@gmail.com"
] | maanalvi@gmail.com |
0254a7648ea171fa9a2a5352028ad8fe70447f65 | 58da4f1a574f90870a5fd454999531d6d0047b55 | /File_Change/detect_change.py | 17e3747ab36c304f0468a80fe076b36fa3b29032 | [] | no_license | HarshGrandeur/CloudComputing | a046563e955e6a3e817a9e11e6306c0ae5dc266d | 8d896f7f63bbf10f52c6cfdcb21f402340c9b411 | refs/heads/master | 2021-01-19T22:59:08.236046 | 2017-10-15T07:30:36 | 2017-10-15T07:30:36 | 88,900,164 | 0 | 0 | null | 2017-04-20T18:53:53 | 2017-04-20T18:53:53 | null | UTF-8 | Python | false | false | 643 | py | import sys
import time
import logging
from watchdog.observers import Observer
from watchdog.events import LoggingEventHandler
if __name__ == "__main__":
logging.basicConfig(level=logging.INFO,
format='%(asctime)s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')
path ... | [
"hrshgpt73@gmail.com"
] | hrshgpt73@gmail.com |
01134ab072c1292ae5b05bafed12ab0d5e3bedfd | d4b1adf0fa11dace5827015a5ba7a4a212603619 | /Backend/image_file_test/api/views.py | fcfddaf7ba30d167a2d6111da5ca180b9c83676e | [] | no_license | aSafarpoor/tafsir-swe2-prj | 0076953fd87e2a0804713623fb25f770eb9785de | de79658d8c64c8efd74d8b5a33eced8b7808923a | refs/heads/master | 2022-01-18T19:58:33.301413 | 2019-07-22T07:55:10 | 2019-07-22T07:55:10 | 198,176,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,488 | py | from rest_framework import generics
from course_app.models import course,section,question_exam
from image_file_test.models import image_file as imfi
from image_file_test.models import movie_link
#from serializers import CourseListSerializer
from django.core import serializers
from .serializers import CreateMember,M... | [
"alisafarpoor1995@gmail.com"
] | alisafarpoor1995@gmail.com |
3900b4a694786d1e272c019b473c940f1fb15498 | 3907f9297caec6b097c06eda0e69a38cfca9be95 | /utilities.py | f564cec2083ed64a27958b6ab1063d3d8b4664ee | [] | no_license | Abbey4799/DGen | 493048a1e98416784e420ce9996b68454a11c53b | ddbe0e47080bb9ec9335e93ea8993ef410ba9cd7 | refs/heads/main | 2023-07-01T06:07:52.863682 | 2021-07-29T16:51:37 | 2021-07-29T16:51:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | # -*- coding: utf-8 -*-
import re
import urllib
from nltk.stem import WordNetLemmatizer
from nltk.corpus import wordnet
import requests
from nltk.stem import PorterStemmer
cache = {}
lemmatizer = WordNetLemmatizer()
stemmer = PorterStemmer()
def get_concepts_of_instance_by_probase(instance, eval, use_cache=True):
... | [
"rsy@163.com"
] | rsy@163.com |
f35c4f6e36678c5ab330fd80f885d8e6603d17da | 91d9d33931c4ecbbe78eaaf092b601fa9c522f64 | /novajoin/middleware/config.py | 7eb783f39d2a70c041d537dbdc3154266d95c313 | [
"Apache-2.0"
] | permissive | mattparko/novajoin | 8799f7d00a715c9154083489933ece629d269f48 | e8b18c4bd44ea86cbbedfdf9a9f0f7f7718c9c56 | refs/heads/master | 2020-06-03T07:28:49.155058 | 2019-03-20T07:55:42 | 2019-03-21T07:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"alee@redhat.com"
] | alee@redhat.com |
471a83b33e8a7e89fc6b0398484c72c6c9845b9c | d34cf4ecb93e4a7d7ec95424e52f815f36206f43 | /buildsystem/plugins.py | 74feb5c0ab655307cb52d7fac3b173f2390f23e5 | [] | no_license | FelixKiprono/felix | 74a2fe2b498d07a993f9ad67ff88bc916ddb271b | b4d0dae314d9ae7b89f7e273ca89555e91b7312f | refs/heads/master | 2021-01-18T04:53:31.002406 | 2015-05-27T13:15:33 | 2015-05-27T13:15:33 | 36,385,023 | 2 | 0 | null | 2015-05-27T17:49:32 | 2015-05-27T17:49:32 | null | UTF-8 | Python | false | false | 935 | py |
import fbuild
import fbuild.builders.file
import os
from fbuild.path import Path
from fbuild.builders.file import copy
# ------------------------------------------------------------------------------
def build(phase, felix):
print ("BUILDING PLUGINS")
for f in Path.glob('src/lib/plugins/*'):
copy(ctx=p... | [
"Max.Skaller@gmail.com"
] | Max.Skaller@gmail.com |
91758f658fe72ce35e66cc11b4da7088508a3c71 | 42fb58ce2446f4f2f11f8e3fd3bf197c514e2f34 | /test.py | df8fd254bb2a0ccd5b5978022801ba36fd1589e7 | [] | no_license | EdisonFan/learnPython | d994c90646f0a289d02365c72d7e258e6067dfb2 | 660824db5dcd7214d880e561aca0aa794bd6f690 | refs/heads/master | 2020-03-07T13:58:38.170965 | 2018-03-31T08:58:58 | 2018-03-31T08:58:58 | 127,515,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 29 21:21:20 2018
@author: fan
"""
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.preprocessing import PolynomialFeatures
X_train = [[6], [8], [10], [14], [18]]
y_train = [[7], [9], [13], [17.5], [18]]
X_test = [[6], [8], [11], [16]]
y_t... | [
"fanxh@calis.edu.cn"
] | fanxh@calis.edu.cn |
d173feef779ae3935c6b7bfeed5894b1d4ec1e8e | d5f75adf5603927396bdecf3e4afae292143ddf9 | /python/paddle/fluid/tests/unittests/test_inplace_and_clear_gradient.py | 7ec04ed90b0aeef7599cde4e902c47111f1536bd | [
"Apache-2.0"
] | permissive | jiweibo/Paddle | 8faaaa1ff0beaf97ef7fb367f6c9fcc065f42fc4 | 605a2f0052e0ffb2fab3a4cf4f3bf1965aa7eb74 | refs/heads/develop | 2023-07-21T03:36:05.367977 | 2022-06-24T02:31:11 | 2022-06-24T02:31:11 | 196,316,126 | 3 | 2 | Apache-2.0 | 2023-04-04T02:42:53 | 2019-07-11T03:51:12 | Python | UTF-8 | Python | false | false | 1,415 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | jiweibo.noreply@github.com |
d5ab006541ddcbc2864ce11bba9ee259f0081089 | 31b47a204c91067a0b8e6eee77a4845ed7e76066 | /cycle | 9b95d5ad121a6679f10d82481addb15130f2847f | [] | no_license | nickanderson/todo-cycle | d43150e9d9e79e69d702dcfd3d4e74dae3784867 | ca4946e61474f31a5e95478735fc90d09edf3bed | refs/heads/master | 2021-01-19T09:23:43.425570 | 2009-01-07T21:49:01 | 2009-01-07T21:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,247 | #!/usr/bin/env python
"""
Author: Nick Anderson
Date: Dec 10 2008
cycle is a todo list manager modeled on "The Cycle" as described in
Time Management for System Administrators By Thomas A. Limoncelli
"""
import os
import subprocess
import datetime, time
import re
import sys
import fileinput
import parsedatetime.pars... | [
"nick@anders0n.net"
] | nick@anders0n.net | |
56765239157a3bae4c7e398235b55f0cb9b4bb49 | 038d7dc760c8104f1d891f42ffbcc3b35f471e7e | /No1-22-April-2016/3-Rasko_Python_Intro/example_1.py | 28907cde1102e863dd8a44f4a2176f7941c9a4dd | [] | no_license | acmeteam/acme-talks | 60e34f8fa62989a4307094b777de8d1fcd97c82c | bd0583ee46fa369b2fadc9d5f49b1722a413cc59 | refs/heads/master | 2020-12-24T07:15:39.540883 | 2016-09-16T14:47:03 | 2016-09-16T14:47:03 | 57,039,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import json
import codecs
import urllib.request as req
################## checking version of local masterlist against cloud ml ##################
#(masterlist.json file needed in the working dir for this to work)
#get cloud masterlist
url = "http://www.plantronics.com/services/mobile/ios_stage/hub/3.8/masterlist.js... | [
"andrija.milovanovic@pstech.rs"
] | andrija.milovanovic@pstech.rs |
b46305f6c2bd6c6ca9c2674b6850e30fcfd28bc7 | f62db0b32a88adf0a9837818ffec2e27df2b84be | /opdracht01/MDP/Labo's Pieter/labo 2.8 part 2.py | e8c062a66d6c5e8a0b52045889f20ed38b60b2db | [] | no_license | Vic-Rottiers/P2-systeembeheer | e4b5642f3b6bfc0acac9ce5d6a083ba69cae10c9 | db92419916bb28f83ad28698cdf15cdc1fbae777 | refs/heads/master | 2023-05-08T11:07:41.687950 | 2021-05-28T12:21:51 | 2021-05-28T12:21:51 | 365,987,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from ncclient import manager
import xml.dom.minidom
m = manager.connect(
host = "192.168.56.104",
port="830",
username="cisco",
password="cisco123!",
hostkey_verify=False
)
netconf_data = """
<config>
<native xmlns="http://cisco.com/ns/yang/Cisco-IOS-XE-native">
<interface>
<Loopback>
<nam... | [
"vic.rottiers@student.hogent.be"
] | vic.rottiers@student.hogent.be |
f457208a86bb5aaf7e0cc989c4142e0cfe39acd6 | 14373275670c1f3065ce9ae195df142146e2c1a4 | /stubs/boltons/boltons/formatutils.pyi | 20ac5f0a83b0bb32bbae800a27bde67ba4ad70b9 | [
"Apache-2.0",
"MIT"
] | permissive | sobolevn/typeshed | eb7af17c06a9722f23c337e6b9a4726223155d58 | d63a82640390a9c130e0fe7d409e8b0b836b7c31 | refs/heads/master | 2023-08-04T05:59:29.447015 | 2023-06-14T21:27:53 | 2023-06-14T21:27:53 | 216,265,622 | 2 | 0 | Apache-2.0 | 2022-02-08T10:40:53 | 2019-10-19T20:21:25 | Python | UTF-8 | Python | false | false | 1,231 | pyi | from collections.abc import Callable
from typing import Any
def construct_format_field_str(fname: str, fspec: str, conv: str) -> str: ...
def infer_positional_format_args(fstr: str) -> str: ...
def get_format_args(fstr: str) -> tuple[list[tuple[int, type]], list[tuple[str, type]]]: ...
def tokenize_format_str(fstr: st... | [
"noreply@github.com"
] | sobolevn.noreply@github.com |
f1a9d42270997eb481ab4e158959025d989c22ed | 0d8bf7aac9d6d922e44a4d9a98c8e2e0dff8db44 | /Detector_yolov4_PART1.py | b055c75a58ba2af9f97fc5f4f546aff28f4a254f | [] | no_license | abcom-mltutorials/Object-Detection-And-Tracking | c1d8df6f50ca6964678db64709a9545d168c2512 | 3a69c5d6c45ed16c000647676c6b304a2a9af180 | refs/heads/master | 2023-03-07T13:51:12.868851 | 2021-02-20T12:27:37 | 2021-02-20T12:27:37 | 334,087,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py |
#================================================
Copyright @ 2020 **ABCOM Information Systems Pvt. Ltd.** All Rights Reserved.
Licensed under the Apache Licaense, 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.ap... | [
"abcom-mltutorials@gmail.com"
] | abcom-mltutorials@gmail.com |
1fe8f0329e0ca522ed58c0634c6952190db00db5 | f324780d2187172bc1eabaddb23565c3dabeed31 | /snake/__main__.py | b41428f3f632aa4a6eaeae1ca92cef57ad043c88 | [] | no_license | pierkoo/snake | 92c43d0ff8e8081f8262f337d023e0039d3a3b27 | 5f1cac60cf308509c919e08e091d0e8c8ba1beb8 | refs/heads/master | 2023-05-11T23:47:59.075954 | 2021-06-01T21:11:08 | 2021-06-01T21:11:08 | 365,058,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from game import SnakeGame
if __name__ == "__main__":
snake = SnakeGame()
snake.main_loop()
| [
"pierkoo@gmail.com"
] | pierkoo@gmail.com |
4b9b4953e500a5f6dfa1db37177b48ce6b06b8ae | 6379deba5de738bb4bace7c7f790c3717d44d4ae | /homework4/tests/test_calculate_average.py | 4c81ed0bb089d8224d6f6ec7e7d7efd67c60ca5f | [] | no_license | OSUsatoru/cs362_practice_git | 62e23e2d6521f0e31770f943c1a257c61536716a | 8f55934ff5eceda61f8fe00a7daca389394bfec4 | refs/heads/master | 2023-03-17T20:56:25.144930 | 2021-03-08T05:05:13 | 2021-03-08T05:05:13 | 331,689,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import unittest
import calculate_average
class test_case_average(unittest.TestCase):
def setUp(self):
self.a = [1,2,3,4,5]
self.b = []
self.c = [2,"str1","str2"]
def test_cube(self):
self.assertEqual(3, calculate_average.cal_ave(self.a))
self.assertEqual("Empty list", ca... | [
"yamamsat@oregonstate.edu"
] | yamamsat@oregonstate.edu |
338ceea0c209b5700e116c544e2b9a510486785f | 2cd986dee35becd91cbd93ba7b35414e80e33f4f | /venv/lib/python3.7/encodings/cp855.py | 4a1ca4424c182b4f9e567fcd604971544289aa4b | [] | no_license | HernanG234/sensors_async_sim | 95ccb4e4fd188b8fc5be206bae3af4302f23e3e2 | fce3701e2a0865198c0977ede5f42da77b8a7853 | refs/heads/master | 2020-05-07T09:43:57.354059 | 2019-05-11T19:07:23 | 2019-05-11T19:07:23 | 180,387,282 | 0 | 1 | null | 2019-04-29T15:42:53 | 2019-04-09T14:37:38 | Python | UTF-8 | Python | false | false | 43 | py | /usr/local/lib/python3.7/encodings/cp855.py | [
"hernan.gonzalez@incluit.com"
] | hernan.gonzalez@incluit.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.