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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d268ade1ba4de5098f9b5fbbeb8dbc6846176be | 8fd9d353cca0fd220a901ed3ae78908cbac2d9f6 | /account-service-v2/scenario-ui/account-sort/account-sort.py | 09e471e6ddf53c3752745e5d60de9a8f693c118f | [] | no_license | pradipgit/api_automation_test | 04ba9e0c676fda0a8e112439f9cba847b4e70ebe | eab7ae9e10dc8e5422fadbb8054b15bd54dd8873 | refs/heads/master | 2022-06-21T04:42:12.452467 | 2020-05-14T05:40:15 | 2020-05-14T05:40:15 | 263,824,948 | 0 | 0 | null | 2020-05-14T05:40:53 | 2020-05-14T05:37:33 | Python | UTF-8 | Python | false | false | 8,594 | py | import time
import subprocess
import utils
from utils import assignOrder
from utils import assertEqual
from utils import assertContains
from utils import randomString
import threading
import queue
import random
from collections import OrderedDict
import logging
import pprint
import configparser
import json
import rando... | [
"prkarmak@in.ibm.com"
] | prkarmak@in.ibm.com |
9094b2a4f588f9d494e3c0207349a8b1663215b8 | 80de9393fd0c3d1efddc1f91609e67d9950a18b2 | /code/model.py | d8bbf94c0b7bcd946575b4283c8b2e983500019a | [] | no_license | zhang-cugb/A-data-driven-proxy-to-Stokes-flow-in-porous-media | 921c8d9db315538b0be0b34927b0792b3efd744f | e4b2d255e05054c82023513ca791932dd80f23e0 | refs/heads/master | 2021-10-25T05:06:44.173233 | 2019-04-01T15:01:19 | 2019-04-01T15:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,808 | py | import torch
import torch.nn as nn
import functools
import torch.utils.data as data
import os
import numpy as np
import torchvision.transforms as transforms
###############################################################################
# Functions
#######################################################################... | [
"noreply@github.com"
] | noreply@github.com |
8534041473d28f92fb8db6079f28b29f4e1c7743 | cae9ca1dda110cd6f65d5021c5891fdee76ec6fe | /day2/set/2.py | e7bb3bc3680e0158226f7a9475d6dce754b58602 | [] | no_license | shobhit-nigam/yagami | fb33d6de76a698a160f9e8df9d7d9f5b836797d8 | 283e2a464f74ac07c21ae7095b9a45fa632aa38a | refs/heads/main | 2023-07-04T09:46:51.057558 | 2021-08-10T05:13:27 | 2021-08-10T05:13:27 | 391,846,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | basket_a = {'apple', 'banana', 'pear', 'apple', 'kiwi', 'banana', 'avocado'}
basket_b = {'orange', 'plum', 'grapes', 'apple', 'pear', 'raspberry'}
print(type(basket_a))
print("basket_a =", basket_a)
print("basket_b =", basket_b)
print("basket_a[2] =", basket_a[2])
| [
"noreply@github.com"
] | noreply@github.com |
654c3bc950e7ddde3eaff1bddd8c9718702a2352 | bfc2ba097b164af668efa29f883101673668456e | /nets/centernet_training.py | 109a2e753890bf22328bb9efcd06e247931de674 | [] | no_license | Sharpiless/Paddlepaddle-CenterNet | b4892e1ab85a65f655b44fc6699e61315f5a0274 | b02bca6bff55054bdb29ba370ac52b9e8951045a | refs/heads/main | 2023-06-17T17:22:35.265697 | 2021-07-17T02:46:33 | 2021-07-17T02:46:33 | 386,817,805 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | import paddle
import paddle.nn.functional as F
def focal_loss(pred, target):
pred = paddle.transpose(pred, [0,2,3,1])
# pred = pred.permute(0,2,3,1)
#-------------------------------------------------------------------------#
# 找到每张图片的正样本和负样本
# 一个真实框对应一个正样本
# 除去正样本的特征点,其余为负样本
#------... | [
"1691608003@qq.com"
] | 1691608003@qq.com |
9f2eaee40308723324858966dcd6932750b0241b | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/command_lib/storage/tasks/task_buffer.py | dee39b0c1165d965f0fa3a433725b4686336f215 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,762 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
420fde7ba568db208989a2a01889d71af5dccec9 | 6721bb9d78d772f50e62a675347fccface9d9d74 | /scripts/coord.py | 023afeb9a6afe68f4e1dd4d4d234a99beedb8521 | [] | no_license | claycoleman/twitterfeed | 20b21736b0d02173e9323b63cbc9c8c9ddfdd624 | f56c45d3393f7b24ed393aa1625b81f8d73eef67 | refs/heads/master | 2021-05-30T00:41:14.684180 | 2015-11-24T13:18:04 | 2015-11-24T13:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,788 | py | #! /usr/bin/env python
from __future__ import absolute_import
import requests, base64, json, tweepy, pprint, os, sys, urllib
from unidecode import unidecode
sys.path.append('..')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')
from app.models import Location, Trend, Tweet
from django.core.files im... | [
"coleclayman@gmail.com"
] | coleclayman@gmail.com |
9b61fb40b2d2ef6c60d489179aed2922c230f6e8 | b23eb00e069b55ca4157a64ab37339c70456a0cf | /modbus_simple_bridge/cp_lib/app_base.py | 28d3bbcee845dd19ebd82e0d2db30ed897b9b423 | [] | no_license | ampledata/sdk-samples | 511f3ddd1bfa3bce995d937771d86ae6407e9266 | 3e0002f38b8c70423b28f91d5276812da4a37118 | refs/heads/master | 2021-05-09T00:43:15.517673 | 2017-12-27T20:14:05 | 2017-12-27T20:14:05 | 119,755,556 | 1 | 0 | null | 2018-01-31T23:12:23 | 2018-01-31T23:12:23 | null | UTF-8 | Python | false | false | 11,980 | py | import logging
import sys
from threading import Lock
from cp_lib.data.data_tree import get_item_value, data_tree_clean, \
get_item_time_duration_to_seconds, put_item
class CradlepointRouterOffline(ConnectionError):
"""
A general failure to use when the AppBase fails to find the router
"""
pass
... | [
"lynn0git@linse.org"
] | lynn0git@linse.org |
4a0bc12cda64cd80e1d4f2485bab5fd5149a609d | 8ac75ee9dcb850c966a05a72bdfaf34fcf35965d | /Hacker-rank/Dictionary and maps.py | 035894e8de7ab5b193c3103e99fdafd09f0599e2 | [] | no_license | mathankrish/Python-Programs | 3f7257ffa3a7084239dcc16eaf8bb7e534323102 | 2f76e850c92d3126b26007805df03bffd603fcdf | refs/heads/master | 2020-05-01T04:27:00.943545 | 2019-10-07T18:57:41 | 2019-10-07T18:57:41 | 177,274,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | n = int(input().strip())
phonebook = {}
for i in range(n):
line = input().split()
# k, v = line.split()
phonebook[line[0]] = line[1]
while True:
try:
number = input()
except EOFError: # end of line error occurs when more number of inputs are given
break
if number in ... | [
"noreply@github.com"
] | noreply@github.com |
48def4f085746f5749ea0da7bbd79fb4b4b02eff | 8519205cff66267f73b4518802672a70cab233fc | /VGN/settings.py | fe2a83b76f5f72576f2c0894e17c54ddcc52bb73 | [] | no_license | ELGABO12/fase3AlvaradoMeza001 | 15f448eae827f3c6ea8a0aab8bfe919ac645e18a | e3cae7c3a52c31cba6b341fb4f738605b041b7d1 | refs/heads/main | 2023-01-15T10:14:04.487742 | 2020-11-26T20:01:11 | 2020-11-26T20:01:11 | 316,302,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | """
Django settings for VGN project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib imp... | [
"meza_123_@hotmail.com"
] | meza_123_@hotmail.com |
fcc74dbf63e2a18c90a50c8e90c031a789323eba | 645d1e9b73f382da28e2d0f6494b05fa5e278bf2 | /answers/pathInZigZagTree.py | b6356992d3482cbc1d9b3ccb7cfb59c7aa20df16 | [] | no_license | xxbeam/leetcode-python | 63efcba4f0fc1c09ceebca725778dacd9dfd27fd | 5f1282abb64651c4b67ce0b262456920827fe7dc | refs/heads/master | 2023-07-17T23:33:08.783011 | 2021-09-10T01:47:46 | 2021-09-10T01:47:46 | 345,580,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | # 1104. 二叉树寻路
class Solution:
"""
计算出所属的行,向上查询,转换成正向顺序,然后判断行数奇偶,看需不需要反转
"""
def pathInZigZagTree(self, label: int) -> list[int]:
row = 0
k = label
while k > 0:
k = k // 2
row += 1
if row % 2 == 0:
label = ((2 ** row) - 1) - label + (... | [
"xiongxin@songxiaocai.com"
] | xiongxin@songxiaocai.com |
728ab8318005666802972f0b462a0c2812d6bda6 | 663b77ecca217bb84e88603bcada20bf7db597c3 | /train_test.py | 20f784cca93dd27fbd2e33fa39f2e940a0b171fa | [] | no_license | lllllllllllll-llll/SPAQ | 817ed567f774a666ec496dda2f03e30c4f767474 | b2578f914fa836811c137fb83bc16b6a42d7a9ab | refs/heads/master | 2023-01-30T04:03:06.925918 | 2020-12-09T11:20:04 | 2020-12-09T11:20:04 | 318,080,270 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | import os
import torch
import argparse
import random
import numpy as np
from BL_Trainer import BL_Trainer
def main(config):
folder_path = {
'SPAQ': 'F:/0datasets/SPAQ/',
}
img_num = {
'SPAQ': list(range(0, 11125)),
}
sel_num = img_num[config.dataset]
srcc_all = np.zeros(conf... | [
"3014735464@qq.com"
] | 3014735464@qq.com |
deb0e404ff9fd02ef1f6c223e7fcd973c65650ef | 6704a21e1d8fd806c84c731da0f6ff08adbfef83 | /foodcartapp/admin.py | 6f1163c632922ade0a966dd49f4fde3c9053f9d0 | [] | no_license | AxmetES/Django-REST-Framework_Star-burger-web-shop | c6584e3c4738208edddcf0bca8be529c0a4e9791 | 18359807f629806378e9dc335a65331ecb92bbac | refs/heads/main | 2023-01-30T06:15:19.047629 | 2020-12-14T12:58:51 | 2020-12-14T12:58:51 | 306,328,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | from django.contrib import admin
from django.forms import ModelForm
from django.http import HttpResponseRedirect
from django.shortcuts import reverse, redirect
from django.utils.html import format_html
from .models import Order
from .models import OrderDetails
from .models import Product
from .models import ProductCat... | [
"fraktsia@gmail.com"
] | fraktsia@gmail.com |
03eaa514cfab5cc81bc4db949ac3024c60b20782 | 0a1a3aa6d923d03f1bbfe51b6391c8f6c1f05948 | /Leetcode_env/2019/6_14/Majority_Element.py | f7b776ebb83cfb9775d9c673ef1700e6d6871023 | [] | no_license | sam1208318697/Leetcode | 65256783c315da0b5cb70034f7f8a83be159d6b4 | 68cb93a86c11be31dc272a4553dd36283b6a5ff7 | refs/heads/master | 2020-06-06T05:24:39.163778 | 2020-03-01T09:18:36 | 2020-03-01T09:18:36 | 192,649,254 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | # 169. 求众数
# 给定一个大小为 n 的数组,找到其中的众数。众数是指在数组中出现次数大于 ⌊ n/2 ⌋ 的元素。
# 你可以假设数组是非空的,并且给定的数组总是存在众数。
# 示例 1:
# 输入: [3,2,3]
# 输出: 3
# 示例 2:
# 输入: [2,2,1,1,1,2,2]
# 输出: 2
class Solution:
# 正常思路,会超出时间限制
def majorityElement(self, nums) -> int:
majority_element = 0
times = 0
for num in nums:
... | [
"1208318697@qq.com"
] | 1208318697@qq.com |
8da2dd71d31554f46ea00a14fba16221fb226278 | 16e6fe2441ee1e081a03621290d7fe5216c79ab1 | /src/kegg_pull/rest.py | 9cabf83014af838b006eab994ef297f82bb47e11 | [
"BSD-3-Clause-Clear"
] | permissive | MoseleyBioinformaticsLab/kegg_pull | aec5221f4cf0dfda48e4cbe0d228d90ac5085631 | 0b8b0df33334c429bd629567e4ccc9a426753d5c | refs/heads/main | 2023-06-22T20:25:46.274451 | 2023-06-12T17:33:24 | 2023-06-12T17:33:24 | 506,780,256 | 11 | 1 | NOASSERTION | 2023-08-30T01:03:14 | 2022-06-23T20:20:50 | Python | UTF-8 | Python | false | false | 14,442 | py | """
KEGG REST API Operations
~~~~~~~~~~~~~~~~~~~~~~~~
|Interface for| the KEGG REST API including all its operations.
"""
import typing as t
import enum as e
import requests as rq
import time
import inspect as ins
import logging as log
from . import kegg_url as ku
from . import _utils as u
class KEGGresponse(u.NonIns... | [
"erik.huckvale2017@gmail.com"
] | erik.huckvale2017@gmail.com |
71a41e5537ad8dcdfb0d8fee0eafadb1bdb11080 | 7ef1ea34f982e6fa55b40b02230785ed35641d21 | /01 Unscramble Computer Science Problems/submit/Task0.py | e98b35bd02dd5425e2c17837ccfa7b729b2d968d | [] | no_license | V1997/Data-Structures-Algorithms | 1145829ade80bebe9e0b1ef3d4aac6d5bef05bfc | 68ff7d8fd3b8e5b3bb505f2739c46c5e9dcbb05b | refs/heads/master | 2022-07-19T17:45:10.845847 | 2020-05-21T04:00:42 | 2020-05-21T04:00:42 | 265,749,830 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | """
Read file into texts and calls.
It's ok if you don't understand how to read files.
"""
import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
"""
TASK 0:
What is the first record of tex... | [
"patelvasu1997@gmail.com"
] | patelvasu1997@gmail.com |
c1a6c56a2da20619663fc0c1627e483be5ef87f9 | a15ddfa2886fadacd6909ef85143f2b9decc5e70 | /turing_find_max.py | d05a69d0eefcd4c0e1a21fc720f498c2a4b71b3d | [] | no_license | es162008087/pycodeguide | 8de58b141298b5104e558d60cadba0d91a47ff2a | 2758dd59074a348123f13ab3c2bfb27a876ce1cd | refs/heads/master | 2022-11-23T17:06:05.260051 | 2020-07-19T21:56:11 | 2020-07-19T21:56:11 | 280,944,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # python3
# turing_find_max.py
# Code gathered from developers.turing.com to find max number in an array.
def find_max(nums):
max_num = float("-inf") # smaller than all other numbers
for num in nums:
if num > max_num:
# (Fill in the missing line here)
max_num = num
return max_num
print(find_max([3, 99, 11, ... | [
"atorizp@gmail.com"
] | atorizp@gmail.com |
428b845f68e1d7c602aa7f74a604609708605c11 | b35aea9f4411f5dc7942392d78dc31bb76c7ec73 | /ARTIN/index/forms.py | 145690526dcce52d9b06a9000dcf43e2949b4874 | [] | no_license | ashkanusefi/rondshow | 1079b81704fff55a1d54fa8dee2712ab61e92f4a | 7e5a80fcc6e326b8b1737a54fb53becc4195e475 | refs/heads/master | 2023-09-01T18:45:33.170465 | 2021-09-18T11:24:52 | 2021-09-18T11:24:52 | 407,820,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django import forms
from index.models import Contactform
class Contact_Form(forms.ModelForm):
class Meta:
model = Contactform
widgets = {
'name': forms.TextInput(attrs={'placeholder': 'نام و نام خوانوادگی'}),
'email': forms.TextInput(attrs={'placeholder': 'ایمیل'}),
... | [
"yousefi.ashkan96@gmail.com"
] | yousefi.ashkan96@gmail.com |
2b2612286a543b930c9c37895411d4ce1db5211b | 2d965748c6cbae2c896acbb4631fc039d3c0ca41 | /myproject/testapp/admin.py | 884a335adc48fd7453394c68f83855f3d448ab16 | [] | no_license | Turonk/back_forms_16 | abc3117c84e0d6e6d50d2cc0c5b1e185084db914 | 3e8d6b660bdb9a0561d3b95294fd85bf61b16160 | refs/heads/master | 2023-04-02T02:29:28.505273 | 2021-04-16T08:21:09 | 2021-04-16T08:21:09 | 358,526,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from django.contrib import admin
from .models import Task, Client
class TaskAdmin(admin.ModelAdmin):
list_display = ('text', 'pub_date', 'author')
list_filter = ("pub_date", 'author')
search_fields = ("text",)
empty_value_display = "-пусто-"
class ClientAdmin(admin.ModelAdmin):
list_display = ('na... | [
"gorlov.a@mail.ru"
] | gorlov.a@mail.ru |
aa095e04d9cf32acf6c60e5410f4c8cfae3d1767 | 3e6c35f8db6fa8e9d977d2f510ea73de56214904 | /NLP-Argumentation-Mining/model/__init__.py | bcadf345447a9e9f5281fe9e1e04732072ff188c | [
"LicenseRef-scancode-public-domain"
] | permissive | XuShiqiang9894/NLP-Argumentation-Mining | 170692dc65faa77ff4960985b8e050dc6120afcf | 67545719d27664f25a637dea2713ccbc5a71aa1e | refs/heads/main | 2023-02-01T20:29:47.341061 | 2020-12-18T12:32:39 | 2020-12-18T12:32:39 | 322,578,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class ArgMiningModel():
def __init__(self, params):
self.params = params
pass
def train_and_predict(self):
"""
Trains model on training data. Predicts on the test data.
:return: Predictions results in the form [(input_1, pred_1, truth_1), (input_2, pred_2, truth_... | [
"noreply@github.com"
] | noreply@github.com |
d01f91d9636db43a6009f9ab2184f64149e3514d | 85d1322fcb2fb01cbe848aaa13c44a12ff6883b8 | /main.py | 7ceb7a322e7753518c12fd8bf81557f867827bf4 | [] | no_license | Wajih24/Online-Speech_Recognition | c09406c8aca845f0e5aabd0be10b040b4b65b2f8 | fd1f1140598754de43259863af5543e7bb4255c9 | refs/heads/main | 2023-07-14T13:15:26.216232 | 2021-08-23T10:36:04 | 2021-08-23T10:36:04 | 399,061,871 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | import speech_recognition as sr
import pyttsx3
from datetime import datetime
from datetime import date
today = date.today()
day = today.strftime("%b-%d-%Y")
with open("log"+day+".txt", 'a') as f:
print('File created for this day : ', day)
f.close()
def speak(text):
engine = pyttsx3.init()
... | [
"noreply@github.com"
] | noreply@github.com |
74630a900649910f52610167dda5e5175c1009c7 | e3d33f5d82a541d7491e079c394dcebf1568f078 | /server/settings/migrations/0003_delete_tournamenttype.py | 746daa2db4b9fb8720e479ddcbeaca42296afee0 | [
"MIT"
] | permissive | MahjongRepository/mahjong-portal | 51bd1300c3e6b8a341fbddb67a750b268950627e | 20f01433858bed4610d60b27a98bafce5a810097 | refs/heads/master | 2023-07-09T09:05:23.155419 | 2023-07-08T10:47:14 | 2023-07-08T10:47:14 | 114,328,632 | 12 | 10 | MIT | 2022-07-29T01:29:59 | 2017-12-15T04:53:02 | Python | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-18 13:32
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tournament', '0005_remove_tournament_tournament_type'),
('settings', '0002_auto_20180117_064... | [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
f1f8b0f701a6fdc844cbfdca2f2e1e0fc63f2d2a | 6b7230155432f8122931e1ef657079125de77ef2 | /bgunfolding/mle.py | f13ae904bf3f120b4478187469b0e34840fbc256 | [
"MIT"
] | permissive | lrsppp/bgunfolding | 1ce241682445bb2b5a997437e81e5dd5b2d6811c | 0e60ebd88906d5cd50df6e926e855d5a7ee3051f | refs/heads/main | 2023-08-28T20:31:00.824607 | 2021-11-06T23:39:37 | 2021-11-06T23:39:37 | 425,059,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,271 | py | import numpy as np
from bgunfolding.base import UnfoldingBase
from scipy.optimize import minimize
import matplotlib.pyplot as plt
from bgunfolding.likelihood import llh_poisson, llh_tikhonov, hess_poisson, hess_tikhonov
class MLE(UnfoldingBase):
def __init__(self, C, x0, bounds = None):
"""
C... | [
"lars.poppe@tu-dortmund.de"
] | lars.poppe@tu-dortmund.de |
131a6514521063970b45ff2764eff0225bf4020d | d2e400ae4add2041a4c74ef5e86463b700464ed3 | /test.py | c6374083e28cca45d8fe07b6ad43c6491f8f61a8 | [] | no_license | abiraja2004/awesome_nlp | 5fe3818d74bed16881082f0ede3b8478567b0c31 | c409f873e16fc3768737a09dec1e9285b4931567 | refs/heads/master | 2020-03-08T09:34:02.287354 | 2017-12-18T14:11:34 | 2017-12-18T14:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | import argparse
import os
import baselines.run_sumy as extr
import baselines.return_first as first
import baselines.return_random as rd
import gensim
SUMM_DIR = "generated_summaries"
def generate_summaries(input_file, n):
with open(input_file, 'r') as document:
for line in document:
# Gener... | [
"michiel@dutchnaoteam.nl"
] | michiel@dutchnaoteam.nl |
94966647b89a1e25bfe12b32b7748ca09e684956 | 92eb5b9d3761081f007ea5cebab4c2e46353bdf4 | /dictionary/migrations/0007_auto_20170210_2055.py | 4760d6e0a73d057d69d2cca84d241a63cd9ae0b0 | [] | no_license | boolow5/Qaamuus | 30f82eb6ba694f41cee398d59f954fd7982f6283 | cf468d9a63532acd556bfca7ce90fd75b529e33f | refs/heads/master | 2021-01-22T04:40:31.984675 | 2017-03-08T15:12:47 | 2017-03-08T15:12:47 | 81,566,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-02-10 20:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('dictionary', '0006_word_category'),
]
operations = [
... | [
"boolow5@gmail.com"
] | boolow5@gmail.com |
c45af0baa8bcafa1054d61852e13323c348e6b7e | 8f4bd927633c897170452235c343fc3f4d88aec4 | /Big_subtraction.py | ef573f08229624999e2681c316038a32f1c8b4b3 | [] | no_license | Krugger1982/24_1_squirrel | 378e13007556b03c057b056de694538025281670 | 9a8c6e3779bc2ea4c65de83b53267e36f8a8268a | refs/heads/master | 2021-05-20T23:42:43.733708 | 2020-04-29T15:47:34 | 2020-04-29T15:47:34 | 252,457,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | def BigMinus(s1,s2):
S1 = list(s1)
S2 = list(s2)
bol = [0]
men = [0]
if len (S1) > len (S2):
bol = S1
men = S2
elif len (S2) > len (S1):
bol = S2
men = S1
else:
for i in range(len(S1)):
if S1[i] > S2[i]:
bol = S1
... | [
"noreply@github.com"
] | noreply@github.com |
823f52289936f88c00b2f7fb9d779e3d3223ce81 | f73eb5a699988c822554866cc6af9bb3dc3361a8 | /tools/events_list/admin.py | a46898b4db6ea445b52cf78ad3e7318d866f0c7f | [] | no_license | MaraJade/seniorproject | 5a41288ffee598c04e123ba16afa51f8fc711bc4 | 430591a02cad8e4b6d55989173c0e4818e862e97 | refs/heads/develop | 2021-01-18T21:54:04.745659 | 2016-01-29T02:16:19 | 2016-01-29T02:16:19 | 49,244,241 | 1 | 0 | null | 2016-01-29T01:38:46 | 2016-01-08T02:30:56 | Python | UTF-8 | Python | false | false | 262 | py | from django.contrib import admin
from .models import Event, Group, Hashtag, Log, Person, Topic
admin.site.register(Event)
admin.site.register(Group)
admin.site.register(Hashtag)
admin.site.register(Person)
admin.site.register(Topic)
admin.site.register(Log)
| [
"catbookgirl@gmail.com"
] | catbookgirl@gmail.com |
995cb49daa5331a9f96ba7e80b145e942ab1fcd4 | 219c426b1fd60c2cb7c6da9aaaff2d5973d680b4 | /z3_expe.py | 8a2128b9272519347f4afb1f5d82521715e35380 | [] | no_license | mshachnai/Loopless-Synthesis | 476f4dee97fe858cbfd308e6427cbf408424b194 | 9a1cece3a4b72692ca8e87f58840bdafe9db3580 | refs/heads/master | 2020-04-01T22:52:52.134013 | 2018-11-28T07:11:53 | 2018-11-28T07:11:53 | 153,731,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,871 | py | # P16 - Compute max of two integers
import z3
#from z3 import * considered bad practice but defines namespace z3
# List of Variables
I = z3.BitVec('I', 8)
J = z3.BitVec('J', 8)
O = z3.BitVec('O',8)
Y1 = z3.BitVec('Y1',8)
Y2 = z3.BitVec('Y2',8)
Y3 = z3.BitVec('Y3',8)
Y4 = z3.BitVec('Y4',8)
X11 = z3.BitVec... | [
"noreply@github.com"
] | noreply@github.com |
165b320a0f937ccc6fd4ef9e6bae85487e84034d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/100/usersdata/199/49629/submittedfiles/prova1.py | 6b7bd8a5436b67d150ae6be7d451d557c92d2016 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO ABAIXO DESTA LINHA
Carta1 =(int(input('Digite C1:'))
Carta2 =(int(input('Digite C2:'))
Carta3 =(int(input('Digite C3:'))
Carta4 =(int(input('Digite C4:'))
Carta5 =(int(input('Digite C5:'))
if Carta1>Carta2>Carta3>Carta4>Carta5:
print('D')
elif Carta1<Carta2<Ca... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f00c12fbb9ee81b6e24b4cd7f33e21abdf13e7fe | 4cb1fd4f6f4a8e57ca3d222007c1a5cde3deebfe | /Chapter02/checknetmiko1.py | b138aa0d3123e8dc3f071c0acc8ab1ceabed2675 | [
"MIT"
] | permissive | PacktPublishing/Python-Network-Programming | 838097e82762fed54fbc2abffe4db71d5acd350b | 416cea10fe56b2312cf25150ed7ba27837cddf18 | refs/heads/master | 2023-02-11T00:34:43.611524 | 2023-01-30T08:58:32 | 2023-01-30T08:58:32 | 166,771,428 | 52 | 51 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from netmiko import ConnectHandler
print ("Before config push")
device = ConnectHandler(device_type='cisco_ios', ip='192.168.255.249', username='cisco', password='cisco')
output = device.send_command("show running-config interface fastEthernet 0/0")
print (output)
configcmds=["interface fastEthernet 0/0", "descriptio... | [
"rutujay@packt.com"
] | rutujay@packt.com |
56a1de01ef11c05014cc0839f7d425d84bad66d9 | faa879600d274f8084ef44c44531fc40d428b139 | /jina/peapods/runtimes/base.py | aed4b12ada64160a31bdd07696b6c87fa6c26598 | [
"Apache-2.0"
] | permissive | zhutony/jina | cb61680413b13bc67d14bfd42bd21c88c6b66cc6 | 4bb5ad86452826c4485823ed1a73fe3f059c459e | refs/heads/master | 2023-05-07T05:19:21.050102 | 2021-05-30T02:42:41 | 2021-05-30T02:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,068 | py | import argparse
from ...logging import JinaLogger
class BaseRuntime:
"""A Jina Runtime is a procedure that blocks the main process once running (i.e. :meth:`run_forever`),
therefore must be put into a separated thread/process. Any program/library/package/module that blocks the main
process, can be formul... | [
"noreply@github.com"
] | noreply@github.com |
9dc02dfb18c108bc0ddb641a4f05e8b275d9cb9e | e0029f9da7e2fbe6ceb58e8127fb18e7daad99c8 | /medicament/Form/form3.py | 90231e18ab47ae273ff77e57a02941a05889cc11 | [] | no_license | akayerov/Medic | 0a9cd4a0651bbe5ac337c6cc9e53553684509de3 | 97ff4ae76ceffb161921631acb8ca594d24059e2 | refs/heads/master | 2020-05-17T22:05:28.847974 | 2015-08-20T13:50:10 | 2015-08-20T13:50:10 | 33,241,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,179 | py | # -*- coding: utf-8 -*-
'''
@author: a_kayerov
'''
from django.db.models import Sum
from random import random
import openpyxl
from openpyxl.styles import Font
from medicament.oper_with_base import create_new_report, save_doc, get_name, get_period_namef, get_region_name
from medicament.models import Doc3
from _datetime... | [
"akayerov@yandex.ru"
] | akayerov@yandex.ru |
1358e647fe643aad07d6b0dd1a0012c3ea949f28 | edbde68daaf9c72d8f13ecc1ed509137a15906db | /python/leetcode/word_search.py | 9d55855a27a6784381cae98f2e5f375078fa2dbc | [] | no_license | midasama3124/cracking-coding-interview | 1733a6be3796ca57ff464023d779ee1b2d938360 | ebee7ad487eecabbc29306dad1c3a96ee5d8308b | refs/heads/master | 2022-12-13T00:14:18.266973 | 2020-09-02T18:02:17 | 2020-09-02T18:02:17 | 274,759,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | class Solution(object):
def exist(self, board, word):
"""
:type board: List[List[str]]
:type word: str
:rtype: bool
"""
m = len(board)
n = len(board[0])
# Recurse until word is found
for i in range(m):
for j in range(n):
... | [
"midasama3124@gmail.com"
] | midasama3124@gmail.com |
eee96575295629c28da3002abdd5d860f2976caf | 7e6298d3c8079231166bc31b115d04a9cb8833ed | /app/webapp/endpoints/routes.py | bd3ac98fc0f92d3abb035bc5f38aac0717b1dbbc | [
"MIT"
] | permissive | harveyr/thunderbox | 4a1f339ce101e5e43d5b9e4c3df8c21b0f0311c7 | 6bd4dbae1b40a3a4f61ea6941d6d54744aef2b3d | refs/heads/master | 2016-09-06T12:56:32.023465 | 2013-12-04T14:38:59 | 2013-12-04T14:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,645 | py | import os
import logging
import re
import datetime
from flask import (
request,
Blueprint,
abort,
)
from app.util import jsonify
from app.lintblame import git
from app.lintblame import py
logger = logging.getLogger(__name__)
blueprint = Blueprint('endpoints', __name__)
EXCLUDE_REX = re.compile('jquery... | [
"harveyr@gmail.com"
] | harveyr@gmail.com |
b410d142b81c1ff46a841b791aac9e8f0c825de6 | 7c1b5af77fbfde1f4f2c698a489e07024c147edc | /docs/sphinxext/example.py | a3a898c3d74b35d6e48e079745f272267a2beaef | [] | no_license | migueldvb/pyasdf | e7812da935ee3e4fec6d3c61fb16425ac2e1bdc7 | 4a72952b0196ede261e07569fc4da2616fa5e4b3 | refs/heads/master | 2020-12-26T18:44:07.562442 | 2015-03-30T16:18:19 | 2015-03-30T16:18:19 | 29,930,850 | 0 | 0 | null | 2015-02-04T20:23:04 | 2015-01-27T19:29:17 | Python | UTF-8 | Python | false | false | 3,764 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
import atexit
import io
import os
import shutil
import tempfile
import textwrap
from docutils.parsers.rst import Directive
from docutils import no... | [
"mdboom@gmail.com"
] | mdboom@gmail.com |
e2e3817a1e7ab097aac8071c3eb9fa89df0186b9 | 863509e794b069c9688f6263454c06d2c48868b2 | /backend/backend/ml_model/client_server/ml_client.py | e892990daa897d7cb55cee5604a142de6051e99b | [
"MIT"
] | permissive | TheDuckWhisperer/tournesol | c6df38185963bbecc6109dac275075a3ceca857a | 0fde7587e91a42e5a2218f2ffb70d4fc8cff7f73 | refs/heads/master | 2023-04-18T15:31:20.627952 | 2021-05-01T19:59:07 | 2021-05-01T19:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | from jsonrpcclient.clients.http_client import HTTPClient
from multiprocessing import Process
from backend.rating_fields import VIDEO_FIELDS
import numpy as np
import pickle
from time import time
def time_cache_wrapper(f, expire_sec=3600):
"""Decorator which caches results for some seconds."""
# format pickle(... | [
"sergei.volodin.ch@gmail.com"
] | sergei.volodin.ch@gmail.com |
9a534cd85b192474c3e54b2008097cfeec45916c | 48201d9a9d820c49ae08765b646d16c33e5b9d9d | /mordecai/geoparse.py | a09395343325aa60b1f90c8cbd0541413d391bfb | [
"MIT"
] | permissive | astorfi/mordecai | ce43bf21adb27b5cc5208966e3a88ed83eed3a23 | fcc16a8bbce92a01bf243c16ef4033d3fcc2a759 | refs/heads/master | 2020-03-22T01:21:09.335271 | 2018-06-07T11:38:39 | 2018-06-07T11:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,273 | py | import keras
import pandas as pd
from elasticsearch_dsl.query import MultiMatch
from elasticsearch_dsl import Search, Q
import numpy as np
from collections import Counter
import editdistance
import pkg_resources
import spacy
from . import utilities
from multiprocessing.pool import ThreadPool
from elasticsearch.exceptio... | [
"ahalterman0@gmail.com"
] | ahalterman0@gmail.com |
febfff3c83b53d29faf584b7e8420bb1c1c3d7ac | 36f3d006fb278e08729a048f71e100f748586e1d | /src/predictor/__init__.py | 8d2e444e1021f779b6e088fb68f7466f3bd05f27 | [
"MIT"
] | permissive | tinomolhash/projector_course_work | 2939a924f605be72988b9c420c8aee171a707337 | b6b03de5933bb44a72ac99ee6a6ec2ea9c24d8a9 | refs/heads/master | 2021-02-06T18:29:07.838939 | 2020-02-29T09:40:10 | 2020-02-29T09:40:10 | 243,939,584 | 0 | 0 | MIT | 2020-02-29T09:24:19 | 2020-02-29T09:24:18 | null | UTF-8 | Python | false | false | 42 | py | from .news_predictor import NewsPredictor
| [
"radchenko-v.i.p@mail.ru"
] | radchenko-v.i.p@mail.ru |
e8e47bd8bd9911bbf774dc986a6f1b9219a03379 | 9f915c2e68a7a46be8ee9909486a7a49eae21c3b | /Labs/lab1/venv/bin/pip3 | d2d8f59f6d5984f6aa25a8436fba187d113377a9 | [] | no_license | nsolovyoff/DB | 69423f0bbc9aafcb4285e75616e6bf83730b449f | ff4a190fcb1e6c758c9a178e23c9b529b3b65cbe | refs/heads/master | 2022-08-20T09:35:10.792763 | 2020-05-28T15:40:57 | 2020-05-28T15:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/Users/nikita/Desktop/bd2_lab1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nikita@Nikitas-MacBook-Pro.local"
] | nikita@Nikitas-MacBook-Pro.local | |
6b1d4d0ca0677bf2be973bbaede1ff3383e094c9 | 6a84f5d43788f283a623137ee8f0ff9a32231243 | /startup.py | 442920d9eac2dcc3e62242cd45060da844aa5cc0 | [] | no_license | harshj888/neuralnetwork | f97cfb4e6ff99038ec04864e105ce3fa126a050e | 909aa0452f32472a5e8cd00efaf0ea6718e732ac | refs/heads/master | 2022-11-29T04:34:59.838530 | 2020-08-09T16:35:54 | 2020-08-09T16:35:54 | 286,275,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 9 13:13:14 2020
@author: Harsh
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from keras.models import Sequential
from keras.layers import Dense, Activation,Layer,Lambda
startup = pd.read_csv("D:\STUDY\Excelr Assignment\Assignment... | [
"noreply@github.com"
] | noreply@github.com |
4ed7c9073da93dc0f0202f19f7c23738b3dd80b6 | 600eac7f1edf13005ece6e39672bdc311a580bc0 | /ssh_login.py | 94019a665767681d06d414fae2a7a650a5938bec | [] | no_license | SIGILIPELLI/ssh_login_program | 61cd4096e115e51a6d2c2a0d3c3eead09f17d60e | 5eb935f4d0f6a343da91e01f2f580f05b0c7abe8 | refs/heads/master | 2020-05-19T22:14:17.688479 | 2019-05-07T15:13:35 | 2019-05-07T15:13:35 | 185,242,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import pxssh
import getpass
try:
s = pxssh.pxssh()
hostname = input('hostname: ')
username = input('username: ')
password = getpass.getpass('password: ')
s.login (hostname, username, password)
s.sendline ('uptime') # run a command
... | [
"noreply@github.com"
] | noreply@github.com |
4afb6395738c94f6f3c5f69cd5aba31fac3f7ab9 | 23a56e0555d6b27aa444d8396ec32f9d2b678a39 | /07_ur_online/shifted_frames_setup/compas/packages/compas_fabrication/fabrication/grasshopper/utilities/sets.py | 0aa962839f412ffad8a96c1e5c3841c1df6bb963 | [
"MIT"
] | permissive | dtbinh/T1_python-exercises | 2ce1b01bc71f8032bbe8fb4ef8f71b648dcde1c5 | f4710c3dc2ba8ddb3e3e9069ab8d65df674463ab | refs/heads/master | 2020-04-04T20:00:52.191601 | 2018-01-09T08:14:36 | 2018-01-09T08:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | from Grasshopper import DataTree as Tree
from Grasshopper.Kernel.Data import GH_Path as Path
from System import Array
def list_to_tree(alist, none_and_holes=False, base_path=[0]):
"""
Transforms nestings of lists or tuples to a Grasshopper DataTree
Usage:
mytree = [ [1,2], 3, [],[ 4,[5]] ]
a = list... | [
"rusenova"
] | rusenova |
18a6e21aeda01c6a19f315813bff0d01b04146e0 | b66450f669095b0ad013ea82cb1ae575b83d74c3 | /Interview Preparation 2/maze.py | eae0d33ab121c0679d4a9e3e440d6211bec9b2ad | [] | no_license | aulb/ToAsk | 2649a3fad357820e3c8809816967dfb274704735 | 1e54c76ab9f7772316186db74496735ca1da65ce | refs/heads/master | 2021-05-01T20:35:14.062678 | 2020-02-23T07:44:29 | 2020-02-23T07:44:29 | 33,289,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | Implement a function to generate a maze.
from random import randint
import enum
class Condition(enum):
CLEAR = 0
RIGHT = 1
BOTTOM = 2
class Direction(enum):
RIGHT = 0
LEFT = 1
UP = 2
DOWN = 3
# Create maze from top left to bottom right
def generate_maze(row, col):
if row < 0 or col < 0: return []
# create... | [
"aalbertuntung@gmail.com"
] | aalbertuntung@gmail.com |
c055e54e0e196a95c7ae0b56dfe9a937db5f68ec | d92568c175ab73360198d9e0368a1f537ec74355 | /telnyx/api_resources/sim_card_order.py | 5e9cad181ed4520ed34e70852fe221067f1a957f | [
"MIT"
] | permissive | team-telnyx/telnyx-python | 7c62fc83cca30e41d215cc6f1aef03e8af577fad | f662b18f09f0ceadbf5d202ddde161f392e58094 | refs/heads/master | 2023-08-07T18:53:42.205519 | 2023-02-15T00:45:14 | 2023-02-15T00:45:14 | 194,716,223 | 41 | 10 | MIT | 2022-06-22T07:06:18 | 2019-07-01T17:32:08 | Python | UTF-8 | Python | false | false | 433 | py | from __future__ import absolute_import, division, print_function
from telnyx.api_resources.abstract import CreateableAPIResource, ListableAPIResource
class SIMCardOrder(CreateableAPIResource, ListableAPIResource):
OBJECT_NAME = "sim_card_order"
class SIMCardOrderPreview(CreateableAPIResource):
OBJECT_NAME ... | [
"noreply@github.com"
] | noreply@github.com |
a8de8d2604e7b489da5edbaa37e4b59d778d2ff3 | 937c0d7c0ed0224fed676fe630b78d8c6cdc1cfe | /usr/share/dh-python/dhpython/interpreter.py | 03779cfc5f861cf5ae8c76b74f12575a73491bba | [] | no_license | Sayardiss/filesystem-rpi-projet2su | 5ec5aad1704dbe37d18b50ba83ab67a87199af16 | b7b7a1d93dec4f96673ecf11cd290e1db0657d59 | refs/heads/master | 2022-11-25T14:20:35.867296 | 2018-02-07T13:24:37 | 2018-02-07T13:24:37 | 118,009,115 | 2 | 1 | null | 2022-11-21T04:32:49 | 2018-01-18T16:36:17 | Python | UTF-8 | Python | false | false | 20,112 | py | # Copyright © 2012-2013 Piotr Ożarowski <piotr@debian.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modif... | [
"sayardiss@gmail.com"
] | sayardiss@gmail.com |
855617ea99f031e0e80b2b054a95363b3b16af6b | 43c268536a396b7f105f15e717c9f1f6b9044082 | /cltk/phonology/latin/transcription.py | 10b54850b62e788a602cee6b2e5adfc903a3f61d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | codeSG/cltk | 9b5357d123d22fa423ecea3ffea9d2b9688445c3 | 6fbc96e3afa19f0c43b9eb64b739029c04f352b9 | refs/heads/master | 2020-12-31T00:29:35.046678 | 2017-06-04T05:26:23 | 2017-06-04T05:26:23 | 85,152,321 | 0 | 0 | null | 2017-03-24T11:01:04 | 2017-03-16T04:22:57 | Python | UTF-8 | Python | false | false | 23,177 | py | """Convert a word from Latin orthography into its hypothesized
pronunciation in the International Phonetic Alphabet (IPA).
https://raw.githubusercontent.com/j-duff/cltk/ipa/
cltk/phonology/latin/transcription.py
"""
from cltk.utils.cltk_logger import logger
from cltk.prosody.latin import macronizer as m
macronizer =... | [
"kyle@kyle-p-johnson.com"
] | kyle@kyle-p-johnson.com |
86d78fe7e43ffec6d812c38cf1ebbb7c5de82828 | 9e0796e19634e191cfa08f6244305cf85454d6b0 | /core/function.py | cc3f6e34f5a3db6f59b9acc6358265efcd626d05 | [
"BSD-2-Clause"
] | permissive | tanshinepan/interface_auto_test | 53a3094fca4f54878813cef8f4519dcf301ee2a0 | 9c2b177bd2ad60b5e1e8b1f3c7e06d6a534e9c00 | refs/heads/master | 2022-07-13T03:52:15.739207 | 2020-05-13T10:38:46 | 2020-05-13T10:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | #coding=utf-8
"""
用户自定义函数模块
@author ceshixiaoxiao
2020-03-28
"""
import random
supports_function_name = ["random_choice","random_int","random_str"]
def excute_function( function_name, parameters):
"""
执行函数
:param function_name:
:param parameters: 参数列表
:return:
"""
if function_name not in... | [
"huaizheng.xie@shuyun.com"
] | huaizheng.xie@shuyun.com |
ce0b5dfd44dc7340125be5d37e88fdfdc79ac9f8 | 35d39321fef3feff861eb24472d397774d0b1f71 | /flask/fundamentals/hello_flask/server.py | 4dab9792f6c0d58af22b4ff65b89841d31737054 | [] | no_license | youk0160/python | c46948e373e3085590f033bc506bde01c5d6844b | 5e11282867047c2ee16dad4d51f60868c6f59b6b | refs/heads/master | 2023-08-05T23:03:43.200423 | 2021-09-17T15:31:14 | 2021-09-17T15:31:14 | 402,506,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from flask import Flask # Import Flask to allow us to create our app
app = Flask(__name__) # Create a new instance of the Flask class called "app"
@app.route('/') # The "@" decorator associates this route with the function immediately following
def hello_world():
return 'Hello World!' # Return the str... | [
"youk0160@gmail.com"
] | youk0160@gmail.com |
c810639691a23d9854660929620ec85be65a785a | 67019bd69a664b103ad29cc7b89f747f02ac80e5 | /mentain.py | 089e0bb7718b254a67b23e165d2831bd1ea04b59 | [] | no_license | teoionescu/artificial-intelligence-lab | 2d3edeba28d1e881755c4379366d72a5e296f3e7 | 7cbf8925cd5c3f17b4f53d95a0f51b43fe47fc5f | refs/heads/master | 2020-03-19T05:26:45.673431 | 2018-06-03T19:04:20 | 2018-06-03T19:04:20 | 135,931,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py |
import random
import numpy as np
from sklearn.model_selection import train_test_split
from inputReader import readTrainInput, readTestInput
from sklearn.metrics import classification_report, confusion_matrix
from difer import score
from difer import main
def inputSizes():
xl, yl = readTrainInput()
x = np.arra... | [
"teoionescu32@gmail.com"
] | teoionescu32@gmail.com |
550f2d75ff2180b55e57946842e9405bc405477b | a9943c862683fd5e67250c14723914c42eb98d1a | /checkout/migrations/0001_initial.py | b4af6fd5f65cf502c591d548f6fbe01337b79be3 | [] | no_license | PeterLenting/e-commerce | 8e0509c2b5f121cb356ea26c274522ee7b326b13 | dd2ee9a6decbb1c659fbafd3159d0c184377f60b | refs/heads/master | 2022-12-06T01:43:53.327596 | 2019-12-07T13:20:28 | 2019-12-07T13:20:28 | 225,182,704 | 0 | 0 | null | 2022-11-22T04:53:00 | 2019-12-01T15:22:00 | Python | UTF-8 | Python | false | false | 1,653 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2019-12-06 15:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('products', '0001_initial'),
]
... | [
"pplenting@gmail.com"
] | pplenting@gmail.com |
c51462a251e42609bb187bab6ee21dd99f7cdd5e | be6b564c752038c108482a79febcabbdb42c92e0 | /autogorod_by.py | 7b9c559bc6347b8d39ffc3e9a5ffac9d4d1ae912 | [] | no_license | maximdushniak/parse_autogorod | ecc1daeb3fb334b1946bb274c20942aacd97e565 | 0c24439979c64e247c83671b996575801cbf1aa1 | refs/heads/master | 2021-03-12T23:59:13.990094 | 2015-09-22T09:10:06 | 2015-09-22T09:10:06 | 42,367,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,847 | py | #!/usr/bin/env python
import re
import csv
import sys
import time
import requests
import lxml.html
def get_proxies():
return {'http': '92.222.45.88:8888'}
#return {}
def get_params(article):
params = dict(article=article, time='false', ajax='true', sort='article')
return params
def get_headers(... | [
"maxim.dushniak@gmail.com"
] | maxim.dushniak@gmail.com |
d10192ab95a1b46d604aa924f07a235b10ff2971 | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/number_of_digit_one.py | 538d9b720619759dbae129533367a918a55ffec3 | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.
Example:
Input: 13
Output: 6
Explanation: Digit 1 occurred in the following numbers: 1, 10, 11, 12, 13.
"""
""" ==================== body =======... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
dca668af3ee705e63df35778cd21b88ad8453cc3 | 16d97d701c9ef52fab663f2bda410bfe6d64b859 | /read.py | 8fe8e6e528c11033d08a24de9d441a0157683e05 | [] | no_license | amdastro/CO-Dust | 4f6a0c739c7b8bf2d23dde03a9c85e8b57dc6217 | acba8895dda178833a3b8814a698d886ee6b2939 | refs/heads/master | 2020-04-06T13:00:59.096663 | 2016-09-14T16:58:42 | 2016-09-14T16:58:42 | 47,339,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import numpy as np
import parameters as par
print 'reading ', par.directory
T_cs, n, delta, R_cs, c_s = np.genfromtxt("runs/%s/thermo.txt"%par.directory, unpack=True,skip_footer=1)
t, Y_CO, Y_C_free, Y_O_free, Y_D, int_flag, adap_flag, sat = np.genfromtxt("runs/%s/fractions.txt"%par.directory, unpack=True,skip_footer... | [
"aderdzinski@gmail.com"
] | aderdzinski@gmail.com |
3488bc4730540516dea9ddb3ebf2b884d2202ae4 | f132c4573ba5f972daf1ff3ab492bb43176be07d | /StadyApp/ckreditor_example/views.py | 72216d35c8d1d80cded7040860f046635583d131 | [] | no_license | sdfvb/django_start | 88abdc21d1bdbb22d0aa773721d7cd1815308950 | 78afe7fc0e0f5cbca0f8f4256f8351dc1dd79e87 | refs/heads/master | 2023-02-17T08:09:41.309909 | 2020-09-22T01:14:55 | 2020-09-22T01:14:55 | 285,529,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from django.shortcuts import render
from django.views.generic import TemplateView, DetailView, ListView
from .models import PostCKEditor
class PostView(ListView):
template_name = "CkedTemp/blog.html"
context_object_name = 'posts'
model = PostCKEditor
paginate_by = 2 # and that's it !!
class PostDe... | [
"45214736+sdfvb@users.noreply.github.com"
] | 45214736+sdfvb@users.noreply.github.com |
e1070fb45b959faa9c631d562609a496f06c90f0 | 0a47b549836fb070f96be6889e40e991eba1edc8 | /Mac_changer.py | a8b040bcdb0b891511e84876f9fc7deaf2ac5eb8 | [
"MIT"
] | permissive | mrzero-cool/mac_changer | 8eacbcfae225a6636ffc9159d7b1a88e51980076 | 9e3b25bba48aebfda5a473625df8f6d872a7d200 | refs/heads/master | 2022-04-22T13:31:04.780127 | 2020-04-20T16:00:47 | 2020-04-20T16:00:47 | 256,533,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,100 | py | #!/usr/bin/env python
import subprocess
import optparse
import re
print('''
XX MMMMMMMMMMMMMMMMss''' '''ssMMMMMMMMMMMMMMMM XX
XX MMMMMMMMMMMMyy'' ''yyMMMMMMMMMMMM XX
XX MMMMMMMMyy'' ''yyMMMMMMMM XX
XX ... | [
"noreply@github.com"
] | noreply@github.com |
c15c86c655c7097fab8ef81a760eb7efbc1a107c | 86c3e14f7b941b73ec0506517da2430952acb45b | /scripts/save_noise_sound.py | c60d9b405009380a386e588a26c66c8449d7ace8 | [] | no_license | ykawamura96/sound_classification | 33dec9d68d8fbe816595ecf99e1cb1d8a05b1cf2 | cc98837d26359153ceed552b54d7d02b815c0c24 | refs/heads/master | 2020-09-05T17:48:19.250446 | 2019-09-13T11:51:58 | 2019-09-13T11:51:58 | 220,173,008 | 0 | 0 | null | 2019-11-07T07:05:17 | 2019-11-07T07:05:16 | null | UTF-8 | Python | false | false | 1,273 | py | #!/usr/bin/env python
# This node saves noise sound (environment sound)
import numpy as np
import os.path as osp
import rospkg
import rospy
from sound_classification.msg import Spectrum
import time
if __name__ == '__main__':
rospy.init_node('save_noise_sound.py', anonymous=True)
rospy.sleep(0.1) # do not s... | [
"708yamaguchi@gmail.com"
] | 708yamaguchi@gmail.com |
86c22ca4ca7fe3b67919b54097bc9189805b71f3 | e4066b34668bbf7fccd2ff20deb0d53392350982 | /project_scrapy/spiders/grammarly.py | 19c27a8c3349910b1bd4ad1227155e4b6ced0815 | [] | no_license | sushma535/WebSites | 24a688b86e1c6571110f20421533f0e7fdf6e1a8 | 16a3bfa44e6c7e22ae230f5b336a059817871a97 | refs/heads/master | 2023-08-18T09:09:16.052555 | 2021-10-11T00:41:50 | 2021-10-11T00:41:50 | 415,621,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | import scrapy
from scrapy.crawler import CrawlerProcess
import os
import csv
from csv import reader
import re
total_data = {}
class SimilarWeb(scrapy.Spider):
name = 'SW'
user_agent = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'
start_url... | [
"sushmakusumareddy@gmail.com"
] | sushmakusumareddy@gmail.com |
43d3cc55120e6be67a3dcd98b31fafb9f27073d4 | 7c5ee2344572f13721f0771023c9b4771447c79c | /ArbolPatologia-python/ArbolBinario.py | bee1d15fad35f9514e013113c50846d9eaaf8025 | [] | no_license | reyes98/python_vs_java | c1c508b3dea147b4b746ceb8500fa8235c65b362 | 594d3d4e16cc0ae0f01841cfb51d3a2ba8fe03ac | refs/heads/master | 2023-08-16T10:45:40.687843 | 2021-09-13T18:02:03 | 2021-09-13T18:02:03 | 406,077,704 | 0 | 0 | null | null | null | null | ISO-8859-3 | Python | false | false | 9,779 | py | # Clase Nodo
class Nodo:
# Constructor 10
def __init__(self, clave, valor, izquierdo=None, derecho=None, padre=None):
self.clave = clave
self.cargaUtil = valor
self.hijoIzquierdo = izquierdo
self.hijoDerecho = derecho
self.padre = padre
# Metodos de la clase Nodo
... | [
"34418186+reyes98@users.noreply.github.com"
] | 34418186+reyes98@users.noreply.github.com |
700a9fbcb89b1b66f52a940e26430e4a1f4c5494 | c96d9a76fe28630fe1b4cd7efa22e12fdce0399f | /kaggle/Song_popularity/optimize.py | a81690bd13b858784678e25cf5a75a1761a95589 | [] | no_license | tarunbhavnani/ml_diaries | 858839e8ab8817caae3d56d3dad6d4ee9176ddbe | 8d0700211a2881279df60ab2bea7095ef95ea8dc | refs/heads/master | 2023-08-18T08:28:50.881356 | 2023-08-16T09:39:34 | 2023-08-16T09:39:34 | 157,958,911 | 0 | 1 | null | 2023-03-13T05:17:52 | 2018-11-17T06:52:34 | Python | UTF-8 | Python | false | false | 1,620 | py | #!/usr/bin/env python3
"""
optimize.py
"""
import optuna
import optuna.integration.lightgbm as lgb
import pandas as pd
from lightgbm import early_stopping, log_evaluation
from sklearn.metrics import roc_auc_score
from sklearn.model_selection import train_test_split
def objective(trial: optuna.Trial):
df = pd.rea... | [
"tarun.bhavnani@gmail.com"
] | tarun.bhavnani@gmail.com |
742f8a6dd2aee367cca6f94262b5612485524064 | 868b90e85541f1f76e1805346f18c2cb7675ffc8 | /cnn/02_introductory_cnn.py | 1eac1abda98b5a9c829bc11f7f50f4ba5b7d7589 | [] | no_license | WOW5678/tensorflow_study | a9a447c39c63a751046d4776eedc17589324634e | 39e202b102cd2ebc1ba16f793acc8ebe9ea0e752 | refs/heads/master | 2020-03-19T15:49:24.729778 | 2018-10-19T06:45:26 | 2018-10-19T06:45:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,639 | py | # Introductory CNN Model: MNIST Digits
#---------------------------------------
#
# In this example, we will download the MNIST handwritten
# digits and create a simple CNN network to predict the
# digit category (0-9)
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
from tensorflow.contrib.l... | [
"noreply@github.com"
] | noreply@github.com |
87e624c046d7ee1c73d71e7f9fb69741e1ad4cda | deab3d208515c90dae53e8f675ecbcbf5f9c0de2 | /LearningDjango/settings.py | 0adaa8387e0f9b26515b7a05b2b9d319438643db | [] | no_license | jimersylee/LearningDjango | 9a6e05f3d29ef3db60d811a655ceda154d42c470 | 32ac6e9cba9529e662ba697e478b985841e94b0a | refs/heads/master | 2020-04-07T04:18:11.693915 | 2018-12-20T01:17:59 | 2018-12-20T01:17:59 | 158,049,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | """
Django settings for LearningDjango project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"jimersylee@gmail.com"
] | jimersylee@gmail.com |
cd70acfcb63726d43d38f161933d4473e020bcb4 | 416ea1127f3e3a1a8e64dd980e59c7bf585379a0 | /read_favorite_number.py | 13e6938ce6b8bf90c1ab89faddd39721b21296a8 | [] | no_license | jocogum10/learning_python_crash_course | 6cf826e4324f91a49da579fb1fcd3ca623c20306 | c159d0b0de0be8e95eb8777a416e5010fbb9e2ca | refs/heads/master | 2020-12-10T02:55:40.757363 | 2020-01-13T01:22:44 | 2020-01-13T01:22:44 | 233,486,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import json
filename = 'favorite_number.json'
with open(filename) as file_object:
message = json.load(file_object)
print("I know your favorite number! It's " + message + "!")
| [
"jocogum10@gmail.com"
] | jocogum10@gmail.com |
18ff290030cc8d441adde214b3e61d991f58a2cd | 6df5a0ba285b74310b0b8349807c302b407623c7 | /wide_cnn_rnn/RNN_TF.py | be4a052ca9246306b55b1b9813d112f8042fb0ee | [] | no_license | denghuolanshan12/AppIdentificationHTTPS | cddf241d21e8ecb873b5c0195e9b0627413391b6 | 1beb06d2669a3932dd02f86eb628a3dec2b7a038 | refs/heads/master | 2022-01-22T09:17:02.326799 | 2019-08-01T11:13:50 | 2019-08-01T11:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,243 | py | #!/usr/bin/env python
#coding=utf-8
import tensorflow as tf
from result import figures
# 打印log
tf.logging.set_verbosity(tf.logging.INFO)
# 数据路径
path_tfrecords_train="../../data/train.tfrecord"
path_tfrecords_test="../../data/test.tfrecord"
# 定义解析函数
def parse(serialized):
features = {
'recordTypes': tf.Fixe... | [
"tianmao1994@yahoo.com"
] | tianmao1994@yahoo.com |
789e83f567e4c9174af23960e667b0add9a2e621 | 0856b79000b77e177e9115b620fec948c2c9532d | /gardener/database_operations.py | 85c48b61516459d2a964bda1130bc96505b9f376 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | femmerling/backyard | 6174db0b9f1f75b66f748e9976a6d7013a956753 | d4d3eb5922d60f0e471d5e6a59bab5d68707d05d | refs/heads/master | 2021-01-02T08:21:51.001914 | 2015-02-22T10:15:08 | 2015-02-22T10:15:08 | 12,624,737 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,860 | py | import imp
import os.path
from app import db
from migrate.versioning import api
from config import UserConfig
config = UserConfig()
SQLALCHEMY_DATABASE_URI = config.SQLALCHEMY_DATABASE_URI
SQLALCHEMY_MIGRATE_REPO = config.SQLALCHEMY_MIGRATE_REPO
def db_create():
# This creates the new database.
db.create_a... | [
"erich@emfeld.com"
] | erich@emfeld.com |
13423cd0e461c0cae46874f40a88916e7e259d73 | 13c404b0f6e45049ed1f2dc788f5c55129c8bd57 | /TriblerGUI/widgets/settingspage.py | c2e60ceb1f7ad236ba96b0d0d482a0d5c9f5610e | [] | no_license | brussee/tribler | 5a849e7b260a5f95e360c2b079e4d7f5d065d7af | d1a1d0ba08ba4a3fca9ef99aad3e74859a7454e3 | refs/heads/android-app | 2021-01-24T01:10:49.293465 | 2016-12-02T16:32:38 | 2016-12-02T16:32:38 | 46,921,190 | 0 | 2 | null | 2016-05-19T13:48:56 | 2015-11-26T10:53:45 | Python | UTF-8 | Python | false | false | 11,404 | py | import json
from PyQt5.QtWidgets import QWidget
from TriblerGUI.defs import PAGE_SETTINGS_GENERAL, PAGE_SETTINGS_CONNECTION, PAGE_SETTINGS_BANDWIDTH, \
PAGE_SETTINGS_SEEDING, PAGE_SETTINGS_ANONYMITY, BUTTON_TYPE_NORMAL
from TriblerGUI.dialogs.confirmationdialog import ConfirmationDialog
from TriblerGUI.tribler_req... | [
"mdmartijndevos@gmail.com"
] | mdmartijndevos@gmail.com |
bc0805cf7d2b4574e211b320b50f28b56d729b88 | 61ba840220ad32959fa7897e9b0dc487185cb54b | /Utils/TextProcessingUtils.py | c7cba2970467f68bace25d5589d3b8717a8beea6 | [
"MIT"
] | permissive | kostrzmar/SimpTextAlignPython | 32280b28b65793a3b3a9530d2cf5c1c6820f0797 | 3e5cbefa2f4608a101e490b4ca7cc7a9850c773d | refs/heads/main | 2023-03-25T18:40:57.261563 | 2021-03-22T20:21:08 | 2021-03-22T20:21:08 | 335,767,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,008 | py | from Utils import DefinedConstants, VectorUtils
from textblob import TextBlob
from nltk.tokenize import RegexpTokenizer
import re
from Representations import Text2abstractRepresentation
def getCleanEmbeddingModelTokens( text):
#tokenizer = RegexpTokenizer(r"\w+|\$[\d\.]+|\S+|'")
#blob_object = TextBlob(text, ... | [
"marek.kostrzewa@uzh.ch"
] | marek.kostrzewa@uzh.ch |
5ccb0de7903a5ad587a6809250f6a95518d6d850 | 2151544cd386b550b137c4c738a6e57af542f50a | /src/pipelinex/extras/datasets/pillow/images_dataset.py | e787712d4c62212e94e720b17a91161cc9b33575 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MarchRaBBiT/pipelinex | b82725b7307a58f28d7d663f5072b969a2c9591d | ea8def32a71752b667f9f3522acba3fd79102fe1 | refs/heads/master | 2023-01-05T22:41:58.241802 | 2020-11-08T13:18:19 | 2020-11-08T13:18:19 | 311,065,793 | 0 | 0 | NOASSERTION | 2020-11-08T13:18:20 | 2020-11-08T13:12:11 | null | UTF-8 | Python | false | false | 9,864 | py | import copy
from pathlib import Path
from typing import Any, Dict, Union
from PIL import Image
import logging
import numpy as np
from ..core import AbstractVersionedDataSet, DataSetError, Version
from ...ops.numpy_ops import to_channel_first_arr, to_channel_last_arr, ReverseChannel
log = logging.getLogger(__name__)
... | [
"yusuke.minami86@gmail.com"
] | yusuke.minami86@gmail.com |
fa6cdeba91942d807fde795c7edcc0bdb379290c | 6b9c66787fc27ad7dc9165ebad7928e861786e32 | /migrations/versions/3657b8de770_.py | 8b5d7100b0946eb618af36d4d0fc308c736cc675 | [] | no_license | sany-soft/microblog | 768a4370d77725eec20a0d2bf85c4c2d8018c792 | 584f6191ab2b16ee93409616566a5ac9e250ccdb | refs/heads/master | 2021-12-16T02:10:31.128045 | 2017-09-12T11:11:50 | 2017-09-12T11:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | """empty message
Revision ID: 3657b8de770
Revises: 2d9cf26fbfb0
Create Date: 2016-10-23 18:12:08.882000
"""
# revision identifiers, used by Alembic.
revision = '3657b8de770'
down_revision = '2d9cf26fbfb0'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - pl... | [
"2755289083@qq.comm"
] | 2755289083@qq.comm |
dc86b8c0440e4f976d81efdad9b406a392cb509d | 43f426e52180e543aa7b32996f0bc26295e11f9e | /06_src/fr/tagc/uorf/core/util/log/__init__.py | a947854e31a9c20a4f018e417b950b21df083fb2 | [] | no_license | TAGC-NetworkBiology/MetamORF | c96104845382544ea48c573211dbf3a35982f894 | d623ede53ececd804a6a105676b6d6bcc2941ee1 | refs/heads/master | 2023-02-03T01:09:48.191736 | 2020-12-20T16:01:43 | 2020-12-20T16:01:43 | 281,438,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # -*- coding: utf-8 -*-
from GeneRefLogger import GeneRefLogger
from Logger import Logger
| [
"sebastien.choteau@univ-amu.fr"
] | sebastien.choteau@univ-amu.fr |
3fb62c0b81aac929d34566a62f6ff4a0e5b40388 | 3aa4e976973ffca2501c7608e77fbc98ab5815b8 | /chat/migrations/0003_auto_20171123_2230.py | 01ad2c8c60fe4dfb3b56d2617efc74e54f395f89 | [] | no_license | xdnian/Tutoria | 96c72b326e8056941e5df3f15226acbcf67d3154 | d6460486f0a61c6668ba5494bbe43d9ead41995e | refs/heads/master | 2021-05-05T05:41:51.844808 | 2017-11-26T14:25:58 | 2017-11-26T14:25:58 | 105,421,612 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-23 14:30
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('chat', '0002_auto_20171123_1736'),
]
operations = [
migrations.RenameField(
... | [
"junjiew2@illinois.edu"
] | junjiew2@illinois.edu |
2f6a912f37d34db640ba6cc5d6aa1f4875c6da07 | 6f6d846d140bc510d03c381dc11e4860c24246dc | /polls/migrations/0001_initial.py | 262edf092d97ea84be8161e61005c7c8cf1621d5 | [] | no_license | blooddark/djangoStudy | d3be67c00cdd28f09b52b5be8043df4ce2493088 | 762996d081b2f9591bcce4671fd3965ae2ee4d26 | refs/heads/master | 2020-04-16T18:23:09.340196 | 2019-01-15T08:58:11 | 2019-01-15T08:58:11 | 165,817,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Generated by Django 2.1.5 on 2019-01-15 08:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"929609968@qq.com"
] | 929609968@qq.com |
110a37c782a24f234cb283d0b0e2b6a6e697b472 | 77d7958bf4a39414884df27b545b213d451ca6ec | /wordlist_generator.py | bab1584218e125334ccc8254760e3f3f0aa761b5 | [] | no_license | sashreek1/password_gen | 6056a6081e12008f8a85afbfc3f11ad6eba5ba49 | 986cfd35e51e465034ddc745b62996a987857831 | refs/heads/master | 2020-11-25T01:06:39.461845 | 2019-12-16T16:40:56 | 2019-12-16T16:40:56 | 228,422,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | import re
basewords = []
name = basewords.append(input("Enter victim's first name : "))
last = basewords.append(input("Enter victim's last name : "))
dob= input("Enter victims birthday(dd/mm/yy) : ").split("/")
dob = ''.join(dob)
basewords.append(dob)
nick = basewords.append(input("enter victim's nick name : "))
pet = ... | [
"noreply@github.com"
] | noreply@github.com |
a92044f9571336192d5f4ac4d928d8f9a911e1d8 | eae7322d17ce7555e7e1a4ebeae121572f73645a | /setup.py | ab8f81520c35d8ebf209609646b576c49549e4e2 | [] | no_license | arthurherbout/sudoku | 63a31a3594843eef01add1c5674df8c10c2359a2 | 42f7d839782cfea6426c514ee8e5f19db2b3f8d6 | refs/heads/master | 2020-04-15T16:34:02.067432 | 2019-01-23T04:39:57 | 2019-01-23T04:39:57 | 164,841,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from setuptools import setup
setup(name='gym_sudoku',
version='0.0.1',
install_requires=['gym'])
| [
"arthurherbout@gmail.com"
] | arthurherbout@gmail.com |
079d84ead2086b20c5c3e43113d9274666995188 | 4fae3fc52fe205c3e5061053e65de3108d516b22 | /prepare_with_spark.py | 2f63416b8665471589b30ebba8d8799a582b21f8 | [] | no_license | gliaffirm/dnn | 79d2ff748bc11f08f849e22cd8988b6a1083d2be | 116577ce6feb10aa66c771350236a34479817cfb | refs/heads/master | 2022-08-01T20:06:47.359914 | 2020-05-27T22:04:53 | 2020-05-27T22:04:53 | 267,435,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,644 | py | import boto3
import pickle
import numpy as np
import torch.nn as nn
from collections import OrderedDict
from pyspark.ml.feature import VectorAssembler
from pyspark.sql.types import IntegerType, DoubleType, ArrayType
from pyspark.sql import functions as fn
class Configs(object):
TRAINING_BASE_PATH = 's3://affirm... | [
"liguoxinl@163.com"
] | liguoxinl@163.com |
0b24bac438e1c5c418018f3da148286e94d3b963 | 9cb0ab429b498f3941914dd5773f1f89f2394177 | /kzt_exchangerates/__init__.py | 75e9aaf0fa6184af250389ad2068a5b9c658c281 | [
"MIT"
] | permissive | kaamapulyaaa/python-kzt-exchangerates | 9b8e96442ce85d0176797c76df8d00c903fde78e | 60eca52b776f889848d631be43c843bd9bd50d06 | refs/heads/master | 2023-03-15T12:21:55.511418 | 2020-04-02T12:51:23 | 2020-04-02T12:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from kzt_exchangerates.rates import Rates | [
"dastand.climber@gmail.com"
] | dastand.climber@gmail.com |
fe3ded0d29d47adaf42b42d3141b7dffded06bb4 | f82553b6ad97b819e06e95bd77db5d9c5a856bf0 | /online_tutor/urls.py | 55749822c6a73f7ee7d8385635530df2142c7e4c | [] | no_license | ramesh1553/online_tutor | e49a40003e5b531b9d85b14a15bf8b487e7d94a2 | 2852480d306f1eb238374bdbe9406b91cd224f8c | refs/heads/master | 2023-08-02T14:02:47.522371 | 2021-09-21T10:11:13 | 2021-09-21T10:11:13 | 408,718,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | """online_tutor URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"ramesh.v1553@gmail.com"
] | ramesh.v1553@gmail.com |
ea9572dc849baf1317f801f9c39db6170004c6b0 | efc8a145869cf4e97b72d5e8c1d74b07e672be53 | /Python/SWEA/D3/5948. 새샘이의 7-3-5 게임/5948_새샘이의7-3-5게임.py | a0b06311d3e7c40a4838e338d5309398f9f77eee | [] | no_license | jngmk/Training | f179f8c3d5e2f9b93ed28e0c9b42933bc142a7e7 | ec9e135d59300db2a42f7693137252a0a2cb7b24 | refs/heads/master | 2020-07-20T05:31:16.976630 | 2020-05-09T14:33:47 | 2020-05-09T14:33:47 | 196,009,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import sys
sys.stdin = open('input.txt', 'r')
T = int(input())
for i in range(T):
num_list = list(map(int, input().split()))
result_set = set()
for a in range(5):
for b in range(a+1, 6):
for c in range(b+1, 7):
num = num_list[a] + num_list[b] + num_list[c]
... | [
"rlawjd7186@naver.com"
] | rlawjd7186@naver.com |
fe3d56f534757e85bb71da0c2dbc4bd05d60ac04 | eae1bcedfacc74ea9dc01f0ba4fff292e50fafe6 | /Module 13.2.py | a2067db00a151f9b96be6b322c09b75a8e0d88ce | [] | no_license | SztMar/Module13--SQLite | bead47425ebaf83f8eacf4e089df3db8d86a0cb4 | a048f18d39451ba77f821f03eb780fbe6965d349 | refs/heads/master | 2023-01-18T16:15:45.137187 | 2020-11-21T18:16:51 | 2020-11-21T18:16:51 | 314,874,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | # `ex_01_conection_to_db.py`
import sqlite3
from sqlite3 import Error
def create_connection(db_file):
""" create a database connection to the SQLite database
specified by db_file
:param db_file: database file
:return: Connection object or None
"""
conn = None
try:
conn = sqlite3.connec... | [
"mareksztuczka1992@gmail.com"
] | mareksztuczka1992@gmail.com |
8b98c2424e83ef7085af2687a5062744cae8479e | 53e0a9a522b496ab1d1a909ef7ad88fe5a0b88c3 | /pyskel/plugins/python_serverless_lambda/hooks.py | f12a995122d820e7bb1f7ccd476bb3bf2006ce1b | [] | no_license | tyevans/pyskel | ed183bfd4ffd4c22529108d11147852a43c150a2 | 44be44296b7b81e0aafb3a44f3b61d16e2930fc4 | refs/heads/master | 2020-12-30T04:57:36.778616 | 2020-02-07T07:41:19 | 2020-02-07T07:41:19 | 238,868,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | import jinja2
import pyskel
options = {
"name": "python_serverless_lambda",
"template_module": "pyskel.plugins.python_serverless_lambda",
"dependencies": [
# Other plugins that are required for this one to work.
"python_base",
],
"manifest": [
# Files to write into new proj... | [
"tyevans@gmail.com"
] | tyevans@gmail.com |
f10cf0c87250140ac5312dc31eb6fb3097b38031 | 5983bf3f4cbd49e222a4448f6e738946c1012553 | /aicall/apps/info/migrations/0002_auto_20210322_1329.py | eb91fe911bbbd8d6a9721e302847df2eb2ef5cea | [] | no_license | RympeR/aciall | 7fa88eaf6799444aef84dba1ce9974de858ddfd4 | ca238234160d93a1058f725121e1f3fbe71be33c | refs/heads/master | 2023-04-04T14:45:39.390609 | 2021-04-05T10:02:00 | 2021-04-05T10:02:00 | 354,790,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | # Generated by Django 3.1.7 on 2021-03-22 11:29
from django.db import migrations
import imagekit.models.fields
class Migration(migrations.Migration):
dependencies = [
('info', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='talkthemes',
name=... | [
"georg.rashkov@gmail.com"
] | georg.rashkov@gmail.com |
8c95d0e31b93f5a75ff25c6de415f7a290dbb8a2 | 354d480e67b995869125553485e0b43221431b8d | /chess/ai.py | d5739c4b925a4b79421e532cc16b5563579d3b9d | [] | no_license | oliverclark15/chessmasta | 7fa551a801cb5fc9ba286e6a24da54431fc140f3 | e3343fe40e90b51b3d2a0ef8de9e782fda9435a9 | refs/heads/master | 2020-12-27T08:28:21.559822 | 2020-02-18T21:35:40 | 2020-02-18T21:35:40 | 237,833,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,393 | py | from chess import *
class Agent:
def __init__(self,max_depth):
self.max_depth = max_depth
self.best_move = None
def minimax(self, current_depth, board, alpha=-1000, beta=1000):
# Recursive base check
if (current_depth == self.max_depth) or (board.gameover()):
... | [
"oliver.clark2@mail.mcgill.ca"
] | oliver.clark2@mail.mcgill.ca |
9fe2c0d104d0b3349e465be78200a2e358149718 | 175a4a051a66a09ba7be98ba7ffcae32ff644ea3 | /venv/bin/gunicorn | ca56742f10112a37b2f682b3737cc4774f31dbee | [] | no_license | DavidMantilla/flask | 8f49e33dde9cef6b7e311d85bd398b539469a293 | 80d4d278a6c1a81bba9d27817a256696803b950d | refs/heads/master | 2023-03-28T11:23:34.062526 | 2021-04-02T17:54:47 | 2021-04-02T17:54:47 | 353,855,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/david/python/flask/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"mantillardavid_21@hotmail.com"
] | mantillardavid_21@hotmail.com | |
dfe2d2b6601b7ca76c5e0c710158960065091f9b | 15e6f3401d640e0666c47b56b2082ee6baa310e5 | /model_ui.py | f0e62f035cf4e0cf56c096169508a9f86bf2fac0 | [] | no_license | Lving/RiskModeler | 4f0d4a1dbc5e0965db4a00924bc5e5f87f941ed8 | 6c4131f297c21fd45ff9d6511e5d58372e2433e2 | refs/heads/master | 2022-11-29T20:48:14.250633 | 2020-08-10T15:26:03 | 2020-08-10T15:26:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109,966 | py | import tkinter as tk
from tkinter import ttk
from tkinter import *
import pandas as pd
from pandastable import Table
import pickle as pickle
from .func import binning
import math
from .model import lrmodel
lrmodel = lrmodel()
import datetime
binning = binning()
import statsmodels.api as sm
from sklearn... | [
"noreply@github.com"
] | noreply@github.com |
50b38f5aa112634f69a1964367b345d28107fa78 | 62153e297ca84bf9d76eef56b28408f5337113f9 | /tasks/migrations/0005_announcements_picture.py | 470373d027006370d1516280f097642bee71c5a1 | [] | no_license | zarif007/HRTaskManager | 22b72c80d2cac99fa9d3f7f0cfd480cb832ff910 | 4c7e7f04b82f138a7177f659bb347c7e189c6220 | refs/heads/main | 2023-06-23T22:05:33.812024 | 2021-07-31T19:55:11 | 2021-07-31T19:55:11 | 373,304,992 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.2.4 on 2021-07-26 12:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tasks', '0004_announcements'),
]
operations = [
migrations.AddField(
model_name='announcements',
name='picture',
... | [
"zarifhuq786@gmail.com"
] | zarifhuq786@gmail.com |
933571926c8d8cf31a0d5b6659cbb7ef47e6d448 | ca1c5071ab4b265ea2e2462bea39f214b5cf2104 | /SisVentasRivera/SisVentasRivera/urls.py | 5866cb5c0ba9e3ab28bc81fe3de62824bcbef5c5 | [] | no_license | GhianCoForFree/SistemaWebVentas | b8f51d391bf985b443db71c985c41e7d8153ea52 | a1764a79054cdf13f8846bb79639a45f190b1fd6 | refs/heads/master | 2016-09-08T01:55:31.413697 | 2014-07-30T02:31:06 | 2014-07-30T02:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('SisVentasRivera.Apps.ventas.urls')),
url(r'^$','django.contrib.auth.views.login',{'template_name':'Principa... | [
"ghiancoremix2011@hotmail.com"
] | ghiancoremix2011@hotmail.com |
3b42cab023c4dd9c67e936c89f7d0e9e1a725a1b | 3556a5a253866cdc2d0e53731656adbbc840736c | /test/test_random.py | ad4ca69e9db42d86af188152386885dc86a429b1 | [
"MIT"
] | permissive | linyc74/ngslite | 96066666d485edd25304f92edf8f2b4796b1a444 | 3705298be2fa1c87a7e456a73a872cd0fb6ed9e6 | refs/heads/master | 2021-08-06T19:46:57.597093 | 2021-07-03T22:49:32 | 2021-07-03T22:49:32 | 158,335,635 | 1 | 1 | MIT | 2021-07-03T22:49:32 | 2018-11-20T05:30:21 | Python | UTF-8 | Python | false | false | 776 | py | import shutil
from ngslite.random import random_sample
from .setup import setup_dirs, TestCase
class TestRandom(TestCase):
def setUp(self):
self.indir, self.workdir, self.outdir = setup_dirs(__file__)
def tearDown(self):
shutil.rmtree(self.workdir)
shutil.rmtree(self.outd... | [
"yclin.python@gmail.com"
] | yclin.python@gmail.com |
e6de32f4ceb357cd73fac610304e0c9d175ffc43 | e3afdbdf6bfb9951b8a8d59fe0c65e848be5e311 | /users/forms.py | df14bd12d491beef7bee8581f25e4b3c8f2729e5 | [] | no_license | Goulish75/matProject | b028b2c0046759164a22e3a30539df97ff34b13c | fd34dc88b71288e74db2158e1de00c8567d72892 | refs/heads/master | 2023-04-08T16:51:48.504820 | 2021-04-13T13:41:09 | 2021-04-13T13:41:09 | 356,962,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from django import forms
from django.contrib.auth.models import User
class UserCreateForm(forms.ModelForm):
def __init__(self,*args,**kwargs):
super(UserCreateForm, self).__init__(*args,**kwargs)
for field in self.fields:
self.fields[field].widget.attrs = {"class":"form-control"}
... | [
"furkancatal6060@gmail.com"
] | furkancatal6060@gmail.com |
3734e13259f4b245375820776dc260e0f60a01d5 | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_129.py | 7569fce71cd2fd69603dc29210d1978acc440b9c | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
fd0816dae9157631a8d5823e89d9650f7806a979 | 75ce5b7fee397fe4e67ed15a58f4cd42e0f8de9f | /PythonMasterclass/HelloWorld/Strings.py | 3b45aebdb6a60836687406b37ebae58981f463c5 | [] | no_license | lukbast/stuff | 7fd03b7e035394802c307682a25621dfd667960b | 160e1d77d1b592fac099b9c7139fb4e2f7f8dbbe | refs/heads/main | 2023-08-06T21:39:55.334812 | 2021-09-23T17:37:47 | 2021-09-23T17:37:47 | 409,684,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | greeting = 'Hello'
name = 'Bruce'
# print(greeting+' ' + name)
# sample comment
# name2 = input('Please enter your name')
# print(greeting + ' ' + name2)
# splitString = 'This string has been\nsplit\nover\nseveral\nlines'
# print(splitString)
tabbedStrings = '1\t2\t3\t4\t5'
print(tabbedStrings)
print('The pet sho... | [
"jaimperator99@gmail.com"
] | jaimperator99@gmail.com |
cb810715b2d6581046532bb0947961ad21cdf2a1 | 65898c45b59b5c5d5ee523f69ab09e139c30cd0a | /application.py | 052e8a638d333010e212ca26f8a99ac1431648f9 | [] | no_license | calumbell/schwach | ffe4ada2de07185bc6d77ecaa00b157917e85214 | f248d7940a19be68876c86b4a06bd48a5df907a4 | refs/heads/master | 2022-01-19T09:27:33.945532 | 2019-05-24T08:53:06 | 2019-05-24T08:53:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | import os
import sys
from flask import Flask, render_template, request, url_for
from flask_socketio import SocketIO, emit
channels = {}
maxMsgPerCh = 100
messageID = 0
# Initialise Flask and SocketIO
app = Flask(__name__)
app.config["SECRET_KEY"] = os.getenv("SECRET_KEY")
socketio = SocketIO(app)
@app.route("/")
d... | [
"calumabell@googlemail.com"
] | calumabell@googlemail.com |
be4fa32415684c642d29d2fe12a21a6f8942bcf4 | 734ed763b6275da70ba5519ebe498f7cb3cafd14 | /oscar_webpay/gateway.py | 4502405a344efce2ed18f41ee25d51c633bee3d4 | [] | no_license | RaydelMiranda/django-oscar-webpay | edda3f505fbdb8dbd36dc1aae67d8ad9bf9d83eb | 9f6be28ba22af95c77b8196898df2e7651a38fdb | refs/heads/master | 2022-07-20T06:22:41.674356 | 2017-04-29T00:09:47 | 2017-04-29T00:09:47 | 88,999,127 | 7 | 2 | null | 2022-07-08T19:12:59 | 2017-04-21T15:39:50 | Python | UTF-8 | Python | false | false | 1,541 | py | from oscar_webpay.libwebpay.webpay import Webpay
from oscar_webpay.certificates import cert_normal
from oscar_webpay.libwebpay.configuration import Configuration
from oscar_webpay.oscar_webpay_settings import oscar_webpay_settings
from django.core.urlresolvers import reverse
def get_webpay_conf():
certificate = ... | [
"raydel.miranda.gomez@gmail.com"
] | raydel.miranda.gomez@gmail.com |
8380622bbde43b92e00ac4f96152d1afa7c46f30 | bb4241ec40d0f3bc7484957a3aad2c7921f3ab5f | /src/tracewhack/log.py | c21fc7cf7481ebc5c882c0be2775dba2f2ae8ccc | [
"BSD-3-Clause"
] | permissive | wingu/tracewhack | a17b7e54cbe7cc74cc99511cdf490cd2f12e4184 | a324705c23ddd8921ed829152f07fa9ff758de0f | refs/heads/master | 2020-06-04T17:25:08.534182 | 2013-01-28T15:29:20 | 2013-01-28T15:29:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | """
Logging utilities.
"""
# LATER Right now these are just dumb placeholders.
def warn(msg):
"""
Log a warning.
"""
print msg
def verbose(msg, options):
"""
Log only if verbose mode
"""
if options and options.get('verbose', False):
print msg
def error(msg):
"""
Lo... | [
"tomheon@gmail.com"
] | tomheon@gmail.com |
d1646861c8c6d64a271baf7fbda6efb400ffa444 | 3b4d2fe8539c5f1e49355c8acbb6cddaba1ec077 | /main_login_registration/urls.py | c170a8dcd18d0cb68bf6075c3e49d94d326d7762 | [] | no_license | SamLobodiak/Login-and-Registration-with-Amir | 20fb66c9436199efed12bb7960c4c752ec76e6a2 | e1bf534627ba6b9e7df7689e5b41a6539cece04f | refs/heads/master | 2021-05-15T19:52:54.906015 | 2017-10-23T17:55:03 | 2017-10-23T17:55:03 | 107,730,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | """main_login_registration URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name=... | [
"samuel.lobodiak@gmail.com"
] | samuel.lobodiak@gmail.com |
3444f7edd6f1163f10d9be2255fc8f130c62da24 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v11/errors/types/asset_group_listing_group_filter_error.py | 0aa4caab0394edc17f6c1870dd1f51adb4f736d5 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,792 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
6c51695f222b85f96026e756baa780aa3285965a | 35f4b55e28fd2c4f733f5063c6e4d96dd21f5581 | /Assignment2/2.2/plot.py | 04bf1f495f39ca68b2b4d44f3eedfeafc119ac9f | [] | no_license | swap612/CS633-ParallelComputing-Assignments | 7448db20d61ed2cb5b0cb1f98cc284ba0eaace41 | be52391f13f9edcc99c5cc9c5dda4b514de07a03 | refs/heads/master | 2020-05-23T21:49:49.264856 | 2019-05-16T06:17:55 | 2019-05-16T06:17:55 | 186,961,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
x= ['0', '2', '4', '6', '8', '9', '10']
n4 = [[ 1501.092991, 1595.196755, 1617.133016, 1616.405935, 1610.097505, 1622.031840, 1619.005661, 1619.943611, 1620.360827, 1615.472076],
[ 1509.715434, 1691.081141, 1723.952253, 1721.446337, ... | [
"swapnilr@cse.iitk.ac.in"
] | swapnilr@cse.iitk.ac.in |
c6f1591386821919b4b8b6930ea1cb7a2c37e9ac | b070398628647221d8d5fa82430c1414ca7582f3 | /env/bin/easy_install-3.8 | 1eed5e05292ab3df321b8f17f47173b9c4bab19a | [] | no_license | tonioshikanlu/Hospital_Management_System | ddd8c8a804e5ae4e57e1ce3bef141277d65536e2 | 31ddf96070db546b5b6d076558bb5ecac0f03252 | refs/heads/master | 2021-05-20T15:16:59.739185 | 2020-04-18T03:31:14 | 2020-04-18T03:31:14 | 252,346,303 | 2 | 0 | null | 2021-03-20T03:20:58 | 2020-04-02T03:30:06 | Python | UTF-8 | Python | false | false | 292 | 8 | #!/Users/lozoya/Documents/DBMS_Project/Hospital_Management_System/env/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())
| [
"latifat.ozoya@bison.howard.edu"
] | latifat.ozoya@bison.howard.edu |
4d3e87116d6556c0d297a5c799aedc741f817923 | 1854841ff9de3391f1c858fcb9f5ccd7dc5488eb | /backend/aidin_27554/wsgi.py | 989a9b46785cae5d98a29e68726486205737a9bf | [] | no_license | crowdbotics-apps/aidin-27554 | 84f8ddd4e63ebfa233fc8d4a2b617af399371b50 | fd1e1768ee18919395a1740c70bbcd337360174e | refs/heads/master | 2023-05-05T15:50:29.989821 | 2021-05-29T14:26:12 | 2021-05-29T14:26:12 | 371,992,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for aidin_27554 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5c611d24871d72ff959099b07e7ec08de63e467e | c3da4b4ed0670b820330f59ac85f938571a45dcb | /Coding_Answers/__init__.py | 0fa4835061504bf51500d82d28bdaf0645ed8d97 | [] | no_license | OmarJabri7/Aliz_Technologies_Answers | e4f9cfe31a48209f26469ba453b4916ed78367f5 | a2f861b18bf989a13b43316101ea98991cb9a2c3 | refs/heads/master | 2020-07-14T20:42:50.107317 | 2019-08-30T14:32:46 | 2019-08-30T14:32:46 | 205,396,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 30 15:28:35 2019
@author: omarj
"""
import pandas as pd
from Threshold import ThresholdBinarizer
from Estimator import custom_editor
def main():
#Main computations:
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X ... | [
"noreply@github.com"
] | noreply@github.com |
68e9f2a40aaf0f77dbcaa591c3352c44de7c0d00 | 1fa19b841f331aa21a33d48fdea837b90dae9597 | /ConnectFour/ConnectFour.py | 674a79eedcbb1ee225b6ec53d031fa4316b5abac | [
"Apache-2.0"
] | permissive | resolutedreamer/ConnectFour | 3cb760b04c1e1bfdbaf86e50e5b91320263b0891 | 18f35483083ae19e6363acf06390c3aa2079fa75 | refs/heads/master | 2021-01-12T13:10:43.828305 | 2016-12-03T05:58:52 | 2016-12-03T05:58:52 | 72,137,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,323 | py | #!/usr/bin/env python
class ConnectFour():
def __init__(self, height, width):
self.height = height
self.width = width
self.board = []
self.columnCounts = [0]*width
for i in range(width):
self.board.append([0]*height)
# False while game is being p... | [
"anthony.c.nguyen@ucla.edu"
] | anthony.c.nguyen@ucla.edu |
e6f1f95c32197c7c576178271138facd8a391b2c | acfdc6c6f0e70aaaa8bd424c996146f18dda1fe1 | /scripts/generate_pub_names.py | 101aac39331942b296840be06d2b608b307036a2 | [] | no_license | Samson-Dai/ctructure | bdfd938f5943c9750487a5408243de07f2fcebcc | 0e969693ca9987cd4ce96a3ef26cb074057f3a69 | refs/heads/master | 2020-04-04T14:45:28.952642 | 2017-12-15T12:38:22 | 2017-12-15T12:38:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # generate the names of the publications from the laws
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir("demo_laws") if isfile(join("demo_laws", f))]
f = open("publication_names.txt", 'w')
for name in onlyfiles:
#print name
name = '/' + name
ff = open("demo_laws"+name, ... | [
"katricia.herring@gmail.com"
] | katricia.herring@gmail.com |
030e30da9d4ce1d9b85729f6d5707b383c54a550 | 15062f7fb642694c60b6acf3fd9125b68d706221 | /google_codejam/2020/esab_atad.py | fdaecbe461fea449589fdd9985b91f3469894ab0 | [] | no_license | Rhysoshea/daily_coding_challenges | 4f4ba14b0adc922069309ee8b3e5feb6330327c8 | 42794391218dfe1ec8596cf0e8acaf2a806d7d78 | refs/heads/master | 2021-07-20T06:37:27.166233 | 2020-10-01T05:50:58 | 2020-10-01T05:50:58 | 217,301,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,843 | py | """
Problem
Last year, a research consortium had some trouble with a distributed database system that sometimes lost pieces of the data. You do not need to read or understand that problem in order to solve this one!
The consortium has decided that distributed systems are too complicated, so they are storing B bits of ... | [
"rhys.shea.10@ucl.ac.uk"
] | rhys.shea.10@ucl.ac.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.