blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
092387bcba67b21a15b981de3f667e91d5946785 | f94a331acc066ba3bdf1fb97dac8bfc7e281b3ee | /web/lists.py | b4d940a30e87a209c6a22f2d397eaf12d5e61a58 | [] | no_license | Yelesee/mirab | a066b43743d35b2d5f34d1e069f1f8bf4e6349f7 | 9049e3792a6e8e84738ba002666d31f9bdddad7c | refs/heads/v1.0 | 2022-12-12T22:59:52.790388 | 2019-02-25T07:27:39 | 2019-02-25T07:27:39 | 172,456,977 | 0 | 0 | null | 2022-12-08T02:29:51 | 2019-02-25T07:35:31 | JavaScript | UTF-8 | Python | false | false | 313 | py | import os
import xml.etree.ElementTree as et
base_path = os.path.dirname(os.path.realpath(__file__))
xml_file = os.path.join(base_path, "data/fuzzy.xml")
tree = et.parse(xml_file)
print(xml_file)
# class Fuzzy_xml:
# def__init__(self,input_nums,output_nums,rule_nums):
# def new_file(inputs,outputs,rules):
| [
"ebadia9094@yahoo.com"
] | ebadia9094@yahoo.com |
08e11d74b9d5f478d16696a5a8db8c9c85bb2500 | 52f96db06b294fc06283e6a6c19e0c41a693475d | /custom-addons/librarymanagement/models/book.py | c224e78fdd4c0d57dc4834643a59c44571b29059 | [] | no_license | sifat-bs23/odoo_learning | 1e151b2969c794fa9198368dd25351e6ec55b348 | 32fb977ff45a273e3fd2a30955121595e9997298 | refs/heads/master | 2021-05-25T16:17:06.375730 | 2020-04-16T13:58:18 | 2020-04-16T13:58:18 | 253,821,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | from odoo import models, fields, api
class Book(models.Model):
_name = 'book'
_description = 'This will contain all the book information'
@api.depends('price')
def _set_category(self):
for rec in self:
if rec.price >= 500:
rec.category = 'high'
elif 500... | [
"sifat.hassan@bs-23.net"
] | sifat.hassan@bs-23.net |
7d9fe3560f0a5fce28f2f4deb1a47ed7d695be36 | 638d0d770f47cdafff2bdfb9c47f74efe2cfda02 | /seem to work.py | b94b4bebec82083a4c244634eb08d79e2ab64182 | [] | no_license | Ranranxz/pp-code | 47badea8d54d73ec5fe83cf9fb71f9d5cd93ce4c | 2692d6b096dfa470c00016cff7bdfa1c906a679d | refs/heads/master | 2020-03-15T16:33:47.281187 | 2018-05-06T05:25:51 | 2018-05-06T05:25:51 | 132,237,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,374 | py | #Evan Long Ma & Sherry Zhuang
#elm454 xz1741
#24 Points!
import datetime
import math
import random
#Perhaps pass in a seed
seed = 2195
random.seed(seed)
#Sets the number to aim for
win = 24
#User score #Not actually a constant, but yeah
POINTS = 0
#Playing Cards / Numbers
a, b, c, d = 2, 4, 3, 6
#a, b, c, d = 4, 4,... | [
"noreply@github.com"
] | Ranranxz.noreply@github.com |
040710ef3328e04430cb79776b0696da99b525c8 | 3ea1e5ae80bbbfd5fac30fba33c594b91bec26a8 | /chat_screen_rcc.py | 7e4975a6201a5ec599fb0d933ea7ff813d8b19a0 | [] | no_license | kanekou/fix_ui_teams | f79c583d7281208cbe81ee70fcf23729ce468ebf | 29926406987bec212a00e6140250fb81c7b34ff6 | refs/heads/master | 2022-11-11T22:57:50.252816 | 2020-06-30T10:53:19 | 2020-06-30T10:53:19 | 268,749,971 | 0 | 0 | null | 2020-06-30T10:53:21 | 2020-06-02T08:52:21 | Python | UTF-8 | Python | false | false | 75,290 | py | # Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 5.15.0
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore
qt_resource_data = b"\
\x00\x00'W\
\x89\
PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\
\x00\x00@\x00\x00\x00@\x08\x06\x... | [
"e165726@ie.u-ryukyu.ac.jp"
] | e165726@ie.u-ryukyu.ac.jp |
5ec6d10e4c98aaf3908bec7ef9e08c081eb6147c | 39059b51a3d475972d0099ba32d575027f663abe | /tonic/environments/builders.py | 3adec879664b117d51a2f4b60fdb750576ba5b97 | [
"MIT"
] | permissive | fabiopardo/tonic | 1a8935772a0f1989263497d8b7d3e81b7b7b202d | 0e20c894ee68278ab68322de61bb2c7204a11d5f | refs/heads/master | 2023-02-23T10:36:04.941496 | 2021-12-10T16:10:25 | 2021-12-10T16:10:25 | 251,397,334 | 410 | 44 | MIT | 2023-02-21T08:59:57 | 2020-03-30T18:43:22 | Python | UTF-8 | Python | false | false | 5,357 | py | '''Environment builders for popular domains.'''
import os
import gym.wrappers
import numpy as np
from tonic import environments
from tonic.utils import logger
def gym_environment(*args, **kwargs):
'''Returns a wrapped Gym environment.'''
def _builder(*args, **kwargs):
return gym.make(*args, **kwar... | [
"f.pardo16@imperial.ac.uk"
] | f.pardo16@imperial.ac.uk |
7d66147e500b398a9f5308c4ea26ed20ffa4bac2 | 471377c48fbbfab434a051056ee064d2cf1e14b4 | /19_LittleJhool.py | c8b023d2c6338dbeb7e271edb60536646de1e3e8 | [] | no_license | Shruthi21/Algorithms-DataStructures | 8d87b782be7521dc3db15fa283be5f93d9050a9a | e611c6197e0addeaae130e0d93d7f65816b23cd5 | refs/heads/master | 2020-12-02T16:16:38.744745 | 2017-08-07T08:57:58 | 2017-08-07T08:57:58 | 96,529,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | def main():
binary = [ 0 , 1 ]
binary_input = []
previous = 0
b = raw_input()
six_consecutive = 1
binary_input=map(int,list(b))
for i in range(0,len(binary_input)):
if i == 0:
previous = binary_input[i] # initialization
six_consecutive = six_... | [
"noreply@github.com"
] | Shruthi21.noreply@github.com |
f7d527b4cb3399a586c4de1066be16535514bece | 86720e15074e3c6bc28d344347cfd05a2bc54116 | /chat/migrations/0003_chatting_reply_message.py | 06898f29e613d0ca6e27d310754e9360cdbb4746 | [] | no_license | JboscoFrancis/Django_BlogChat | 4afc255fce0af0fcac59dedc1e0324c9c1f75df6 | 65cfd7063872f423c6fc20b1a533da44efc95e8b | refs/heads/master | 2023-02-03T19:13:54.231051 | 2020-12-20T07:45:08 | 2020-12-20T07:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.4 on 2020-12-18 04:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chat', '0002_chatting'),
]
operations = [
migrations.AddField(
model_name='chatting',
name='reply_message',
... | [
"jbfrancis60@gmail.com"
] | jbfrancis60@gmail.com |
608e45d914006c465c96828ec596f5dca36f2ded | 6a4e1e5826147b0ba939ed3a293fd25e47ff41b9 | /build/lib/glycowork/helper/func.py | f987412a02613f7929cdf4e59168c9100ffb95f2 | [
"MIT"
] | permissive | thomas-wiese/glycowork | 8080d5de324d100f3d97b6a7174b8e6cad5e96f9 | 2eea648f674bfe5ad3ae12956e3c619f51619718 | refs/heads/master | 2023-06-01T22:52:53.980082 | 2021-04-21T09:55:07 | 2021-04-21T09:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import pandas as pd
def unwrap(nested_list):
"""converts a nested list into a flat list"""
out = [item for sublist in nested_list for item in sublist]
return out
def find_nth(haystack, needle, n):
"""finds n-th instance of motif
haystack -- string to search for motif
needle -- motif
n -- n-th occurrence... | [
"daniel@bojar.net"
] | daniel@bojar.net |
503cbc78d9f6e0910d577259e1c733d92a4a3a30 | 2eff2b24d5b6f5dffc42c9cbde6102ec9317502f | /src/Calculator.py | 8893fae57e0cb5134c33ea8b75b81954ec9c8cbf | [] | no_license | JakobKallestad/Python-Kattis | 599a14e71a8d5c52aae779b8db3d35f0e4d01e88 | 51656964e79cc861e53f574785aacb213ef10b46 | refs/heads/master | 2022-10-24T23:12:45.599813 | 2021-12-08T12:31:54 | 2021-12-08T12:31:54 | 156,881,692 | 2 | 1 | null | 2022-10-02T12:36:57 | 2018-11-09T15:34:09 | Python | UTF-8 | Python | false | false | 147 | py |
while True:
try:
line = input()
result = eval(line)
print("{:.2f}".format(result))
except EOFError:
break
| [
"Jakob.Kallestad@student.uib.no"
] | Jakob.Kallestad@student.uib.no |
5e502e6a8f31e345307af4c6bcc63e0a2132c326 | 4dbaea97b6b6ba4f94f8996b60734888b163f69a | /LeetCode/48.py | c4d4841c02151f4c9dd1b1d227a3fef532cd49d0 | [] | no_license | Ph0en1xGSeek/ACM | 099954dedfccd6e87767acb5d39780d04932fc63 | b6730843ab0455ac72b857c0dff1094df0ae40f5 | refs/heads/master | 2022-10-25T09:15:41.614817 | 2022-10-04T12:17:11 | 2022-10-04T12:17:11 | 63,936,497 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | class Solution:
def rotate(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
matrix_len = len(matrix)
for i in range(matrix_len // 2):
for j in range(matrix_len - matrix_len //... | [
"54panguosheng@gmail.com"
] | 54panguosheng@gmail.com |
d41c16e629b4e5deaf26083d8fcecd79a433675b | 7f4191f0e12a70d465b15762ce83b57b4976d448 | /Chapter8/Xtreme_InjectCrawler/XtremeWebAPP/xtreme_server/migrations/0006_initial.py | 27e52ef1bae65d1cc75b98e05ce6a9b297056084 | [] | no_license | PacktPublishing/Hands-On-Penetration-Testing-with-Python | 33f72df57b9158e002f78330c1242e1fde777898 | 7b11c8e63e4ac350ba138161f60f7ce4c08ed7cd | refs/heads/master | 2023-02-06T04:52:12.475428 | 2023-01-30T10:03:47 | 2023-01-30T10:03:47 | 131,272,051 | 79 | 40 | null | null | null | null | UTF-8 | Python | false | false | 12,669 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Project'
db.create_table(u'xtreme_server_proje... | [
"furqankhan08@gmail.com"
] | furqankhan08@gmail.com |
e98f6fa0b77ada500f2989e87256f196bf55a3a7 | c0201cc5b557bf067e0ced652cf7a65b3a881c8f | /parser.py | 48c442a21b5b161dc2185eb7d83d33ff103d438e | [] | no_license | salerno/MacrosPython | 94e931c3c06203145c38f60412d5afd12d0ab5df | c33b956b863a10b362ff64e51cd24572d071cf28 | refs/heads/master | 2021-01-17T15:31:15.073178 | 2016-05-24T09:15:19 | 2016-05-24T09:15:19 | 18,142,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import os
import glob
from tempfile import mkstemp
from shutil import move
from os import remove, close
def replace(file_path, file_path_out, pattern, subst):
#Create temp file
#abs_path = mkstemp()
#new_file = open(abs_path,'w')
new_file = open(file_path_out,'w')
old_file = open(file_path)
for... | [
"salerno@RobMac.local"
] | salerno@RobMac.local |
2751437f81253f6762b521912bf1187f9551bfb7 | bfdab27f224d9cac02e319fe55b53172fbf8d1a2 | /motion_editor_core/data/atlas_old/motions/drive_pull_right.py | a5356f2535ecc1d9343c53befe481a534536d151 | [] | no_license | tu-darmstadt-ros-pkg/motion_editor | c18294b4f035f737ff33d1dcbdfa87d4bb4e6f71 | 178a7564b18420748e1ca4413849a44965823655 | refs/heads/master | 2020-04-06T12:37:30.763325 | 2016-09-15T14:11:48 | 2016-09-15T14:11:48 | 35,028,245 | 2 | 3 | null | 2015-05-05T13:20:27 | 2015-05-04T10:18:22 | Python | UTF-8 | Python | false | false | 2,338 | py | { 'drive_pull_right': { 'l_arm': [],
'l_leg': [],
'r_arm': [ { 'duration': 1.0,
'name': u'vm_arm_r_retract_up',
'positions': [ -0.2258,
-0.5361,
... | [
"martin.sven.oehler@gmail.com"
] | martin.sven.oehler@gmail.com |
d6fb7ae0e44140ca334a1a60b46e34cd2524ea5d | 8b2c7ce8de3b158104f8442c5aabb234f6c17807 | /plato/venv/lib/python3.5/token.py | b05d72f7392865fb7fab9cefa7034a9328f4802b | [] | no_license | dylancashman/active_model_selection | 586536dfc92bc3c51a88c8a8352ae29f8f6279f8 | 6f4f73ff0c7fd2c1e57ecb7677e7188d38484e6d | refs/heads/master | 2023-01-31T23:22:47.466576 | 2020-02-19T14:29:09 | 2020-02-19T14:29:09 | 209,342,677 | 0 | 1 | null | 2023-01-12T12:02:39 | 2019-09-18T15:27:55 | Python | UTF-8 | Python | false | false | 51 | py | /Users/dylancashman/anaconda/lib/python3.5/token.py | [
"dylan.cashman@annkissam.com"
] | dylan.cashman@annkissam.com |
7e7db89059aa6482d6801ca06d86ca389c337e25 | 4ca821475c57437bb0adb39291d3121d305905d8 | /models/research/swivel/vecs.py | 61a2b7a852dd4c1a577d240c1c990423ddcbb77c | [
"Apache-2.0"
] | permissive | yefcion/ShipRec | 4a1a893b2fd50d34a66547caa230238b0bf386de | c74a676b545d42be453729505d52e172d76bea88 | refs/heads/master | 2021-09-17T04:49:47.330770 | 2018-06-28T02:25:50 | 2018-06-28T02:25:50 | 112,176,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"yefcion@163.com"
] | yefcion@163.com |
14f97daa71e3031be3ebe6b910952c419df9c3af | c9edc9db802cc0b86821d1ed2db0f4564e8e91f5 | /products/models.py | d012c3d217c208223fc5a90a42a3fdd57516224f | [
"Apache-2.0"
] | permissive | jojordan3/website_django | aa2b0afd7ba98842bf368a1619592f369add75d4 | b743e70f26a94d692ffe6b4c74489bb8a3daf076 | refs/heads/master | 2022-12-22T00:12:30.313233 | 2019-05-23T00:04:06 | 2019-05-23T00:04:06 | 186,329,708 | 0 | 0 | NOASSERTION | 2022-12-08T05:08:55 | 2019-05-13T02:10:56 | HTML | UTF-8 | Python | false | false | 3,990 | py | from django.db import models
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from wagtail.core.models import Page, Orderable
from wagtail.core.fields import RichTextField
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.images.models import Image
from wagtail.admin.edi... | [
"joanne.k.m.jordan@gmail.com"
] | joanne.k.m.jordan@gmail.com |
f9bcb3dcc1970423f97e39ba9072f214fd2b4bf9 | a2a14995c95e024644623ea26add2f27d186ea16 | /go.py | dff7c109c90a18c87abe03834f8ab27f33530049 | [
"MIT"
] | permissive | swdevbali/lit | 89db51ae912770ac4030a3c491ad775a68b95a4b | dbc01ee8e4e600a0a43e49ffd18873653cc3f7cc | refs/heads/master | 2021-01-21T00:25:50.001045 | 2013-02-16T13:52:50 | 2013-02-16T13:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import windows as winutils
from datetime import datetime
from utils import Query
from PyQt4.QtCore import (
Qt,
QAbstractListModel,
QMutex,
QMutexLocker
)
import itertools
import logging
from lcs import lcs
NAME_LIMIT = 42
class Task(object):
def _... | [
"answeror@gmail.com"
] | answeror@gmail.com |
0659d7826f012a4a77173ff1cd94f53a96dcf0ad | 1db2e2238b4ef9c1b6ca3b99508693ee254d6904 | /develop/align_atoms/make_alignment.py | e2c2c5a27921bc05091c8e561cda56f058e951c7 | [] | no_license | pgreisen/pythonscripts | 8674e08095f76edf08ef2059300349218079724c | 0aadf8f96d19b306c1bc44a772e766a06fe3408b | refs/heads/master | 2021-07-06T23:54:57.774342 | 2021-06-08T19:36:36 | 2021-06-08T19:36:36 | 22,017,192 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,251 | py | import os,shutil,sys
from translate_rotate import *
class pdbfile:
# Requires floating point number
# Returns floating point with correct
# number of digits for pdb
def set_number_digits(self,number):
return '%.3f' %number
def set_length_digit(self,number):
lngth = len(number)
if lngth == 7:
return ' ... | [
"pgreisen@gmail.com"
] | pgreisen@gmail.com |
99698bb2efe8e38a571b025d7779967c2f87dbd9 | 1af52277feb54a8e8ae075200b1eae4c82d7b65c | /parsers/NG.py | 0cd46a03349038419241dd06e7b8f0c23d3406cf | [
"MIT"
] | permissive | joshjauregi/electricitymap-contrib | ff2ded473ced98e3442cb9ef9f89d40905c481f2 | 4207cae9ee6f751b6c755b130b5c38ede26071db | refs/heads/master | 2023-03-11T10:30:33.960119 | 2021-02-19T09:48:13 | 2021-02-19T09:48:13 | 341,297,623 | 0 | 0 | MIT | 2021-02-22T21:40:53 | 2021-02-22T18:29:09 | null | UTF-8 | Python | false | false | 3,056 | py | #!/usr/bin/env python3
"""Parser for the electricity grid of Nigeria"""
import arrow
import logging
import requests
from bs4 import BeautifulSoup
LIVE_PRODUCTION_API_URL = "https://www.niggrid.org/GenerationLoadProfileBinary?readingDate={0}&readingTime={1}"
TYPE_MAPPING = {"hydro": "hydro", "gas": "gas", "gas/steam... | [
"noreply@github.com"
] | joshjauregi.noreply@github.com |
1a24a1dd54c80829aabc3695256b1fe53a23ca48 | 00a5e7bfc42d222f77fceea22bc18aad736f5311 | /TwoPointers/Find-Duplicate-Number.py | a16e578f3f51063a6518a4638be45f9b65b44a49 | [] | no_license | alvinwang922/Data-Structures-and-Algorithms | 5637e201f0bdeb2f0c458e48f4ebd5a6c655951a | 0579275da45ba05a27d6d2ce54c68dcb4f8c84b2 | refs/heads/master | 2023-07-04T07:59:13.136564 | 2021-08-06T05:18:54 | 2021-08-06T05:18:54 | 257,406,675 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | """
Given an array of integers nums containing n + 1 integers where
each integer is in the range [1, n] inclusive. There is only one
duplicate number in nums, return this duplicate number.
Follow-ups:
How can we prove that at least one duplicate number must exist in nums?
Can you solve the problem without modifying ... | [
"alvinwang922@gmail.com"
] | alvinwang922@gmail.com |
0010a2194eb058a54d92fa9b60078542537563c6 | 48f068905517c721c6f72edebed7d8825215980b | /albums/migrations/0002_auto__add_file.py | 937eb22b32e88b9862e3f2cfde65d7b39b2d835a | [] | no_license | qrees/backbone-gallery | fada54f58d21ba66b198f074eef2b107592716f7 | a460096cf16a490f8902fab89872efdd4bb37513 | refs/heads/master | 2021-01-16T18:07:04.579664 | 2012-06-09T20:13:24 | 2012-06-09T20:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,618 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'File'
db.create_table('albums_file', (
('id', self.gf('django.db.models.fields.A... | [
"krzysztof.plocharz@gmail.com"
] | krzysztof.plocharz@gmail.com |
977f1dc331f0d0c5640eb8ff2422825fccac2c76 | 1769116a3b94eb56459ec292ab34831424ab6350 | /.c9/metadata/workspace/summer_project/posts/migrations/0001_initial.py | 190ce4c3c41e3a7f40ef4bb5baabff0e7fb94049 | [] | no_license | KIM-JAEHYUNG/yurim | 2983e32af8681af5c3228ae2a363ecf15c458614 | 61894b78db261cb22af582f2a5be78ec684f5cbb | refs/heads/master | 2020-06-10T01:11:26.774928 | 2019-06-24T16:40:22 | 2019-06-24T16:40:22 | 193,540,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | {"filter":false,"title":"0001_initial.py","tooltip":"/summer_project/posts/migrations/0001_initial.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":192.5,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTabSize"... | [
"roy121@naver.com"
] | roy121@naver.com |
226c4d09fa5cdc1ca4d9713500b37dcc362f0d99 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_142/671.py | 10347da035e5343026f9408225894450ce90b99c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py |
def parseString(word):
dico = []
c = word[0]
cpt = 0
for i in xrange(len(word)):
if c != word[i]:
dico.append((word[i-1],cpt))
cpt = 1
c = word[i]
else:
cpt += 1
c = word[i]
dico.append((word[len(word)-1],cpt))
return dico
def checkSize(tab):
occ = len(tab[0])
for... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c5af2316076686c0b804182b0b52caa06d574d1a | 5c2cb45c76466d0cd4992ce6fd00a33a5dfd4473 | /WFX_App_Test/other_business/public_func.py | d26ea502e4afa8163259e0ecba3890e6d881687d | [] | no_license | yangyuexiong/WFX_Test | 0d361d6f37c332ec8f906adc7e3e8c6eda807058 | 80539f8d3fc5ccb5c07aab2ad37a9c071bb4944d | refs/heads/master | 2020-04-17T10:20:54.312207 | 2019-08-08T06:22:07 | 2019-08-08T06:22:07 | 166,497,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,132 | py | # -*- coding: utf-8 -*-
# @Time : 2018/10/23 下午4:00
# @Author : ShaHeTop-Almighty-ares
# @Email : yang6333yyx@126.com
# @File : public_func.py
# @Software: PyCharm
import pymysql
import requests
import time
import datetime
db = pymysql.connect(host="120.79.145.200", user="tiger_test",
p... | [
""
] | |
d01277bf95b44d3ea01150d8c57d628e1b8f6eb4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2180/60671/249029.py | 9b092ed28dbaf417cbff0c51b1ee7e7e1ab2000a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | s1=input()
s2=input()
list1=[]
list2=[]
for x in range(len(s1)):
for i in range(len(s1) - x):
list1.append(s1[i:i + x + 1])
for x in range(len(s2)):
for i in range(len(s2) - x):
list2.append(s2[i:i + x + 1])
list1.sort()
list2.sort()
count=0
for mem in list1:
if(mem in list2):
count+... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9db2666f0b3c32517b914720f08c697b903e37a3 | 6da51dcda58a27df1c91cba36ec50b9468550b57 | /func_find.py | a13b66a535b40045ec0089e8b744b5e78067de5f | [] | no_license | 530098379/func_find | c3c81f5cc2b4dd6a411c43ab900f1c8df847bf51 | fd023bc07db6008249f431b08404c012d63f8dd9 | refs/heads/master | 2020-09-09T06:10:40.314388 | 2019-11-13T04:31:38 | 2019-11-13T04:31:38 | 221,371,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,720 | py | #!/usr/bin/python
import os
import commands
import re
base_file_name = {}
def command(method_name):
result_data = []
result_data.append(method_name)
status, output = commands.getstatusoutput("grep -wE 'file_name:|" + method_name + "' ./objdump.txt")
if status == 0:
output_list = output.split(... | [
"Huan.Wang2@dxc.com"
] | Huan.Wang2@dxc.com |
002fd17b7783ff2a2e0cc67e5c2bc87478d69cbb | 73670aa7199188e2f0b1afd49a41eee1234764cc | /examples/MinjiKim/minji_tour/account/forms.py | a506d5683478e371731035a0b0f88bdb54f58c8b | [] | no_license | MinjiKim77/bigdata2020 | 26c752e646e73853afbc912e70fb8c2094dd26a7 | fceb356e3af055bc8be64818f02fdf90d9baa6f6 | refs/heads/master | 2023-01-12T22:34:05.694104 | 2020-11-25T06:58:53 | 2020-11-25T06:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # from django import forms
# # from django.contrib.auth.models import User
# from django.contrib.auth.forms import UserCreationForm
# from django.contrib.auth.models import User
# from account.models import User
# class UserForm(UserCreationForm):
# class Meta:
# model = User
# ... | [
"minzzzy222@gmail.com"
] | minzzzy222@gmail.com |
0a08a6ba2738749b21a28d35916c3c2dc8f73e90 | c561253c06cc9bd26331b872c10625acbeef8157 | /data.py | fd01ec9a2670c0666a323e713eda170535499576 | [] | no_license | shiyuzh2007/NoisyStudent-1 | fc9a6d2fe635875b023ea2a66e2b7b1a4976fa60 | 12d08afe4c0227b6fb18cbb02b5ecef5e970f161 | refs/heads/main | 2023-02-09T07:20:07.420412 | 2020-12-24T01:56:59 | 2020-12-24T01:56:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,734 | py | import torch
import torchvision
from torchvision.datasets import STL10
from torch.utils.data import Dataset, DataLoader
import torch.nn as nn
import torch.nn.functional as F
from torchvision.transforms import transforms
import os
from tqdm import tqdm
import time
from RandAugment import RandAugment
def one_hot(label... | [
"noreply@github.com"
] | shiyuzh2007.noreply@github.com |
e0beeb0e7fa4d5516f5433f69c91e40e77eabe06 | 659f10ae3ad036bbb6293b0cd585a4be2bc2dcc9 | /containers/migrations/0005_auto__add_field_container_meta.py | 7d9c7a532d2fabdceeeb662c0217c38e40611106 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | newrelic/shipyard | e58649adf46b65e30ea93307c53b064abc4495dc | e4e990583a646b77e7e1767682e1ecf94c278fb8 | refs/heads/master | 2023-07-22T11:47:31.472994 | 2013-09-27T19:13:37 | 2013-09-27T19:13:37 | 12,735,507 | 3 | 2 | null | 2023-07-06T03:58:58 | 2013-09-10T17:08:31 | Python | UTF-8 | Python | false | false | 5,101 | 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 'Container.meta'
db.add_column(u'containers_container', 'meta',
self.gf... | [
"ejhazlett@gmail.com"
] | ejhazlett@gmail.com |
110b2219be6c68d2adade3f88750c6a4a1b6a159 | baa4454af3246f6387e26b7dfe9dfbff294e25b0 | /om/src/appcore/views/__init__.py | 92124774aa1bdfa522689573ea98b657906c3499 | [] | no_license | KHIT93/svp-oma | c0ff226410b0ceb6d4feb1217de864e8f52e9b14 | dad0ca6c1ff02650cc245aecf8800ba7abcdbaf0 | refs/heads/master | 2021-01-15T22:41:21.534669 | 2017-09-07T06:38:57 | 2017-09-07T06:38:57 | 99,908,625 | 0 | 0 | null | 2020-06-05T17:16:32 | 2017-08-10T09:56:47 | HTML | UTF-8 | Python | false | false | 57 | py | from . import group_view_set
from . import user_view_set
| [
"kenneth@khansen-it.dk"
] | kenneth@khansen-it.dk |
1e2e30f99503919d4c1e79f3f3c027817528f13a | 534d0b52f1add62c3178caeae956173cc0f5a864 | /project7/userapp/views.py | 0db05f9a37b76dafd84fe9e4dcf70b943c241a0b | [] | no_license | venugopalgodavarthi/pro05-05-2021 | d8af053c57b0612f1f786ed51ac233bb2fba0e46 | 8662a28bf33417425e8c55b4f15570de51d2c99c | refs/heads/main | 2023-04-24T12:03:16.562313 | 2021-05-05T16:43:50 | 2021-05-05T16:43:50 | 364,641,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def userregister(request):
return HttpResponse("this is views file inside the userapp")
def sample(request):
return HttpResponse("hii this is sample function inside the userapp with response url.py file inside th... | [
"puchalapallisumapriya75@gmail.com"
] | puchalapallisumapriya75@gmail.com |
f89f3e8b3b73e5405e9bc690bc328fb7238dbbb0 | 71b15e6246da4968fad3cffa6ffd05045f230afa | /app/views/user.py | ccb9ebbb0118075734968577bfc83010740cd213 | [] | no_license | cyning911/mServices | 504df3d9541f49fbb4950b66ba6305e15e4c909f | a0a10ba2800fc18271c773b26cecb6e2a5bb2500 | refs/heads/main | 2023-05-26T02:45:40.745041 | 2021-06-03T12:39:38 | 2021-06-03T12:39:38 | 370,676,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/python3
from tornado.web import RequestHandler
class UserHandler(RequestHandler):
def get(self):
self.write("""
<form method="post">
<input name="name">
<button>登录</button>
</form>
""")
def post(self):
name = self.get_b... | [
"380529486@qq.com"
] | 380529486@qq.com |
f7176c9197b7dba577a109d806de5513e5cb4506 | 507667a333b9cac7958a547e582e7e42ba5c4ec2 | /valdelmeglio/blog/models.py | b71f8c0fe9df03b363cbcab1cdec699152cf35be | [] | no_license | valdelmeglio/valdelmeglio | 7deb39300b4288897f1812528654295cdd199d00 | 8be5f9670f2523e0a776c6b703e583f88a6fe4b4 | refs/heads/master | 2021-01-23T06:16:06.907526 | 2013-10-20T15:12:53 | 2013-10-20T15:12:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | from django.db import models
from django.db.models import permalink
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=100, unique=True)
slug = models.SlugField(max_length=100, unique=True)
body = models.TextField()
posted = models.DateTimeField(db_index=True, aut... | [
"valerio.delmeglio@gmail.com"
] | valerio.delmeglio@gmail.com |
f2bd9de4477cbf1af26d5d888aac1a5feddc1061 | 52b7ce215acacee6b3021793f36a3f3eba7196e0 | /tdi/util.py | c409d6e869390f41c5195340a1d18630d02548c9 | [
"Apache-2.0"
] | permissive | AvdN/tdi | 2829c545bdf08148db2a4d2d848ea731b920d2e3 | 5617ec1b1d9553fee537c55ae9e0eef8553fd101 | refs/heads/master | 2020-12-30T23:08:23.816115 | 2013-10-14T20:57:01 | 2013-10-14T20:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,696 | py | # -*- coding: ascii -*-
u"""
:Copyright:
Copyright 2006 - 2013
Andr\xe9 Malo or his licensors, as applicable
:License:
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.... | [
"ndparker@users.noreply.github.com"
] | ndparker@users.noreply.github.com |
c91803648d466237f3d6477684afc7472bf0ab7b | 695d2b38164a6ef1de61b8304f65843801d34f75 | /accounts/urls.py | 0969c6a323e6960d15d5ac45da4857fc09908784 | [] | no_license | zxu001/blog-app | bb9b76e0df12e1b79fb00c8b24f50622bdde3b0b | 4a32f3b82b05f863a115381694336cb5128d8b0e | refs/heads/master | 2020-07-25T22:27:11.448718 | 2019-09-14T18:36:49 | 2019-09-14T18:36:49 | 208,442,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #accounts/urls.py
from django.urls import path
from .views import SignUpView
urlpatterns = [
path('signup/', SignUpView.as_view(), name='signup'),
]
| [
"jxu0099@gmail.com"
] | jxu0099@gmail.com |
03da3037aa5075dd5cc26a9b6f22f10ac33ea3dc | 3cc8af76b1fd487eea86610d7a07f477afeab048 | /setup.py | da827dc7ffda6b32ae816d398f0fb9cec5e512e5 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | expresschen/HanLP | 20ff6d03b01b508e4395ea3532e8af712e065ebf | 24b48966e90dfafa1faa65765eb6f35e19cac801 | refs/heads/doc-zh | 2023-07-13T10:16:30.231114 | 2020-02-15T17:19:28 | 2021-08-24T02:15:49 | 401,305,599 | 1 | 0 | Apache-2.0 | 2021-08-30T10:37:28 | 2021-08-30T10:37:27 | null | UTF-8 | Python | false | false | 1,990 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2019-12-28 19:26
from os.path import abspath, join, dirname
from setuptools import find_packages, setup
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
version = {}
with open(join(... | [
"jfservice@126.com"
] | jfservice@126.com |
4c5824d086f61db8d6a64e10bf494165a522f574 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/ag/models/UpdateStepAsRuleSpec.py | defba859f89b925fee619a7ec0fa42170e4f650c | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,341 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
33ea8b0e944a6a1e3ece15e4b91ec865811055e8 | d2e5dcd0057ca5da3476be81ae7e8e108b5c44f4 | /src/feature_extraction.py | a24952c7fe5f55da753bf793dbbb21796f896af7 | [] | no_license | aascode/cross_language_authorship_replication | cb436e5cb457f00820247108ed82876c0fc84381 | 804d1192486354a8bd5bfece95cbc84852517632 | refs/heads/master | 2022-03-04T02:39:18.288205 | 2019-10-20T15:22:16 | 2019-10-20T15:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | # -*- coding: utf-8 -*-
# This transformers are a re-implementation of the feature extraction method
# presented in Llorens(2016).
from sklearn.base import BaseEstimator
from sklearn.base import TransformerMixin
from collections import defaultdict
import numpy as np
import random
class LifeVectorizer(BaseEstimator, T... | [
"benjamin.murauer@uibk.ac.at"
] | benjamin.murauer@uibk.ac.at |
4ca3c6c2bc2bda5d2f6ad77e59fd77d9f4e6c890 | 255b2edbf25585d75d145f581b82c4ef7bc01e35 | /tensorflow/simple_nn.py | d3f91c261e2575829c0776d3210a7d0048503545 | [] | no_license | I3lacx/trial_and_error | ae13d4d551c3b2ace2608edd345afab433b8d9f8 | 3df00ed42d0ce43048ea4a37ec47d0ff287150c8 | refs/heads/master | 2023-06-02T07:08:53.264869 | 2023-05-14T21:19:17 | 2023-05-14T21:19:17 | 108,685,319 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | from __future__ import print_function
# Import MNIST data
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
import tensorflow as tf
print(mnist)
#Parameters
learning_rate = 0.1
num_step = 5000
batch_size = 128
display_step = 100
input_layer = 2... | [
"MaximilianOtte999@web.de"
] | MaximilianOtte999@web.de |
84191deb0a80f8875e115aa3f5eae0046025e1d7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04031/s251975826.py | 5d8d02c8d8407057ca16c1bec6857fff705531e1 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import math
import collections
import fractions
import itertools
import functools
import operator
def solve():
n = int(input())
a = list(map(int, input().split()))
cost = []
for i in range(-100, 101):
ramen = 0
for j in range(n):
ramen += abs(a[j]-i)**2
cost.append(r... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0a387725f11e71eb30e39ed986dde2f3950f9ead | d6120c010310a67e23fc2769b08dcdfbad5086d6 | /apps/artapp/migrations/0006_auto_20180709_1202.py | f0cb05d8d9afdc3986400a5325e46b8b845985f5 | [] | no_license | hlsl/XSProject | 67cb83c5d4cdd5cb3c81e336c27df2d4235d5c8f | ee8a8e703721e01d101ea1f3c0e87492375c64ab | refs/heads/master | 2020-03-22T04:50:05.948901 | 2018-07-10T11:15:01 | 2018-07-10T11:15:01 | 139,524,575 | 0 | 0 | null | 2018-07-10T01:30:50 | 2018-07-03T03:35:31 | JavaScript | UTF-8 | Python | false | false | 838 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-07-09 12:02
from __future__ import unicode_literals
import DjangoUeditor.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('artapp', '0005_auto_20180705_1000'),
]
operations = [
mig... | [
"dummer@yeah.net"
] | dummer@yeah.net |
3ea66a4a06134c93851ec7511a4ad8bc0c57d43e | 17ab268c09df85a22a0af0179bb9ab54dd976eb7 | /codeNLP/tools/filterStopWords.py | 96e174f147338195cd7d61a45ae03a9c6420b987 | [] | no_license | remarkableJ/python | 89255fee4c0c6cc8b64a8f45279f7cd641ac521f | 9bcfad4f3819f8fead71e558feee6610cf0ae15b | refs/heads/master | 2020-05-20T21:04:24.569963 | 2018-09-09T13:38:01 | 2018-09-09T13:38:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # -*- coding: utf-8 -*-
# writer : lgy
# data : 2017-07-31
import MyCode.config
import ReadFile
# 过滤标点符号和停用词
def filterStopWords(sentences,file=MyCode.config.StopWordPath+'stop_2.txt'):
stopWords = ReadFile.readStopWord(file)
filterSentences = []
noFilterSentences = []
for sentence in sentences:
... | [
"liguoyu@ainirobot.com"
] | liguoyu@ainirobot.com |
f95f8a329e6279fc0ee59df351c887432ee6fec1 | 93736e8d0d5517eb73af91eeda6e9b0f4b07439e | /Python/Intro_Python/exercise3.py | e85c0cc0eae27917d1839cebdafb0e37e1cd146e | [] | no_license | aayushgupta97/TTN | 0de1a5d3a25d7399d68a81ea51f17233f81029e0 | 324466cbdf0a9b0953dd4ae574bd0b3f753c4fd7 | refs/heads/master | 2020-04-21T12:18:25.721602 | 2019-04-15T11:09:13 | 2019-04-15T11:09:13 | 169,557,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | from abc import ABC, abstractmethod
class Box(ABC):
def add(self, *items):
raise NotImplementedError()
def empty(self):
raise NotImplementedError()
def count(self):
raise NotImplementedError()
class Item():
def __init__(self, name, value):
self.name = name
se... | [
"aayushgupta2097@gmail.com"
] | aayushgupta2097@gmail.com |
24cbee6b70175ffd217555f9478d5d346eaebf22 | 0263a6373da695bbad2fd132143e34bcb3d8340f | /store/views/checkout.py | 9221753408e76f6f81b3b6bb7dae8737f53aba27 | [] | no_license | milanjuneja/Django-E-Commerse | bab39fe54cd9961701a25ff010e7d80f79e468fa | f2cccc95b52e340d5db060221eece965fc69a0b6 | refs/heads/main | 2023-02-16T21:33:54.110995 | 2021-01-18T05:48:09 | 2021-01-18T05:48:09 | 330,564,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | from django.shortcuts import render, redirect
from store.models import Customer
from store.models.product import Product
from django.views import View
from store.models.orders import Order
class CheckOut(View):
def post(self, request):
address = request.POST.get('address')
phone = request.POST.g... | [
"milan.juneja97@gmail.com"
] | milan.juneja97@gmail.com |
b2c18894797ee2043d24a28316aa7e6884bcfeb3 | 14e25d5a772e44b2fb123a8b75f940361464eaa3 | /ejercicio41.py | fc1620aa218ec94715832454195bb9ddf2637e85 | [] | no_license | Lusarom/progAvanzada | 2805584f4bdc5c5cf39765d689f40b9a14d7f60f | d77d4ec77f9ff0e7e43dd9bd7598592778bdcb9a | refs/heads/master | 2020-08-03T07:08:53.216289 | 2019-12-16T02:06:17 | 2019-12-16T02:06:17 | 211,664,072 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #Exercise 41: Note To Frequency
#The following table lists an octave of music notes, beginning with middle C, along
#with their frequencies (Hz)
#Note Frequency
# C4 261.63
# D4 293.66
# E4 329.63
# F4 349.23
# G4 392.00
# A4 440.00
# B4 493.88
nombre = input('Inserta el nombre de la n... | [
"noreply@github.com"
] | Lusarom.noreply@github.com |
f2e9d1fa4f806aa5430bcc405d3ed2f4ea3e94d2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03165/s926838179.py | 74a1ba1007c89e718147b0b4242828dcbc0a88f7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | s = input()
t = input()
dp = [[0]*(len(t)+1) for _ in range(len(s)+1)]
for i in range(len(s)):
for j in range(len(t)):
if s[i]==t[j]:
dp[i+1][j+1] = dp[i][j]+1
else:
if dp[i+1][j] < dp[i][j+1]:
dp[i+1][j+1] = dp[i][j+1]
else:
dp[i+1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c75c16694e0598bee07205e690fd35c553bb7685 | f8ebbecd484cd143ca2bc2f2359435a364ea2dc7 | /Source Code/haarcascade_lefteye_2splits.py | d579aefacc962d2569f1ca3125d08096a1d8c21a | [] | no_license | AABelkhiria/Face-recognition | 59f5d50d2429ea4d5cb643baa0423f21c61261c2 | 5f91b5f90e457d55f768d723c8e8aa45ba1a788e | refs/heads/master | 2020-03-19T06:33:56.168234 | 2018-06-04T14:20:23 | 2018-06-04T14:20:23 | 136,033,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | import numpy as np
import cv2
cap = cv2.VideoCapture(0)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
# Our operations on the frame come here
## gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
face_cascade = cv2.CascadeClassifier('haarcascade_lefteye_2splits.xml')
... | [
"noreply@github.com"
] | AABelkhiria.noreply@github.com |
3f1e308d19e893b1fe84b6721c00d7b57e975f55 | 3e8622172a0a31627234e75a07f8ce915b2c901c | /sentilizer_api/src/vader/vader.py | 769a1b202cb50bfa1f58fcd5b82efffb7bbb3180 | [] | no_license | PrajaktaShirke29/sentimentAnalysis | e7ef83f435b69b9ab05100e6fd2369b99dc3326c | d20a6bf5f3ef6f5003b12536d927716eb84af5ee | refs/heads/master | 2023-07-21T08:33:47.196285 | 2020-04-21T14:18:00 | 2020-04-21T14:18:00 | 257,611,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import argparse
from nltk.sentiment.vader import SentimentIntensityAnalyzer
import operator
if __name__ == '__main__':
parser = argparse.ArgumentParser(description = 'Vader Sentiment analyser')
parser.add_argument('-s', action = 'store', type = str)
args = parser.parse_args()
if args.s:
score... | [
"Prajakta.Shirke@harbingergroup.com"
] | Prajakta.Shirke@harbingergroup.com |
b34428c03f3dc5ed5527de94dfbd57c52ba5683d | 574e5ea9a23872bad38da2f41c60a0dec67e8149 | /cmd/templates/app/core/common.py | 80261a513c0513846ae262ac9605cf7e6fb40fac | [
"Apache-2.0"
] | permissive | ysyisyourbrother/brandnew-flask | 4c4ac5f4cc22507c3cef9dd1a5e55eee56351c6c | 5b83728d1312156f4e6c596f3ffc11f5def7dfae | refs/heads/master | 2023-06-25T22:12:32.219691 | 2021-07-28T17:44:52 | 2021-07-29T10:51:13 | 390,447,459 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # _*_ coding: utf-8 _*_
# Common helper functions for development
__author__ = "{{.Author}}" | [
"brandonye@qq.com"
] | brandonye@qq.com |
414908b6d2f0b67a5c1636a4d6d492fc710c1c6d | 71e4295f8642dabd5c9cd4a6717a7b39497596f6 | /generate_demo_data.py | c1c68cb7f6edd699e4cee738bfa85b8c1040639f | [
"BSD-3-Clause"
] | permissive | sixfeetup/PythonBooster_CSV | b464c1601d4534c9b90461e71c171abab0da46e4 | 8bab25edff355e1f793de4778ef603994e8e818c | refs/heads/master | 2021-08-29T08:48:45.501835 | 2020-06-30T17:49:42 | 2020-06-30T17:49:42 | 148,793,676 | 0 | 0 | BSD-3-Clause | 2021-08-23T20:43:20 | 2018-09-14T13:38:23 | Jupyter Notebook | UTF-8 | Python | false | false | 426 | py | import csv
from mimesis import Generic
g = Generic()
with open('games.csv','w', newline='') as f:
writer = csv.writer(f)
header = ['Title', 'Platform', 'Rating', 'High Score']
writer.writerow(header)
for _ in range(100):
row = [
g.games.game(),
g.games.gaming_platform(... | [
"calvin@sixfeetup.com"
] | calvin@sixfeetup.com |
e91848d3129b01eeac17497f4be7ff57f9e5a2d5 | 215cafb0a79338a2a268c19629f07df20cf68f76 | /venv/bin/pip-3.8 | 6de21cb3dcc8b330bf64648feb3896c8b6bb5f2d | [] | no_license | safwanvk/erp | c95741c5873ebaa53a8a96093928745e02000be9 | d4e427dbb6b71eb9aa6e2d15a039e2e669c53cbe | refs/heads/master | 2022-12-08T12:38:36.817514 | 2020-08-16T15:10:55 | 2020-08-16T15:10:55 | 287,913,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | 8 | #!/home/safwan/Desktop/projects/erp-pro/erp/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())
| [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
bdcc68d3b044dabea63235f27546be33eb8561a2 | 908b6096ddebd0ab62c39ece41e210951abb78ea | /season_scripts/toggle_staking.py | d9f2a40c29fb8bbc81fa606d225a1bf4a006995a | [] | no_license | han-so1omon/Token-Staking-Upgrade | 154f86ef2c32dc4e6357be8abf3f538c8636bd5f | 39282e4f11b6ff568a0d8a00f4b533448929aeba | refs/heads/master | 2020-03-31T16:04:11.438429 | 2019-01-26T18:46:10 | 2019-01-26T18:46:10 | 152,361,191 | 2 | 9 | null | 2018-11-30T21:02:16 | 2018-10-10T04:03:42 | WebAssembly | UTF-8 | Python | false | false | 610 | py | import subprocess
import argparse
from config import *
import sys
parser = argparse.ArgumentParser()
parser.add_argument(
"-s",
dest="on_switch",
help="1/0 turn on/off stakebreak")
args = parser.parse_args()
try:
on_switch = int(args.on_switch)
except:
print('on_switch must be an int: currently it... | [
"lucius.dickerson@gmail.com"
] | lucius.dickerson@gmail.com |
ecdd46216ba5a0bcaa02f2e1e21b9208c650fb0c | d542ff94db2e7d93fd87bf4780aad1170ef2605c | /zipscript.py | 783a369711a5fa56d89966b47e5703028c8cd9c9 | [] | no_license | ddo6/490Itinerary | 23488227801c47cbc9d6ac63c14dcf7095641dd4 | 2384c2e2cec56db36851d81b896a35594721e6d1 | refs/heads/master | 2021-01-24T16:33:43.514152 | 2018-05-10T17:07:39 | 2018-05-10T17:07:39 | 123,201,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | #!/usr/bin/env python
import zipfile
import sys
import os
version = input("What version is this? (Please contact admin if unsure) :")
def zip_folder(folder_path, output_path):
"""Zip the contents of an entire folder (with that folder included
in the archive). Empty subfolders will be included in the archiv... | [
"noreply@github.com"
] | ddo6.noreply@github.com |
7637392ea0f3d70bc4dd195e25a899139441b659 | f561eb1ec22cc8e980decdbc634b852857e0e0a0 | /json_model/libs.py | 4efda94a983cb941d235d777d7f46c1309a70aba | [
"BSD-3-Clause"
] | permissive | richlysakowski/json-model | 4db763b4f1351a3b36cf93c2adfcc409c8fcdbce | 370cc9273cdf88bbf1d95b3a488f3fcb486f99d8 | refs/heads/master | 2021-12-30T06:15:32.980153 | 2018-02-06T14:24:35 | 2018-02-06T14:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import json
from json_model.validators import Validation
class JsonModelBase(type):
@classmethod
def __set_fields(cls, namespace):
namespace['fields'] = []
for name, attr in namespace.items():
if hasattr(attr, 'field_type'):
namespace['fields'].append(name)
... | [
"slawek@thecapitals.nl"
] | slawek@thecapitals.nl |
5e60e4b3dc3fb76f42297185b977877bbdcf4dc6 | 86a72346ee1e501934d8ee657cd762e5af173335 | /hpshare/__init__.py | 3a328206ec24d469ab92471d2b8d023d97b99c47 | [] | no_license | n37r06u3/hpShare | 2cf54974cab50c4ecd95570a1f8a004b6c5f107e | b38af79751b5eb3e68486ac2775620f6ab58709c | refs/heads/master | 2020-12-30T19:10:53.096603 | 2015-02-15T08:49:02 | 2015-02-15T08:49:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created by i@BlahGeek.com at 2015-01-29
| [
"blahgeek@gmail.com"
] | blahgeek@gmail.com |
0ca25af8f9a6904667000b51d71a2b47c62013f5 | 4e206fe25d0389db9ec05d5c6795e6179c19dc6d | /stories/forms.py | 1c558771bc65ff027462a204be2668aba79ae52e | [] | no_license | elena/first-contrib | b053d73dd131b658db904abca7225646ecef82f6 | d7d94a4d9865c9881ed0505fa2049a7cbb55d3b3 | refs/heads/master | 2023-07-22T00:41:34.442794 | 2023-07-15T02:29:46 | 2023-07-15T02:29:46 | 17,080,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,345 | py | import calendar
from django import forms
from stories.models import Story
from crispy_forms import helper, layout
from ckeditor.widgets import CKEditorWidget
from crispy_forms.bootstrap import PrependedText
from crispy_forms.layout import Fieldset, Field, ButtonHolder, Button, Submit
NONE_TEXT = ' ---'
class StoryFor... | [
"github@elena.net.au"
] | github@elena.net.au |
65a9558526de57a3cce453bed9d0ada7b8144b71 | 015268e9e0fca38db052553cabcff3bf7ec000ac | /projeto_smge/projeto_smge/__init__.py | 75b0861c0504f2bd659fbb198f38d5fea3cc74e6 | [] | no_license | bussola/desativado | b3fb998e5b0e9097688a66d43746d4e40e6f6f37 | 03d1b92d755555da0f90dda457ac76033cdaffc4 | refs/heads/master | 2021-01-20T22:11:46.380787 | 2017-12-05T19:57:30 | 2017-12-05T19:57:30 | 101,802,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #from __future__ import absolute_import, unicode_literals
# This will make sure the app is always imported when Django starts so
# that shared_task will use this app.
#from .celery import app as celery_app
#__all__ = ['celery_app']
| [
"vbussola@yahoo.com"
] | vbussola@yahoo.com |
31bf11143eb70e639f5b01a1c13e7b84f495d5a7 | f1ed5dfb5e4e082bea000b01fc25eabd89d64ce9 | /youlil/frontend/web/handlers/topic.py | 854e86c299e4abe585d08791b92b7b332280e431 | [] | no_license | sharecqy/you-learn-i-learn | 8a5fd9fa248a3535463c2d18b4b1b9a965b4410e | 39a52ea3b332b70fdf037e13d1b15bbe1752fd90 | refs/heads/master | 2021-01-20T06:59:50.377356 | 2014-07-26T14:43:59 | 2014-07-26T14:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,287 | py | import tornado.web
from tornado.web import asynchronous
from tornado import gen
from web.handlers.base import BaseRequestHandler
from bson.son import SON
import datetime
import time
import markdown2
"""
This topic module is to provide some functions to let users communicate or discuss topics.
user could add a topic,v... | [
"qingyu.cqy@alibaba-inc.com"
] | qingyu.cqy@alibaba-inc.com |
726fdcd541c6b3cd7d6e08d9071d8e1a703bedd9 | 6b2bf44d986896dac8e5738ef18037e995adbb20 | /spass/serializers.py | 5ab5c91d18495c16ce35c35bb4a979b69211e7f2 | [
"MIT"
] | permissive | RobertoMarroquin/visor_spass | 394279a83d8c4cde59fe7e7f09a8570fe6ecbc94 | c5ad15ae69a728bffc5d63e028567da5f559719f | refs/heads/main | 2023-07-05T13:31:13.247470 | 2021-08-09T22:33:12 | 2021-08-09T22:33:12 | 388,918,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | from rest_framework import serializers
from .models import GovernmentPurchase, Job, GovernmentInstitution
class GovernmentPurchaseSerializer(serializers.ModelSerializer):
government_institution_id = serializers.SlugRelatedField(source='government_institution', read_only=True, slug_field='id')
government_instit... | [
"robma96@gmail.com"
] | robma96@gmail.com |
1d8e77394bd73508cee5a29ddb0c29f34fbbefe0 | cb83ef2c71bc0ca5cc9a4061a61093088cc9f3e6 | /experiments.py | 2c53d61a9065a708d831daafabb14d9d29e9bdd3 | [] | no_license | Vee27/Heart-Disease-Analysis | 1fa83618e8577f7e9d950ef403b79c920777938e | cc92fb89d6b4df85e2867e5ef39f5df531e325cb | refs/heads/main | 2023-04-19T20:40:59.909304 | 2021-05-04T16:59:28 | 2021-05-04T16:59:28 | 364,322,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | """
Heart Disease Analysis using ML algorithms from scikit-learn
(Logistic Regression, SVM, KNN, Gaussian Naiive Bayes, Decision Trees, Random Forest)
"""
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.svm import SVC
from sklearn.naiv... | [
"noreply@github.com"
] | Vee27.noreply@github.com |
9f2833105773edd29e1268cc3705ad9ff9dc2a1c | 98be00ee32971cade82d10c067aff532c3394a62 | /Competitions/Xtreme/xplore.py | f6e47c98fc808d7cc0c5fe1f897956f31365aa4a | [] | no_license | vigneshhari/Competitive_solutions | 5ab34933ea8d84eab67bdef9bb9e4562f6b90782 | 7a35e1386e5cff71cb5746b6797ccc0f03ceb3f4 | refs/heads/master | 2023-01-11T02:53:01.456863 | 2022-12-29T13:50:03 | 2022-12-29T13:50:03 | 115,146,700 | 4 | 2 | null | 2019-10-26T09:15:03 | 2017-12-22T20:03:51 | Python | UTF-8 | Python | false | false | 4,010 | py | import json
from collections import defaultdict
authors_citations = defaultdict(list)
for i in range(input()):
data = raw_input()
temp = json.loads(data)
citation_count = temp["citing_paper_count"]
for i in temp["authors"]["authors"]:
authors_citations[i["full_name"]].append(citation_count)
a... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
5e40148313d967893ab32e54903c81736a9b30fa | fbce960eb1c5c848fe294d7f5711d5a263780b81 | /preg_api/test_case_h5/test_expert_response/test_historical_Income.py | 8d922c49f9d2f25ba1281c5336e042118454c665 | [] | no_license | Crazy-bear/pregTest | 91033a8e91b74d9f2c68f5441264efc6ce374797 | 64c46d94a75057557e7a714e9ddbd7499ca5eb68 | refs/heads/master | 2020-06-19T13:01:01.497203 | 2019-07-24T12:07:54 | 2019-07-24T12:07:54 | 196,716,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/7/18 11:24
# @Author : Bear
# @Site :
# @File : test_historical_Income.py
# @Software: PyCharm
# 历史收入
import unittest
import requests
from preg_api.common.login import *
class HistoricalIncome(unittest.TestCase):
'''历史收入'''
def setUp(se... | [
"x_scorpio@outlook.com"
] | x_scorpio@outlook.com |
6d57c6855dd53ede783641ec65bed681aa69e10a | 1196fe960947b4a7d6bba5df6cdfc7010bb118fb | /examples/apikeys/apikeys.py | 8b921f815ddb9dc3eea6e33e1ad7b042f43026be | [
"MIT"
] | permissive | Nextdoor/sendgrid-python | a4afe5cda9015c7cf6a3a1303785fda05e844277 | a7c834b6391775b796969ef65a3ef259ccabf0f0 | refs/heads/master | 2021-01-22T11:12:08.221546 | 2016-04-22T21:20:07 | 2016-04-22T21:20:07 | 56,885,507 | 0 | 0 | null | 2016-04-22T21:11:50 | 2016-04-22T21:11:49 | null | UTF-8 | Python | false | false | 1,657 | py | import sendgrid
import json
import os
sg = sendgrid.SendGridAPIClient(apikey='YOUR_SENDGRID_API_KEY')
# You can also store your API key an .env variable 'SENDGRID_API_KEY'
##################################################
# List all API Keys belonging to the authenticated user #
# GET /api_keys #
response = sg.clie... | [
"elmer@thinkingserious.com"
] | elmer@thinkingserious.com |
924d6ab26e8bec12678ab7a53eb74bb6df50eb5f | e7e4272b1db42427bb0d689b609683ad04bfcfd2 | /ex31.py | a9c41ca463cde2622bdba09fe568419ef1f8fedd | [] | no_license | ZayX0/pythonthehardway | edfd4e286109e7033267c5bee7988c65927b5b5b | bd6ecc47fe2e4ad75f458b90f3ae5f1467736c7e | refs/heads/master | 2020-05-26T13:28:38.649890 | 2017-07-21T16:41:25 | 2017-07-21T16:41:25 | 85,001,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input("> ")
if door == "1":
print "Welcome to the Matrix, do you take the red pill, or blue?"
print "1) Red Pill"
print "2) Blue Pill"
pill = raw_input("> ")
if pill == "1":
print "That pill wa... | [
"ireed@indeed.com"
] | ireed@indeed.com |
df55ffe5751d160215654f44ca59df406536a410 | c03edd979ad6fd4a8abd155e3e63bcefbd93d5c2 | /Image/band_stats.py | 7b83630a66a15155d6b74a944ca88a2b17ef34e5 | [
"MIT"
] | permissive | xiangtaoxu/earthengine-py-examples | 538dafc88a22a351b762ba02df09db583df955bb | 76ae8e071a71b343f5e464077afa5b0ed2f9314c | refs/heads/master | 2022-11-03T03:16:11.933616 | 2020-06-12T15:47:52 | 2020-06-12T15:47:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py |
import ee
import geemap
# Create a map centered at (lat, lon).
Map = geemap.Map(center=[40, -100], zoom=4)
# get highest value
def maxValue(img, scale=30):
max_value = img.reduceRegion(**{
'reducer': ee.Reducer.max(),
'geometry': img.geometry(),
'scale': scale,
'maxPixels': 1e9
... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
6237c8ef3080a951cd2332c5cad12316c75816fd | a97a0a9f2b3cdd47e0637999312cdb2b1c89a81c | /DiplomaProject/urls.py | de1dec0f2bc900c3bbb35a2ff2720fa6fa7d183b | [] | no_license | dimatodorov/researchtranslator | cb65a33206471710a85fd9b698b20b5502045703 | 19f534a45e6c55727a424f39ec8de4980d2f6e41 | refs/heads/main | 2023-06-14T15:48:02.374014 | 2021-07-06T07:53:54 | 2021-07-06T07:53:54 | 383,379,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | """DiplomaProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Clas... | [
"dmitrijtodorov99@gmail.com"
] | dmitrijtodorov99@gmail.com |
88ff13ad78ec68d9136709107884863ba6d3744a | ca33751ab2f06c0aa0713fb31bf26fc27b11ac12 | /casestudy/thumb_generator.py | 8d8895897b5078d0b58a4fa3d45eef2f7ba1b1c6 | [] | no_license | Bert-Proesmans/NDA-WPO-1718 | 0b801fce6342869c44f7fca7100fbf906741a052 | 7e3dcb3eb8f949664c046c7bc9adc7e23ef96da8 | refs/heads/master | 2021-08-30T12:09:10.437698 | 2017-12-15T16:47:24 | 2017-12-15T16:47:24 | 113,320,809 | 0 | 0 | null | 2017-12-06T13:35:47 | 2017-12-06T13:35:46 | null | UTF-8 | Python | false | false | 358 | py | from PIL import Image
import glob, os
"""
Create thumbnail images in the current working directory.
Needs PILLOW to be installed!
(Works on Python3.X)
"""
size = 700, 700
for infile in glob.glob("*.jpg", recursive=False):
file, ext = os.path.splitext(infile)
im = Image.open(infile)
im.thumbnail(size)
... | [
"bproesmans@hotmail.com"
] | bproesmans@hotmail.com |
98514ddd3f18865987b28d44972d3f79f20cc8cd | fc81f937a325ff27c4d466ef7ea708d16c59376e | /brain_games/engine.py | 3ad225b5df73d6a97730a3a56d895e9b58994c16 | [] | no_license | Persimmonboy/python-project-lvl1 | e34b8fd9d93ff0d209439ec2436e3eddca232f14 | e6d9b6956f5f683513dea6707da2122702e0a97b | refs/heads/main | 2023-03-17T21:35:41.480824 | 2022-07-09T13:37:37 | 2022-07-09T13:37:37 | 233,594,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import prompt
def welcome():
print("Welcome to the Brain Games!")
def get_user_name():
name = prompt.string('May I have your name? ')
print("Hello, {}!".format(name))
return name
def run_engine(game_name):
i = 0
welcome()
name = get_user_name()
print(game_name.TASK)
while i < 3... | [
"shakhbazianartem@gmail.com"
] | shakhbazianartem@gmail.com |
9242782550ab6ddf1a26238b272e633e1ed1d3c8 | c342c8b9b2437d6474b9ae7da154ba47c6fc447c | /src/data/memory_store.py | 81d6cb406f3ba13f5011c2669584a64d0cdc0b4a | [] | no_license | nezaj/menu-api | 0d5118f3a1392f85e51700b5e8ac234bac605518 | bcf759b91893bf72821323c41f963923d9184e68 | refs/heads/master | 2021-01-10T07:09:15.664561 | 2015-11-16T21:28:45 | 2015-11-16T21:28:45 | 44,832,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | """
Store implementation using in-memory data
"""
import json
import os
from .store_interface import StoreInterface
class MemoryStore(object):
__implements__ = (StoreInterface, )
def __init__(self, data_dir):
self.data_dir = data_dir
self.data = self._load_data(data_dir)
def _load_data(s... | [
"joeaverbukh@gmail.com"
] | joeaverbukh@gmail.com |
7ebec6c0a7924a9438dc5a473cc822f219125df8 | 402ed5374ab189c8599b56864c5ce066f34b26c6 | /tests/test_pdf_normal.py | e1fa17bd053bb3771266064aae86ee311b5c241c | [
"BSD-3-Clause"
] | permissive | kailiu77/zfit | db354e9c3eb4a41274af5363834fe231823c6d66 | 8bddb0ed3a0d76fde0aa2cdbf74434b0ee0ae8bb | refs/heads/master | 2020-10-01T23:49:55.751825 | 2019-12-06T15:48:47 | 2019-12-06T15:48:47 | 227,650,723 | 1 | 0 | BSD-3-Clause | 2019-12-12T16:33:54 | 2019-12-12T16:33:53 | null | UTF-8 | Python | false | false | 2,899 | py | # Copyright (c) 2019 zfit
import numpy as np
import pytest
import tensorflow as tf
import zfit
from zfit import Parameter
from zfit.models.dist_tfp import Gauss
from zfit.core.testing import setup_function, teardown_function, tester
mu1_true = 1.
mu2_true = 2.
mu3_true = 0.6
sigma1_true = 1.4
sigma2_true = 2.3
si... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
5b10c950f8fcf1e96b9c084789c5eda625ace98c | af86b0e6af32771176b406e30dbcfd951cb64b26 | /monster1/models.py | cbfec7a0c1a7ab74bc622647d37f7a3e63ba8bc4 | [] | no_license | HALOGENMAN/monster | ca779acc3252a79a3b8a6f4cd671efebd2a742a0 | 31e39f58d0f7d9257e96f20f8d30e411390bac38 | refs/heads/master | 2022-12-18T00:55:52.198817 | 2019-12-04T16:50:18 | 2019-12-04T16:50:18 | 225,797,994 | 0 | 0 | null | 2022-12-08T06:16:47 | 2019-12-04T06:42:34 | Python | UTF-8 | Python | false | false | 222 | py | from django.db import models
# Create your models here.
class Data(models.Model):
name = models.CharField(max_length=1100)
email = models.EmailField(max_length=100)
def __str__(self):
return self.name | [
"Shayak.malakar.159@gmail.com"
] | Shayak.malakar.159@gmail.com |
5e825524eee64cc9ad540794c888975ee345791c | 4bd5f1f5d364ca59ca78522c797c959d356ad9a6 | /tutorial/items.py | 7df4b3707d282eaf58f0f4d602098a519bdf0bdc | [] | no_license | zhangzhang18/scrapy | 1af67be8313536016400edb72910c553e37798f0 | cc3e3ec126cebde04941ba440014d4faa92383ca | refs/heads/master | 2021-01-17T08:36:06.738176 | 2017-03-05T02:31:53 | 2017-03-05T02:31:53 | 83,939,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # -*- coding: utf-8 -*-
# items.py:用来定义需要保存的变量,其中的变量用Field来定义,有点像python的字典
import scrapy
from scrapy.item import Item, Field
class TutorialItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
parent_title = Field()
parent_url = Field()
second_title = Field()
seco... | [
"1326222521@qq.com"
] | 1326222521@qq.com |
3e70f5bce473ccd4c866c43a7f594f03af071dca | f569978afb27e72bf6a88438aa622b8c50cbc61b | /douyin_open/EnterprisePersonaPersonaCreate/api/__init__.py | d436a85b96fd99e2b5e5d7a6b654b4348bb48850 | [] | no_license | strangebank/swagger-petstore-perl | 4834409d6225b8a09b8195128d74a9b10ef1484a | 49dfc229e2e897cdb15cbf969121713162154f28 | refs/heads/master | 2023-01-05T10:21:33.518937 | 2020-11-05T04:33:16 | 2020-11-05T04:33:16 | 310,189,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from douyin_open.EnterprisePersonaPersonaCreate.api.enterprise_im_persona_create_api import EnterpriseImPersonaCreateApi
| [
"strangebank@gmail.com"
] | strangebank@gmail.com |
3be1a2bcc32f48f75753470e76bcfb598ff908c5 | 7179c77f220e5adf1354292c1d3069e0e37bd10f | /Rush00/moviemon/views/load.py | 1a0aedac92ea9e0a1b7a4fa0e255005123d2ce39 | [] | no_license | MishinK/Django_pool | 09d7244e5ba397dba2d3797b0c3fc6b08862d2dd | 484271c63c299c53bf59dacc2412927e818b8096 | refs/heads/main | 2023-09-03T18:14:01.176740 | 2021-11-11T06:23:45 | 2021-11-11T06:23:45 | 426,892,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | from django.shortcuts import redirect, render
from django.views.generic import TemplateView
from moviemon.utils.game import load_slot, load_slot_info
optionState = {
'slot': 0,
'isLoad': False,
}
class Load(TemplateView):
template_name = "load.html"
context = {
"btnA": "Load"
}
def ge... | [
"mka456@yandex.ru"
] | mka456@yandex.ru |
7b71ab524da218d37807a9e97239462be3bd6ee4 | ad02585a6698b7219ff71418fd23412d91941373 | /predict_naive/extract_gallery_features.py | 60580e1e68cb2b17975b3b5d451b686ea2954cb8 | [] | no_license | bmsknight/DensenetReID | b6d3e10f462a11521c28b59c6d07d7c01b99cc17 | b3d4bd1053a2ab5175245b6e581129d21dc4e1e1 | refs/heads/master | 2020-03-30T15:36:53.259940 | 2018-10-03T06:14:37 | 2018-10-03T06:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | import os
import pickle
from keras import Model
from keras.preprocessing import image
from keras.models import load_model
from keras.applications.densenet import preprocess_input
import numpy as np
from keras_preprocessing.image import ImageDataGenerator
trained_model = load_model('../market_trained_model_epoch5_resne... | [
"niruhanv@gmail.com"
] | niruhanv@gmail.com |
58506d8532bd19ab89a45b9d8de2155539bfb648 | a52029409372b6a31fd9ccb37ecfd18749db1c66 | /HW04/hw04.py | 6f30a0f80af67375d42899c038c9d635cab77a6b | [] | no_license | greenlodka/HW_Python | 6d169cedb9119ec1de6e9a04a846025dffa53a8c | 982f41c61ca80cf780c7aa6b4b4e312c0be02bc9 | refs/heads/master | 2023-06-05T04:59:13.766105 | 2021-06-26T21:25:35 | 2021-06-26T21:25:35 | 299,719,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | while True:
s = input("Введите слово: ")
if not s:
break
s1 = s.lower()
s2 = s1.strip("'!«»()-[]{};:'\\,= <>./?@#$%^&*_~'")
for i, letter in enumerate(s2):
if i < (len(s2) // 2):
print(letter)
| [
"green_submarine@mail.ru"
] | green_submarine@mail.ru |
75405ee23581b787a1027732cbd795beaff076ae | d184f941dfbbdc479fc7747bab5f7b2e625665a2 | /paginaPersonal/views.py | 59d99b4317cc57de7a84992a69e5391aeb7e9390 | [] | no_license | DanielRuiz14/mipagina | 67d62cc57636d46eaf7511c8783a6ab5102baaba | 8f021373c9e7db6f63a276664872f84b73da519d | refs/heads/master | 2023-02-15T23:22:45.354432 | 2021-01-15T13:50:54 | 2021-01-15T13:50:54 | 329,897,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def inicio(request):
return HttpResponse("Prueba de funcionamiento. Hola Fran") | [
"0619466123@uma.es"
] | 0619466123@uma.es |
d44f23bdc3a2ebd7b826cebb9d784a04528b90e6 | 5af277b5819d74e61374d1d78c303ac93c831cf5 | /tabnet/experiment_covertype.py | c00ea76b7c9058be7df642fae0d69184a435f921 | [
"Apache-2.0"
] | permissive | Ayoob7/google-research | a2d215afb31513bd59bc989e09f54667fe45704e | 727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7 | refs/heads/master | 2022-11-11T03:10:53.216693 | 2020-06-26T17:13:45 | 2020-06-26T17:13:45 | 275,205,856 | 2 | 0 | Apache-2.0 | 2020-06-26T16:58:19 | 2020-06-26T16:58:18 | null | UTF-8 | Python | false | false | 6,699 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
57d543bd339a845f929b5dfb54476a2082fe169e | ad9215878796db25f63f93f11608b5748726eafc | /shop.py | 202b240b8f52aeb1642369f09fba11f621fa6329 | [] | no_license | DmitriyZaika88/shop-automation-testing | 9ac84374451f48e6439aefc61573db6ad9b4bad1 | 6c4971465e32476bef5c064619a6557a8652e460 | refs/heads/master | 2023-07-14T00:54:28.340327 | 2021-08-23T10:05:27 | 2021-08-23T10:05:27 | 399,054,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,976 | py | import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium import webdriver
driver = webdriver.Chrome()
driver.maximize_window()
# Product page representation
#1
driver.get("http://pract... | [
"Dmitriydmz1997@gmail.com"
] | Dmitriydmz1997@gmail.com |
0e661a1faffd285eca4c6596e64d64cb048d3a80 | d6c8eca6a554a5e5456f59b01710ec383289c997 | /restroom_challenge.py | f8c0269c51010047fc7ca49a0289b2f61b319156 | [] | no_license | ospahiu/Code_golfs | 1b6e9e7fb8bd0581c8f664feeeaaa86a2ddd11b5 | eb95903f0c94fa6a665ad443b57822139d8a65b2 | refs/heads/master | 2021-01-11T00:27:43.209369 | 2016-10-10T22:03:35 | 2016-10-10T22:03:35 | 70,532,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # Answer to -> http://codegolf.stackexchange.com/questions/89241/be-respectful-in-the-restroom#89241
import itertools
# Non-golf
def find_furthest_stall(input_string):
input_string = input_string
a = [not bool(int(i)) for i in input_string]
y = {i : item for i, item in enumerate(a)}
d = {i : abs(i[0]-i[1]... | [
"noreply@github.com"
] | ospahiu.noreply@github.com |
7d8af894f2c76cc47cf868d00ed53d834dc11006 | 138f2550bb088a0597e1e71124d9ae32b1fe59c9 | /xbrr/edinet/reader/element_schema.py | b78030ff98b2a4b89b4ca5131bc6e0a11deb5645 | [
"MIT"
] | permissive | chakki-works/xbrr | 9009539e1821c3d9c815f694eb52158ccbbeeb78 | a9783acbb6c23eb0be0e1fbfb47e5b0b0e2cbfb8 | refs/heads/master | 2022-07-22T22:30:17.054418 | 2021-06-16T13:27:40 | 2021-06-16T13:27:40 | 182,622,738 | 23 | 5 | MIT | 2022-07-15T18:42:36 | 2019-04-22T04:26:21 | Python | UTF-8 | Python | false | false | 1,947 | py | from xbrr.base.reader.base_element_schema import BaseElementSchema
class ElementSchema(BaseElementSchema):
def __init__(self,
name="", reference="", label="", alias="",
abstract="", data_type="",
period_type="", balance=""):
super().__init__()
se... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
bb394288997b3ae09c3bf5e93b767c0a5aa8fcdb | 7ad616ab89e9b67bd27df2df3c8ca7487c5e4564 | /ood/4_stack_overflow.py | 102433a9d98dbc8f0d47c4101d2b370291a90a1b | [] | no_license | zihuaweng/algorithm-snacks | cd7643c7d80d0bcb680336231214c1700fe74cc9 | aa3d88f861bb8b0aceb7ef6c6d05523f54202d77 | refs/heads/master | 2023-01-13T11:03:04.395542 | 2020-11-10T04:42:41 | 2020-11-10T04:42:41 | 149,380,311 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | #!/usr/bin/env python3
# coding: utf-8
class QuestionStatus(Enum):
OPEN, CLOSED, ON_HOLD, DELETED = 1, 2, 3, 4
class QuestionClosingRemark(Enum):
DUPLICATE, OFF_TOPIC, TOO_BROAD, NOT_CONSTRUCTIVE, NOT_A_REAL_QUESTION, PRIMARILY_OPINION_BASED = 1, 2, 3, 4, 5, 6
class AccountStatus(Enum):
ACTIVE, CLOSED, CANC... | [
"zihuaw2@uci.edu"
] | zihuaw2@uci.edu |
2421b66b402fbd831d2d695ed5f8d3c492c5cbe2 | 065b20697aa6479b52a064ad1362ce1278cfb939 | /users/migrations/0002_testtable.py | f2e7d5e740944ad3d0a7563cfdbd7953e72c7a15 | [] | no_license | RagnarSmari/redstarcereal-dev | 8ca8169dc06f24dec527ab6eec7c2f1560b94adc | 05c17d31693015b1bc97fe46304fdf7c7cd17b0f | refs/heads/master | 2023-04-20T05:04:00.514162 | 2021-05-14T22:53:06 | 2021-05-14T22:53:06 | 363,891,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Generated by Django 3.2 on 2021-05-03 09:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TestTable',
fields=[
('id', mo... | [
"arnist91@gmail.com"
] | arnist91@gmail.com |
e4d0cbc32a9cf12c10502cc359e90a7d7aa975a6 | ea77dabd55623cd9352b991fd08d7900eceea70f | /perch/errors.py | 125cf83f87aed1c34ea8b7b6116e1bd78d71b4a6 | [
"BSD-3-Clause"
] | permissive | BrianHicks/perch | 688c604e47d939620e7a50a05e1385632fcc7673 | 2d4ae099422745836361ade069723f6f6cb33fef | refs/heads/master | 2020-04-12T02:44:26.403224 | 2013-10-11T16:19:05 | 2013-10-11T16:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | class PerchError(Exception):
pass
class BadRunner(Exception):
pass
class BadExit(Exception):
pass
| [
"brian.hicks@rockfishinteractive.com"
] | brian.hicks@rockfishinteractive.com |
b208e49da531e72d4264b91f912ebd1523d749d6 | 731c3f2f85f6002725322eedc0b2c8b5e74f610e | /0-jakc/jakc_hr/__openerp__.py | 2df1fff1bd5ba0cb87ac4230b96c9fe3ed3e6001 | [] | no_license | babarlhr/project-0021 | 1ac824657f893c8f25d6eb3b839051f350d7cc9d | e30b8a9f5d2147d3ca5b56b69ec5dbd22f712a91 | refs/heads/master | 2021-09-22T15:45:47.431000 | 2018-09-11T14:59:49 | 2018-09-11T14:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # -*- coding: utf-8 -*-
{
'name': 'Jakc Labs - HR Enhancement',
'version': '9.0.0.1.0',
'category': 'General',
'license': 'AGPL-3',
'summary': 'HR Enchancement',
'author': "Jakc Labs",
'website': 'http://www.jakc-labs.com/',
'depends': [
'hr'
],
'data': [
'views/... | [
"wahhid@gmail.com"
] | wahhid@gmail.com |
1e675ea36d339816edb3d3368dcdddf19a443116 | 9a8b2183171b35ad11c0021479be1d7b905544b4 | /Code/Learning/checking_sgd_weight.py | 07f3badcfdcd0516abb2886cae77c614f0e4bbe8 | [] | no_license | Serhiy-Shekhovtsov/KDD-Cup | e6977e06c549905aa7a3e1508526bd0a79e6972f | d4470117865d68b588afd4f7440128ef4dfd231e | refs/heads/master | 2020-12-24T17:44:33.565903 | 2015-06-03T20:52:27 | 2015-06-03T20:52:27 | 35,604,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import cPickle
import csv
import numpy as np
import random
from numpy import squeeze
import pandas as pd
from sklearn import svm, cross_validation, preprocessing, ensemble
from sklearn.decomposition import TruncatedSVD
from sklearn.linear_model import SGDClassifier
from sklearn.metrics import roc_auc_score
from decompo... | [
"Serhiy.Shekhovtsov@gmail.com"
] | Serhiy.Shekhovtsov@gmail.com |
3a1fe4c62e23309f597c1d3b676e04e3f0075837 | e9bd0c269d33a2f2492987b095d06afa1246e723 | /practico_vectores/ejercicio2.py | 2c709d94d5583cdb6ac9a7709290937f25c3c468 | [] | no_license | Nelcyberth86/IntroProgramacion | 08378388293f8662300469936275007cc84e3ace | 2a054ecd36402f3b41aceaeeeec0bd04a07335ba | refs/heads/master | 2023-01-21T12:16:12.090547 | 2020-12-04T22:12:38 | 2020-12-04T22:12:38 | 296,443,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #Diseñar un programa que lea como entrada dos vectores de tamaño 5 y devuelva el vector suma.
#Ejemplo: si tenemos los vectores V1 = (a1, a2, …, a5) y V2 = (b1, b2, …, b5) el vector suma se define como el vector obtenido
#de sumar componente a componente: V1 + V2 = (a1+ b1, a2+ b2, …, a5+ b5).
#import array as np
v1 =... | [
"mishel.maraz2003@gmail.com"
] | mishel.maraz2003@gmail.com |
b368bdacb89515b66e15c2e2a308319970ccdfe3 | b80875542b4ccd8edd533faf85e96a83361a61f7 | /WebSite/wsgi.py | 9c932aed3e4a9f37d257028c944f037f63f40eb6 | [] | no_license | Vitaly00700/my-first-app | cbe262594aeef519218a2787c1950f8077897af1 | da158c7db7989fe6f04ca7d786a5f79750f0a441 | refs/heads/master | 2021-01-19T08:41:19.797129 | 2017-04-08T20:38:39 | 2017-04-08T20:38:39 | 87,663,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for WebSite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"My@mail.com"
] | My@mail.com |
91b6b76a311bc1f86fdb741e4608f8220dbde146 | 30d61ce0b728f31a830db6b6b1954a32551990b2 | /src/gui_config/custom/sr_source_mode_tab.py | b2a24e0a0387ec82695aca2a32af5633db14603c | [
"MIT"
] | permissive | hgiesel/anki_set_randomizer | 6755dc8489b703887c55a5427bbbdab858f58a65 | 1a9a22480eb6c0e7f421dc08d36d14920e43dd3e | refs/heads/master | 2022-08-24T05:45:13.339132 | 2020-01-15T17:04:26 | 2020-01-30T13:56:50 | 197,258,760 | 5 | 0 | MIT | 2022-07-20T17:28:42 | 2019-07-16T19:56:27 | JavaScript | UTF-8 | Python | false | false | 1,391 | py | from aqt.qt import QWidget
from ...lib.config import deserialize_source_mode, deserialize_cloze_options, deserialize_occlusion_options
from ..sr_source_mode_tab_ui import Ui_SRSourceModeTab
class SRSourceModeTab(QWidget):
def __init__(self):
super().__init__()
self.ui = Ui_SRSourceModeTab()
... | [
"hengiesel@gmail.com"
] | hengiesel@gmail.com |
0d0984c7488238d344fdb54c616d0b315b496f66 | 8d5de5544d72635a37395fe681a73fd8c7c79004 | /tv_ratings_frontend/ratings_frontend/urls.py | e98cdeca775bfa7fc6c87392881ffe44f8f9051a | [] | no_license | OktayGardener/AIProject | 84d195add957ade2021ae359d6648548e7f17103 | abc8f897872451618dc85ee5ddc0cff718084f6a | refs/heads/master | 2021-01-15T11:30:49.857033 | 2016-01-28T21:33:45 | 2016-01-28T21:33:45 | 43,515,388 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.conf.urls import url, patterns
from ratings_frontend import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^search/$', views.search, name='search'))
| [
"bcoopercs@live.com"
] | bcoopercs@live.com |
832720b68f71395bcb1f886ad4f682245dcbca17 | a13795d2aa56dab51e4dd723954332c110ade546 | /trove/backup/state.py | b0c4676622dcdfa3250316210b718a27fc2f09ab | [
"Apache-2.0"
] | permissive | phunv-bka/trove | 5304903b413e487d3c2c03560f4a08fbde4db70d | 2d301d0a21863c6c0fbb9e854c7eb8ad8f19bbc1 | refs/heads/master | 2020-09-22T17:13:40.048544 | 2020-02-02T22:45:40 | 2020-02-02T22:45:40 | 225,281,715 | 1 | 0 | Apache-2.0 | 2019-12-02T03:59:00 | 2019-12-02T03:58:59 | null | UTF-8 | Python | false | false | 913 | py | # Copyright 2014 OpenStack Foundation
# 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 requ... | [
"robert.myers@rackspace.com"
] | robert.myers@rackspace.com |
223bd273f49b7e533b590ec4dc1f9394ef62d3c7 | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /bin/Python27/Lib/site-packages/OMPython/OMTypedParser.py | a0e4c90b6d536f97341c456f18de90f519d82e80 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 4,041 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Martin Sjölund"
__license__ = """
This file is part of OpenModelica.
Copyright (c) 1998-CurrentYear, Open Source Modelica Consortium (OSMC),
c/o Linköpings universitet, Department of Computer and Information Science,
SE-58183 Linköping, Sweden.
... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
6ddbc8154053d1a105be3ce47e7b58a27e253eb8 | de479d4a8af0e070b2bcae4186b15a8eb74971fb | /cn/iceknc/study/k_python_mini_web/__init__.py | 2c29f9732decc87fd29a825cf08dd49ab11e8eb8 | [] | no_license | iceknc/python_study_note | 1d8f6e38be57e4dc41a661c0a84d6ee223c5a878 | 730a35890b77ecca3d267fc875a68e96febdaa85 | refs/heads/master | 2020-05-19T18:44:55.957392 | 2019-09-27T01:15:54 | 2019-09-27T01:15:54 | 185,160,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
# @Author: 徐志鹏
# @Date : 2019/5/29
# @Desc :
def main():
pass
if __name__ == "__main__":
main()
| [
"xzhipeng@lifecare.cn"
] | xzhipeng@lifecare.cn |
f66be245d49c0500c212fbf3f7565976f9419b1f | 80755ce68bf894bfa7c7cec50051b18a6069c552 | /nkamg_malware/collector/samples/file_monitor.py | 0d59cd857a599c427bd46b6fa686fa151a915729 | [
"Apache-2.0"
] | permissive | NKQiuKF/malware_update | 6538c9308dd7b476b687fca4ea120209207257bc | a875b5011fee2486da5618e01da61d730d6ac0dd | refs/heads/master | 2022-10-17T09:08:34.605641 | 2019-09-02T09:00:45 | 2019-09-02T09:00:45 | 205,817,190 | 0 | 0 | null | 2022-10-06T18:33:50 | 2019-09-02T08:59:47 | JavaScript | UTF-8 | Python | false | false | 2,497 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Nankai University Information Security
#QiuKF 1055419050@qq.com
#get file results at fixed time
#create processed.csv at sub dirctories
#create Total_File_Data.csv at /collection
from multiprocessing import Process,Pool
import os
import pandas as pd
import time
import sy... | [
"453341288@qq.com"
] | 453341288@qq.com |
8e52ad24863a5c0430c1ebff7ba718862d63854b | 518d14bbb2e3a417baeabbfdcf39a636c66cdf96 | /test.py | d943a45a421a8ed204768df2d1797c230535163b | [] | no_license | vladimirstarygin/Dali_samplers | 4139757f8cac9e78c8976a866c360e0cc66e12c0 | 8eb201d8f428fd3724db483bfa4407b9e94e5597 | refs/heads/main | 2023-07-16T10:27:49.944998 | 2021-08-19T09:01:41 | 2021-08-19T09:01:41 | 397,875,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | import nvidia.dali.fn as fn
import nvidia.dali.types as types
from nvidia.dali.pipeline import Pipeline
from collections import Counter
from dsampler.samplers.simple_sampler import SimpleSampler
from dsampler.samplers.random_sampler import RandomSampler
from dsampler.samplers.balanced_sampler import WeightedRandomSampl... | [
"vladimir.starygin@tevian.ru"
] | vladimir.starygin@tevian.ru |
d11fcc621b8ff6431ec6612fc692ddbf576a5e4a | d484fee99ae905a82ebb1185ef9fa2c203e0d81a | /utils/time_tool.py | 4c2b771ce4ad558f2efecb6d7cb95062468c3022 | [
"Apache-2.0"
] | permissive | liqiwudao/job | f64a3354707715bd0effa6b072ae86c74614f76c | de95c56627336060234755ab8bbe0510ed112573 | refs/heads/master | 2021-01-25T11:14:18.697252 | 2017-06-10T04:22:08 | 2017-06-10T04:22:08 | 93,915,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | # -*- coding:utf-8 -*-
import arrow
from functools import partial
import time
import datetime
def comment_time(now, date):
difference = int((now - date).total_seconds())
if difference < 3600:
r_time, remainder, = divmod(difference, 60)
r_time = r_time if not remainder else r_time + 1
r... | [
"zjw2227680283@qq.com"
] | zjw2227680283@qq.com |
8180678a33cdb2dffadc6c12d15a0a4bd2b9f267 | 4553a804b8410b37eeb49d4c106afc39f4f49f0b | /Linear Regression.py | 5cc2715b830119c370869d6ed58d14e6244ae0bc | [] | no_license | SwaraDeshpande/Linear-regression | af763232afbdf5b3a0b07786099c15ea8d0d2dfb | 79864fdf3e3eea5c49afc0e5f6125149aba9321e | refs/heads/master | 2020-12-31T20:44:17.294464 | 2020-02-07T22:10:51 | 2020-02-07T22:10:51 | 239,024,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# In[2]:
# write your code here
import numpy as np
import pandas as pd
import matlablib.plot as plt
import pylab as pb
from sklearn import linear_model
get_ipython().run_line_magic('matplotlib', 'inline')
get_ipython().system('wget -O FuelConsumption.csv https://... | [
"noreply@github.com"
] | SwaraDeshpande.noreply@github.com |
511798e6d590c52b0ee9951d0b743ac2aaca2d67 | a1a99f8e7b2d790562707895acaba9d973e84add | /env/bin/pip3 | 459cd0f051d8f816c5f37fbb0c5906f5ff4af43a | [] | no_license | BartSu/Python_Flask_API | 766042cf6d6100d65855db9bde9895b028fca1e7 | 3c9448e8861125ccef38fb5312cde4e01ebaa91b | refs/heads/master | 2020-08-12T18:58:56.732314 | 2019-10-13T13:27:37 | 2019-10-13T13:27:37 | 214,824,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/BartSu/Desktop/project/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"subo@kean.edu"
] | subo@kean.edu | |
aad94c1ec526a6e1682bdd067423c5046f7a44bc | 1250846cadc2538fb0ded57a41e6ec01492c89b1 | /mask.py | 68c78068fffadc8b9b35a1caf9287b1039fc913f | [] | no_license | PradhyuS86/Legacy-with-Flask-API | b1330a1312ed38de537881441e52f7a94368f2f0 | 16e071908ca07d6bf4fd76dceb78969e9d081702 | refs/heads/master | 2021-01-20T15:31:47.764009 | 2017-05-09T19:06:55 | 2017-05-09T19:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
import logging
import re
import six
from collections import OrderedDict
from inspect import isclass
from .errors import RestError
log = logging.getLogger(__name__)
LEXER = re.compile(r'\{|\}|\,|[\w_:\-\*]+')
class MaskError(RestErro... | [
"noreply@github.com"
] | PradhyuS86.noreply@github.com |
9b900d3fa4cad7cbc4bed1a9c17a96a974529dae | 6b6667b5d2e59265fbfcdc3974b6384b93340df3 | /hdiyf/utils.py | c45d28411143b875ad2f0ebb85bd786251e370c4 | [] | no_license | lmanhes/hdiyf-backend | e62f00b160575519df4dc03e14c9ee37333d1731 | 494210e1e346b06c9079810c822608cf4d7f923c | refs/heads/main | 2022-12-31T08:27:35.917704 | 2020-10-12T18:22:01 | 2020-10-12T18:22:01 | 301,686,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | import numpy as np
import torch
import torch.nn as nn
from gensim.models import KeyedVectors
def calculate_maxlen(docs, percentile=90):
return int(np.percentile(np.array([len(doc) for doc in docs]), percentile))
def init_embedding(input_embedding):
"""
Initialize embedding tensor with values from the un... | [
"narraflow@gmail.com"
] | narraflow@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.