blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77e13c60ab887ef65af5d208fbcad6ac63b78f87 | f067b46c0bd8bf4fbc2471c42c4a74cb08359bd5 | /server/config/settings/components/thumb.py | 6b24b0bc3fdca3195cad3f422c9b6577525857e0 | [] | no_license | bopo/project-template | ffbf3516c9f486fadb46a767688cb26badda6a3d | 0eedd18c236b66516e543750673934f4932555ca | refs/heads/develop | 2020-03-23T01:57:29.471378 | 2018-07-17T05:38:48 | 2018-07-17T05:38:48 | 140,947,688 | 0 | 1 | null | 2022-04-21T04:40:56 | 2018-07-14T13:18:49 | Python | UTF-8 | Python | false | false | 1,330 | py | # -*- coding: utf-8 -*-
# INSTALLED_APPS += [
# "django_thumbor",
# ]
# INSTALLED_APPS += ('easy_thumbnails',)
# THUMBNAIL_ALIASES = {
# '': {
# 'avatar': {'size': (50, 50), 'crop': True},
# },
# }
# THUMB_LIST = '500x500'
# THUMB_DETAIL = '800x800'
# The host serving the thumbor resized images... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
14b6673a73fd4152a4af7be21d6eb6e4233c7f7e | 944401a6292baa2d23b9738898e0b0cb199d0795 | /color_quantization/octree/img_quality_assessment(IQA)/psnr/rgb_cs/rgb_psnr_sky.py | cdd42100b4527e977262e59e0ed94e2810f09ba1 | [] | no_license | sunnyweilai/Finding-Theme-Color-Palettes | cc84c93ce58abdd1802431c41bd59181d7a4f75b | 4c38b112f5c40b43d6ec126e415b609c7fdc1f39 | refs/heads/master | 2022-12-21T09:41:31.187411 | 2019-04-30T14:50:17 | 2019-04-30T14:50:17 | 184,273,925 | 1 | 0 | null | 2022-12-07T03:46:55 | 2019-04-30T14:09:52 | Python | UTF-8 | Python | false | false | 1,028 | py | """
image quality assessment (IQA) of the quantized images and the original image in RGB color space
----- method: PSNR
----- version 1.0 ("skimage" library)
----- http://scikit-image.org/docs/dev/api/skimage.measure.html#skimage.measure.compare_psnr
"""
import numpy as np
from PIL import Image
import glob
import csv
... | [
"wnn2260@gmail.com"
] | wnn2260@gmail.com |
368933543f3030bfc38b32795b89b4bccf0c2b47 | d8c1419eba8aeec8c203e819aae46475b744a66f | /archive/main.py | e6f339fa6539de2f2ff591d9c551fbb00f096b86 | [] | no_license | StefenYin/yeadon | a66aa1808ef662c76cd5d96db0f74cd25e3abcc7 | 03ae2c5881795e44f1890818fcb3530ba3c6feac | refs/heads/master | 2021-01-17T08:50:12.313236 | 2012-12-18T19:54:52 | 2012-12-18T19:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import stadium as stad
#import segment
import human as hum
import matplotlib.pyplot as mpl
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import data
import densities
# INPUTS ARE 95 MEASUREMENTS, DENSITIES, AND ORIENTATION ANGLES
# read input file of 95 measurements
# create solid objects
# create segm... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
3c845b7e58c6b79f531cda02a940c22b1d703558 | ddbeb902aac1095e704f8dbd785c80b5054fd61c | /rango/models.py | a302b7c2f19e71a49547c30ee73ebd2278d7e3d7 | [] | no_license | Zhang9494/tango_with_django_project | ba355fcbd2cf201a6e849b31edbc615fd1472595 | 75e77cf6bdf1a7fcef1f02144ce9eaccc4aedfab | refs/heads/master | 2020-04-22T02:02:56.283865 | 2019-02-12T15:53:27 | 2019-02-12T15:53:27 | 170,034,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.db import models
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=128, unique=True)
views = models.IntegerField(default=0)
likes = models.IntegerField(default=0)
class Meta:
verbose_name_plural = 'Category'
verbose_name = 'Category'... | [
"2410728Z@student.gla.ac.uk"
] | 2410728Z@student.gla.ac.uk |
b054c26aafaec13538eb27a9368e36aabd141663 | 5da914bac3349b7ddbc31b17e43e9da99ae8f462 | /Ultimo Backup Server/node_modules/websocket/build/config.gypi | 46dc3b48213b03d7ddb4dbb87ef42c1eb094d654 | [] | no_license | marox360/Cemin-Marogna_workspace | 0bcd9fa5f508b250b0b57b4dc21254a9f24a64d1 | 63c630d95ca523f2e079b7d3831a6b45daca55bf | refs/heads/master | 2021-03-12T23:16:34.845956 | 2014-11-16T11:54:25 | 2014-11-16T11:54:25 | 10,483,752 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 296 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"defines": [],
"include_dirs": [],
"libraries": [],
"default_configuration": "Release"
},
"variables": {
"target_arch": "arm",
"target_version": "0.6.17"
}
}
| [
"lmarox@gmail.com"
] | lmarox@gmail.com |
3b7f9e6dbe9c7e658110923f1a4756af7ddbc9ba | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_274/ch134_2020_04_01_11_05_19_507472.py | ead9069b851dccdce2014878c391a3cdbe73018b | [] | 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 | 174 | py | def verifica_quadrado_perfeito(n):
m=n
i=2
while m > -1:
m=m-i
i=i+2
if m**2 == n:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
08a31863c9164c94e5f21abf17a85789d3e0e5c6 | dfdd59d51c13adb6a9dde46fa1b184dde016bcad | /model/load_data.py | d2c1f7c14e41991a79e1aebec477dd14269da80e | [
"Apache-2.0"
] | permissive | googleinterns/cl_analysis | bf0e64e79d704e9fb7bba44751efffd6084fe80e | 686cf49cd57ce61cba3cc11f0574b2a2cec596be | refs/heads/master | 2022-12-16T03:56:34.473083 | 2020-09-26T06:44:12 | 2020-09-26T06:44:12 | 277,630,242 | 5 | 3 | Apache-2.0 | 2020-09-26T00:01:06 | 2020-07-06T19:26:14 | Python | UTF-8 | Python | false | false | 14,091 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"pelny@google.com"
] | pelny@google.com |
0caed19093b2bb8c8baa715f300078ce5af57891 | bd5b5363f4924ded1f18a0511a9c8a5b6183417a | /python/gopher/menu.py | 1bbc5f5bbf04f1cd2eac1df88bbb76aa20eca0d2 | [
"MIT"
] | permissive | blabber/harbour-gophish | bd05970770a6704ae2722d69ad9e5fd57a9c55de | f864c02b4eec3b0396dc50a37c46ac1326749407 | refs/heads/master | 2021-08-24T01:16:54.144364 | 2017-12-04T12:12:12 | 2017-12-04T12:12:12 | 109,180,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | """Contains functions and classes for the interaction with gopher menus and its
items.
"""
class MenuItem:
"""Represents an item in a gopher menu."""
def __init__(self, type, user_name, selector, host, port):
"""Initializes a new MenuItem instance.
The parameters correspond to the menu item c... | [
"tobias.rehbein@web.de"
] | tobias.rehbein@web.de |
4e3c0ef1f25cdcd986f146665468ac1c76395c52 | fac16ad71ac9b09afc9abf0528a98171ac02afc4 | /payment/payments/migrations/0003_category_product.py | ada7734a9c41e562f17f56d3edb03d1a44dd48c7 | [] | no_license | evansmwendwa/payment_gateway | 96dbaf3728ebe4e0875152c96ecfbe7b7004dd98 | afdeab38524ded46d1e557bab696afca9c387e7b | refs/heads/master | 2020-03-10T09:38:25.395169 | 2018-04-12T23:52:34 | 2018-04-12T23:52:34 | 129,314,383 | 0 | 0 | null | 2018-04-12T21:44:34 | 2018-04-12T21:44:33 | null | UTF-8 | Python | false | false | 1,097 | py | # Generated by Django 2.0.3 on 2018-03-26 03:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('payments', '0002_auto_20180326_0248'),
]
operations = [
migrations.CreateModel(
name='Category'... | [
"you@example.com"
] | you@example.com |
9c455ce4b8af925afea25a90680844bd0cd02e46 | 301b039050c00a9efa4f3a5635e8b633f8adf988 | /caffe2/python/layers/functional.py | 08612d21a4babfe8b412473834b03ea02a2621a1 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | sunpan822/caffe2 | 9704b6fe556d272fbedfd6edfdb796f6a8f02970 | a3c56d892eb85054b4e7cbd1cf0a0d07422ae796 | refs/heads/master | 2020-04-12T14:31:45.919799 | 2019-04-19T04:10:40 | 2019-04-19T04:10:40 | 162,555,100 | 1 | 0 | Apache-2.0 | 2018-12-20T09:14:48 | 2018-12-20T09:14:47 | null | UTF-8 | Python | false | false | 5,022 | py | # @package functional
# Module caffe2.python.layers.functional
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core, schema, scope, workspace
from caffe2.python.layers.layers import (
Mode... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0393192c5cd8c5fc21ce700e982b2dd3237f6f73 | 2ecfe34de36a0090154fb3a4fcb5785ce974eb09 | /GUI/RemoteBrowser.py | aa382124744e096fb2f815875bc75bb72676cc0a | [] | no_license | javiunzu/conan-gui | f362d39e14f1c5fba4ddcea93b7f14c8ea828116 | 681337f50abc6062cc504b7149dfcd1d90cbf635 | refs/heads/master | 2020-03-27T00:25:54.661918 | 2018-08-21T21:46:11 | 2018-08-21T21:46:11 | 145,622,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QApplication, QMainWindow, QAction, qApp, QTabWidget, QSplitter)
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon
import json
import ConanCommander
#import MenuBar
from GUI import NavigationPanel
from GUI import PackagePanel
from GUI imp... | [
"javiunzu@gmail.com"
] | javiunzu@gmail.com |
e3f53a3a413ada1afe4a2375cc0ac058751e6347 | c8bb293178969cb8974079b8c9e14c56f53bfbeb | /python2.7/site-packages/tinyrpc/protocols/jsonrpc.py | fa0875b17dd58f306455aeb3acd6166f78a5eb9b | [] | no_license | ahaWDY/ryu-controller | a322833db49910e5630f72291890e495adf12ab2 | 13c704c0a061901aaf8d2d2f77d6b5f2d8189536 | refs/heads/main | 2023-02-25T05:45:21.516870 | 2021-02-09T19:19:23 | 2021-02-09T19:19:23 | 323,458,834 | 1 | 1 | null | 2020-12-21T22:27:53 | 2020-12-21T22:08:49 | Python | UTF-8 | Python | false | false | 10,573 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import inspect
import json
import sys
import six
from .. import (
RPCBatchProtocol, RPCRequest, RPCResponse, RPCErrorResponse,
InvalidRequestError, MethodNotFoundError, InvalidReplyError, RPCError,
RPCBatchRequest, RPCBatchResponse
)
if 'jsonext' in sys.modu... | [
"2503131624@qq.com"
] | 2503131624@qq.com |
98185120c68f6d1b952e23770e01e5e6897e04b1 | ea198bd6cf9b6c7cfa758b47807cf76279f4b049 | /Safety/users/migrations/0003_remove_user_radius_scan.py | c939b39ffb6f313db6133ca0f8b88484a4f4e128 | [] | no_license | hxt365/Safety | 2294e92e48ff1598a8a878e998f28fdf7f1eca8f | 0267337a5b4191e2b4c6fcc96c6493f3bcd47db1 | refs/heads/master | 2023-03-24T21:42:47.150843 | 2021-03-23T08:01:04 | 2021-03-23T08:01:04 | 334,204,269 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # Generated by Django 3.1.4 on 2020-12-04 23:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20201204_0111'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='radius_scan',
... | [
"hxt365@gmail.com"
] | hxt365@gmail.com |
2a7cf01986d9df5b9680b2ea1ec075516674419f | 1e42fb25742cf029d6ad96242b1178f7d76add44 | /classes/api/BitAPI.py | 40e377a9eb8e6274a29f95dadd3bd269f0365ae0 | [
"MIT"
] | permissive | WongLynn/bitfinexbot | bfc3e707f7429be768dba7f3374009e0c407f685 | b7b12bbb2e48eaf0d4d92d2190f8f85f546e47cb | refs/heads/master | 2020-03-11T21:07:52.951966 | 2018-01-05T16:51:56 | 2018-01-05T16:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,318 | py | #!/usr/bin/env python
import requests
import json
import base64
import hmac
import hashlib
import time
import functools
class BitAPI:
"""
For reference and to make a valid code, im using code developed by dawsbot.
Check his repo: https://github.com/dawsbot/bitfinex
"""
def __init__(self)... | [
"rdenadai@ccuec.unicamp.br"
] | rdenadai@ccuec.unicamp.br |
1bc9840697ceb026d50ea0fff544febc007b4d99 | 0c1cd8ae58f8b0b8eda2b682ac071cd31c25bfa0 | /scripts/layout_constraint.py | 7fe105a047e34c5e1320fa9bef47bd9847a12fb1 | [
"MIT"
] | permissive | gemsi/cocoa | b3a64fae5bb9112b9eec0653e5dc230592827c65 | 834a1ee556bbafed27bc0b2b5a2ca3be271e2b01 | refs/heads/master | 2023-01-28T17:13:22.873526 | 2020-12-09T05:35:44 | 2020-12-09T05:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,267 | py | #!env python3
from generate import Component, Property, Method, Return, Param, init_method
if __name__ == "__main__":
w = Component(
Type="appkit.LayoutConstraint",
super_type='foundation.Object',
description="the relationship between two user interface objects that must be satisfied by t... | [
"dongliu@kuaishou.com"
] | dongliu@kuaishou.com |
196076833a5592428b92e52569b4b23032a18e2c | 7c241ec2d3255f232db634a037af54658712caf7 | /Projekte/Modulo/Main.spec | 32993d25989bdae4389c1862c61d894ee4bf4431 | [] | no_license | GoodGuyTuring/GreaterOnes | 85c47814901e7dface2a839510ed9f6028464cc0 | c3ea1f7005d192fc504f33a78e42e90f27d873ae | refs/heads/master | 2020-09-01T01:39:24.274355 | 2020-01-24T16:10:25 | 2020-01-24T16:10:25 | 218,844,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Main.py'],
pathex=['/home/mark/Git/GreaterOnes/Projekte/Modulo'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"daniel.huschina@uni-bonn.de"
] | daniel.huschina@uni-bonn.de |
0dbb5d5f42d7c6f530c0b2a619756f5d5850c136 | 95ca12c782c7ae4f392e297186a7d95a74c472bb | /for_build.spec | 11e817261abf67d9d09e7f4b6df88101f1a2b646 | [] | no_license | TepNik/Sumulation-newton-s-cradle | 9efda83f402c69c14f0aad5720b31c0c8e740cd0 | 48b05a5f787f68fcd58b396d1732efdae5961430 | refs/heads/master | 2020-05-27T17:54:02.262347 | 2019-05-26T21:12:06 | 2019-05-26T21:12:06 | 188,731,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['proga.py'],
pathex=['Your path'],
binaries=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_as... | [
"tepelin.nikita@gmail.com"
] | tepelin.nikita@gmail.com |
c74aea42a9ebf71293d70dbcefafdea417e21e02 | f66b0fda3a16eb7ceb8a7ceb63dcbc373c4ece2d | /smart_QC/libs/json_field/fields.py | 7fcada3804ff579ad916c9cef24d6cb98f62d8c2 | [] | no_license | zcyuefan/smart_QC | 9c82dd7b8a25bfcd0231195b1a797e3f491f3272 | fc8aaec48203065f09ffde7f318c3e39680092ba | refs/heads/master | 2021-01-19T04:55:40.300511 | 2017-09-13T02:31:48 | 2017-09-13T02:31:48 | 81,196,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,430 | py | from __future__ import unicode_literals
from .utils import is_aware
from .forms import JSONFormField
try:
import json
except ImportError: # python < 2.6
from django.utils import simplejson as json
from django.db import models
from django.core import exceptions
from django.utils.translation import ugettext_l... | [
"zcyuefan@126.com"
] | zcyuefan@126.com |
695f3f91507485220caf4ed5db68b50ce6fe4ed8 | 7628b23a81440834dac9aa629b3ea9165cc5c5a5 | /media.py | 0cee132c2410713d9c27a06eea0be271940b81d9 | [] | no_license | puisaha/Movie_Trailer | 078c1317578e1727aa86a656fa479210f97ef56b | ddf55473d8767ff0fdf29bbac2e668d160ce9d1b | refs/heads/master | 2021-05-12T08:54:23.981298 | 2018-01-14T18:47:52 | 2018-01-14T18:47:52 | 117,302,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | # This file defines Movie class which provide a way to store movie information
# Author: Amrita Saha
# Date: 01/14/2018
import webbrowser
class Movie():
""" This class provide a way to store movie related information """
# Description:
# This is constructor of Movie class
# Parameters:
# m... | [
"pui.amrita@gmail.com"
] | pui.amrita@gmail.com |
454cbfb46c7d918fb69092033e9e5117676beb29 | 6eef7d400474384c9e36cafbbae95e3c34dbb6ad | /manage.py | 9546f991d846e27cec4ace859f5bbc2dda3e97ad | [] | no_license | codeAligned/clinvitae | 61d3c160e9dbc65d548818292681a27501d330ce | 4a75c14113dc562991c7d2d1a5812d2db91e2da0 | refs/heads/master | 2020-05-17T12:02:33.514187 | 2019-02-21T06:47:35 | 2019-02-21T06:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ben_kremer_clinvitae.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"kremerdesign@gmail.com"
] | kremerdesign@gmail.com |
1be96dfd88ce2372ebf4307223158365f6f38a93 | 900aabfb61b714b98dc843a7a6922df0d1fac4bc | /txartnet/test/__init__.py | 758981b66e65db20aabe9a9bfa8775eb870457bd | [
"MIT"
] | permissive | aalex/txartnet | ee93b17f911d37f0dea3d091d61f008f7b399424 | a01abe5e2d5cec616421f3ba769b6851aae04923 | refs/heads/master | 2016-08-07T19:53:45.832967 | 2014-02-28T22:11:35 | 2014-02-28T22:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | #!/usr/bin/env python
"""
Unit tests for the txartnet library.
"""
| [
"alexandre@quessy.net"
] | alexandre@quessy.net |
4651ffff83608bc314d7fb43a722b4e68943837a | b188fc954db980188a362d853c237c4a8c742276 | /server/apps/budget/admin/transaction.py | a8685fa0e76e02c2e368bc604d37a303d2e668d5 | [] | no_license | vshagur/sibdev-practice-2021-project-python | 78081b35749c5d96f5bdd4f3e4fb016e22cbd3ed | 2c6d7877a78dd2d9505ba1bb3a75ea0cb3ab7bf7 | refs/heads/main | 2023-07-16T16:06:32.348534 | 2021-08-24T03:39:40 | 2021-08-24T03:39:40 | 399,317,220 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from ..models.budget.transaction import Transaction
from django.contrib import admin
@admin.register(Transaction)
class TransactionAdmin(admin.ModelAdmin):
pass
| [
"vshagur@gmail.com"
] | vshagur@gmail.com |
cb7ba224121f3de25c0055cc0bc1096c98c01fbb | 34c4951edc118b3763eeca9734d47ea8c10d0654 | /preprocessing/plotting.py | 11c344406208071f2a7fe831e055ffa0c9dcaa77 | [] | no_license | yiren-liu/retailer-search | 5739af9682f6c53ed05edaed4b95174d4493b56c | 5e2b8f9ee3fde56363db417e1ac06543225990ec | refs/heads/master | 2022-04-04T20:14:53.991264 | 2019-11-18T04:14:29 | 2019-11-18T04:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | # %%
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import pickle
# %%
def draw_word_num_pic():
with open('descriptions_results_num_params.sav', 'rb') as f:
tmp = pickle.load(f)
des_num = tmp[0]
resu_num = tmp[1]
des_num_reta = tmp[2]
des_num_manu = tmp[3]
... | [
"724139392@qq.com"
] | 724139392@qq.com |
cd0c89d314658b289357e3eaf240900c29f54130 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /aoj/aoj-icpc/300/1305.py | e3d262fb73a310e2dafd28e76451fa6d53bedd63 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | while 1:
n = input()
if n == 0: break
ans = {}
for i in range(n):
group,name = raw_input().split(":")
if i == 0: first = group
ans[group] = set(name[:-1].split(","))
while 1:
for key in ans:
flag = 0
if key == first: continue
for key1 in ans:
if key in ans[key1]:
ans[key1] |= ans[key]
... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
185b47c53fb33ce144d02c63d274d36c771c8b4e | f3caac4e79efe25e1db20c78f04c2e62e573aab2 | /projects/01_fyyur/starter_code/migrations/versions/bf9d672acc27_first_attempt_at_venue_genres.py | 3ae15b86b9b68727bf7ead80fca0505cd41b90f6 | [] | no_license | EsNFish/FSND | ced0b81ac4d2076abc038b6cfdb5f370627dc5a4 | 5cc8aee5cb7d8a032dbc4d84e630fba7deebf8f3 | refs/heads/master | 2023-05-08T13:49:21.239342 | 2021-06-02T22:37:31 | 2021-06-02T22:37:31 | 357,344,134 | 0 | 0 | null | 2021-06-02T22:07:32 | 2021-04-12T21:28:37 | Python | UTF-8 | Python | false | false | 887 | py | """first attempt at venue genres
Revision ID: bf9d672acc27
Revises: 170e9f5a7391
Create Date: 2021-04-14 16:42:41.107310
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'bf9d672acc27'
down_revision = '170e9f5a7391'
branch_labels = None
depends_on = None
def u... | [
"esnfish@gmail.com"
] | esnfish@gmail.com |
624d54fc452b022fe7756a520b32eb2daf1ccb3b | 3045cc6ae29a6bd01b76c453b6084f22378bc5f9 | /Fibot/api/data_types/lecture.py | 7d638bf7274131dc2c682a8768b6ad6e3d0be3b5 | [] | no_license | caoxu915683474/FIB-Chatbot | f425c6f9da2fb49dc726a790ea408a66020a1663 | beb0ab40d37bbbc9369236bcc9a5ac98fce808c9 | refs/heads/master | 2021-04-06T05:34:34.098658 | 2018-02-21T19:22:54 | 2018-02-21T19:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Lecture(object):
""" Helper class for actions
Parameters:
data(:obj:`dict`): Information of a lecture. Example:
{
"codi_assig": "WSE",
"grup": "10",
"dia_setmana": 2... | [
"victorbusque@gmail.com"
] | victorbusque@gmail.com |
074889911eebba54b35240e90b3e3237c5da2856 | dab8aafc0f4fcc22c1fb7ec3bc69cb58eb93692c | /mysite/settings.py | 42ec093fc747f47210c97dc6a777a8fcab670c64 | [] | no_license | nayans99/my_first_blog | 7cc35c9038246f28e1d2b98cfa9ea5a40406268a | 17d4bf8e505ac19e0e75b0d355eb0dcaa054d764 | refs/heads/master | 2020-06-08T11:10:24.064124 | 2019-06-22T10:14:15 | 2019-06-22T10:14:15 | 193,218,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.13.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
#... | [
"nayansabnis99@gmail.com"
] | nayansabnis99@gmail.com |
557f3838b0dc8bef75277c2e4dca2caff00cb413 | 78370c33a987d4c319b55fa8a698afd48f15d0aa | /lessons/admin.py | 5bb09113e7ea5258dc5ac9c76c8fd357a8334e07 | [] | no_license | liuzhenxin2/RuleOf72 | 6296e05a0351ce1af19d80e7b8d3ed64de9da943 | c80dce7dd3c5733a2b4aee81edd67dac9e11ae15 | refs/heads/master | 2022-12-24T02:17:57.733797 | 2020-10-04T18:06:12 | 2020-10-04T18:06:12 | 293,755,711 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.contrib import admin
from .models import Lesson, Sub_topic
admin.site.register(Lesson)
admin.site.register(Sub_topic)
| [
"liuzhenxin1@live.com"
] | liuzhenxin1@live.com |
576e9d4e00c457925362b7811446d04872edd57c | 07271909bd7c0f78127c39509ea5b842dd4b65e3 | /logicallake/grammar/test/test_hana_sql.py | 4504bc86e196e6bd4ed4e5d6ebbf3bc9fd344024 | [
"BSD-2-Clause"
] | permissive | stewarg9/logicallake | 61e8cb8040f8682b0d4ca9da4a408841eb67fe2c | a5ac4d172b94a4bb8130545b6d41eebad60eb4b4 | refs/heads/master | 2023-01-28T16:55:22.838434 | 2020-12-07T21:31:03 | 2020-12-07T21:31:03 | 318,164,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,080 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 26 16:21:17 2020
@author: kbzg512
"""
import unittest
from tatsu import parse, compile, to_python_model
from tatsu.util import asjson
import tatsu
import json
GRAMMAR_DIR = "..\\"
#
#
# Things to be aware of...
# The granmar is case insensitive; it's mun... | [
"stewarg9@yahoo.co.uk"
] | stewarg9@yahoo.co.uk |
bc5318fa1d6c7db54b728d4678f3d5df28b75c30 | fe42aa7f3729e87ec486552b767f7049ff50ef12 | /ILLUSTRIS/CREATE/CREATE_SUBHALOS_HYDRO.py | d00533238addc36157d6bcba75f645a0ba508359 | [] | no_license | aishwaryasrivastava/AstrophySURP | 2b49f97d267a7d743cca1516044a51db9c682251 | 93546a646eb661be0b3e703f7cf689e010214068 | refs/heads/master | 2021-01-21T21:09:56.468433 | 2017-07-24T15:14:52 | 2017-07-24T15:14:52 | 92,312,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,287 | py | #--------------------------------IMPORTS-------------------------------#
import numpy as np
import illustris_python as il
np.seterr(divide = 'ignore', invalid = 'ignore')
import sqlite3
import sys
#--------------------------CONSTANTS-----------------------------------#
# Multiply the mass in Illustris catalog with this... | [
"noreply@github.com"
] | noreply@github.com |
1de7c275d0299c2c4771f2e76446f0388e3b6064 | 57dbcfe5fe149b5353d42d687ebacfee36f16551 | /sambam/sam_strip_tags.py | 07dd6983bcdc366b975a62036992193da80974d7 | [
"MIT"
] | permissive | peterjc/picobio | 74d3f570a6344dc3fbd3ddca46d65c4292ce0ee7 | 63a5f8b5670afc3680bdeac0d9663d8fcbe904c1 | refs/heads/master | 2023-09-06T04:26:31.955632 | 2023-08-31T14:12:25 | 2023-08-31T14:12:25 | 2,184,466 | 34 | 14 | null | null | null | null | UTF-8 | Python | false | false | 3,572 | py | #!/usr/bin/env python
"""Python script to remove tags from SAM/BAM files.
This script is designed to be used as part of a Unix pipeline. It
takes as optional command line arguments a white list of tags to
preserve (or a black list of tags to remove). It reads SAM format
data from stdin, and writes SAM format data to s... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
0ba4c698d48293dfd250b0cf5dcc7f196103bfaa | d4850a40bc5dbebb33739f219fe35b02a12589db | /ceramic-master-beta/Ceramic/settings.py | bf60a93b017fde420d89dbfa6dc06571bc21599c | [] | no_license | kong9410/ceramic | ccd77ffa71a7309f922eb56dbaa6fa733a7af146 | 65ccd5b08128bbfeb070e03b308602b5377231e1 | refs/heads/master | 2022-05-26T13:40:34.053380 | 2019-11-07T15:26:49 | 2019-11-07T15:26:49 | 220,264,997 | 0 | 0 | null | 2022-04-26T01:25:52 | 2019-11-07T15:12:08 | HTML | UTF-8 | Python | false | false | 3,577 | py | """
Django settings for Ceramic project.
Generated by 'django-admin startproject' using Django 2.2.5.
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
#... | [
"gnitsgogo@gmail.com"
] | gnitsgogo@gmail.com |
be607de4c4d3d9045d21c9098fef2bd6258ce7a9 | cd77de4a0c3796c1cf7e9508fdd9e02bb6b7c81b | /products/urls.py | 9a1a694e1031a564596f65efd9a83479392a2036 | [] | no_license | Sohelll/ghostownstore | 5569dba1c7cf044cbc04f8a9ee422599d30970ef | dfa373c4fa6c394e7e07619e63106da4d17289c6 | refs/heads/master | 2020-04-16T03:19:05.646820 | 2019-01-24T13:21:19 | 2019-01-24T13:21:19 | 165,227,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='products'),
path('search', views.search, name='search'),
path('<int:product_id>', views.product, name='product'),
path('category/<int:category_id>', views.cat_wise, name='cat_wise'),
path('checkout_single/<... | [
"shaikhsohel.011@gmail.com"
] | shaikhsohel.011@gmail.com |
946a2d515b6d377f0bab4dc01a5dfc573d4295b6 | b8088fa77c164e9c1af30862185232d3ed47c58c | /mapper.py | 4cd75ef6e0859c68e505c918bdaff77c05121b87 | [] | no_license | 2russellsmith/cs462Lab4 | f1ec0c6e1bd86ff3ebbbc425366f95a2d8c2fa71 | e3829b6a177751243659f3910eafbcc92b7b75d7 | refs/heads/master | 2020-09-10T15:54:13.142963 | 2016-08-25T18:59:58 | 2016-08-25T18:59:58 | 66,584,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | #!/usr/bin/python
#
# Adapted from script by Diana MacLean 2011
#
# Mapper script adapted for CS448G from Amazon's example: http://aws.amazon.com/jobflows/2273?_encoding=UTF8&jiveRedirect=1
#
#
import sys
import re
stopwords = ['i','me','my','myself','we','our','ours',
'ourselves','you','your','yours','yourself','y... | [
"2russellsmith@gmail.com"
] | 2russellsmith@gmail.com |
ba19d402cada443858f5c912e94740794ab239c6 | fd7473c2ae601add76525dd0c0c7da375189cfe9 | /neighbors2d.py | 408f86ec32af32424b2dab448ce77aa9b8b55b38 | [] | no_license | SlamminU/chem160module3 | 759794e7180749dac829f1e878c5fa18121fb859 | 93a26096a8dd9a2bc0e79d31ae1ab177074e51f4 | refs/heads/master | 2022-12-22T03:23:05.073053 | 2020-09-09T07:04:21 | 2020-09-09T07:04:21 | 294,030,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from random import choice
n=100
count=0
nocc=0
list2d=[[choice((0,1)) for x in range(n)] for y in range(n)]
for x in range(1,n-1):
for y in range(1,n-1):
if list2d[x][y]==1:
nocc+=1
neigh=list2d[x-1][y]+list2d[x+1][y]+\
list2d[x][y-1]+list2d[x][y+1... | [
"noreply@github.com"
] | noreply@github.com |
118e3b71b782fa295f2a247d81a815d8673f60c5 | b4982d7ffb9e65db8432e7728f89fa2dd4878aa6 | /Object Oriented Concept/encapsulation.py | f8aed772cf8b60e7fcaabebf4a62a52ede6aebd2 | [] | no_license | anupjungkarki/30-Days-Python-Challenge | 1d8e794235ac60e098f704cefa2c4a461134e8a4 | 96be38590a159d59397b122f8ee171574f5a556c | refs/heads/master | 2023-06-04T13:24:16.250487 | 2022-12-05T09:46:26 | 2022-12-05T09:46:26 | 327,277,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | # Encapsulation is one of the method of the fundamental concept in object oriented programming(OOP).Other programming have access specifier
# to handle with the private data but in python private data is easily access from the outside of the class so Encapsulation helps to
# restrict to access data and variable outside... | [
"anupkarki2012@gmail.com"
] | anupkarki2012@gmail.com |
703921458c0f564aaa1f58619aad6a1b66d47297 | 3fb3038f212d68550836d1956515da8cbccbdf8e | /products/migrations/0001_initial.py | f90d612c99f51ebf6f7a9e485beb3139dadbd8ca | [] | no_license | ivanbat1/mysite | 9e8debb6ec713b6148fa1dd6b50e4f768c1c29df | 8ea492c22c0b8c3b340f79812d39320f61308627 | refs/heads/master | 2020-03-19T04:18:41.227917 | 2018-12-27T12:51:55 | 2018-12-27T12:51:55 | 135,815,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,386 | py | # Generated by Django 2.0.5 on 2018-05-23 19:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
... | [
"baturin.ivan9@gmail.com"
] | baturin.ivan9@gmail.com |
009c97483cd7634d38ffeac4a1744beaae479f57 | ae7d5d11351af9201ce6181c48b8c60363c7ed00 | /packages/data/setup.py | 28faa87c3d988024ce6993d21ad79eeb365f0a85 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | natefoo/galaxy | 818037d03f39ccfb3714c7e784fd64d7ad8f4d2e | 64150c5bd803e75ed032e9f15acd003bae92b5ef | refs/heads/master | 2023-08-17T02:57:02.580487 | 2020-03-26T13:33:01 | 2020-03-26T13:33:01 | 31,212,836 | 2 | 1 | NOASSERTION | 2019-04-25T12:30:28 | 2015-02-23T15:01:46 | Python | UTF-8 | Python | false | false | 3,207 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
import os
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
SOURCE_DIR = "galaxy"
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('%s/project_galaxy_data.py' % SOURCE_DIR, 'rb') as f:
in... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
6fa53185e2e05b9e6e6db365d3d3defaf82130cf | f8e64dd069b2d65f1b9af53e03c42d97301e9a1d | /apps/currency/forms/fields.py | 9c65327d4b8701519fd5e5bf2100f8c390ed6e36 | [] | no_license | grengojbo/django-currency | 8daef53e442d7409f02c68dec48ff535b1712377 | 26e26cfb09ae8e62851a81bc8d821e1530eef20c | refs/heads/master | 2021-04-12T04:32:53.928776 | 2010-04-28T17:00:39 | 2010-04-28T17:00:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from django.utils.translation import ugettext_lazy as _
from django import forms
from widgets import InputMoneyWidget
from currency.money import Money
from currency.models import Currency
__all__ = ('MoneyField',)
class MoneyField(forms.DecimalField):
def __init__(self, currency_widget=None, *args,... | [
"oleg.dolya@gmail.com"
] | oleg.dolya@gmail.com |
f2d1848cd8952136feb770854fcef44e99792594 | 5550bd31a3f039d98d080d40dc1a28efde5b1297 | /worksheets/12 - Source Files/12q8.py | 4bb781e344a97771e9a33546919eefa7397e48c9 | [] | no_license | ceucomputing/olevel | f3bfb36ce3ccfa720aa6bcf4611639e8bcdd7bd2 | 71865c2109886b3c7fe66be742c621f11000c4e0 | refs/heads/master | 2023-01-03T02:00:18.794288 | 2020-10-27T03:58:41 | 2020-10-27T03:58:41 | 66,807,322 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | g = 9.8
m = float(input("Enter the object's mass in kg: "))
h = float(input("Enter the object's height in m: "))
pe = m * g * h
print("The object has " + str(pe) +
" J of gravitational potential energy.")
| [
"jiunwei@gmail.com"
] | jiunwei@gmail.com |
c97367ed534b90c843c6311c841f761386ab1f08 | 0c5aab3ed30f00c8dbbf95a95dca2160b360a599 | /ecommerce/form.py | 17c701d38230436eb713b5d2d688f9956c4493db | [] | no_license | 13alireza77/ecommerce | 7fa0bcd16d9e809ef14167edc8910868624116ce | e552a788ce2af5a66934ef5fb5fc48d75a887c5e | refs/heads/master | 2020-04-24T22:01:07.458180 | 2019-02-24T04:42:12 | 2019-02-24T04:42:12 | 169,950,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | from django import forms
from django.contrib.auth import get_user_model
User = get_user_model()
class contactForm(forms.Form):
fullName = forms.CharField(widget=forms.TextInput(attrs={"class": "form-control", "placeholder": "Full Name"}))
email = forms.EmailField(widget=forms.EmailInput(attrs={"class": "form... | [
"13alirezaalidoosti77@gmail.com"
] | 13alirezaalidoosti77@gmail.com |
b59c5b90bec745c23ed7e23d949ecbabbe82375a | 4762b15498e642b39edfff3745e9ea134f081893 | /workshop_admin/moodle/migrations/0002_statement.py | 302a1756920a5a26ec21dd32551a7dd89f96533f | [] | no_license | Informatinks/informatics-back | d1d29e7297e547a8749b8da4d6c70565495fc509 | be298f72c072023be004895faf88cff9806650f6 | refs/heads/master | 2022-12-10T05:33:34.637043 | 2019-11-01T16:29:12 | 2019-11-01T16:29:12 | 171,288,054 | 0 | 3 | null | 2022-12-08T04:53:26 | 2019-02-18T13:20:53 | Python | UTF-8 | Python | false | false | 671 | py | # Generated by Django 2.2.1 on 2019-07-02 11:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('moodle', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Statement',
fields=[
('id',... | [
"n.pakhtusov@tinkoff.ru"
] | n.pakhtusov@tinkoff.ru |
01676da4dc26233e3f4a9e9dd6096a563d95e76b | d728d6d47080ca37b0a6e8ded1baf63fe1f9e929 | /vision/datasets/VIRAT_DataLoader.py | e51b0f497b18e219a83eae30afecf4f6d01694f9 | [
"MIT"
] | permissive | Jwy-Leo/SSD_Detection | 8500de891ec4fa8b0eb7c791f16ae14d9cfd37a8 | 2d19a36ab6815a8546b3730eb6a6b1810f1df708 | refs/heads/master | 2020-07-06T06:21:57.150154 | 2019-08-17T19:09:50 | 2019-08-17T19:09:50 | 202,921,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,735 | py | import torch
import os
import sys
import numpy as np
import pickle
import torch.utils.data as data
import glob2
import logging
import cv2
logging.basicConfig(stream=sys.stdout, level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
class VIRAT_Loader(data... | [
"s0936100879@gmail.com"
] | s0936100879@gmail.com |
5ff40e3149ac45dd8fb3384d8481fc3795f2c5e9 | e0d0121d927d1b9aac42308728748f796f53cbe1 | /src/script/reflection.py | 7dda843f4cb6b5b37f0a26c22d13ce26067babde | [] | no_license | 5255b64/PyAnalysis | 9a5e11b4ece0c2ed9dd4b12168f990072aa4db25 | cb6501136cf92232aa64d18080bb69a0094f097d | refs/heads/master | 2022-12-18T13:56:25.557086 | 2020-09-22T05:22:56 | 2020-09-22T05:22:56 | 295,336,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | import csv
from decimal import Decimal
def run(input_csv_file_addr: str, output_csv_file_addr: str):
with open(input_csv_file_addr, 'r', encoding='utf-8') as f_in:
with open(output_csv_file_addr, 'w', encoding='utf-8') as f_out:
f_out_csv = csv.writer(f_out)
f_in_csv = csv.reader(f_... | [
"5255b64@gmail.com"
] | 5255b64@gmail.com |
c3d0c6798414ea088eb7b3efc5bd017d1d44eda3 | 55267c377da7a2a6676978d958e07c07bfc9d9b6 | /nbutil.py | 395b05b0e7c54b1f0b25ec174c5bb9c33908ef84 | [] | no_license | larsks/netbox-data-scripts | 54916afab045bed663c2a08ca90f102bf7efeeaa | 91aa6554aa815bdfc894a500037e942962c16705 | refs/heads/master | 2023-01-11T16:50:50.551000 | 2020-11-11T22:33:14 | 2020-11-11T22:33:14 | 309,502,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import click
import json
import logging
import pynetbox
import resources
import netbox
LOG = logging.getLogger(__name__)
logging.basicConfig(level='DEBUG')
@click.group(
context_settings=dict(auto_envvar_prefix='NETBOX'))
@click.option('--url', '-u')
@click.option('--token', '-t')
@click.pass_context
def main(... | [
"lars@redhat.com"
] | lars@redhat.com |
b54b585317c3cbdc1c1f9f7667ef9ec3526dbb4e | f4b6422703af7534867f90f2902aa3baa7b72416 | /2018/csiectf/hw5/lab3/lab3.py | b77153baa9653db6b42d406aee3da7f8c3490ba3 | [] | no_license | b04902036/ctf | d1eac85b915057e0961ad862d7bf2da106515321 | fac16cd79440a9c0fc870578d5c80b1491bb8eae | refs/heads/master | 2020-03-18T16:23:02.321424 | 2019-11-22T03:34:25 | 2019-11-22T03:34:25 | 134,962,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | #!/usr/bin/python
from pwn import *
context.arch = 'amd64'
host = 'csie.ctf.tw'
port = 10131
#host = 'localhost'
#port = 4000
r = remote(host, port)
raw_input('#')
pop_rdi = 0x0000000000400883
pop_rsi_r15 = 0x0000000000400881
leave_ret = 0x0000000000400818
read_plt = 0x400610
puts_plt = 0x4005e0
puts_got = 0x000000... | [
"b04902036@ntu.edu.tw"
] | b04902036@ntu.edu.tw |
f0e927d2314e78e9861ea2b166aa51741f5e0816 | 648796da46791794ee5de7a8004da437c840323e | /pipeline_update/pipe_tools.py | 7c911ec5f4ef1987dbd89864e8381f7f40df112d | [] | no_license | YulianaGomez/ml_pp | 86530a2ee26bb2f39117ec6a458368a5c1c74104 | 3891350e1ef6fbf2fd29a792387182601f94c250 | refs/heads/master | 2020-03-07T19:09:25.958025 | 2018-05-25T22:34:28 | 2018-05-25T22:34:28 | 127,663,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,470 | py |
import numpy as np
import pdb
import itertools as it
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.dates as dates
from sklearn.metrics import f1_score
import pandas as pd
import os
import sys
import datetime
import glob
import re
import graphviz
import seaborn as sns
import numpy as np
from scipy... | [
"ygomez297@gmail.com"
] | ygomez297@gmail.com |
7272ed278e983c56a0003cccbd7ac2dbb0ddce94 | 86ca276527868f0eebc98d2f72f0ea8804defb47 | /python/MIS-5400/exam1/talk2.py | b355cd16d7698af04b1efacdf0ae078d0d805146 | [] | no_license | RussellMoore1987/resources | 73cacfc17658ece645316a26084a4a49aca928d2 | 4876813fd7f29701984b25e651189ad363049d43 | refs/heads/master | 2023-08-09T06:49:21.869110 | 2023-07-27T16:02:42 | 2023-07-27T16:02:42 | 151,770,329 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # Write the following code in a .py file and upload it:
# * to run: python python/MIS-5400/exam1/talk.py
# Define a function named "talk" that accepts the following parameters:
# name - required
# age - optional parameter - default value should be 21
# occupation - required parameter
# In the body of the function do... | [
"truthandgoodness87@gmail.com"
] | truthandgoodness87@gmail.com |
93f89e660325eefbc7ce9cfde9dc271e5890cce4 | 878b78e4b30b1c8e1ece2441669145e131622248 | /gslb/api/v1/__init__.py | 1172bb83b3423acdba17807840ba715be7911e61 | [
"Apache-2.0"
] | permissive | khgandhi/gslb | 1665bfd13d4c0bb7c01f023f6aa4ac51810113e9 | a4e33452fa809d7699a6d6377f873fc4e73e2a32 | refs/heads/master | 2021-01-23T21:27:47.180638 | 2015-08-25T03:16:25 | 2015-08-25T03:16:25 | 40,106,674 | 0 | 0 | null | 2015-08-03T05:31:34 | 2015-08-03T05:31:34 | null | UTF-8 | Python | false | false | 84 | py | __author__ = 'kugandhi'
"""
This module implements the v1 API controllers.
"""
| [
"kugandhi@ebay.com"
] | kugandhi@ebay.com |
2b7533e5b81c60de7c5946f4f6c3ef4026c3dc6b | 5a35b4e745027c8631d6931dc5e1f8aa7c43915b | /product/migrations/0005_auto_20180704_1749.py | 0394c14b4fe30093fe98153489b0ddf90c41ba09 | [] | no_license | lucasLB7/mybus_systems | 44a336c61a2a2de7e461ae82aa37b9f28c24cdfb | aed761bddb26b0b6042c485f47539a404461d4ac | refs/heads/master | 2020-03-22T05:50:24.141316 | 2018-07-06T16:46:41 | 2018-07-06T16:46:41 | 139,593,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # Generated by Django 2.0.7 on 2018-07-04 14:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0004_laminateflooring_date_of_arrival'),
]
operations = [
migrations.AddField(
model_name='laminateflooring',
... | [
"plucaslambert@gmail.com"
] | plucaslambert@gmail.com |
8eec6af91bf6913d22c03c800138aa02e775746e | ad4137e1ef30cdab7a8179b4ee7d48d1cdad6ce6 | /Menu.py | ac869bc6f6c1fe6e9c82ca26470ec4a6eca073a0 | [] | no_license | JulianMarsal/SopaDeLetras | 59f3441388839131f2a606da7a44dc958141c8bb | 4accbd8cda9f29c9bfd3f08d1cb6d726255b8135 | refs/heads/master | 2020-05-29T12:55:31.918901 | 2019-10-07T00:21:09 | 2019-10-07T00:21:09 | 189,144,070 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | import PySimpleGUI as sg
import sopadeletras as Sopa
import constantes as const
import configuracion
import comprobacion as ingreso
from importlib import reload
import json
from funciones import leer_archivo
def promedio_temperatura():
oficinas=leer_archivo("json files/datos-oficinas.json")
config=leer_archivo... | [
"noreply@github.com"
] | noreply@github.com |
3045020f1542290997f407f8f8b43425a5a780ce | 4f098c687b0f067e31c6998cae48c4d8007450e1 | /oldzhifu/oldzhifu/settings.py | 91d4ce81a700df95d9cd4dccdc0c3c9f5a27ed2a | [] | no_license | wkongxiaojie/Test | 83ea1a3c1a89e7553b8ade98a3182754af6da266 | f3cf98baf512516962e312152a849452011b4556 | refs/heads/master | 2022-01-26T18:57:08.525899 | 2019-05-15T06:34:57 | 2019-05-15T06:34:57 | 186,727,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | """
Django settings for oldzhifu project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
... | [
"713042132@qq.com"
] | 713042132@qq.com |
791b3a07d266c9d2ec5209ea3c1e8bddf037739b | 9c79d6517bafd1ec7540a864f2bfb31fe02d1a78 | /scripts/plot_spectral_bands.py | 7ab2d4a882f683f1fe0918a73c121f4bf9625a08 | [
"MIT"
] | permissive | jhoule42/lamps_conversions | 2d512ef2ce602447a72a3d20b51e380a778cb77e | d166f39b9669142ae45f5f5a84f2f7d70cb944c0 | refs/heads/main | 2023-07-13T11:37:28.221811 | 2021-08-19T18:36:02 | 2021-08-19T18:36:02 | 398,003,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Script pour plotter les
# Auteur : Julien-Pierre Houle
# Importer les librairies
import numpy as np
import matplotlib.pyplot as plt
import pytools as pt
import MultiScaleData as MSD
import hdftools as hdf
path = "git/Illumina-scripts/Spectres"
# SPECTRES d'Integration
scoto = path + "/scotopic.dat"
JC_U = path + "... | [
"noreply@github.com"
] | noreply@github.com |
1c8662f885da78193eaf3178a82cdf91656f2dbf | a57fee81833a90828253b6590eb61dca460c408a | /view.py | b89c85e0bcb64ddd9f7722e7dbc085c289f0cc53 | [] | no_license | firststef/RNBreakout | 6c70f13a3e6b816632555ebc0d2ce865f6d641cb | dab308243e389ecb87d7f0d18bc5aaa2b78e0d1c | refs/heads/master | 2023-02-11T22:18:37.743788 | 2021-01-05T17:34:07 | 2021-01-05T17:34:07 | 321,891,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | from datetime import datetime
import gym
from time import sleep
import random
import numpy as np
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout, Input
from tensorflow import keras
env = gym.make('Breakout-ram... | [
"noreply@github.com"
] | noreply@github.com |
ea6625719c5ac7b9e768344b7ea249f8faaf371b | 8df1c9bc047eee03e465df9872261e6984f3e175 | /test/language-features/assignment-simple.py | e1baec4a4acc4e004349252b2863ad3065896cea | [] | no_license | jstroem/TAPY | fbd82c2b3edfcd41ac9aaf2c14343b29fe70bc55 | 0989cb34c309d33f81bca5aa768009a681659b6a | refs/heads/master | 2021-01-23T03:53:12.018466 | 2013-07-01T14:10:37 | 2013-07-01T14:10:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13 | py | a = b = c = 0 | [
"christofferqa@gmail.com"
] | christofferqa@gmail.com |
d72a1163acfa6e897a9e131e9d3523083253254c | 0268f4c895f9f54e93fc7e3d2b0334206a4e6d9e | /day14/03-tk.py | a2ce5018023977ebed3408b81989034151538d9e | [] | no_license | zhangzongyan/python0702 | adebccacf26e300ec7a681bdf0f7ab7bdf228eeb | 7dcb6133d241fdf97b0812b9f25933ab389d2663 | refs/heads/master | 2020-03-22T21:05:51.218502 | 2018-08-15T09:54:42 | 2018-08-15T09:54:42 | 140,656,620 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py |
import tkinter as tk
# 按钮触发的方法
def click_button():
print("已点击")
def click_button2():
print("再次点击")
root = tk.Tk()
root.geometry("400x600")
root.title("这是一个测试窗口")
#root.minsize(width=400, height=300)
#root.maxsize(width=400, height=300)
#root.resizable(width=0,height=0) # width 0不可伸缩, 1可伸缩
'''
# 按钮类Button
bu... | [
"zhangzongyan@uplooking.com"
] | zhangzongyan@uplooking.com |
7109aa376c0a9a18a06cb341979796f67349346b | 271cbadd98ad60e8c3609b1d5422c1b49b9a8347 | /turtlebot2_wss/turtlebot_simulation/build/vrep_simulation/catkin_generated/pkg.develspace.context.pc.py | 0592858c682d9ee83136524c7b345541f1f49b7e | [] | no_license | yxl-loading/ROCO506Z | 9a5a16ebb839b1424bf9b9be2c8358d5211d9ca4 | cd16e8a2428db3a3b8fea1534120d0affc2c262b | refs/heads/master | 2022-04-19T02:23:30.942440 | 2020-04-22T19:03:43 | 2020-04-22T19:03:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "vrep_simulation"
PROJECT_SPACE_DIR = ... | [
"youssefhindawi@hotmail.com"
] | youssefhindawi@hotmail.com |
2157fa5f00a7ea2f2da78c201b0648401aa85d19 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_attending.py | 42c967da90aa064ad1ee81dd35207c570ee2ae1f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _ATTENDING():
def __init__(self,):
self.name = "ATTENDING"
self.definitions = attend
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['attend']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
808043585a57418013b8485f97a036e010cf856a | cbd9b30d155cb283a1cb9bf7c2410c5db1110e53 | /backup/drive/Client.py | 2fea6535072bcbf6ab743c679c8e657b1d77aa6d | [] | no_license | DominikHenkel/Self-Driving-Car | d3f4cd081187a01a2ca55fb0e75d44476423578a | cb0faff9a6abab79be1c1fffa8bea605152dca5b | refs/heads/master | 2020-03-22T08:18:19.633678 | 2018-11-16T22:55:08 | 2018-11-16T22:55:08 | 139,758,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import time
import socket
client_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
client_socket.settimeout(10.0)
message = b'CONNECTED'
addr = ("localhost", 8000)
start = time.time()
client_socket.sendto(message , addr)
try:
while True:
data, server = client_socket.recvfrom(131072)
end = ... | [
"sup4tdc@yahoo.de"
] | sup4tdc@yahoo.de |
e25cf0d305a146cf875a01066af4a033c3902e8f | 99d889a460e1fea2bbdd8ff15b8e45ed9dd2acf7 | /coreproject/coreproject/urls.py | fa5725b4abb890511bf6c3a398e30b3661ca3d1d | [] | no_license | BregenzerK/CustomizedERP | f7f42080140590c57e5a0d2004c0e64388e8cd31 | f048ed0a60255cf5538d1de0e1e2e6069c97446b | refs/heads/master | 2021-01-10T18:52:03.739254 | 2017-12-10T12:01:50 | 2017-12-10T12:01:50 | 28,302,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
url(r'^$', 'coreproject.views.home', name='home'),
url(r'^kunden/create', 'kunden.views.create_with_account' ),
url(r'^kunden/overview', 'kunden.views.get_overview_filter'),... | [
"katja.bregenzer@bridging-it.de"
] | katja.bregenzer@bridging-it.de |
f3c10a8701813ee291c2d173a9b909c955eb29cc | 71046fbb9db7ee7948832dd3c7a70eec3dcabfa3 | /app.py | 13cd777f29e3fb5a653a8602f7063b5143f65cf9 | [] | no_license | vvs1999/Secure-data-encryption-and-decryption-using-Crypto-and-Stego | 317de517de773f060b5d62f3a87bf55a436fc2d6 | d77c75271a380c46f0c0637bca67d2ce86a3567c | refs/heads/main | 2023-02-12T18:52:54.889055 | 2021-01-08T06:21:18 | 2021-01-08T06:21:18 | 327,815,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/Encryption')
def encrypt():
return render_template('Encryption.html')
@app.route('/Decryption')
def decrypt():
return render_template... | [
"noreply@github.com"
] | noreply@github.com |
15a05b515ac2a5fa114c23136a7a3cd7a6f74e1d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/clips_pattern/pattern-master/pattern/text/de/inflect.py | 69c40f1e7abcdb645f18e27579ac930f4b905f6d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 29,115 | py | #### PATTERN | DE | INFLECT ########################################################################
# -*- coding: utf-8 -*-
# Copyright (c) 2012 University of Antwerp, Belgium
# Author: Tom De Smedt <tom@organisms.be>
# License: BSD (see LICENSE.txt for details).
######################################################... | [
"659338505@qq.com"
] | 659338505@qq.com |
c0c355f5a044a1f037795a602872e746d6fa3b11 | 1259bd44a79ada24a6ebc293eccac08e7aa255af | /app.py | 42f0a0d62ad452049ffa602fbea0821076682fcb | [] | no_license | surya739/app | a8558d01423b31f4ff172ae1e8bfc26877b9ef39 | 4600412d5300ff129f38d8f9791eaddf5bded8b0 | refs/heads/master | 2023-01-30T16:16:17.348418 | 2020-12-10T11:02:34 | 2020-12-10T11:02:34 | 320,240,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | from flask import Flask, render_template, redirect, url_for, session
from flask_mysqldb import MySQL
from flask import json
from flask import request
import MySQLdb.cursors
import re
app = Flask(__name__)
app.secret_key = 'your secret key'
app.config['MYSQL_HOST'] = '127.0.0.1'
app.config['MYSQL_USE... | [
"70879421+surya739@users.noreply.github.com"
] | 70879421+surya739@users.noreply.github.com |
4126cae3139385d9130402aa99dcea5f4d49447a | eabc369a48d52a2f678794857738dbe859459261 | /app/utils/general.py | 29da0d161e92566733ebcd7da5c0c2b62cdc34c8 | [] | no_license | datawizzards-za/energyspazr | a6ea1ded17f2657474e906ad45194baa7c818b06 | cedfd99302b65a1067a78589a8f678e103e0d885 | refs/heads/master | 2021-12-15T13:56:11.503400 | 2017-08-21T01:06:19 | 2017-08-21T01:06:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from enum import Enum
class SIRole(Enum):
SUPPLY = 1
INSTALL = 2
BOTH = 3
| [
"adlaba@csir.co.za"
] | adlaba@csir.co.za |
810c9a802e3d4c278f1c6108f938d8437907212d | 85da1d98e78fd2307f7077fa44ca2a3f08ac1e0e | /ExampleWidget/views.py | 86304c3fa653348dc7f61df215a7a75315f49ea9 | [
"MIT"
] | permissive | mcgoddard/example-widget | 532bfdaac5efd4c9778b57e6e91c8c2b3254ebc0 | 86c038ffcaa749d1b57a70c48c0bed81a4ce62b4 | refs/heads/master | 2021-01-10T07:28:59.632901 | 2016-04-03T20:27:17 | 2016-04-03T20:27:17 | 55,367,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | """
Routes and views for the flask application.
"""
from datetime import datetime
from flask import render_template
from ExampleWidget import app
@app.route('/')
@app.route('/red')
def red():
"""Renders the red page."""
return render_template(
'red.html',
title='red page',
)
@app.route('/... | [
"mikeygiom@gmail.com"
] | mikeygiom@gmail.com |
cc6aeb11c159d67d3188ad48a3943fd5c5bb5b57 | 34bf67017440fe47658559f91fe153c153a359f4 | /126.py | ab76eec45e690df7ee056355c5e29df63513c5d3 | [] | no_license | KevinWangTHU/LeetCode | 1be5f8f1ab587eea5365abb940785c9fe26f5214 | a7916e0818b0853ec75e24724bde94c49234c7dc | refs/heads/master | 2021-05-04T10:16:26.666260 | 2017-08-09T04:17:12 | 2017-08-09T04:18:49 | 53,427,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | import collections, string
class Solution(object):
def findLadders(self, beginWord, endWord, wordlist):
"""
:type beginWord: str
:type endWord: str
:type wordlist: Set[str]
:rtype: List[List[int]]
"""
def construct_paths(source, dest, tree):
if sou... | [
"KevinWangTHU@gmail.com"
] | KevinWangTHU@gmail.com |
63b8925658c1f05ca2b3c52b232b086acf5307c0 | f2b5889d73cc9fcfd58a2dc807253bd4796849b5 | /naginpy/pipeforward.py | a4893a4b1d3370e7b48d50c402601de681886f75 | [
"MIT"
] | permissive | dalejung/naginpy | e290cb2d26728c625d9b4199dbf1956fe1f6a0c9 | bbc2b380a278a129449ee170fb22efa7f687b6e8 | refs/heads/master | 2020-12-25T18:17:16.498018 | 2018-08-19T18:14:12 | 2018-08-19T18:14:12 | 23,586,699 | 4 | 1 | MIT | 2018-08-19T06:29:59 | 2014-09-02T16:40:21 | Python | UTF-8 | Python | false | false | 419 | py | """
df = value %>%
sum %>%
filter(is_na) %>%
summarize
df = value |>
sum |>
filter(is_na) |>
summarize
with PipeForward(value) as df:
_ = value
_ = sum(_)
_ = filter(_, is_na)
_ = summarize(_)
df = _
with PipeForward(value):
sum
filter(10)
summarize
with va... | [
"dale@dalejung.com"
] | dale@dalejung.com |
727bd531563b84fb2e2bddb7cd11d14b54aa1d1e | 636879d883c94f37075f3871cd7f9e1d9de9d75e | /snake.py | 4ee74adab22fb01034ad8237da72c4b119a3fc11 | [] | no_license | MdNaina/python_random_projects | 61e6eccb3a3953a55ad6f88e0e6b0ff6010448ad | a052dd07098ebb3fcc574277b8f6996ba49aa67e | refs/heads/main | 2023-02-11T23:13:53.983102 | 2020-12-31T11:31:41 | 2020-12-31T11:31:41 | 325,773,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import pygame
import random
pygame.init()
red = (255,0,0)
blue = (0,0,255)
green = (0,255,0)
white = (255,255,255)
width = 600
height = 600
dis = pygame.display.set_mode((width,height))
pygame.display.set_caption("snake game")
box = 30
clock = pygame.time.Clock()
score_font = pygame.font.SysFont("bah... | [
"naina.stnm@gmail.com"
] | naina.stnm@gmail.com |
057b708cf69ba173fa400d3278be66d00cb31bc5 | 1985e2e8d817b9f1a0019d76fa86cd5866b3c58e | /blink_mouth-nn.py | ff41dafb6992e6e0c6176d3a0495bced5331142f | [] | no_license | Surya-Narayan/ADAS | 32754917cf4455d7dad154426a14a8cf995adadf | c517b142acb7bbed63b1e1872c02bc46cfae6b9f | refs/heads/master | 2020-04-19T19:08:29.951280 | 2019-04-29T16:25:44 | 2019-04-29T16:25:44 | 168,380,555 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,442 | py | # USAGE
# python blink_mouth-nn.py --shape-predictor shape_predictor_68_face_landmarks.dat --video cam.mp4
# python blink_mouth-nn.py --shape-predictor shape_predictor_68_face_landmarks.dat
# Epoch 5000 : cost = 5030.34 W = 1.5330261 b = -9.608036
# import the necessary packages
from scipy.spatial import distance ... | [
"noreply@github.com"
] | noreply@github.com |
5e6113a805693ced86ee2ff949b681a5f7303780 | 9142be77c2453a6631335832e960aaafbac6abf5 | /sickle.py | f8fc8e9b00191d64b356fd4fedcfdb14e80aec4c | [] | no_license | 1sn0m4d/Sickle | f9a4ceb924bda24cddc86defbedeca616e003752 | 4d3691b5556cb9e1364f225aa239e3898bacf2e8 | refs/heads/master | 2020-05-25T02:05:48.243644 | 2019-05-17T05:18:37 | 2019-05-17T05:18:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | #!/usr/bin/env python3
from Sickle import __main__
__main__.entry_point()
| [
"mvalen1997@gmail.com"
] | mvalen1997@gmail.com |
8865201f90a6632cbc9f96134f21ab5e64e6c55a | 5a05bb7d51d2f8cadb83fec2e38c7a9cd83936e9 | /de1/python/host.py | dd9a963bebbe163401aaca84df7cd3d2806f715b | [] | no_license | GalinhaLX/quickshop | a59121e6ebdf01aba6f988cd85a444f8cf1110b5 | 2d7d24dc738629cc3061fcd9b015d4ae3d030490 | refs/heads/master | 2023-03-16T02:18:17.055789 | 2018-04-06T06:09:07 | 2018-04-06T06:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | import serial
import sys
import os
import time
import requests
import json
def main(args):
# init serial connection
ser = serial.Serial('/dev/tty.usbserial', 115200)
ser.flush()
ser.timeout = 15
while True:
try:
# check for valid hash requests
r = requests.get('http://store.saif.ms/needs_hashing').json(... | [
"benjaminlang12@gmail.com"
] | benjaminlang12@gmail.com |
a158aa15dd9c00ac920184022de0c9802124f639 | 4a7fccd99b8f34a136cdd5cd1bea558345881962 | /basics.py | 145a480f65588ad775e3382ffda14b3a9d3ec4b6 | [] | no_license | yc1838/Python-Mega-Course | 701e9cd022e09c6a56a40156b11495d240fd4035 | 6479510ceea25b993218c5be82b59b5dab3f7b72 | refs/heads/main | 2023-01-21T18:13:06.829176 | 2020-12-04T05:28:07 | 2020-12-04T05:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | with open("hey.txt", "a+") as file:
file.seek(0)
cont = file.read()
file.seek(0)
file.write(cont)
#have to ask teacher for this one.
# write a program that interacts below:
# Say something: Hello
# Say Something: how are you
# Hello. How are you?
'''
def sentences_modification(stringa):
caped = stringa.capitalize... | [
"cubthemagiclion@gmail.com"
] | cubthemagiclion@gmail.com |
99cb91a253228dbd5578a98ab5fdf1b02c43fe6e | 05eef27d0bb309b7596b405e429c2014c6a2d6de | /Random/sco.menu2.py | f95e6d4ca0a5be12dbdc6d4e4b049fda562669e2 | [] | no_license | vincenzo-scotto001/Python | 150981bc165f1308395206e0a33a9018400effc3 | d88f5b9a191689ab9fd8775bab18ddb30180e32a | refs/heads/master | 2020-04-04T06:54:35.252663 | 2019-09-11T14:10:03 | 2019-09-11T14:10:03 | 155,761,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # Menu driven problem with two programs by Vincenzo Scotto Di Uccio
import math
import random
INTEGER = "1"
FALLING_DISTANCE = "2"
FALLING_DISTANCE_2 ="3"
STOP = "4"
def main():
x = 0
while x != STOP:
valid = 0
display_menu()
x = input("Enter your number(1-4): ")
... | [
"noreply@github.com"
] | noreply@github.com |
891ba0a2d86e0059af8f125d7eb99dae7de96607 | 6045518db77c6104b4f081381f61c26e0d19d5db | /python_scripts/search_version_added_mod1.py | b004390e83fe6d2b0ab9848b4394cb3dd5111e20 | [] | no_license | edisutoyo/msr16_td_removal | 6e039da7fed166b81ede9b33dcc26ca49ba9259c | 41b07293c134496ba1072837e1411e05ed43eb75 | refs/heads/master | 2023-03-22T21:40:42.993910 | 2017-09-22T09:19:51 | 2017-09-22T09:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,558 | py | # import difflib
# import distance
import psycopg2
import sys
import os
connection = None
# connect to the database to retrieve the file name linked with the commit
connection = psycopg2.connect(host='localhost', port='5432', database='comment_classification', user='evermal', password='')
cursor = connection.cursor()... | [
"everton.maldonado@gmail.com"
] | everton.maldonado@gmail.com |
b14c2b98a07fad5acc877d946f624a0191ab7c48 | 3cfd5edbacb48d5197d709f52f77433194cedf2a | /app/middlewares/acl.py | 72dd97eb8c38bb3d704106b06790ff099a0bf2a5 | [] | no_license | pikoUsername/A-Search | 1ebb3062a930225cc3a7e5a515f77371aed862b6 | 59377c4e8cb6d0af09375aca1c03f35c371a212f | refs/heads/master | 2023-02-18T19:10:01.007817 | 2021-01-18T14:10:48 | 2021-01-18T14:10:48 | 325,986,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from typing import Optional
from aiogram import types
from aiogram.dispatcher.middlewares import BaseMiddleware
from ..models import dbc, User, Chat
class AclMiddleware(BaseMiddleware):
async def setup_chat(self, data: dict, tg_user: types.User, tg_chat: Optional[types.Chat] = None):
user_id = tg_user.i... | [
"galymzhan.amantaj@gmail.com"
] | galymzhan.amantaj@gmail.com |
ec1ab374642f6e84c93b717daa1ed23f3dafd3be | c9873319a4ce48dada8a078e5fd9b723b920fedb | /impy/ex/ex9stat.py | 263d93bca52996f171543afc30a40a21834274a5 | [] | no_license | imsoyounq/backupall | 7383d7ce9252770942bc2a12e4c092baaa02df96 | d7a8c8e7342687dba99af2cd41d94f25a27ca02b | refs/heads/master | 2021-01-24T08:55:48.405619 | 2016-10-02T13:16:52 | 2016-10-02T13:16:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # -*- encoding:utf-8 -*-
a = []
while True:
b = int(input("숫자 "))
if b == 0:
print "종료합니다."
break
else:
a.append(b)
print "mean:",sum(a)/len(a),", max:",max(a),", min:",min(a),
print ", stdev:"
continue
# mean: 10, 이 아니라 mean: 10 , 처럼 ,앞에 공백 추가
# 캡처 formatte... | [
"soyounginseoul@gmail.com"
] | soyounginseoul@gmail.com |
7e3b468b506301ebe3967b1c976b4ab45f06632f | 47ec3048a021319c19228c37acd71fb487de1716 | /spectrum/value_spectrum.py | 5e4507d117cd390200f7ee02f8e907d7f4160ee6 | [
"MIT"
] | permissive | ternandsparrow/natcap-invest-docker-flask | 5485691ec39c35d9a440cb564badee2b3b8cd1ab | 1ef3e58f6af58d1783f6c0b8c80377e645923204 | refs/heads/master | 2023-04-27T14:28:41.561597 | 2021-05-06T08:32:44 | 2021-05-06T08:32:44 | 119,615,923 | 0 | 1 | MIT | 2021-05-08T16:54:26 | 2018-01-31T01:13:17 | Python | UTF-8 | Python | false | false | 5,277 | py | #!/usr/bin/python3
# Runs all permutations and logs the results. Good for getting a feel about how the inputs affect the output
# Run with:
# python3 value_spectrum.py > output.csv
import requests
import json
import sys
def permute_inputs():
url = 'http://localhost:5000/pollination?years=0'
with sys.stdout as o... | [
"tom.saleeba@gmail.com"
] | tom.saleeba@gmail.com |
97d7fca81a1b57c074e04ab9e757aae5b3fb4615 | 1c59ef00948129d8d48f4e73b335c1e419ef9b96 | /priv/demo.py | f2109fce094f4daec561fe9d5c1a716488c65609 | [] | no_license | xshrim/ethlab | a6903af93dcfcb080ca28ed0bfeb1ebfd6357215 | ad0781d3925f8dff1e8ecc4bae45bd936428b5d7 | refs/heads/master | 2022-12-15T02:55:09.217389 | 2019-07-11T00:44:32 | 2019-07-11T00:44:32 | 194,985,601 | 0 | 0 | null | 2022-12-08T23:51:52 | 2019-07-03T05:30:28 | JavaScript | UTF-8 | Python | false | false | 986 | py | import core
from web3.auto import w3
from web3 import Web3
from web3.middleware import geth_poa_middleware
# 直接使用web3自动的自动连接功能
w3.middleware_stack.inject(geth_poa_middleware, layer=0)
num = w3.eth.blockNumber
tnum = 0
btlist = []
# 计算每个区块的交易数量
for i in range(0, num + 1):
trans = w3.eth.getBlock(i).transactions
... | [
"xshrim@gmail.com"
] | xshrim@gmail.com |
6f49313c3ac544ded1d289409656abd155683b62 | c7774cdff9de9b314949cddbc2b673c80e7b04a5 | /Data structures/seq.py | 0e255f961b6eba589a5d8fb9551092fb7b6e933a | [] | no_license | semkarim/My-Trainings | 62c5a39fe4be4fb0c28cd142f946757533a9bf67 | 6fbab76db97f16732f808fc96b173d1e19c21be2 | refs/heads/master | 2022-07-10T14:54:52.216763 | 2020-05-13T16:54:30 | 2020-05-13T16:54:30 | 263,679,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | shoplist = ['apples', 'mango', 'carrot', 'bananas']
name = 'ANAROG'
#Действия над списком
print('Element 0 -', shoplist[0])
print('Element 1 -', shoplist[1])
print('Element 2 -', shoplist[2])
print('Element 3 -', shoplist[3])
print('Element -1 -', shoplist[-1])
print('Element -2 -', shoplist[-2])
print('Element -3 -',... | [
"65163745+semkarim@users.noreply.github.com"
] | 65163745+semkarim@users.noreply.github.com |
c3a9940907e5fba2b01888c2fe89ad17729ac313 | 4ec8a0e68dd5ff97bdd7c4f57e510d77fa106dbf | /blog/migrations/0002_auto_20190527_1300.py | 689eebcd43ef87c71af7949aa7f4fddbf3efbea1 | [] | no_license | mohammadkanon/travel_blog | b377a13da2ee9be783639e6405244a5be6403a2e | f94ada7a44073151e81d4173cb1cbc9ed78cdd5d | refs/heads/master | 2020-06-04T15:07:53.762761 | 2019-06-15T12:15:42 | 2019-06-15T12:15:42 | 192,074,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # Generated by Django 2.2.1 on 2019-05-27 07:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='commoninfo',
name='author_details',
... | [
"gentlekanon@gmail.com"
] | gentlekanon@gmail.com |
dafdf6e9e4f6f88b4153c18807b15bc3e4ee67ce | e71ef588cd26c6342d7cd75a28f71cc3e74eae2f | /portal/dashboard/admin.py | 3330f09c9532d72d756bd5749c60872beff5cce8 | [] | no_license | muska-choudhary/newProject | dfb4724348be983d2834f650c3fd1cbdb7176d0f | 4dd6e2d43c6d8037ba9feb4b7cd9d73d216aa1cf | refs/heads/main | 2023-07-17T07:41:32.631742 | 2021-08-23T16:15:04 | 2021-08-23T16:15:04 | 398,965,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.contrib import admin
from . models import *
# Register your models here.
admin.site.register(Notes) | [
"noreply@github.com"
] | noreply@github.com |
14a4b02855d5b08a9a4c3b2eb8ee8e69474fed12 | cf76b7ee525a60661402e053548ebdd279fd64e4 | /Day_3_Assignment/Day_3(Question2).py | 7d198588b044dec40f8fa74db2eab1a7380d3200 | [] | no_license | Atularyan/Letsupgrade-Assignment | 79ffff1b273c2f098676f17cd73e91463b8fe0c9 | 4eb90b172612b07c4102328980a4be34ef2a1376 | refs/heads/main | 2023-02-28T10:26:42.613035 | 2021-02-05T21:40:06 | 2021-02-05T21:40:06 | 330,799,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | """
Question 2
Define a function swap that should swap two values and print the swapped variables outside the
swap function.
"""
def swap(n):
rev=0
while(n>0):
rem=n%10
rev=(rev*10)+rem
n=n//10
return (rev+n)
n=int(input("Enter the number = "))
res=swap(n)
print("swap... | [
"noreply@github.com"
] | noreply@github.com |
4e8773dfd7c43372b1e0e2487c9908b3ce02e2ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02695/s928241641.py | 8a3650d94b02032a7e04ac7856e18f47bbcccc2d | [] | 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 | 888 | py | import copy
def gen_mono_inc_seqs(N, M, cur_list, cur_len):
if cur_len == N:
return cur_list
result = []
for l in cur_list:
last_val = l[len(l)-1]
for i in range(last_val, M+1):
tmp = copy.copy(l)
tmp.append(i)
result.append(tmp)
return gen_... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
85cac1f5bd1565fd1f4ee1b51dd351185d24ad6b | 0911eef4f271bbe014e3027457574fd9297c6865 | /clustering/attributer.py | 5fa075956952f316fc61dd0a0f9f263c015068e3 | [
"MIT"
] | permissive | bernhardtj/DetectorChar | a7d5dd3a25e88965f6afb8b387b5d4daddb62ed3 | be9fffc0a56c9c8848c67917a839d743a0380ce2 | refs/heads/master | 2020-12-15T03:29:55.456797 | 2020-01-19T23:12:09 | 2020-01-22T02:15:43 | 234,979,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,726 | py | """
attributer.py
get some cluster attributes.
"""
from gwpy.frequencyseries import FrequencySeries
from gwpy.plot import Plot
from gwpy.time import to_gps
from gwpy.timeseries import TimeSeriesDict, TimeSeries
from ligotimegps import LIGOTimeGPS
from numpy import stack, median, diff
from cluster import DEFAULT_FILE... | [
"31599460+bernhardtj@users.noreply.github.com"
] | 31599460+bernhardtj@users.noreply.github.com |
d38c140e26cd68592ad73ae95fa562711473f5a4 | edd025ddd5ff9ff8830bd3dda598715a935d6447 | /openclnoise/addcolor.py | 00101a4dcefc11b4800a17981eaea2d14b305755 | [
"MIT"
] | permissive | antiface/OpenCLNoise | f142fb3fd5cc559803e3be8ecfa89ad63ef3c503 | 31b5ff6739340ce0a9a6a57f6012d71d6a27614f | refs/heads/master | 2020-12-26T04:48:11.260071 | 2013-02-05T21:36:25 | 2013-02-05T21:36:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from basefilter import *
class AddColor(BaseFilter):
_filename = "addcolor.cl"
def __init__(self, color=(0.25,0.25,0.25,0)):
BaseFilter.__init__(self)
self.color = color
def get_name(self):
return "AddColor"
def get_number_of_inputs(self):
return 1
@pr... | [
"eswanson@alloscomp.com"
] | eswanson@alloscomp.com |
cde0caf06127a2d54753d2be9a1c321b2d3d73cc | f3abfa06395375bf88245ca172bb0af64b19adf3 | /dcivil/migrations/0003_auto_20200202_1316.py | 9392179bb018eac6d08ab42b599ba6462915fb42 | [] | no_license | loyolabechara/intelicity_be | 5394e356132f2532ad5dbf295a49fc207d1d8f86 | 81dc055ba1e686b2838d7294c641561886473b2c | refs/heads/master | 2020-12-05T19:10:18.721371 | 2020-02-29T03:28:31 | 2020-02-29T03:28:31 | 232,219,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # Generated by Django 3.0 on 2020-02-02 16:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dcivil', '0002_auto_20200202_1257'),
]
operations = [
migrations.AddField(
model_name='dirigente',
name='celular',
... | [
"loyola@jlb.net.br"
] | loyola@jlb.net.br |
efcacf5019e593a4bf64f6c3a04e37e1c9331b44 | c6588d0e7d361dba019743cacfde83f65fbf26b8 | /x12/5030/435005030.py | a57f914a95dac66f74356e3869e7f5bc1cf84657 | [] | no_license | djfurman/bots-grammars | 64d3b3a3cd3bd95d625a82204c3d89db6934947c | a88a02355aa4ca900a7b527b16a1b0f78fbc220c | refs/heads/master | 2021-01-12T06:59:53.488468 | 2016-12-19T18:37:57 | 2016-12-19T18:37:57 | 76,887,027 | 0 | 0 | null | 2016-12-19T18:30:43 | 2016-12-19T18:30:43 | null | UTF-8 | Python | false | false | 879 | py | from bots.botsconfig import *
from records005030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'RK',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'SID', MIN: 1, MAX: 9999, LEVEL: [
{ID: 'N9', MIN: 0,... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
cb472c96f064f2152d5691a9dcb04ca57b0bcebe | 990e3a0920f08727ddc521bfbf62cfc5547a013c | /remediation-functions/rds_instance/rdsinstance_performanceinsights.py | 7379513042347868ee77eee2eb6778e8a949ddc5 | [
"MIT"
] | permissive | xeaser/aws-auto-remediation | 73916390063faa7f6d81d8e33f6ae2632621a2ff | 6847e2756111f16bafb34529e07a1c383f99bebf | refs/heads/master | 2021-03-21T12:41:40.884595 | 2020-03-12T14:18:30 | 2020-03-12T14:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | '''
RDS instance performance insights
'''
from botocore.exceptions import ClientError
def run_remediation(rds, RDSInstanceName):
print("Executing RDS Instance remediation")
performance_insights=''
try:
response = rds.describe_db_instances(DBInstanceIdentifier=RDSInstanceName)['DBInstances']
... | [
"ankitrao7739@gmail.com"
] | ankitrao7739@gmail.com |
f9dfaccdf5e756e0032eeef3b25c1ae84e611a85 | b34e62032a142aca2f1180dd6a683c51f5f723e9 | /src/work_time.py | b378ac7588972d4afcfc07014d8fb13ba1ed6475 | [] | no_license | scoutiii/SoloScraper | 3de821fa8f9a11f5327f9389a4c21f69fd89e77a | b486ba674f9518a794f6108009bb8faaf68a594e | refs/heads/master | 2022-11-17T22:51:08.738112 | 2020-07-15T18:57:02 | 2020-07-15T18:57:02 | 261,906,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,229 | py | import csv
import sys
import re
from datetime import datetime
from tqdm import tqdm
# Class which has all characteristics of a message
class message_info:
def __init__(self, message):
self.msg_full = re.sub('[^a-zA-Z0-9 \`\~\!\@\#\$\%\^\&\*\(\)\_\+\-\=\[\{\]\}\\\|\;\:\'\"\,\<\.\>\/\?\\n]*', "",
... | [
"33967844+scoutiii@users.noreply.github.com"
] | 33967844+scoutiii@users.noreply.github.com |
27380b1a5184b461149e49309ce312c705804b73 | 984beee971cd6e7dac1e7e8be1811fd34ad3fef2 | /0x06-python-classes/0-square.py | a8a6df9c97801f384c04816dca2809a13ca6c0ff | [] | no_license | Roylouis-web/holbertonschool-higher_level_programming-1 | fc67a29171fd29eca56806c148b95ab704183776 | d887ae8caecba9b3754c15606b15b5bba490a453 | refs/heads/master | 2023-04-11T14:35:59.519143 | 2023-03-20T04:52:56 | 2023-03-20T04:52:56 | 579,964,922 | 0 | 0 | null | 2022-12-19T11:39:06 | 2022-12-19T11:39:05 | null | UTF-8 | Python | false | false | 110 | py | #!/usr/bin/python3
"""Square Class
This class don't do anything for the moment
"""
class Square:
pass
| [
"monoprosito@gmail.com"
] | monoprosito@gmail.com |
afca61d5d8ba52a219c2ad7064268eca41cd96c6 | 495ce92166457a6d5818d786a6a3303d3280fcd0 | /src/registration/urls.py | ac889db2d836112cd2cb69c66483cb85276e9187 | [] | no_license | patrickhusi/django-inspectional-registration | 616e7d44716c41b09b32c30415a1cf86d3b7324f | c0aee3ddc4f1a5e870643a605d8a9575b3a7520f | refs/heads/master | 2020-12-25T22:57:45.123082 | 2015-08-01T00:19:32 | 2015-08-01T00:19:32 | 39,487,644 | 0 | 0 | null | 2015-07-22T05:35:21 | 2015-07-22T05:35:21 | null | UTF-8 | Python | false | false | 2,964 | py | # coding=utf-8
"""
URLconf for django-inspectional-registration
"""
__author__ = 'Alisue <lambdalisue@hashnote.net>'
from registration.compat import url
from registration.compat import patterns
from registration.views import RegistrationView
from registration.views import RegistrationClosedView
from registration.views... | [
"lambdalisue@hashnote.net"
] | lambdalisue@hashnote.net |
ab6eedac97421d8a06a3c9e76013d65e82b63991 | 405ed3b49248e033789bd17bd8dfd30e5a9ef7bc | /lesson_3_task_4.py | 4f6c2419c91de2ae3490938613fc9646c830f15a | [] | no_license | GorobetsYury/python_geekbrains | c50d0909645c479bbc90d104ee1e0ffa789da563 | 1639f596b1666c5f36742409597f8e9c7bde394e | refs/heads/main | 2023-01-20T13:34:30.795615 | 2020-12-02T17:29:31 | 2020-12-02T17:29:31 | 309,039,606 | 0 | 0 | null | 2020-12-02T17:29:32 | 2020-11-01T06:47:51 | Python | UTF-8 | Python | false | false | 785 | py | # Определить, какое число в массиве встречается чаще всего.
import random
SIZE = 10
MIN_ITEM = 0
MAX_ITEM = 100
array = [random.randint(MIN_ITEM, MAX_ITEM) for _ in range(SIZE)]
# При равенстве повторов показывает то число, у которого индекс меньше
count = 0
max_count = 0
number = None
for i in array:
for j in ... | [
"u_gorobec@rambler.ru"
] | u_gorobec@rambler.ru |
dc9a696d53a940224de5525365420e23e1c82e96 | 5077fc5d82caa3b3ed5ce0e062bfe75cd4037ebc | /forever_thinking/bilibili获取封面.py | 260f9926d90e3490e4b217ca8bb4cc9d9081eb75 | [] | no_license | asswecanfat/git_place | ee10e1057d8307d3c72f57291b5bcb6d0579017e | 244ff0de11ffbe1aa9f20308e43af39486507f6f | refs/heads/master | 2021-07-18T23:06:14.324164 | 2020-09-02T12:15:27 | 2020-09-02T12:15:27 | 210,833,462 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import requests
from bs4 import BeautifulSoup
from attr import attrib, attrs
import json
import re
import random
import os
@attrs
class BiliBili(object):
file_path = attrib(default=r'C:\Users\10248\Desktop\1.txt')
pic_path = attrib(default=r'C:\Users\10248\Desktop')
source_wab_url = attrib(default='https:... | [
"1024847824@qq.com"
] | 1024847824@qq.com |
711e8f71814bfa10e937a9521b55bec2afaaa889 | adf001bee2e322d9583c60ae42c2d3d5e9cfdd3d | /04-clean-evaluation-set.py | f0d6b27108dc013149ee02965b5112692f83fbf5 | [] | no_license | katerega/entity-expansion | 92e42df687194641cfd9139e7d07f89120ecb8b0 | 56db32ea4baac3a7ea44e872a545e353b7e7246d | refs/heads/master | 2022-01-22T08:52:44.228988 | 2019-07-18T18:56:50 | 2019-07-18T18:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import os
import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("dataset")
args = parser.parse_args()
dataset = args.dataset
cur_dir = os.path.join(os.getcwd())
# In[ ]:
gold_set = {}
with open('data/gold_set.json', 'r', encoding=... | [
"pxyu@cs.umass.edu"
] | pxyu@cs.umass.edu |
1be95d863dfee38a01b91acfc9abf1c957153b61 | 5e4bacde637e872ae9057dc1eeea6fa452e315c4 | /first_project/populate_test_app.py | 4dbe44ab661119f6f592964006d370453dc852fe | [] | no_license | get2nav/django_test_deploy | 9c738161c36df00b5693924b49534e65f6bbca95 | 8baab4644209b424bcda9cec2d3ee2ab83e2906b | refs/heads/master | 2021-07-13T00:21:55.530280 | 2017-10-18T05:14:20 | 2017-10-18T05:14:20 | 107,361,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','first_project.settings')
import django
django.setup()
#fake pop script
import random
from test_app.models import AccessRecord, Topic, Webpage
from faker import Faker
fakegen = Faker()
topics = ['Search', 'Social', 'Marketplace', 'News', 'Games']
def... | [
"get2nav@gmail.com"
] | get2nav@gmail.com |
b0fbdd67571f55ad9c0ff76b623e2117b8250698 | 0e477b7f21ff3e220b0fe21f5547ac3b4fb71cdd | /Run_GccCoverage_ForSourceFiles.py | 68554d4a8d619c87979fed5cc528e78eb1ed85d8 | [] | no_license | Fasten90/GccCoverageParser | 2c2cb8af41118ab59d960ae13446630565ba1da9 | e4cad4dbc012594e7dd5e9dc9cfa66cf9f6ab895 | refs/heads/master | 2022-03-21T18:07:22.205280 | 2022-02-22T00:02:33 | 2022-02-22T00:02:33 | 218,975,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,478 | py | import glob
import subprocess
import os
import time
from enum import Enum
import re
import argparse
# TODOs
# - UnitTest - system executing test
# Note: Similar command shall be called all gcno file
# gcov --all-blocks --function-summaries --branch-probabilities --branch-counts --unconditional-branche... | [
"fasten90@gmail.com"
] | fasten90@gmail.com |
68939c3d483e5097c1f1e33bf06e1a96c678806c | 3ff045a27d4cd828f1568ef4551077dd3732b97f | /GoodleLanceJanice.py | c0857272da38ec9c7da90a1a5e4ffb3dbedc0221 | [] | no_license | nightowl97/goodle | 4ae6792e8eb43fb453a43716968419b27f73550b | 6718c3151cae837bbe96ee3cdce42b545a5b27f4 | refs/heads/master | 2021-01-19T21:13:14.145428 | 2017-01-10T23:43:30 | 2017-01-10T23:43:30 | 88,626,557 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py |
test = "Yvzs! I xzm'g yvorvev Lzmxv olhg srh qly zg gsv xlolmb!!"
def answer(s):
res = ''
for i in range(len(s)):
if ord(s[i]) <= 96: # If number is not a lowercase alphabet
res += s[i] # Then just keep it
else:
# Get the resulting char by using its distance from 'a'... | [
"feverier@hotmail.fr"
] | feverier@hotmail.fr |
4c76cab52caacba887c04c32272b2911ae465066 | e601b0f85267f884f94f4b4dd4da31de38d2e57d | /utils.py | 06bf308890806d2550ac1fd552dae30d28d1f1cc | [] | no_license | yq605879396/CapVis | fc0295d46f90787c76c82aaa4b76d36b58b0108d | e517732731d64ca83bcbc595e79d5cdaff0945a0 | refs/heads/master | 2023-03-23T00:15:47.474006 | 2021-03-16T23:17:07 | 2021-03-16T23:17:07 | 259,845,398 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,425 | py | import os, io, time, json
import numpy as np
import nltk
# get current path in you computer
current_path = os.getcwd()
# define the path: these files are trained of line
# related codes are in usefule_code directory
Labels = np.loadtxt('./pretrained/labels_100')
All_vec = np.loadtxt('./pretrained/All_vectors')
Center... | [
"yq605879396@gmail.com"
] | yq605879396@gmail.com |
b0b42a8618f56c00d5b0d03cce3873bd96adb26e | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter3d/line/_showscale.py | 534d53f00aee0a02ffb55e951c76e575cebf5dfe | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 425 | py | import _plotly_utils.basevalidators
class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name='showscale', parent_name='scatter3d.line', **kwargs
):
super(ShowscaleValidator, self).__init__(
plotly_name=plotly_name,
parent... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
fb2b8d39435d1abedcb800a15882e0bbdc634344 | 7fc6f40f442579fdc774061aa0c678264ff7873e | /venv/Scripts/easy_install-script.py | 219e5aadb997aca0465a804a5336bdd0bfc7ea88 | [] | no_license | devgunk/ShoppingWebsite | c142bee205b87fb00ff7cb50d437045f75fdd4a4 | a06e339b8409a0ba164109e7c59e4a09cc1920e4 | refs/heads/master | 2022-12-06T09:54:45.039961 | 2020-08-23T12:26:23 | 2020-08-23T12:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!C:\ShoppingWebsite\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.arg... | [
"karandevgunsharma@gmail.com"
] | karandevgunsharma@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.