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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
499d54707352d375b0249f2363e74f7d7f707d4c | 7317d386b760a6a3db9bfa071c6c5a7243a5d4c2 | /USA_COVID19.py | fcf3d2fbd17e113f7ddda8062e57206b5b9d665a | [] | no_license | KKanda900/Covid_Insight | db0ec607e2bd3faa55b83e38e793ea198a7f61cd | dce7e8c55aee42623d6be84e45928b3d1a882e40 | refs/heads/master | 2023-02-22T06:01:07.082541 | 2021-01-19T03:39:47 | 2021-01-19T03:39:47 | 329,475,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,225 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import BayesianRidge
from sklearn.linear_model import Ridge
import datetime as dt
import Data as d
import os
def bayesi... | [
"kkanda900@gmail.com"
] | kkanda900@gmail.com |
4a9da798422a975372d4ef89f748d76b9d09eea2 | f4bce35934800e93a2b3eeb14c568001ff70954a | /build/catkin_generated/installspace/_setup_util.py | e3fd8feae7abd1be35880d57a1957a608abe6e88 | [] | no_license | SamLyuubc/CarisRoboticsTestbench | 94d07519ad3c2d210dd09a51c5278af5986edab2 | 5a60aca3c5f0ef5d12f3d617b86282ed00ea5487 | refs/heads/master | 2020-05-04T02:30:17.961966 | 2019-04-03T20:36:36 | 2019-04-03T20:36:36 | 178,927,596 | 0 | 0 | null | 2019-04-22T23:12:45 | 2019-04-01T18:56:23 | C++ | UTF-8 | Python | false | false | 13,042 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistrib... | [
"sam.aandkrobotics@gmail.com"
] | sam.aandkrobotics@gmail.com |
0ce1a22c0597a986e8737dfbfc156758588401b4 | ef44bc7b484f817de597352d948309a98d5b8cf9 | /request_batcher/monitor.py | 149462ef5076586029f890899e0ab81c590794ed | [] | no_license | j-dutton/request-batcher | f5a5771c0b44f3a589cda5e52c1f857e3f38f9a6 | 6d740bc787f4125227f87a28f936196416506687 | refs/heads/master | 2022-12-26T01:36:30.422556 | 2020-10-12T21:27:25 | 2020-10-12T21:27:25 | 302,417,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from clicks import click_state
from constants import MONITOR_INTERVAL_SECONDS, MAX_OPENS_ALLOWED_IN_STATE, MAX_CLICKS_ALLOWED_IN_STATE
from logger import LOG
from opens import open_state
from utils import repeat
@repeat(seconds=MONITOR_INTERVAL_SECONDS)
async def monitor():
logger = LOG.getChild('monitor')
lo... | [
"j.dutton@iwoca.co.uk"
] | j.dutton@iwoca.co.uk |
552fea4e7e4a404550ffa6236bc4c30f22f33e18 | 3f9f7c73bb2f9da31c586d2b64e2cc94f35239dc | /django-polls/polls/tests/test_models.py | 94b7c24fbee98fcaf5c51ee69dd5ad670600b45b | [
"MIT"
] | permissive | jsterling23/DPY_Refresher | eb57e37d4bbad14143800719668b990b459fb56d | 4646b7ebd79ba853f5ccc172183f41257cc12b60 | refs/heads/master | 2020-03-23T19:11:32.626731 | 2018-07-29T01:17:49 | 2018-07-29T01:17:49 | 141,959,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from django.test import TestCase
import datetime
from django.utils import timezone
from ..models import Question
from django.urls import reverse
class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
# method should return false for future dated questions.
... | [
"jerrypadilla23@gmail.com"
] | jerrypadilla23@gmail.com |
e8e305a6f11009f9aa86ad3315641ca93bac6171 | 59b1dc370837138dfd1820516e65c3dfbeff85f4 | /src/Python/parallel_matrix.py | 29ad5dd9959be0fc35e8d2b663ef7b98ab60d79e | [
"MIT"
] | permissive | pargue/matmatmult | bc8fcbf0f11e434b8ad641968f2c0925010f26ca | 32bf1f0eddc7ad11d9403e48caf4bcb99200f703 | refs/heads/master | 2020-12-24T08:00:03.339663 | 2016-12-14T17:36:57 | 2016-12-14T17:36:57 | 73,347,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,446 | py | #!/usr/bin/env python3
"""
AUTHOR: Cody Kankel
PROG: Parallel_matrix.py
DESC: This is a Python 3 script which requires mpi4py, to implement
Strassen's Algorthm for multiplying 2 matricies in parallel. This script
will take in a matrix from the cmd line stored as a csv file, and multiply
the matrix by itself by readin... | [
"cody.kankel@gmail.com"
] | cody.kankel@gmail.com |
83932b497fb4b87191f07e51e57a976f85c5e3b7 | 8005bde2cfeba49c5cd1b88dc2c0d1c0fc4d85dc | /manage_class.py | 6d9d43699f03cfed55fba6a29376876956fd2ed2 | [] | no_license | coulibaly-mouhamed/Basic_Fake_News_detector | 85ab75d39a65b98ea2724f02564c196fbbdc08a8 | 7fd985b4ab3335212f6f0ba8242ec1c6f5439658 | refs/heads/master | 2023-04-06T17:22:19.180102 | 2021-04-26T10:37:47 | 2021-04-26T10:37:47 | 252,579,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py |
##############################################################
class news():
def __init__(self,headline,domain):
self.headline = headline
self.domain = domain
def __str__(self):
return '%.2c:%2.c' %(self.domain,self.headline)
class invalid_input(Exception):
pass
########################################... | [
"noreply@github.com"
] | coulibaly-mouhamed.noreply@github.com |
ec390ae9d26d00c9987dcba374799b70c1c22380 | 704f50b7df466bd30811707f81561a5d8ace3127 | /screens/admin/delitem.py | 98c82f6ecbe218fb770c82cb71eed836c5b1a469 | [] | no_license | Maulik747/LostandFound | 0e7c4e4c3c3561151fbc35ff463caeda428f1803 | f31c0e8f9e9e50f1c62c9b7040560d5e21a24426 | refs/heads/main | 2023-02-18T22:17:52.377378 | 2021-01-18T19:26:10 | 2021-01-18T19:26:10 | 330,764,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | #!/usr/bin/env python
import cgitb
import cgi
import mysql.connector
cgitb.enable()
print("Content-Type: text/html;charset=utf-8\n\n")
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="root",
database = 'group6',
auth_plugin='mysql_native_password'
)
cursor = mydb.cursor()
head = '''<htm... | [
"[maulikchhetri1@gmail.com]"
] | [maulikchhetri1@gmail.com] |
075c8636339cb3b08aa5c4c3815994408a005e38 | 853d7bd91f4ba254fba0ff28f2e0a3eb2b74fa48 | /errata_tool/release.py | b5c1211cb9a8c86556c758725ad9297bc11a9fbb | [
"MIT"
] | permissive | smunilla/errata-tool | b07614daeceda4a1bfc18ce59679be0a93bb084f | 91bdfb17f15308b46298210fbb2fe5af786276bc | refs/heads/master | 2020-04-10T00:18:12.471123 | 2018-11-19T17:33:02 | 2018-11-28T15:40:08 | 160,681,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,800 | py | from __future__ import print_function
import sys
from datetime import date
from errata_tool import ErrataConnector
from errata_tool.product import Product
from errata_tool.product_version import ProductVersion
from errata_tool.user import User
class NoReleaseFoundError(Exception):
pass
class MultipleReleasesFou... | [
"kdreyer@redhat.com"
] | kdreyer@redhat.com |
54a101a64b5ebe750e17ac1ffc6585ee11bd2c36 | c84aa32e9961773a830e2ed97ed598d405732ee6 | /translator.py | 10b9bb7cfdfc50ec19dc9ed1ee9dd9aea8015fe8 | [
"MIT"
] | permissive | imfulee/ChineseDetector | db6130f95552b47f9a637e6f9f69c007fc9cb26d | ee85c8a372c850206a2da7ce5eb7882ef3d5f408 | refs/heads/main | 2023-03-06T13:03:21.743274 | 2021-02-13T16:47:58 | 2021-02-13T16:47:58 | 326,115,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from opencc import OpenCC
'''pip install opencc-python-reimplemented'''
simplified_to_traditional = lambda text : OpenCC('s2t').convert(text) | [
"imfulee@gmail.com"
] | imfulee@gmail.com |
d8331a4aaa0fc5a0db2f7d9cafbd092f009019ed | b62177a84db5d209f37dfc60d56f1dc9ab3174c2 | /kleague/data/transfercentre.py | 3f0bc79348879b983945c0a34c1a0687a2a23d83 | [] | no_license | bsmmoon/kleague | 12f8e9de8b4131ec37e33da4c822438fb9b8dd2a | dfdc1ecb79badb0529fd624ca1743bc69d1408b9 | refs/heads/master | 2021-01-09T21:45:00.626003 | 2015-12-05T08:17:44 | 2015-12-05T08:17:44 | 47,249,837 | 0 | 0 | null | 2015-12-05T08:17:45 | 2015-12-02T09:13:17 | Python | UTF-8 | Python | false | false | 353 | py |
class TransferCentre():
def __init__(self):
self._windowList = []
self._contracts = []
@property
def contracts(self):
return self._contracts
def addContract(self, contract):
contract.contractID = len(self._contracts)
self._contracts.append(contract)
def printContracts(self):
for contract in self... | [
"bsmmoon@gmail.com"
] | bsmmoon@gmail.com |
c7ebc6f32e1358ed20f23dc25b3df7d6a66daf88 | 4aeaca4c58858125e844aad1cd988182201b5120 | /crane/files/timeHistoryParser.py | be957dd91e6668776b4c071a376eeffa2a646763 | [] | no_license | tkarna/crane | f18442a010af0909b7f5af9358cf9080ca1dd1e4 | b8313d0373d8206685d81aadccc425e432c6a010 | refs/heads/master | 2020-05-21T23:39:07.707777 | 2017-11-16T15:58:14 | 2017-11-16T15:58:14 | 53,163,424 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | """
Read SELFE time history (.th) files to a data container.
Jesse Lopez - 2016-04-15
"""
import datetime
import argparse
import numpy as np
from crane.data import timeArray
from crane.data import dataContainer
class thParser(object):
def __init__(self, filename, start_time):
self.filename = filename... | [
"tuomas.karna@gmail.com"
] | tuomas.karna@gmail.com |
a42f30fc4aa79865a8e957a7231fab17cdcac3f8 | 568bc70dca53f0d095313f00d572383284243e34 | /Project/wine_last/wine/device.py | 16fd35980551f5ec948644712c176cd54a98f7ff | [] | no_license | msanchezalcon/Dialogue-Systems-2 | 07d3b1200646bb9a0197eae7fff3c0606a7f40a9 | a834f819a35457a4954917d82a158147001d29f6 | refs/heads/master | 2020-08-03T18:28:48.317591 | 2019-11-04T12:42:58 | 2019-11-04T12:42:58 | 211,845,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,594 | py | from tdm.lib.device import DddDevice, DeviceWHQuery, DeviceAction
from urllib2 import Request,urlopen
import json
import requests
class PairingDevice(DddDevice):
key = "e51e73fba2ce4002899dc7aec175063f"
def request_api_wine_pairing(self, food_type, max_price):
"""
Find a wine th... | [
"gusmiriasa@student.gu.se"
] | gusmiriasa@student.gu.se |
815fb4585091df66257a95e1e8b6fb45ebc6863f | fb65c39e3dffdc058fef85a58a43a3796aad09f4 | /myweb/useroperations/models.py | 963621c2ef221158f0792dc2338e930d5d72cfe7 | [] | no_license | goodjobig/personal_site | 8e130577dfb072f55e1cf832151a3069c67a9640 | e13c7de978f3a890d05fa8793621ec861c9bc883 | refs/heads/master | 2020-04-14T16:48:54.679691 | 2019-01-10T03:37:13 | 2019-01-10T03:37:13 | 163,962,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from django.db import models
from django.contrib.auth.models import User
from blog.models import Blog
# Create your models here.
class UserProfile(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE)
nickname = models.CharField(max_length=30,verbose_name='昵称')
photo = models... | [
"283541784@qq.com"
] | 283541784@qq.com |
0c86204fe5c33368162d5f576953acf36b7bdb95 | 41ea3e67428a59c665fcb189d392a6fb1a374ffe | /prg3.py.copy | 5f7f6337e48a0c9544bcdfefc83a4eead9dc5913 | [] | no_license | hitesh2402/carrom | fcd154f3f760528f0adb15f843fcbf4be763d014 | 0e4fe67eb1be3ed7ea92d7e8775ec92cead30355 | refs/heads/master | 2021-05-13T20:43:18.477110 | 2018-01-10T06:53:59 | 2018-01-10T06:53:59 | 116,917,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | copy | #!/usr/bin/env python
import pygame
class Colors():
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
class Application(object):
_instance = None
def initialize(title='Empty Title'display_width = 800, display_height = 600):
pygame.init()
gameDisplay = pygame.display.set_m... | [
"noreply@github.com"
] | hitesh2402.noreply@github.com |
602ee7bb28019e48deae7c70a09530a5bd967e5d | b8f718a0265a345512ea4df423d161e84ca2b869 | /true _skip_1/TrueCase/1qna/1qna_chimera.py | deadae6e68203e09882bbb83aed808a7a150b1fc | [] | no_license | tunazislam/twist-angle-calculation | 16894ca19c46f3bc875e9c80b2e62b741ef19511 | 18320d886b8e29bccbdd26e303450cfc0ad606a3 | refs/heads/master | 2021-06-14T08:51:31.611126 | 2017-05-04T15:20:51 | 2017-05-04T15:20:51 | 84,751,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550,124 | py | import cPickle, base64
try:
from SimpleSession.versions.v62 import beginRestore,\
registerAfterModelsCB, reportRestoreError, checkVersion
except ImportError:
from chimera import UserError
raise UserError('Cannot open session that was saved in a'
' newer version of Chimera; update your version')
checkVersio... | [
"tisla003@odu.edu"
] | tisla003@odu.edu |
4ab4fec920df659a95a12694df60fd03dfca6791 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/swig/Examples/test-suite/python/abstract_virtual_runme.py | 2a8411578017fc06324e210386ddd29a61e19eb8 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fce41bedc93abe3933ce0f2546b68f02a08faf0778e211b1ba7b30a7f3909ed8
size 50
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
8f7c4d3034f61a9ab811f38f93dc56ef056af395 | 3fb45a8d4760a3de6d2a666210b396e371b83e46 | /PictoDedection/helpers/detect Camera.py | cc459331952c03df243b07b344a854558639e384 | [] | no_license | josh2joshi/pren2 | d40ec0e577f8c6c99b1619ea9b9696d7672ecb28 | 6a6be66fd41705db5c65182c6089509775a811fe | refs/heads/main | 2023-06-04T00:39:13.001923 | 2021-06-27T11:34:08 | 2021-06-27T11:34:08 | 380,166,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import cv2 as cv
for x in range(10):
cap = cv.VideoCapture(x)
if cap.isOpened():
print(x) | [
"joshua.heller@conx.ch"
] | joshua.heller@conx.ch |
d8884ed1dbc5f3c83a5ccf73929b638983c841d0 | 218f2672af3c01422c26051432b34986d490d69a | /01_catboost_enrichi_tuto.py | 0d7a620351fb55f660caae721f88ebc8c9425eee | [] | no_license | PatDecideOm/DataScience | a801aacbfcd0b849eaae66a44f1b55e001f18cd2 | 6818d7859ae49cbe5d19497317b3279fd8c870bf | refs/heads/master | 2023-05-30T18:08:23.413375 | 2021-06-08T09:49:16 | 2021-06-08T09:49:16 | 368,841,937 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,787 | py | # Import libraries
import pandas as pd
import numpy as np
import catboost
from catboost import CatBoostClassifier
import xgboost as xgb
import sklearn
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings("ignore")
print(... | [
"pmazel@decideom.fr"
] | pmazel@decideom.fr |
1199528ac1386f543e6f07285d31d2c26cdf9b81 | a9c5a1e0ab8427f249b2068cf93edffc8bd5c4de | /8 pics/8picsPvalue.py | c537fed3b8fac0ab5cd9080e7c0e3cc6af731eca | [] | no_license | DianaAtlas/Anomaly-Detection | b79680a581c7922f9286827d30415e87d0100ce1 | d3c3a899f195a1da899350ede79f1d5d00cbe6f6 | refs/heads/main | 2023-03-31T04:20:57.003247 | 2021-04-07T13:12:19 | 2021-04-07T13:12:19 | 354,071,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,726 | py |
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as stats
import math
import scipy.stats as st
import pandas as pd
# ============================================================
# =================creating DATA==============================
# ======================================================... | [
"atlasdian@gmail.com"
] | atlasdian@gmail.com |
7abf55677fdd5bfc466f4fc561c0487c4a3fda26 | 8f213f498bbd5a12aacdb57bd2921f11a336eb62 | /test_shuzi.py | 65fec5d71985b15d39c6c296efc6d50ee1e17ba2 | [] | no_license | xiaocaiji945/HogwartsHttp | dd81641a2e34044dd845d589b113c0d5af61cc0e | 66294964f978da238a052e0184f78e4b15884212 | refs/heads/master | 2023-01-12T22:34:52.067503 | 2020-11-20T10:10:33 | 2020-11-20T10:10:33 | 296,506,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | arr = [20459440, 20458987, 20458733, 20458586, 20458284, 20458202, 20457860, 20457611, 20456391, 20455888, 20455269,
20454830, 20454212, 20454184, 20454146, 20453922, 20452542, 20450716, 20447814, 20438557, 20424174, 20419436,
20409217, 20394189, 20378130, 20356098, 20352091, 20343586, 20338069, 20337799,... | [
"412278432@qq.com"
] | 412278432@qq.com |
c77fd07345b4fa49db9df43bb116aed6515d6331 | 84b08a60e49e702e51b8c3bd0c558fbd957e11ae | /AlgoLatestPrints/MLPerceptron.py | b872b52cb75df4afcda480bb4c40b39e466c1c69 | [] | no_license | akhalayly/GoldenBoy | 787732656250bc52ad0076dca35f15abbd2f4f14 | fb88b656525c3bc614a24b982acf4d1ae745aa8b | refs/heads/main | 2023-02-06T02:17:53.197336 | 2020-12-28T20:07:14 | 2020-12-28T20:07:14 | 304,894,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,439 | py | from sklearn.neural_network import MLPClassifier
from sklearn.model_selection import KFold
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import Positions_Traits as posT
import helperFunctions as hf
if __name__ == '__main__':
files = ["CAMS", "CBs", "CMs", "CDMs", "GKs", "LBs", "LM... | [
"noreply@github.com"
] | akhalayly.noreply@github.com |
b9470a6364fcb617b3b2bbeb23ef97dce22221d7 | de6fb3a55196b6bd36a4fda0e08ad658679fb7a1 | /optin_manager/src/python/openflow/common/utils/formfields.py | adec249dc39015d89a6d299354718c9fd0f8e896 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | dana-i2cat/felix | 4a87af639e4c7db686bfa03f1ae4ce62711615e3 | 059ed2b3308bda2af5e1942dc9967e6573dd6a53 | refs/heads/master | 2021-01-02T23:12:43.840754 | 2016-02-04T10:04:24 | 2016-02-04T10:04:24 | 17,132,912 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | '''
Created on Jul 17, 2010
@author: jnaous
'''
from django import forms
from expedient.common.utils import validators
class MACAddressField(forms.CharField):
"""
A MAC Address form field.
"""
default_error_messages = {
'invalid': u'Enter a valid MAC address in "xx:xx:xx:xx:xx:xx" format.... | [
"jenkins@integration.localhost"
] | jenkins@integration.localhost |
d39dbb85f0ea8a843010ed2ff417e14430ec8b04 | ae381913c23385f004b82161624097645ba8c4c8 | /Huaxian_eemd/projects/plot_decompositions.py | 8dbd45db6556f91e1ce3f8e7adbb1107c6385152 | [
"MIT"
] | permissive | zjy8006/MonthlyRunoffForecastByAutoReg | aa37910fdc66276d0df9d30af6885209d4a4ebfc | 661fcb5dcdfbbb2ec6861e1668a035b50e69f7c2 | refs/heads/master | 2020-12-12T05:25:48.768993 | 2020-08-20T07:21:12 | 2020-08-20T07:21:12 | 259,588,564 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | import pandas as pd
import os
root_path = os.path.dirname(os.path.abspath('__file__'))
import sys
sys.path.append(root_path)
from tools.plot_utils import plot_decompositions
signal = pd.read_csv(root_path+'/Huaxian_eemd/data/EEMD_TRAIN.csv')
plot_decompositions(signal)
| [
"zuojianyi@outlook.com"
] | zuojianyi@outlook.com |
bf7b00e36b31a0a37313b18848b1f49598da38fb | ce53487c613503926315611e135854ca072bbbb8 | /Codewars/Disemvowel_Trolls.py | 5f7eb0bc77762cac1ac09f0b84362ff6d72b6204 | [] | no_license | thequinn/Coding_Problems | 8708ff30f51916c3ce29a608f6f34e5f020729ec | 59e68780eef90f8a677abcd18ebbcef9e60b6272 | refs/heads/master | 2023-02-07T05:04:55.818652 | 2020-12-27T02:13:27 | 2020-12-27T02:13:27 | 205,428,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py |
def disemvowel(s):
return s.translate(None, 'aeiouAEIOU')
| [
"annasun.usa@gmail.com"
] | annasun.usa@gmail.com |
d711e028e5332f253d0de88ffe70a4eef5991499 | bbdb856e9a0b96600668ac1f86d2ef009af74a41 | /app/lib/HEM/centroid_peaks.py | 3d91aaab0dd1b5d6cfea4d57b2c5a32483e1d776 | [] | no_license | jarosenb/UV_POSIT | ce68646c377f6565ab25e606ebf70b675a8baec7 | 7230cc47cad9fc476af11af3ded6db59685aada2 | refs/heads/master | 2020-06-27T10:49:44.042408 | 2018-02-12T23:58:43 | 2018-02-12T23:58:43 | 97,050,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,562 | py | import math
def centroid_peaks(mz_array, intensity_array):
"""
Perform a Gauss fit to centroid the peaks for the property
:py:attr:`centroidedPeaks`
"""
tmp = []
print intensity_array
for pos, i in enumerate(intensity_array[:-1]):
if pos <= 1:
continue
if 0 < inte... | [
"jake.rosenberg@utexas.edu"
] | jake.rosenberg@utexas.edu |
8272a86881ba02c1d2a978d26fea4bdf43312b44 | 58c6e5eb626c7993472c74d635bcda79260e1dcb | /article07.py | 0fd3de0562d97f68ac6dd3fc71ed2dffd9bb546f | [] | no_license | littlecoon/EffectivePython | 8de8a531f8fc9a7ecabc0de999cbe84bcbe13906 | a33ea90daefbf0f06450f13f0b2e88c87dee89e0 | refs/heads/main | 2023-03-12T12:32:33.008959 | 2021-02-28T09:00:14 | 2021-02-28T09:00:14 | 342,180,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | a = [1,2,3,4,5,6,7,8,9,10]
#squares = [x**2 for x in a]
squares = map(lambda x:x**2,a)
print(list(squares))
even_squares = [x**2 for x in a if x %2 == 0]
print(even_squares)
alt = map(lambda x:x**2,filter(lambda x:x%2 == 0,a))
assert even_squares == list(alt)
chile_ranks = {'ghost':1, 'habanero':2, 'cayenne':3}
ran... | [
"1261010110@qq.com"
] | 1261010110@qq.com |
356818e7291c93fdbeb0b4e58bad4cb1e752aa41 | 55cb166b9d060d89d13848447a08a2b875e49e73 | /CapitalCities/CapitalCities/CapitalCities.py | 3d5962a73f828dde4f8e5270bb859adf640e0621 | [] | no_license | mandyfarrugia2001/FundamentalsOfScripting | e39153a5047167f51fdc56a95517d57a0c94eea7 | adaff9b90affd5af2d7d68c11c883487f1b74574 | refs/heads/master | 2022-04-06T03:57:50.042737 | 2020-02-19T16:29:54 | 2020-02-19T16:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | #Importing built-in Python modules to be used in this program.
import random #To generate random country and capital city from the text file.
"""
These values represent the final score,
thus values change according to user's guesses.
"""
timesWon = 0
timesLost = 0
def returnListCountries():
"""
Filling list w... | [
"56023961+mauren9401@users.noreply.github.com"
] | 56023961+mauren9401@users.noreply.github.com |
f872923d34e36892434be17b6427b39bcc4f8677 | fb746b30a02ca6226498acf9ac66c849d74bf684 | /Data_Ingestor/streaming.py | 296f220dcc5eeafd98922f38f4c4639bc4a319c0 | [] | no_license | miaozeyu/hackerjobnow | 0d47eca65e4d9b9e936ce6d570a0d8d42801c4a8 | 7e7cf1fe5ede8075dae4b7c82428443b92ddef10 | refs/heads/master | 2022-12-09T22:04:15.014630 | 2019-04-26T15:13:11 | 2019-04-26T15:13:11 | 180,033,869 | 0 | 0 | null | 2022-12-08T05:00:47 | 2019-04-07T22:59:38 | Python | UTF-8 | Python | false | false | 6,803 | py | #!/usr/bin/env python
# coding: utf-8
# In[12]:
from flask import jsonify, make_response
import sys
sys.path.append("../") # go to parent dir
import tweepy
from tweepy import OAuthHandler, Stream, StreamListener
from Data_Ingestor.accessconfig import *
import json
import re
from time import sleep
from Data_Ingesto... | [
"miaozeyu@gmail.com"
] | miaozeyu@gmail.com |
22214c4cf02d9139ebf68302682f68b55190d51e | 3a7adfdcf7a5048045c8e95a93369a1796cfd532 | /conftest.py | 377ddc7028f2964dd5cf5621a68dc74e7967e513 | [
"BSD-3-Clause"
] | permissive | theGreenJedi/nixpy | e06025077d5d224a7d051532ebfbd48845339c58 | 40b5ecdaa9b074c7bf73137d1a94cb84fcbae5be | refs/heads/master | 2022-02-01T15:14:22.133157 | 2019-06-03T09:10:57 | 2019-06-03T09:10:57 | 197,896,640 | 1 | 0 | null | 2019-07-20T07:37:03 | 2019-07-20T07:37:02 | null | UTF-8 | Python | false | false | 808 | py | import pytest
import tempfile
from nixio.test.xcompat.compile import maketests
BINDIR = tempfile.mkdtemp(prefix="nixpy-tests-")
def pytest_addoption(parser):
parser.addoption("--nix-compat", action="store_true", default=False,
help=("Run nix compatibility tests "
... | [
"achilleas.k@gmail.com"
] | achilleas.k@gmail.com |
a7ace6a20bcb3bff13acaebfd48d19888ddf1099 | ff3cb8b03374645eccd2bffcd386479793f38c3c | /Clustering.py | 6dddbbc7a8703e652e24392b8c4c430b4e2e32b5 | [] | no_license | ChunchunKumar/ML-DL | e39e6026aa2fc926d5f3136b46118593cfc87f2d | db06c967d69acb1f5c53a4b6669778d78ae696be | refs/heads/master | 2021-05-05T02:59:35.360479 | 2018-04-08T00:05:07 | 2018-04-08T00:05:07 | 119,772,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | import matplotlib.pyplot as plt
import numpy as np
import xlrd as x
from scipy.stats import norm
from random import randint
def model(X1,X2,mean,Var):
n=mean.shape[0]
mult=norm(mean[0][0],var[0][0]).pdf(X1)*norm(mean[1][0],var[1][0]).pdf(X2)
return mult
file_location="E:/ML/Clustering/Data_KMean.xl... | [
"chunchunkuma01@gmail.com"
] | chunchunkuma01@gmail.com |
df38200ba8f918671e616c6c8421dcbd97a60bcc | febf14390cc5548365077f0c72e3aac55e8d6bd5 | /views/frame.py | 92e4c7744937f702e21c84aa9fa7bb829c6f0cbb | [] | no_license | new-rich/Software-engineering | b932a71150bb84d5b50e8a73c3e15cb002193a26 | 487aba2fe21d9a2ff529ce694d8f0126608f1f93 | refs/heads/master | 2022-04-18T21:22:32.066740 | 2020-04-06T08:01:36 | 2020-04-06T08:01:36 | 252,339,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | import wx
import wx.aui
from .editor import TextEditor
class frame(wx.Frame):
def __init__(self):
super().__init__(None, title='Editor',size=(800,600))
self.aui_manager = wx.aui.AuiManager(self,wx.aui.AUI_MGR_TRANSPARENT_HINT)
self.editor_panel = TextEditor(self)
self.aui_manager.A... | [
"3220114556@qq.com"
] | 3220114556@qq.com |
47c779bd08214c78b338335b09535b2076a65080 | 32e910718743cde564c5bdb042b5a3dfbf198fa8 | /limbic/integrations/imdb.py | 4dca4aa77c6838ffe9cc024dac762042ade2611a | [
"MIT"
] | permissive | maesfahani/limbic | 3735d9c89ce6c63c9179501e495972311d7337b1 | c7436d5243ed5e2819b7a4acee046f396e75a234 | refs/heads/master | 2023-01-20T08:14:44.751136 | 2020-11-21T16:17:42 | 2020-11-21T16:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | import json
import os
import time
from collections import defaultdict
from typing import Any, Dict, List, Optional
import requests
from bs4 import BeautifulSoup
from tqdm import tqdm
_OMDB_API_KEY = os.environ['OMDB_API_KEY']
_OMDB_API_BASE_URL = 'http://www.omdbapi.com/'
_OMDB_API_WAIT_TIME = 0.3
_IMDB_BASE_URL = 'h... | [
"g@zapship.com"
] | g@zapship.com |
2512edb155a767f6b7f93f15c00b755dc45ef923 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/toon/DistributedToon.py | d9f2c0b0c6e00991934003b88c5ad0845ba6deeb | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 139,568 | py | from subprocess import Popen
import sys
from panda3d.core import *
from libotp import *
from toontown.toonbase.ToontownGlobals import *
from direct.actor import Actor
from direct.distributed.ClockDelta import *
from direct.interval.IntervalGlobal import *
from otp.otpbase import OTPGlobals
from toontown.toonbase import... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
04cbe077af6340cc04df22cf2ff03d306579a859 | d7f1618d4269cd424ae6240aefa4046be6f764c3 | /text/precommit.py | 0d2d9e2c55d403a61a22409af57b9a06bd686b56 | [] | no_license | slin63/talon_community | 15e12459324d01e2fdb8005cf359f409a4cca000 | a9b56684605407435ea5d08867d416dc81e0c614 | refs/heads/master | 2021-07-11T19:26:06.074440 | 2020-08-04T16:44:40 | 2020-08-04T16:44:40 | 181,937,276 | 0 | 0 | null | 2019-04-17T17:19:32 | 2019-04-17T17:19:32 | null | UTF-8 | Python | false | false | 2,455 | py | from talon.voice import Key, press, Str, Context
from talon.webview import Webview
from talon import app, clip, cron, resource
from ..utils import parse_word
from datetime import datetime
ctx = Context("precommit")
pick_context = Context("precommitpick")
date = datetime.now().strftime("%m/%d/%Y")
CLIPBOARD_DEFAULT =... | [
"sheanlin@granular.ag"
] | sheanlin@granular.ag |
9c0801b8cdc06c03a0ea60a845b46f24d9fdb6f2 | bd19ce3bbe4e79fd8be757fa1d7bad5324680973 | /conf/settings.py | 56cbd0c8e0cefd91694ea821643f83a8e36c3f85 | [] | no_license | lushenao/Skycn.com | 014026d9fa5d153a7dd8d2ff51c1191a68925b6b | b7531e080cef71253fa55437b7a23f6dc6fdaae8 | refs/heads/master | 2020-11-30T02:07:33.559455 | 2019-12-30T07:47:57 | 2019-12-30T07:47:57 | 230,271,269 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | #__auth__:"Sky lu"
# -*- coding:utf-8 -*-
import os,sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
'''
定义了mysql连接配置信息
'''
DATABASE_mysql = {
'engine':'mysql',
'host': '',
'port': 3306,
'user': '',
'pwd': '',
'db': '',
'file_path': '%s/... | [
"183923316@qq.com"
] | 183923316@qq.com |
6a337ebcad790f7341970c4a3e71d1686f6229c6 | 333b405c1775475ddfa9ed3f4fa05c06b4c2e3f2 | /cv2/cvbackup/mycv_0.510464.py | c1b80110eb76fc4413a5cbbc9977af4cd86de47d | [] | no_license | daxiongshu/network | b77d5bb73dd353537f7687e61855d982cbd34464 | 842a778d310410ae39e58925257a9e9960ef560a | refs/heads/master | 2020-04-15T16:11:31.101188 | 2016-02-16T01:32:21 | 2016-02-16T01:32:21 | 51,798,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | from xgb_classifier import xgb_classifier
import pandas as pd
import numpy as np
import pickle
from sklearn.ensemble import AdaBoostClassifier,ExtraTreesClassifier,RandomForestRegressor
from sklearn.preprocessing import LabelEncoder
from sklearn.metrics import roc_auc_score, f1_score, log_loss, make_scorer
from sklearn... | [
"aixueer4ever@gmail.com"
] | aixueer4ever@gmail.com |
4af4c6c67883138cb403bc55c20a57a17f3abf94 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_143/ch40_2020_03_25_11_34_14_842288.py | 7b4cd03ca35996a28aee9136ab7f8fc3ef414f7a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | def soma_valores(s):
i=0
y[i]=s[i]
while(i<=len(s)):
y[i+1]+=s[i+1]
i+=1
return y | [
"you@example.com"
] | you@example.com |
65ae8cba1ea4bcaf9819e245c5a7fdc2485f4a60 | 564a2f5a5a4269ce7e013511f78f8b8cd26ee81f | /toy_problem/data_preprocessing/transform.py | 12ccb9a9232c6cf857470178d2cede9822bd9790 | [] | no_license | sb-nmt-team/sb-nmt | 7345cb967ec92dd87b5d649213ecd0483cba7d60 | 852418728642063967625c1a1473aa8e2b944d4d | refs/heads/master | 2021-04-28T07:11:13.073176 | 2018-06-16T17:49:41 | 2018-06-16T17:49:41 | 122,219,302 | 0 | 0 | null | 2018-04-27T09:35:42 | 2018-02-20T15:49:32 | Python | UTF-8 | Python | false | false | 4,670 | py | import numpy as np
import unicodedata
import collections
import matplotlib.pyplot as plt
from collections import Counter, defaultdict
import string
import sys
import pickle
bad_characters = set(string.punctuation + string.digits)
def read_dataset(dataset_name):
dataset = defaultdict(list)
rtlm = "\u200F"
... | [
"itasarom@gmail.com"
] | itasarom@gmail.com |
07283b22209cfb94b928672e53ed1049ea4b9c9d | 0e719bc0915f83d0fb96a252ab24af9159624a44 | /Learning-python/Section 14 - Advanced Python Modules/scratch.py | 86c443015441d8a7990c8567ccccb6af2b1a11f8 | [] | no_license | skhadka007/learning_algos | 09a0d89194fe610186e5af03a4683b971d1c7f2c | a9f7e432f5b6b5a2ccefb713e029c43be9421969 | refs/heads/master | 2023-09-02T03:11:27.855951 | 2021-10-04T14:11:34 | 2021-10-04T14:11:34 | 286,854,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | # import math
print(18 % 2)
| [
"skhadka.code@gmail.com"
] | skhadka.code@gmail.com |
ef47575bb0a287208ee8f7a68519ff8275a7a1ac | 14615571ee476a8c074832da94bc373ef92fd31c | /tdn.py | 1ad57c6507c3fb40ed0ce6ec4e4e494397676aeb | [] | no_license | Maestro-Zacht/utilities_ghia | 5b341c3226119c3b85164cc2e47eb6713756e484 | 6b8c5e16cd0d4a2f9d668b970778bc381693678f | refs/heads/master | 2022-12-14T20:35:48.260443 | 2020-09-02T13:59:37 | 2020-09-02T13:59:37 | 291,035,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | from math import sqrt
elenco_numeri_primi = []
numeri_primi_caricati = False
def is_primo(num):
for i in range(2, int(sqrt(num)) + 1):
if num % i == 0:
return False
return True
def fattorizzazione(num):
if not numeri_primi_caricati:
with open('D:\\programmazione\\file per pa... | [
"61846068+Maestro-Zacht@users.noreply.github.com"
] | 61846068+Maestro-Zacht@users.noreply.github.com |
a8406818db1d2c025ee9daacb525168889da4d61 | 454f2125c2d49b6be8113e756f5f68fd75678b84 | /effectivePython/tap7/tap7_2.py | 61d678c925d65d1a2bf6c9c2344e8c856f0d05ff | [] | no_license | JackLovel/excuise- | c8a6977c96b8d6e41a937212f8e7dfc606328b4b | 60418044c9387868043982c071ea1365b0d24057 | refs/heads/master | 2021-06-27T17:06:16.708054 | 2020-10-24T03:27:31 | 2020-10-24T03:27:31 | 164,762,577 | 0 | 0 | null | 2020-07-17T01:14:39 | 2019-01-09T01:27:43 | JavaScript | UTF-8 | Python | false | false | 179 | py | chile_ranks = {'ghost': 1, 'habanero': 2, 'cayenne': 3}
rank_dict = {rank: name for name, rank in chile_ranks.items()}
chile_len_set = {len(name) for name in rank_dict.values()}
| [
"210172130@qq.com"
] | 210172130@qq.com |
c6b283e81159a9fb6bf45114451caef761c95c9a | 8d530e384f97d010f1d6d0a0f49ead48f9c90768 | /TreaProject/dynamicForms/views.py | 5327852e07af62c7f15fca054bfb6ffbf717ad9e | [
"Apache-2.0"
] | permissive | trea-uy/django-survey | e805e27d258f4be2b29681d45acf594038ef7fdb | 2a04be76b92fc42dbc9ec8a634f9eea25d49328c | refs/heads/master | 2021-01-19T17:59:43.703774 | 2014-09-11T21:22:37 | 2014-09-11T21:22:37 | 23,546,400 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from django.shortcuts import render
def index(request):
return render(request, 'index.html', []) | [
"federico@federico"
] | federico@federico |
1400cc7e36dc1608eda6cf944b667fb37a1ea0b3 | b19dfd6a3ba5d107d110fb936de2e91d1d92bb99 | /venv/lib/python3.7/site-packages/Satchmo-0.9.3-py3.7.egg/shipping/modules/ups/config.py | 5c8e90a363eefc21999a9a0da571173a720a91b8 | [] | no_license | siddhant3030/djangoecommerce | d8f5b21f29d17d2979b073fd9389badafc993b5c | b067cb1155c778fece4634d0a98631a0646dacff | refs/heads/master | 2022-12-13T15:28:39.229377 | 2019-09-28T10:30:02 | 2019-09-28T10:30:02 | 207,240,716 | 2 | 1 | null | 2022-12-11T01:34:25 | 2019-09-09T06:35:36 | Python | UTF-8 | Python | false | false | 3,913 | py | from decimal import Decimal
from django.utils.translation import ugettext_lazy as _
from livesettings.values import StringValue,ConfigurationGroup,BooleanValue,DecimalValue,MultipleStringValue
from livesettings.functions import config_register_list,config_get
SHIP_MODULES = config_get('SHIPPING', 'MODULES')
SHIP_MODUL... | [
"ssiddhant3030@gmail.com"
] | ssiddhant3030@gmail.com |
0837ba02b802ee63615c49bcee086fe4059f3cdb | b980ac3d6ba8eac0902070c460ad1634ee19585b | /object_detection/utils/shape_utils.py | 798c80cce647ff307d9f96a9f2c72e2f6a4f3682 | [
"MIT"
] | permissive | gourav108/coreml | 3d7d5ea6851bf9ae1fb77876bbec2fa2b8f9b763 | 6bc2d494dff23cff923368e735992a4f4a47483c | refs/heads/master | 2022-11-28T19:56:27.172125 | 2019-01-07T18:44:33 | 2019-01-07T18:44:33 | 161,968,738 | 0 | 1 | MIT | 2022-11-21T18:48:27 | 2018-12-16T04:50:08 | Python | UTF-8 | Python | false | false | 11,437 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gourav@rudrainfotech.org"
] | gourav@rudrainfotech.org |
5c0afd4b948ed839e06840db0f25384ad08fef7f | 92661a6d27ac816b4227204bb66b3cb4bde21054 | /primenumbers.py | 2874e0dc40d038b59decab2fdb29bb737b0f1140 | [] | no_license | masonbot/Wave-3 | 02d244565033d07eb6bb0454c2fbca1c99cac8ca | b6ecc8c68da6d680d94db87e28becfee5c4992ed | refs/heads/master | 2022-08-06T16:32:39.849975 | 2020-05-20T22:34:56 | 2020-05-20T22:34:56 | 261,534,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py |
def integer(n):
if (n==1):
return False
elif (n==2):
return True;
else:
for x in range(2,n):
if(n % x==0):
return False
return True
print(integer(int(input("Insert integer: ")))) | [
"62023052+masonbot@users.noreply.github.com"
] | 62023052+masonbot@users.noreply.github.com |
613939625c016e2ed72cd4b6885baa6b413b8c7e | 5946112229fe1d9a04b7536f076a656438fcd05b | /dev_env/lib/python3.8/site-packages/pygments/styles/rrt.py | 2b1908794c8703c74074b3c356e1d1022988809b | [] | no_license | Gear-Droid/openCV_study_project | 3b117967eb8a28bb0c90088e1556fbc1d306a98b | 28c9a494680c4a280f87dd0cc87675dfb2262176 | refs/heads/main | 2023-05-14T14:27:42.284265 | 2021-06-05T00:16:09 | 2021-06-05T00:16:09 | 307,807,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
"""
pygments.styles.rrt
~~~~~~~~~~~~~~~~~~~
pygments "rrt" theme, based on Zap and Emacs defaults.
:copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.style import Style
from pygments.toke... | [
"Vladi003@yandex.ru"
] | Vladi003@yandex.ru |
b6e0f50c9cbfc562e8f08c57b09d6864f63b1bc0 | 8db243a61d43e133aac01a67294d26df3381a8f5 | /Tree/AE_BST_Find_Closest_Value.py | 362a28df3347e842a7bd6eaa7cdd8b1aeacadff0 | [] | no_license | Jyoti1706/Algortihms-and-Data-Structures | ccdd93ad0811585f9b3e1e9f639476ccdf15a359 | 3458a80e02b9957c9aeaf00bf691cc7aebfd3bff | refs/heads/master | 2023-06-21T18:07:13.419498 | 2023-06-16T17:42:55 | 2023-06-16T17:42:55 | 149,984,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # This is the class of the input tree. Do not edit.
import math
class BST:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def findClosestValueInBst(tree, target):
# Write your code here.
diff = math.inf
if tree.value == target:
return t... | [
"jyotikrisharma10@gmail.com"
] | jyotikrisharma10@gmail.com |
f84d0aaecefbe157929448dd97c574189ee4c716 | acf190f6699975140a01b26546a52e94ec245f51 | /sqrt_lasso_cvxpy.py | eecc2608f805aa9e9af3b7870e8bf787a37844f5 | [] | no_license | HMJiangGatech/smoothed_concomitant_lasso | ffb6ed32f8a4eb65bf3e0d49008f429f3f0ac87b | 776013a4e657f9c8c1dde239574e83d4958118d7 | refs/heads/master | 2021-05-12T16:02:10.468441 | 2018-01-10T21:14:10 | 2018-01-10T21:14:10 | 116,999,219 | 0 | 0 | null | 2018-01-10T19:07:55 | 2018-01-10T19:07:55 | null | UTF-8 | Python | false | false | 859 | py | from __future__ import division
import numpy as np
import cvxpy as cvx
def belloni_path(X, y, lambda_grid, solver='ECOS'):
'''
solve:
min ||y - X*beta|| / sqrt(n_samples) + lambda ||beta||_1
'''
n_samples, n_features = X.shape
lambda_ = cvx.Parameter(sign="Positive")
beta = cvx.Variable(... | [
"eugene.ndiaye@telecom-paristech.fr"
] | eugene.ndiaye@telecom-paristech.fr |
6b04ea00f8344a41a4c7af569e7ecea8d405d265 | dd00da0254875c877a35a59ae372391484a9631c | /ngo_app_code/helpers.py | 309f36088ce1a62bcfc25b5fe03112e9d0f1b8ff | [] | no_license | disissaikat/cfc_2020 | 9da8476f0eb26946b2d5fd1e63191e44573e8ab2 | 8222f9d1f6a8ba66190cf0dce19f9a5f15ebe789 | refs/heads/master | 2022-11-21T11:37:58.781244 | 2020-07-30T16:05:26 | 2020-07-30T16:05:26 | 282,971,756 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | username_helper = """
MDTextField:
hint_text: "Enter Phone Number"
pos_hint: {'center_x':0.5, 'center_y':0.6}
size_hint_x: None
width: 200
max_text_length: 10
required: True
icon_right: "cellphone"
icon_right_color: app.theme_cls.primary_color
"""
password_helper = """
MDText... | [
"noreply@github.com"
] | disissaikat.noreply@github.com |
2f5ddf89ea28919dce8937425bcddb68926a662d | a115b4a830b7d4a1e9efed9cdc429ea7233df2f1 | /6_het/3_szokoev.py | 593c8ca06fb65825f581ff46e46fb8f1ceafb9f2 | [
"Unlicense"
] | permissive | ArDrift/InfoPy_scripts | b8dc78a8891a4c4e05adb4c2c0d6fcba9d3a8417 | a8fb46c9b9f652d43094f886549b05c50f3ee9d2 | refs/heads/master | 2022-09-01T06:38:36.737921 | 2021-01-26T21:52:50 | 2021-01-26T21:52:50 | 333,116,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | #!/usr/bin/env python3
def szokoev_e(ev):
return ev % 4 == 0 and (ev % 100 != 0 or ev % 400 == 0)
def main():
evszam = int(input("Add meg az évszámot: "))
if szokoev_e(evszam):
print("Szökőév.")
else:
print("Nem szökőév.")
main()
| [
"ardrift@gmail.com"
] | ardrift@gmail.com |
b42d9be8b182ddbef90e8894bb504742aed40a34 | 4fc407dd0763ae41002dc74de68603b576e5cc51 | /extractor/extractor.py | 722299420d5da5bb8af80c6a1f404a5568e50a23 | [
"MIT"
] | permissive | tenda-cn/icesat2webview | 331e162e3d0b20b439ee416a2ebca2a16157170c | c310986ceb8efb1f3a9937ca6b9eb29b020cb0ec | refs/heads/main | 2023-02-10T19:20:31.584381 | 2021-01-10T02:16:23 | 2021-01-10T02:16:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,584 | py | #!/usr/bin/python3
"""
syntax: db-path -[fd] [file-1.h5 [file-2.h5 [...]]]
-f forces
-d add debug info
the h5 files will be all parsed and the relevant data extracted into tiles at zoomlevel 11,
the tiles are saved in the db path
tile format:
each tile consists of a simple csv file
"""
import gzip
import sys
... | [
"bruno.carle@gmail.com"
] | bruno.carle@gmail.com |
3681c80ec59ac350c54b44f44a5944f4e755ddaa | 2cbcfb9b9046ac131dc01a6fd048b6920d29cd42 | /57. 插入区间.py | 4b791d583f9803e977bfe4e1c5a3179d6edf7b92 | [] | no_license | pulinghao/LeetCode_Python | 6b530a0e491ea302b1160fa73582e838338da3d1 | 82ece6ed353235dcd36face80f5d87df12d56a2c | refs/heads/master | 2022-08-12T21:19:43.510729 | 2022-08-08T03:04:52 | 2022-08-08T03:04:52 | 252,371,954 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | #!/usr/bin/env python
# _*_coding:utf-8 _*_
"""
@Time :2020/11/4 8:26 下午
@Author :pulinghao@baidu.com
@File :57. 插入区间.py
@Description :
"""
class Solution(object):
def insert(self, intervals, newInterval):
"""
:type intervals: List[List[int]]
:type newInterval: List[int]
... | [
"pulinghao@baidu.com"
] | pulinghao@baidu.com |
f658dece9539cbce28833455e98d4617eab50735 | 88084a0735b6f10081b2367f27c8c598f350c269 | /dev/ucb.py | 600aef995bac446c3e00bb767db8c2afccaba2f8 | [] | no_license | xnie/cMLE-debias | ceb2eef7a5f99c2264bb7b915708d1d31923adfc | 16adc22b57c8ed5b39dda8c8a376e94840074621 | refs/heads/master | 2021-05-06T02:21:29.809063 | 2017-12-17T07:09:08 | 2017-12-17T07:09:08 | 114,514,961 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,472 | py | import math
import pdb
import random
import copy
import numpy as np
from debias import CD, payoff_matrix
def ucb(scen, greedy=False, lil_ucb=False, egreedy=False, rand=None, alpha=9, beta=1, lil_epsilon=0.01, greedy_epsilon=0.05, delta=0.005, gumbel_t_varies=False, held=False):
# scen: a list of reward distr
#... | [
"xnie@mit.edu"
] | xnie@mit.edu |
b25e6e9b2e19fe92e8f056172956ab4e7ce1587e | aae858329f9fe013cbd3d4d86f5608314f57f170 | /private_rest_api/rest_api/sawtooth_rest_api/protobuf/state_context_pb2.py | d700f1d5541293d2b95ae2ef45f8fe5bfc2e5755 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-openssl",
"OpenSSL",
"MIT",
"Zlib",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | b2lead/private-transaction-families | 8c4abc8f30c5ba26e9f431911d06c9dd6ff4e0d3 | 2a52b430a947dc8e39ed4fcf664a44176f0547e3 | refs/heads/master | 2020-09-27T21:58:44.401120 | 2019-12-09T12:39:27 | 2019-12-09T12:39:27 | 226,619,397 | 0 | 0 | Apache-2.0 | 2019-12-08T05:27:58 | 2019-12-08T05:27:57 | null | UTF-8 | Python | false | true | 23,078 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: state_context.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as ... | [
"yoni.wolf@intel.com"
] | yoni.wolf@intel.com |
d950e9415f72c06a87c46adf8103dce0dae9f4fb | df52429f63a1983ec725fe1197edad77f0504d7d | /Python_Study/BUPT_homework/spider/test1/test1/spiders/spider.py | 01613d207c0938b0c8b4c97eb3e26f10446594ab | [] | no_license | StupidRabbit29/Python_Practice | 38b16baa7ecd4bd6f0bbd4840f37ba565c387857 | 0f7c43026410b4b7f07a9a266b2cf885de5d53b9 | refs/heads/master | 2020-05-31T07:26:32.631067 | 2019-12-05T11:19:26 | 2019-12-05T11:19:26 | 190,165,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | import scrapy
from test1.items import MyItem
class mySpider(scrapy.spiders.Spider):
name = "xuetang" # 爬虫名称
allowed_domains = ["www.xuetangx.com/"] # 允许爬取的网站域名
start_urls = ["http://www.xuetangx.com/partners"] # 初始URL
def parse(self, response): # 解析爬取的内容
item = MyItem()
#... | [
"2922282053@qq.com"
] | 2922282053@qq.com |
fbfcb0f207218d893dde5197920947a501840b4e | bebde3481cc5cae5c29d40e7492344dfc1cea388 | /main.py | 13c0f23cb3147c165b1fc90e44410804b686f484 | [] | no_license | erichadley8/headless-firefox | dac87659569d63ad77f6a024303f745a15d02be8 | 198ebb2c954fe840de0ebf4823682e68ec772f8a | refs/heads/master | 2023-01-18T17:55:31.575480 | 2020-12-01T02:18:25 | 2020-12-01T02:18:25 | 317,334,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | import os
import datetime
from colorama import Fore, Back
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
while True:
try:
### Firefox Parameters
executable_path = os.getcwd() + "/geckodriver"
### Firefox Options
options = Options()
options.headless = True
### Pro... | [
"erichadley8@gmail.com"
] | erichadley8@gmail.com |
36310f74f8eaef7d3da7ef4f11b6d1c95f1ac4da | e52b9bbe2345d87b406caee4817a1770b45a6ae2 | /scripts/BatchDefineProjection.py | 453a2f66c343c7eb2ba97203805237bfffdc0e62 | [] | no_license | tomay/marxan_toolbox | 8712b2f1d56e185156a884a0888f2c03b5ed20f5 | a6e002cf47b8388660365de7ab2aee22b543c12a | refs/heads/master | 2020-06-06T06:15:59.018433 | 2013-04-08T16:53:52 | 2013-04-08T16:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | import sys, os, arcgisscripting, traceback
def AddMsgAndPrint(message):
gp.AddMessage(message)
print message
return 0
gp = arcgisscripting.create()
gp.overwriteoutput = 1
try:
# Get the parameters.
gp.workspace = sys.argv[1]
pattern = sys.argv[3]
sr = sys.argv[2]
#AddM... | [
"tom.allnutt@gmail.com"
] | tom.allnutt@gmail.com |
56a09542f43d048bd4db774cddb2d81219f39b2a | 99124299af27232720ad19df377cb90c20f514bb | /Ending_Animation.py | 14eba34dfb108cc562dcd4bdd87915b78266901a | [] | no_license | senweim/JumpKingAtHome | 7a2ae684fafffa1f910c68d8b02ea98e4e900ed6 | 6c3d1a7ba9246181b89e67b1f4857df99c85fa01 | refs/heads/master | 2023-01-12T15:01:31.174697 | 2020-11-10T06:49:45 | 2020-11-10T06:49:45 | 311,570,473 | 14 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,129 | py | #!/usr/bin/env python
#
#
#
#
import pygame
import os
import sys
import math
class Ending_Animation:
def __init__(self):
self.end_counter = 0
self.end_pan = (-90, 90)
self.stall_x = 240
self.stall_y = 220
self.channel = pygame.mixer.Channel(1)
self.ending_music = pygame.mixer.Sound("Audio\\Misc\\e... | [
"67669987+thien137@users.noreply.github.com"
] | 67669987+thien137@users.noreply.github.com |
4da4aa68a0cd83d1a57b20435439e06bad9395a2 | fc6f709f916fcd201938157990c77fa9202eefa7 | /model/optimizer.py | 4a9ee5afce8f27d52a2e33ea778b94ad326ffc29 | [
"MIT"
] | permissive | chenchy/StyleSpeech | 441ffd6d71ac0269d205ad66c9536fe00cb5267c | e0e4ad25681f9ecc2a01ba1b87cbe0c59472b792 | refs/heads/main | 2023-05-27T21:39:04.790584 | 2021-06-13T10:32:03 | 2021-06-13T11:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | import torch
import numpy as np
class ScheduledOptimMain:
""" A simple wrapper class for learning rate scheduling """
def __init__(self, model, train_config, model_config, current_step):
self._optimizer = torch.optim.Adam(
model.parameters(),
betas=train_config["op... | [
"keonlee9420@gmail.com"
] | keonlee9420@gmail.com |
118979bd5416c57a7c0e05109b92aa948efde4fa | adebcb38fb5abf69b05168c728271266c08bfd11 | /main.py | ba05bbc0c664fbe9776ba176ea87ee68a2526b47 | [] | no_license | ralcant/aws_diarization | 5b403a17f3b35a4b9b4797a12263f019fc478ae2 | ea35a979dd8902717797f55f2ec1decdf592935e | refs/heads/master | 2022-04-28T07:07:12.080243 | 2020-04-30T21:12:38 | 2020-04-30T21:12:38 | 260,317,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,819 | py | from __future__ import print_function
import json
import time
import boto3
import pprint
import datetime
import os
from bucket_handler import upload_file
import requests
transcribe = boto3.client('transcribe')
s3 = boto3.resource('s3')
transcribe = boto3.client('transcribe')
s3 = boto3.resource('s3')
## Note to self: i... | [
"ralcanta@mit.edu"
] | ralcanta@mit.edu |
79fe6c6b4898f0cefa5a2ee82429b88161af2822 | 23f754a39b996ad3e50e539ac1ea88217545df8b | /app/models/host.py | 830a796f3155ebb3a9e5d8f945ee6fd7cb954430 | [] | no_license | huhaiqng/YWSystemB | 576b0310cfe49086eaafb99eaa83042621d6fab5 | cf601fe4b97e96187e66a084a7e43a0cd259e92f | refs/heads/master | 2022-12-11T06:19:46.025055 | 2021-04-27T07:48:46 | 2021-04-27T07:48:46 | 245,122,835 | 0 | 0 | null | 2022-12-08T11:57:56 | 2020-03-05T09:40:26 | Python | UTF-8 | Python | false | false | 1,241 | py | from django.db import models
from django.utils import timezone
# 主机
class Host(models.Model):
name = models.CharField('主机名', max_length=200)
ip = models.GenericIPAddressField('内网 IP')
outside_ip = models.GenericIPAddressField('外网 IP', default='0.0.0.0')
manage_port = models.IntegerField('管理端口号', defau... | [
"lixin@gainhon.com"
] | lixin@gainhon.com |
0593545ee04a253e13349dd65da2311fddaf8735 | 6ec7a7b7bec26ae583ac0c1a29cffeb3875a6887 | /learning_sites/basic_app/migrations/0002_auto_20190818_0321.py | a04ffe511222640813a7144448465ae87fde86c7 | [] | no_license | MuhammadAhmedSiddiqui/Django-Deployment-Example | 048420d562b5eb85562a8cf85efbaf7dcffd1082 | fcef550ac6fa2d9986dfc2483f094f19294446a7 | refs/heads/master | 2021-07-10T20:24:32.377185 | 2019-08-18T21:02:06 | 2019-08-18T21:02:06 | 203,053,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Generated by Django 2.2.1 on 2019-08-17 22:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('basic_app', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"mahmed.siddiqui97@gmail.com"
] | mahmed.siddiqui97@gmail.com |
703af6d3a3cd3e56e504a86f62c96136cac18b77 | d941938417bab130154c78f732606daa7b107e4a | /testing_runtime/web/modules.py | 5fa49e68e735185df2dcf8c001a735ef8ec2370a | [] | no_license | skliarpawlo/ganymede | abc8c7fac03b51a41cf92efacdf4170dd271d890 | 3a847635634d383d01dbeb70ef969202b0b7a8c9 | refs/heads/master | 2016-09-07T18:55:51.680687 | 2013-11-01T15:18:25 | 2013-11-01T15:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | # coding: utf-8
from decorators import html
from django.shortcuts import render_to_response
from django.http import HttpResponse
from django.template import RequestContext
from django.utils.translation import ugettext as _
from testing_runtime import models
import json
from core import db
import traceback
def verify... | [
"skliarpawlo@rambler.ru"
] | skliarpawlo@rambler.ru |
e3dc9fa2d3b12729be5417ea7d8dcfe2a1af40f1 | 57b639ef18f16cad499f56e74694b8109a2370e0 | /IPN/__init__.py | cce32ae0f6274de65ccc173fe06ba3112e256a90 | [] | no_license | Cranbaerry/RainyCogs | 7eaf3e77650b2ea0393099f1507bf874b6888114 | 13d49439703731b3d705458b1f14c8af1677c3b0 | refs/heads/master | 2023-08-16T02:56:46.771142 | 2021-09-15T14:11:46 | 2021-09-15T14:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from .IPN import IPN
def setup(bot):
n = IPN(bot)
bot.add_cog(n)
| [
"naufalh39@gmail.com"
] | naufalh39@gmail.com |
9ebd7cc9e4666b0fb2c0d367f8dc2c3e0cea1522 | bd5240c87cd9699cae088395cac180276210566f | /Day2/day2part2.py | 83131ed0c1ff569d573e398610498f7e91b6236d | [] | no_license | GruberQZ/AoC-2016 | decb15665b409be8fa57576f1d72aea1834ce98a | 377ae2557225bdd61c19adcf72fed549ba363d56 | refs/heads/master | 2020-06-15T23:23:34.827074 | 2017-06-22T02:31:06 | 2017-06-22T02:31:06 | 75,258,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py |
file = open('input.txt','r')
password = ''
cannotMoveLeft = [1,2,5,10,13]
cannotMoveRight = [1,4,9,12,13]
cannotMoveUp = [1,2,4,5,9]
cannotMoveDown = [5,9,10,12,13]
for line in file:
# Starting number
number = 5
# Go character by character
for char in line:
if char == 'U':
if num... | [
"ambsneakysnack@gmail.com"
] | ambsneakysnack@gmail.com |
d4aac1f8ce31e6e240ac03540de859ff1aadfa10 | c768e0fad0fd7faa0e727ab650a95424bb5fe45a | /ltp_cloud.py | 484445858099785be975d738b9884e590fd4cb06 | [] | no_license | shenwei0329/Irrigation-Proj | bcc2b2f8e6e0e9ef21ebe5d302f4fba051a84aae | 98113cb7a71e49b3831d799ea28afba7c9b1c5e2 | refs/heads/master | 2020-11-30T07:20:12.628615 | 2019-12-30T08:13:24 | 2019-12-30T08:13:24 | 230,345,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # -*- coding:UTF-8 -*-
#
import sys
from pyltp import Segmentor
from pyltp import Postagger
from pyltp import Parser
from pyltp import SentenceSplitter
from pyltp import NamedEntityRecognizer
import re
seg = Segmentor()
seg.load_with_lexicon('ltp_data_v3.4.0/cws.model', './ext_word_cloud')
post = Postagger()
post.loa... | [
"shenwei0329@hotmail.com"
] | shenwei0329@hotmail.com |
36cc3d83758e405e7b09ba3ceb504ad2feb85195 | 3282ccae547452b96c4409e6b5a447f34b8fdf64 | /SimModel_Python_API/simmodel_swig/Release/ObtainPipeInfo.py | 05eb5c5394e33c9bacfea57f6770abb9744c6491 | [
"MIT"
] | permissive | EnEff-BIM/EnEffBIM-Framework | c8bde8178bb9ed7d5e3e5cdf6d469a009bcb52de | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | refs/heads/master | 2021-01-18T00:16:06.546875 | 2017-04-18T08:03:40 | 2017-04-18T08:03:40 | 28,960,534 | 3 | 0 | null | 2017-04-18T08:03:40 | 2015-01-08T10:19:18 | C++ | UTF-8 | Python | false | false | 9,971 | py | import os
import networkx as nx
# load SimModel hierarchy
import SimModel_Hierachy
# load SimModel mapped data
import SimModel_Mapping
# load SimModel translation engine
import SimModel_Translator
# load the SimModel classes you wanna access their properties,
# e.g., if you need to access a class named A, then import ... | [
"c.ribastugores@udk-berlin.de"
] | c.ribastugores@udk-berlin.de |
40397ccb95d1078ee9372f43fc59a3eb63a11174 | e868cd3e0eb56ac8b4aa4290510b2d393ae8eaac | /relations-finder/tests/wikipedia_data_fetcher_test.py | fd2b8319b464c1010f09f9590af94aa2a70c661f | [
"MIT"
] | permissive | trisongz/wiki-relations | 2ba0c24deb0d804633dbe1796443fbeabd36b5a3 | 9f8d20c512f993cab6065cb2695c996c076b6d13 | refs/heads/main | 2023-03-24T22:08:29.722531 | 2021-03-13T17:49:13 | 2021-03-13T17:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | py | import os
import sys
from unittest import TestCase
from unittest.mock import patch
import wikipedia
sys.path.append(os.path.abspath('..'))
from wikipedia_data_fetcher import Wikipedia_data_fetcher
class Test_wikipedia_data_fetcher(TestCase):
def setUp(self):
self.fetcher = Wikipedia_data_fetcher()
... | [
"ahmed91abbas@hotmail.com"
] | ahmed91abbas@hotmail.com |
7a264a8db4f4e8e02988b7289dd89107a02032e9 | a30d505835c2376634279488878811eacc2de056 | /landing_page/views.py | 58d90cb2b886c86b6f4311194f888892ca78399c | [] | no_license | Aim-Entity/journalist-web | d996419b1177ea1405a9f45ff405c7502c721673 | 8deef8254c7823c6afd713fba36f2d73a9840412 | refs/heads/master | 2023-04-27T23:50:24.997849 | 2020-03-29T15:16:11 | 2020-03-29T15:16:11 | 251,063,144 | 0 | 0 | null | 2023-04-21T20:51:06 | 2020-03-29T15:18:03 | HTML | UTF-8 | Python | false | false | 110 | py | from django.shortcuts import render
def index(request):
return render(request, "landing/index.htm", {})
| [
"bilaluddin474@Gmail.com"
] | bilaluddin474@Gmail.com |
eb388016f65246c4c31124d34d29159a438dc564 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/CSS/juejin_1927.py | 4cf0fa0be8441db15c31d26e93685b0b19eb0256 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,514 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844903865737822216", "article_info": {"article_id": "6844903865737822216", "user_id": "1380642335503256", "category_id": "6809637767543259144", "tag_ids": [6809640392770715656, 6809640407484334093, 6809640614175604744, 6809640394175971342], "visible_level": ... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
e432d53bf4acc34ba503bf71fa4f3cd3b005e150 | 59150a7613e2ba56dc94b0f0e236d2950bc3f854 | /Practice/24/Python/24.py | 2b9d6db6e2a9c4ec21fab36e18f5dcabc04ac233 | [] | no_license | DONR69/Programming | 9817aecf2708836c3e3d909bb922058eddbff5a1 | 6c91e33c5da5d931deb4f54d3bca51bfe5cd8082 | refs/heads/main | 2023-04-03T12:28:24.336901 | 2021-04-19T05:37:35 | 2021-04-19T05:37:35 | 334,436,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | import json
from array import *
c=0
p=0
m=list('')
x='a'
with open('in.json','r') as f:
a=f.read()
data=json.loads(a)
h=dict(data[0])
k=h['userId']
for l in range(len(data)):
h=dict(data[l])
if (k==h['userId']):
if (h['completed']==1):
c+=1
else:
... | [
"02dandy02@mail.ru"
] | 02dandy02@mail.ru |
77cf3b81b38c32c26216a33749bc6f9e06bdd2f2 | 4f696b0712f530f0d8e7d968ee52ed4dda97a2c6 | /admix/data/_geno.py | a9c94134a7a46b25037b8f1cab3bb634c3dd4e7f | [] | no_license | KangchengHou/admix-kit | 5d0e1f4225f6339f10bece6fded7c156794bccbe | 136e8999d94440d604a2dcfb7b7d1a340a5f6e67 | refs/heads/main | 2023-09-01T08:58:05.219692 | 2023-08-24T17:33:58 | 2023-08-24T17:33:58 | 335,100,490 | 7 | 1 | null | 2022-08-20T23:01:26 | 2021-02-01T22:23:02 | Python | UTF-8 | Python | false | false | 22,616 | py | import numpy as np
import pandas as pd
from tqdm import tqdm
import dask.array as da
import admix
import dask
from typing import Union, Tuple, List
import dapgen
def calc_snp_prior_var(df_snp_info, her_model):
"""
Calculate the SNP prior variance from SNP information
"""
assert her_model in ["uniform"... | [
"kangchenghou@gmail.com"
] | kangchenghou@gmail.com |
2e43f3798da5e37da76cc29d9895006b9acebf33 | 71baccb6082a2324ba9dc7d66dbc2ad04d4d5ff3 | /complaint/views.py | 8c7c5d048c0ebb203e34127e0cd6f9d45dc0d066 | [] | no_license | pradyumnamahajan52/SVPCET-Hackathon-The-Hack-Backpackers-02 | 60eec408fd5f290f079b85b5c4982aac52dbd366 | 2c4df3ece041a0494c98d920c9538f01464d3c48 | refs/heads/main | 2023-01-12T01:19:41.794920 | 2020-11-08T05:15:15 | 2020-11-08T05:15:15 | 330,423,482 | 1 | 0 | null | 2021-01-17T15:33:13 | 2021-01-17T15:33:13 | null | UTF-8 | Python | false | false | 535 | py | from django.shortcuts import render
from .models import Complaint_Category,Complaint_Subcategory,Complaint_User
from user.models import Users
# Create your views here.
def user_solver(request):
complaint_subcategory = Complaint_Subcategory.objects.get(solver_role=request.user.user_role)
complaint_user = Compl... | [
"noreply@github.com"
] | pradyumnamahajan52.noreply@github.com |
46eb00aff3aeab2753beda53a5752b341bbe772b | 3d308edef9d4f9feead0e024f08d45c00a45de95 | /07_files/task_7_3b_script.py | dddc81ba98ff91185428ea3cf56181a0cfa39ec6 | [] | no_license | noatre/pyneng | 86ac9ff6cce16eef5e418d93e296a6255843b984 | 0b29d811fbae1bef9e0a3972f12edc82c7de52e0 | refs/heads/master | 2020-04-22T15:49:07.228343 | 2019-03-20T17:28:21 | 2019-03-20T17:28:21 | 170,488,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/bin/env python3
vlan_input = input('Enter VLAN number: ')
mac_list = []
with open('CAM_table.txt') as f:
for line in f:
if line.count('Gi') == 1:
line = line.replace('DYNAMIC', '')
line = line.split()
mac_list.append(line)
for i in mac_list:
if i[0] == vlan... | [
"noatre@yandex.ru"
] | noatre@yandex.ru |
ec125359dc7d22f74de7a96d3cb57b767553b680 | 9650b24ac61edb013cc6264263eea67fd967783b | /FlightPy.py | 569f3e3603e6143c904bc714d73c69995d83288e | [] | no_license | Delphae/flightaware | 7e83dd11d9e714051070e15fd6815b3873510141 | aa190221765015fcffae4e5b6ee92e1ef84cec49 | refs/heads/master | 2020-04-09T02:52:57.495731 | 2018-12-06T14:27:05 | 2018-12-06T14:27:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,395 | py | #!/usr/bin/env python
# coding: utf-8
'''
____ _ _
| _ \ ___| |_ __ | |__ __ _ ___
| | | |/ _ \ | '_ \| '_ \ / _` |/ _ \
| |_| | __/ | |_) | | | | (_| | __/
|____/ \___|_| .__/|_| |_|\__,_|\___|
|_|
1.1 2018-11-30 initial version
1.2 2018-12-01 AirportBoards
1.... | [
"noreply@github.com"
] | Delphae.noreply@github.com |
8894a20e0f77e0e21c8eacd3308da64ff355e0b3 | d0ad48ac376a7b8e54291ac3f920b90f43f4ab72 | /apps/index/views.py | 5913312194dfe756342f96eeaa63a5b6ed14624d | [] | no_license | LceRain/torna | a38d6f1ba2caf8ce8271fd52c2bcb28213dc3185 | 057d1cfdee9efa83ae6724f1c0fc3f2526811590 | refs/heads/master | 2022-11-06T06:28:47.891326 | 2020-06-17T10:19:16 | 2020-06-17T10:19:16 | 272,942,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import json
import time
from json import JSONEncoder
import tornado.web
from abase.baseResponse.baseresponse import JsonResponse
from abase.baseorm._sqlalchemy.basesqlal import session
from abase.baseorm.models.basemodels import Model
from apps.index.models import Person
class A(JSONEncoder):
def d... | [
"2460047746@qq.com"
] | 2460047746@qq.com |
c8a58abf83afbf6366b65b7dc1ee8f6a5d6ef831 | 24ffbd64e1892ab633ca785e969ccef43f17a9f2 | /picomotor/devices/h2_yr.py | efa1098cd7f197e7875e4fee3720cf40bfa6fb58 | [] | no_license | yesrgang/labrad_tools.srq | e29fcbfc4f5228955de1faddab6a66df52ccdd03 | 0dfbf2609d2f7a7e499167decedb0d9ea3677978 | refs/heads/master | 2021-06-18T19:59:21.448762 | 2021-02-04T22:03:49 | 2021-02-04T22:03:49 | 155,478,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from picomotor.devices.nf8742.device import NF8742
class Motor(NF8742):
socket_address = ('192.168.1.20', 23)
controller_axis = 4
Device = Motor
| [
"yesrgang@gmail.com"
] | yesrgang@gmail.com |
7208ed98c23ba5ea533900ee0bf6dfbbb82d5a92 | bbb89d13318df191b83716ad28633c6dd87147a5 | /curso_em_video/mundo_03/ex095.py | d16fa09f866332300e254db544c647cd9c0b08f7 | [] | no_license | matheusvictor/estudos_python | 50745522d2801fd5e9c2c3307eb251c1f18dcdbd | 627c01a5e89192388fb5c34f5fdccbc7a3129d9f | refs/heads/master | 2022-10-28T09:00:52.972993 | 2022-10-06T17:45:28 | 2022-10-06T17:45:28 | 192,107,427 | 5 | 0 | null | 2022-10-05T18:09:22 | 2019-06-15T17:43:49 | Python | UTF-8 | Python | false | false | 2,658 | py | lista_jogadores = list()
continua = True
while continua:
nome_jogador = str(input('Nome do jogador: '))
partidas_jogadas = int(input(f'Quantas partidas foram jogadas por {nome_jogador}?: '))
quantidade_gols_partida = list()
total_gols = 0
for partida in range(partidas_jogadas):
quantidad... | [
"matheusvictor.salles@gmail.com"
] | matheusvictor.salles@gmail.com |
88d706f4905e832162170794813647dc558628f1 | 7b2295bf19163e65449e502636ca1aa5224f3289 | /orders/migrations/0008_auto__add_field_order_customer.py | 2edb97ff3edfa727c860670db256fc40a3f2a9f3 | [] | no_license | renata-ms/control_panel | 7e22d4b627942dac7e0b61b33220eef8e15a5cec | 746a6bbc62e09b8c1693893a5792c186ee69355d | refs/heads/master | 2016-08-04T11:31:18.564018 | 2013-11-30T07:23:28 | 2013-11-30T07:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Order.customer'
db.add_column(u'orders_order', 'customer',
self.gf('dj... | [
"renata_ms@mail.ru"
] | renata_ms@mail.ru |
9d55ea5cb4addbc1cc6d2fe4e49086c6505e4551 | a75f9cf4f03b01f8e7cc12d311434beca1b233e5 | /vstools/writers.py | fbfa81a2230924a07bc92e36d66720df61542f97 | [
"Apache-2.0"
] | permissive | libyal/vstools | 3169dbf62be79eb309f9d23a06e068cb3bd1ed81 | f251133b39131735576baad2077bc47821e9b99b | refs/heads/main | 2023-04-13T06:54:29.549207 | 2023-04-10T10:41:06 | 2023-04-10T10:41:06 | 95,857,124 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75,608 | py | # -*- coding: utf-8 -*-
"""Project and solution file writer classes."""
import abc
import re
from vstools import definitions
class FileWriter(object):
"""File writer."""
def __init__(self, encoding='utf-8', end_of_line='\r\n'):
"""Initializes a file writer.
Args:
encoding (str): encoding.
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
7c9d4bb9050e33900812f41157440397e1ba71db | f7f429aa2425049a7c787b2be0cf5ec431371988 | /coding_problems/feb/feb8.py | 1d202038978fd67c3e31a22427b512ae0a7a0f64 | [] | no_license | happy96026/interview-prep | 7fbef8642ff7e4f8746403c2a18eae8b173b64a2 | 5b8e974b9541a80dbb9e15055d76f78cd957637f | refs/heads/master | 2021-12-28T17:26:01.347919 | 2020-07-26T07:10:59 | 2020-07-26T07:10:59 | 246,656,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | class Solution:
def lengthOfLongestString(self, s):
d = {}
i = 0
max_len = 0
for j, c in enumerate(s):
if c in d:
i = max(i, d[c] + 1)
d[c] = j
max_len = max(max_len, j - i + 1)
return max_len
print(Solution().lengthOfLongestString('abrkaabcdefghijjxxx')) | [
"m.choi960@gmail.com"
] | m.choi960@gmail.com |
6b7ec47b7dfaed08aeefb1d1ec11acaff71addf7 | 447e9ec821dc7505cc9b73fb7abeb220fe2b3a86 | /rvpy/logistic.py | 2d66e011e93fb9f8e4dc0e7ab086276b4445ba04 | [
"MIT"
] | permissive | timbook/rvpy | ecd574f91ed50fd47b6ead8517954f01e33c03a7 | 301fd61df894d4b300176e287bf9e725378c38eb | refs/heads/master | 2020-03-19T04:01:49.283213 | 2018-12-18T19:21:07 | 2018-12-18T19:21:07 | 135,788,512 | 1 | 0 | MIT | 2018-12-18T19:21:08 | 2018-06-02T04:55:39 | Python | UTF-8 | Python | false | false | 3,722 | py | import numpy as np
from math import log, exp
from scipy.stats import logistic, fisk
from . import distribution
class Logistic(distribution.Distribution):
"""
Logistic Distribution using the following parameterization:
f(x | loc, scale) = exp(-z) / (s * (1 + exp(-z))^2)
where z = (x - loc) / scale... | [
"timothykbook@gmail.com"
] | timothykbook@gmail.com |
7bae5ccf98dd1173f76aac2b3c90247bbe4be0fd | b74a22c9e6da60a5085104d9ab9252d61a5d5dfe | /app.py | 4e0c4b1cca9fcd5459600f681dd688c97730af71 | [] | no_license | VinayKatare/Sab-Pool-Karo | 1413a759eb00f7c105d78b1874e2c383390489b5 | 6a4c2b26a42c8d9d92e207c687823dc059ab1ba0 | refs/heads/master | 2020-04-20T00:46:38.983792 | 2019-04-10T18:38:46 | 2019-04-10T18:38:46 | 168,529,166 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,153 | py | from flask import Flask,render_template,request,url_for,redirect,session,flash
from db import *
from passlib.hash import sha256_crypt
from functools import wraps
app = Flask(__name__)
app.secret_key = b'_5#y2L"F4Q8z\n\xec]/'
global temp
temp = False
conn = connectDB()
cursor = conn.cursor(dictionary=True)
def login_r... | [
"vinaykatare1234@gmail.com"
] | vinaykatare1234@gmail.com |
5b8aced9977d9f12adf0d4b703c3e25b1e55c899 | e16911f1fae7bf90f405e055e0f90731ae8c8042 | /etc/st2packgen/files/actions/lib/k8sbase.py | 89df63259b4fbf47136ae2a8cdf29077dfb9461e | [] | no_license | bobhenkel/stackstorm-kubernetes | 87136448434b1a6c821cfeb757f88833ca8ecf02 | 32b8538597bc5290a18cefadbf98fea7f8bb38bd | refs/heads/master | 2021-04-25T22:06:36.392650 | 2017-11-02T04:30:02 | 2017-11-02T04:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from __future__ import absolute_import
from pyswagger.core import BaseClient
from requests import Session, Request
import six
import json
import base64
class Client(BaseClient):
# declare supported schemes here
__schemes__ = set(['http', 'https'])
def __init__(self, config=None, auth=None, send_opt=No... | [
"andy@impulsed.net"
] | andy@impulsed.net |
19ee46eafd56767062c10f852b133d62639531f8 | ac3339c95afe9066d66ff009fb1b7c3fde927ee6 | /Python/06_Django/02_Django/07_UserDashboard/apps/app_main/migrations/0002_auto_20170624_1918.py | 55dd4e0299c385a3e6d10cf49ee03da56d3f5511 | [] | no_license | aakasht05/DojoAssignments | 5d5013700528084fd17f93ebaea55d20aeea2d9d | 227f6deb62e75e07243ec9058d8557973b03840e | refs/heads/master | 2021-05-03T15:46:39.527638 | 2018-04-13T05:59:38 | 2018-04-13T05:59:38 | 120,479,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-24 19:18
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.manager
class Migration(migrations.Migration):
dependencies = [
('app_main', '0001_initial'),
]
operations = [
... | [
"aakasht05@gmail.com"
] | aakasht05@gmail.com |
187f0791b1a01c11df6c79633e0e5dd286b10dd7 | e644c0a10c8d6b339106a34b67a393b57e038093 | /source_code/data_cleaning.py | 97ca7fe342c83ed2051bee3f6cee18cc09fc8195 | [] | no_license | hvijay3/User-Review-Based-New-Business-Affinity-Prediction-System | f8c7c57b5d6e2e2e034b24b6435ad9b53164a973 | 77f74fe7f39f9e0e6263eb1752d3047f42889090 | refs/heads/master | 2021-05-13T15:24:47.418392 | 2018-01-09T04:55:18 | 2018-01-09T04:55:18 | 116,767,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | import pandas as pd
import pandasql as ps
sentiment1 = pd.read_csv('AllFoodBusiness_Features&Sentiments.csv')
sentiment = ps.sqldf("""select
business_id,
round(sentimental_rating,0) as sentimental_rating
from sentiment1""", locals())
sentiment.d... | [
"Vijayvargiyah@gmail.com"
] | Vijayvargiyah@gmail.com |
092db6afd0b046dcf1485a91be052fd57d5c502e | a177931c2914cc9820c578add9d57aa6c75084ce | /tips/customHTML/test_genTABHTML.py | cfd92464403354ae73e44a3df5bc666a81d2eb93 | [] | no_license | zhangshoug/others | 45d94f96701362cb077eb994c27295247a6fb712 | 3a8a8366f2598a5e88b44d18d346e81f4eef659e | refs/heads/master | 2022-12-18T22:37:13.505543 | 2020-09-28T08:54:28 | 2020-09-28T08:54:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: test_genTABHTML
Description : tab css style test
Author : pchaos
date: 2019/9/9
-------------------------------------------------
Change Activity:
2019/9/9:
--------------------... | [
"drifthua@gmail.com"
] | drifthua@gmail.com |
a2d362eaf614a13071c77fff4712da108a1d9924 | b1e8f4b70208c5d35fbe9aedd6239652960d99dc | /pgdrive/envs/pgdrive_env_v2.py | ed7917d3a1a9a9843bc4443b706e58204c024bec | [
"Apache-2.0"
] | permissive | Fredtoby/pgdrive | 72b7cbcc22cbdb6d03adca8e344ce376c27c2ecb | d91fa9c7da3b0892765a4c163cf9da309997b310 | refs/heads/main | 2023-04-01T06:49:39.810785 | 2021-04-03T08:28:58 | 2021-04-03T08:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,057 | py | import logging
import os.path as osp
import numpy as np
from pgdrive.constants import DEFAULT_AGENT
from pgdrive.envs.pgdrive_env import PGDriveEnv as PGDriveEnvV1
from pgdrive.scene_manager.traffic_manager import TrafficMode
from pgdrive.utils import PGConfig, clip
pregenerated_map_file = osp.join(osp.dirname(osp.d... | [
"noreply@github.com"
] | Fredtoby.noreply@github.com |
c06bcf0c5bf8278caf07c0496ba1c817c184ba8d | 3d2e5d1092acccfb73c07d68b6beeffc44b3f776 | /imitation/src/environments/simulation/pybullet_env.py | 10ef9e12e56c2333e0813282dd5bdfe598ed1611 | [] | no_license | MatthijsBiondina/WorldModels | f6cbcfe5349da7119329ef10831810d1b85c9d02 | ab468f1aa978e3aa4e05174db24922085d1e33b1 | refs/heads/master | 2022-12-22T11:54:46.040828 | 2020-09-23T11:41:48 | 2020-09-23T11:41:48 | 248,212,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import gym
import pybulletgym
import numpy as np
from src.environments.general.environment_template import Environment
from src.utils import config as cfg
_ = pybulletgym
PREP_VECTORS = {'InvertedPendulumSwingupPyBulletEnv-v0': np.array([1, 0.2, 1, 1, 0.067], dtype=np.float16)}
def preprocess_observation(obs):
"... | [
"biondina.matthijs@gmail.com"
] | biondina.matthijs@gmail.com |
327775f554307166eebd19b680c8f7b182103d28 | dedf6e9dea2d6a30dda669c954eb2cc059553768 | /src/webscraper/henry/scraper_henry.py | 769860fe05e287b6053d2fb1480735edaeaf5468 | [
"MIT"
] | permissive | rimjieun/aclu-bail-reform | a5b6fc71b30e053c08f6c3e0571346655c98cd30 | 87ac06375a52afdbe79e8ce04542d43498ee4d51 | refs/heads/master | 2021-08-30T17:36:25.701705 | 2017-12-18T20:57:01 | 2017-12-18T20:57:01 | 106,773,872 | 0 | 0 | MIT | 2017-12-18T18:52:31 | 2017-10-13T03:31:26 | Python | UTF-8 | Python | false | false | 32,773 | py | import requests
import numpy as np
import pandas as pd
import time
from warnings import warn
from bs4 import BeautifulSoup
from datetime import datetime
class ScraperHenry(object):
"""Webscraper for Henry county jail, GA
TODO: Update this from copied Athens-Clarke
This county has 2 main sites to sc... | [
"Ross.Llewallyn@gtri.gatech.edu"
] | Ross.Llewallyn@gtri.gatech.edu |
c7ac23c922c80e2332218811b21011cadfc091bc | e1d11efb8ed3f58ca1a4e3ac2ca3da45beb0a758 | /automated_picture_translator_api.py | d1d5ec7262917224a5f25953e8b6658b29f3188f | [] | no_license | ShanSanear/AutomatedPictureTranslator | 0ed09914e813145d42260ab8f3e885217066037e | 27250624d079590aabd72a12ce9be98c424f699e | refs/heads/master | 2023-07-30T10:52:39.312198 | 2021-09-22T18:54:51 | 2021-09-22T18:54:51 | 332,493,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | from typing import Optional
import uvicorn
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
import translation_processing
from picture_processing import PictureProcessing
from utils import CapturePosition
app = FastAPI()
picture_processing = PictureProcessing()
class Translation(BaseModel... | [
"pruskimateusz93@gmail.com"
] | pruskimateusz93@gmail.com |
2f15f7e40c8b0c4d24d57fc4badf32a92ac1ad85 | 989ce02251979f07d1b00f1c0baba18e1077e716 | /cute/settings.py | a51be9375b1faef75b866ac12ea97b2378bc63b2 | [] | no_license | Sara1527/cute | 29f66ac3ffd88e8aeac4e9665f874f8f41016927 | 54c25132c1f04e8fdbd64339f273ae44d592b8a5 | refs/heads/master | 2023-03-23T01:02:55.027199 | 2021-03-21T13:36:26 | 2021-03-21T13:36:26 | 350,008,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | """
Django settings for cute project.
Generated by 'django-admin startproject' using Django 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/
"""
import os
# Buil... | [
"rahul.cherub@gmail.com"
] | rahul.cherub@gmail.com |
cf26d52e9926a5a057a1fb70657bda084f53ef49 | 60b1f668808de2b82c2fcb62b07b45bb165219f2 | /egoi-api/models/form.py | 4e4d4d5517af495318cbbc38c7b97704ef21786d | [] | no_license | andersonmiguel/Egoi | 6d37bf7a3a7555e764f7a6e792b3ef1c68fe8e20 | b5f59f9b33ea94e170f4e7e26c6a37a78d2874c2 | refs/heads/master | 2022-06-21T07:18:44.920786 | 2020-05-04T17:29:02 | 2020-05-04T17:29:02 | 261,250,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,120 | py | # coding: utf-8
"""
APIv3 (Beta)
# Introduction Just a quick peek!!! This is our new version of API. Remember, it is not stable yet!!! But we invite you play with it and give us your feedback ;) # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We'v... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
8dd5a412c4409ce9d481424ca81b2ca41f5143de | 66b756b777c9ed2f09c35e5d6a2d2b255f6c5c6f | /book/graphics_anxiety.py | 861e29fcb312cdd6aeb5abd2db8adb2ec890ae53 | [] | no_license | al00014/gbd | 942d826febe935b9d47a417ca6ca089c6cf0cc56 | 8c69a154d01c752d16e65cab983d635d4851c7c3 | refs/heads/master | 2021-01-11T06:53:01.899892 | 2020-05-26T13:15:36 | 2020-05-26T13:15:36 | 71,981,670 | 0 | 0 | null | 2016-10-26T08:19:48 | 2016-10-26T08:19:48 | null | UTF-8 | Python | false | false | 3,537 | py | import sys
sys.path += ['../gbd', '../gbd/book', '../dm3-computation_only/', '../dm3-computation_only/book']
import pylab as pl
import pymc as mc
import pandas
import dismod3
reload(dismod3)
import book_graphics
reload(book_graphics)
import matplotlib as mpl
# set font
book_graphics.set_font()
def m... | [
"peterhm@uw.edu"
] | peterhm@uw.edu |
8881f72660102dd5e42f6fb6a136b8c7c3c59e94 | a3e80242b3e32c0779e9ab78c3de9ecfec499cb6 | /models.py | 4077b2094761e52c5c2242a8526ac736874fabee | [] | no_license | gitzart/multi-user-blog | c8924d8d9c0aae79a8ed46ec460c986b738a965a | c8fa7c2bd8e67e2ad1fabbb574ac060fdd465dca | refs/heads/master | 2021-04-28T23:02:50.708986 | 2017-01-23T10:04:38 | 2017-01-23T10:04:38 | 77,741,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | """models.py: Google Datastore models and query related methods."""
__author__ = 'Alan'
__copyright__ = 'Copyright 2017, Multi User Project'
from google.appengine.ext import ndb
class User(ndb.Model):
username = ndb.StringProperty(required=True)
password = ndb.StringProperty(required=True)
email = ndb... | [
"windowxpxp@gmail.com"
] | windowxpxp@gmail.com |
ad65d58afad4706819ae377f348ce126c1e23d7b | 1a59761698398fbaa4de3640ba39ed44fbee3dc6 | /exercise1.py | d2592530b7a7f5d638d3b9ea663c098567ce8c1a | [] | no_license | Michelangelo98/python-lab3 | 6a5fb1a045e653beaee59c33c9c1f6c212dac38f | 41fcd5532563ded86937c6a00c80dd929d217532 | refs/heads/master | 2020-07-25T09:31:51.022805 | 2019-09-15T16:37:18 | 2019-09-15T16:37:18 | 208,246,559 | 0 | 0 | null | 2019-09-13T10:56:12 | 2019-09-13T10:56:10 | null | UTF-8 | Python | false | false | 3,314 | py | from telegram.ext import Updater,CommandHandler,MessageHandler,Filters
import telegram
from sys import argv
def start(bot, update):
update.message.reply_text("Hello!")
def show_all_task(bot,update) :
file_in = open(argv[1])
todo_list = file_in.read().splitlines()
file_in.close()
if todo_lis... | [
"s245478@studenti.polito.it"
] | s245478@studenti.polito.it |
bbbe89c1a80c1289601bc6dae809de7b4cd5e5d6 | fbacac402e2272e0664eda587cdb085cde0e6a95 | /Python-Codes/MergeSort.py | ceb9c7a3a41f94377eb77024cdf3827ad09ee102 | [] | no_license | bhandari-nitin/Python-Code | e041684777fcbee183d0609856cf2743ed5c7253 | 36b06821c639a79ffc650807d9b03eca4397449e | refs/heads/master | 2020-03-11T17:19:55.274288 | 2018-04-19T02:00:49 | 2018-04-19T02:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | ###################
#### Merge Sort####
###################
#Supporting function for merge sort
def merge(a, b):
c = []
while len(a) != 0 and len(b) != 0:
if a[0] < b[0]:
c.append(a[0])
a.remove[a[0]]
else:
c.append(b[0])
c.remove(b[0])
if len(a) == 0:
c += b
else:
c += a
return c
def mer... | [
"nsb007@users.noreply.github.com"
] | nsb007@users.noreply.github.com |
df016bf13355458c6083ae6c2005a1cebd3ceecb | 7b6313d1c4e0e8a5bf34fc8ac163ad446bc69354 | /datastructure and algorithms/[hackerrank]The Hurdle Race.py | 5bcab2ab43d0415da1bf267cba2ff15bee29380b | [] | no_license | menuka-maharjan/competitive_programming | c6032ae3ddcbc974e0e62744989a2aefa30864b2 | 22d0cea0f96d8bd6dc4d81b146ba20ea627022dd | refs/heads/master | 2023-05-01T05:23:09.641733 | 2021-05-23T16:22:21 | 2021-05-23T16:22:21 | 332,250,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | nk=input().split()
n=int(nk[0])
k=int(nk[1])
l=list(map(int,input().rstrip().split()))
x=max(l)
if((x-k)>=0):
print(x-k)
else:
print(0)
| [
"maharjanmenuka8@gmail.com"
] | maharjanmenuka8@gmail.com |
a016251f6e85bb504ee575a1832918e4b6055986 | a22cd41cfaa1deb1a56149e613ef84d5f6507dbc | /Code/main.py | c911327676e1df83b26d6838a781e9d95a497cd5 | [] | no_license | arpanghoshal/ImageCaptionGenerator | df5442d65ae2eba1583f7d52a9a0d8b5f9836166 | 4a03e51f4ab14cb780180ffd8df635ddf3bb6cff | refs/heads/master | 2022-04-24T07:53:46.340135 | 2020-04-26T17:08:06 | 2020-04-26T17:08:06 | 258,891,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,402 | py | #%%
import os
import tensorflow as tf
import cv2
import numpy as np
import os
from matplotlib import pyplot as plt
import random
import pandas as pd
from scipy.sparse import csr_matrix
from scipy.sparse import vstack
import re
#%%
tf.device("/device:GPU:0")
train_images_list = os.listdir('C:/Users/dell/Downloads/Flickr... | [
"arpanghoshal@outlook.com"
] | arpanghoshal@outlook.com |
eac46b0f2d21a6532ee402e63d5d7d49626ae549 | 6f86dc36bd4bcf53fb4dfe7208db5c7220dce0bc | /test_cholesky.py | 474aa34840863ce930a7f8e1e601ebaddadc4338 | [] | no_license | ElfenStomp/Projet2_algonum | 5950b3fb89bf83e5f13bf43e48140d709ea49b1b | 19aff4bdefa7f571956df45dac9555cf068793a5 | refs/heads/master | 2021-01-22T07:23:26.210564 | 2017-03-11T12:44:34 | 2017-03-11T12:44:34 | 81,814,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | import numpy as np
import time
import matplotlib.pyplot as plt
from matplotlib.legend_handler import HandlerLine2D
import sdp_matrix as sdp
import cholesky as cho
##Test incomplete cholesky and cholesky
def test_cholesky_incomplet():
n = 100
nb_extra_diag = ((n**2) // 2) - n - 1
t1 = np.arange(0, nb_extr... | [
"lucboissieras@gmail.com"
] | lucboissieras@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.