seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
include_package_data=True,
entry_points={},
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
ext_modules=EXT_MODULES,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <param name="assets">The assets added to every instance of building of this type.</param>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--artifact)
artifact=$2
shift
shift
;;
--debug)
set -x
shift # past argument
| ise-uiuc/Magicoder-OSS-Instruct-75K |
res[key] = val
return res | ise-uiuc/Magicoder-OSS-Instruct-75K |
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
import Foundation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
words = {}
strip = string.whitespace + string.punctuation + string.digits + "\"'"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else:
delnum = msgnum(command)
if (1 <= delnum <= len(msgList)) and (delnum not in toDelete):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(time.time())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""Embed content."""
await self.bot.say(embed=discord.Embed(description=text))
def setup(bot):
bot.add_cog(Extras(bot))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
NS=guestbook
kubectl delete \
rc/redis-master \
rc/redis-slave \
rc/guestbook \
svc/redis-master \
svc/redis-slave svc/guestbook \
-n $NS | ise-uiuc/Magicoder-OSS-Instruct-75K |
test_arrays = np.array([np.array([1, 2, 3]), np.array([4]),
np.array([5, 6]), np.array([1, 2, 3])])
isometric_arrays = \
get_isometric_lists(test_arrays, limit_width=80, fill_value=0)
self.assertEqual(np.array(isometric_arrays).shape, (4, 80))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endif
class TestParameters: XCTestCase {
static var allTests: [(String, (TestParameters) -> () throws -> Void)] {
return [
("testParameters", testParameters),
("testPreparedStatements", testPreparedStatements),
]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
sh clean_fast.sh | ise-uiuc/Magicoder-OSS-Instruct-75K |
final XjcExtension xjcExtension = (XjcExtension) project.getExtensions().getByName( "xjc" );
xjcExtension.getSchemas().create( "schema1" );
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (pascal[i - 1].Length > 1)
{
for (int j = 1; j < cols - 1; j++)
{
pascal[i][j] = pascal[i - 1][j - 1] + pascal[i - 1][j];
}
}
cols ++;
}
for ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
logging.info('%s got a %s.', email, grade)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
any(len(col_text) > col_width
for col_text, col_width in zip_longest(row, col_widths))
for row in rows
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# https://learn.adafruit.com/customizing-usb-devices-in-circuitpython/hid-devices#custom-hid-devices-3096614-9
| ise-uiuc/Magicoder-OSS-Instruct-75K |
HIDDEN_DIM_DEFAULT = 5
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>ahaile505/PythonUnitTesting
import unittest
from phonebook import PhoneBook
class PhoneBookTest(unittest.TestCase):
def setUp(self):
self.phonebook = PhoneBook()
def tearDown(self):
pass
def test_lookup_by_name(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "reader.h"
#include "writer.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace DF.Models
{
public class ConfigurationModel
{
/// <summary>
/// The components of all defined design patterns
/// </summary>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
import Foundation
/// The OAuth errors used for response construction
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return Db::table(TableUtils::getTableDetails('buyinventory_item_info'))
->where(TableUtils::getTableDetails('buyinventory_item_info', 'contentId'),$contentId)
->find();
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
public interface IMetadataSourceProperties
{
Dictionary<string, string> KeyValues { get; set; }
IList<AssemblyName> ReferencedAssemblies { get; set; }
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
# Django starts so that shared_task will use this app.
# see http://chriskief.com/2013/11/15/celery-3-1-with-django-django-celery-rabbitmq-and-macports/
from .celery import app
| ise-uiuc/Magicoder-OSS-Instruct-75K |
env.android_add_res_dir("res")
env.android_add_asset_dir("assets")
env.android_add_dependency("implementation files('../../../modules/oppo/android/libs/gamesdk-20190227.jar')")
env.android_add_dependency("implementation files('../../../modules/oppo/android/libs/oppo_mobad_api_v301_2018_12_07_release.jar')")
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
all_notes = note_table[1].css('td').css('pre::text').getall()
processed_data['notes'] = [note for note in all_notes]
yield processed_data | ise-uiuc/Magicoder-OSS-Instruct-75K |
elif type(d) == dict:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def nid_done_editing(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
aug_list = K.VideoSequential(*augmentations, data_format=data_format, same_on_frame=True)
if data_format == 'BCTHW':
input = torch.randn(2, 3, 1, 5, 6, device=device, dtype=dtype).repeat(1, 1, 4, 1, 1)
output = aug_list(input)
assert (output[:, :, 0] == output[:, :, ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@pytest.mark.parametrize(
"use_rmap, alg",
itertools.product(
[False, True],
[
"hist,svd",
"hist,time,unif",
"time,unif",
"hist,fs,unif",
"hist,fs,prctile",
"hist,fs,kmeans",
],
),
)
@pytest.mark.filterwarnings("... | ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
preset_settings = Settings(skip_checking_for_user_input_cmd_line=True, skip_checking_for_user_input=True)
static_settings = preset_settings.GetStaticSettings()
print "#------------------------ INFO ------------------------#"
print "# Start program by typing 'sudo python main.py' or './main.py', and append... | ise-uiuc/Magicoder-OSS-Instruct-75K |
@else
<div class="form-group">
There is currently no job listings that meet your search criteria
</div>
@endif
@endsection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
String header = new String(tmpByteArr, encoding);
return header;
}
/**
* 获取http头部某一项的值
| ise-uiuc/Magicoder-OSS-Instruct-75K |
score = line.split(' ')[5]
score = score.split('\n')
if len(score) > 1:
scores.append(float(score[0]))
plt.plot(scores)
plt.show() | ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>1-10
#include <cppx-core-language/text/string_to_.hpp>
namespace{ int satisfy_linker; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
always_flagged = [0, 2, 50, 98, 136]
for JD in JDs:
flagged = set(always_flagged)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// | NULL | -1 | -1 |
// | -10 | -10 | 0 |
// | NULL | NULL | 2 |
// | -10 | 10 | 3 |
// | NULL | 1 | 4 |
// +------+------+------+
//
// Note: ORDER BY does not use sBlock sort, so let's order by col2 to avoid
// duplicate ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
n, l, mid, l, mid - 1);
return shifted_binary_search(vec, n, l, mid - 1);
}
else
{
LOG("the element %u is NOT within indices [%lu, %lu], assuming search in the other HIGHER range indices [%lu, %lu]\n\n",
n, l, mid, mid + 1, h);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Longer Solution
"""
result = [{} for _ in range(n)]
for booking in bookings:
i,j,k = booking[0],booking[1],booking[2]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
target: Object,
propertyKey: string
): void;
/**
* Turns the decorated generator function into a task and applies the
* `enqueue` modifier.
*
* Optionally takes a hash of options that will be applied as modifiers to the
* task. For instance `maxConcurrency`, `on`, or `group`.
*
* You can also define an
* <... | ise-uiuc/Magicoder-OSS-Instruct-75K |
};
self.execute_hook_command(self.config.pre_command())?;
for plug in self.config.plugins() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cout << "1. Add student data" << endl;
cout << "2. Edit student data" << endl;
cout << "3. View student data" << endl;
cout << "4. Exit" << endl;
cout << "========================\n";
cout << "Menu ";
cin >> menu;
switch(menu)
{
case 1:
cout << "How much... | ise-uiuc/Magicoder-OSS-Instruct-75K |
public override func preCall() {
self.pathParameters["{resourceGroupName}"] = String(describing: self.resourceGroupName)
self.pathParameters["{hubName}"] = String(describing: self.hubName)
self.pathParameters["{subscriptionId}"] = String(describing: self.subscriptionId)
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
case pl_milbert.MILBERT_STATE.MANUAL:
player.control = false;
MilbertGUI.text = "I'm on my own now (WASD to control + Press F to change)." + "\n";
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
heights.pop()
return ans
'''The stack maintain the indexes of buildings with ascending height. Before adding a new building pop the building who is taller than the new one. The building popped out represent the height of a rectangle with the new building as the right boundary and the current stack t... | ise-uiuc/Magicoder-OSS-Instruct-75K |
exception_middleware: ExceptionMiddleware = field(init=False)
state: datastructures.State = field(init=False)
dependency_overrides: Dict[Callable, Callable] = field(
init=False,
default_factory=dict,
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#endregion
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cur = get_Cur()
if not table_exists(word_embeddings['table_name'], schema):
cur.execute("""create table """ + schema + """.""" + word_embeddings['table_name'] + """ ( word_id integer not null constraint word_embeddings_pkey primary key, word_embedding double precision[]); create unique index word_embedd... | ise-uiuc/Magicoder-OSS-Instruct-75K |
using UnityEngine.UI;
using System;
using System.Linq;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s=marker_size, marker=marker, edgecolors="black")
#ENDFOR
yticks_ = np.arange(0, 5 + 1, 1)
yticks = 1e-5 * yticks_
ytick_labels = ["{:d}".format(ytick) for ytick in yticks_]
plt.yticks(yticks, ytick_labels)
plt.ylim(yticks[0], yticks[-1])
# xticks_ = np.arange(50, 160 + 1... | ise-uiuc/Magicoder-OSS-Instruct-75K |
raise exceptions.PasswordsNotMatchingException()
self.addNewUser(user_name, user_email, user_password)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@ViewChild(CalendarComponent) ucCalendar: CalendarComponent;
constructor() {}
ngOnInit() {
this.calendarOptions = {
editable: true,
eventLimit: false,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public int ConnectorDocId { get; set; }
public int ConnectorId { get; set; }
public int DocId { get; set; }
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() {
let x: Box<isize> = box 0;
println!("{}", x + 1);
//~^ ERROR binary operation `+` cannot be applied to type `std::boxed::Box<isize>`
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// If you want to enable `snapshot`, run `fastlane snapshot init`
// After, this file will be replaced with a custom implementation that contains values you supplied
// during the `init` process, and you won't see this message
}
// Generated with fastlane 2.154.0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
step=step,
alpha=alpha,
mean_style=mean_style,
style_weight=0.7,
mixing_range=(0, 1),
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
elif l[-2] == n: print(n)
else:
if len(l) >= 3:
print(l[-1]) if l[-1] ** 2 - n <= n - l[-2] ** 2 else print(l[-2])
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.. versionadded:: 0.17.0
Returns the version of pip. Use ``bin_env`` to specify the path to a
virtualenv and get the version of pip in that virtualenv.
If unable to detect the pip version, returns ``None``.
CLI Example:
.. code-block:: bash
salt '*' pip.version
'''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return kn
def main():
kns = [get_kn() for i in range(5)]
possible_n = gcd_multi(kns)
print('possible n', possible_n)
main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return hashlib.sha1((password + salt).encode()).hexdigest()
unauthorized = dict(
status="401",
statusDescription="Unauthorized",
headers={
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#apply model
mdl=NaiveBayes.fit(X_train,y_train)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
tests = [test_increment, test_slow_increment]
for width in [10, 100, 1000]:
for test in tests:
try:
test(depth=int(width))
except AssertionError as e:
print("[TEST] %s width:%s [FAILED]" % (test.__name__, width))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd /app
meteor npm install
meteor npm run start:dev
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
[TestMethod]
public void TestFailMethod()
{
sm.Driver.Url = "https://javiertuya.github.io/selema/samples/";
Assert.AreEqual("XXXX Selema samples", sm.Driver.Title);
}
//Repeated tests demo, uses a counter to simulate failures
private s... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return result
def __repr__(self) -> str:
return (type(self).__name__ + "(" + repr(self.category) + ", " +
repr(self.positive_additions) + ", " + repr(self.negative_additions) + ")")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__import__(name=spec, fromlist=PATH_LIST).engine.build(allow_overwrite=True)
except ImportError:
raise Exception("[TEST GENERATION] : engine build failure !")
try:
engine_module = __import__(name="engine", fromlist=PATH_LIST)
parse = engine_module.parse
build = engine_m... | ise-uiuc/Magicoder-OSS-Instruct-75K |
await asyncio.sleep(1)
await send_task
await test_message.operation_ticket.event.wait()
@pytest.mark.it("Sends if connection rejects send")
async def test_sends_if_reject_before_sending(self, client, test_message, dropper):
assert client.connected
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (parentCanvas == null) return;
using (var scope = ListPoolScope<Renderer>.Create())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Support for UCS-2 encoding.
/*
IMPORTS
*/
use bit_field::BitField;
// Err enumeration
#[derive(Debug, Copy, Clone)]
pub enum Err
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* file that was distributed with this source code.
*/
$Global = '../../global/';
include_once($Global.'libs/site.php');
?>
<!DOCTYPE html>
<html lang="en">
<?php echo $Parts->Header(); ?>
<body>
<?php echo $Parts->Nav(); ?>
<div class="fill">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
f.write(iter)
index += 1
# get preview page URL
url = 'https://xkcd.com/' + xkcdSoup.select('ul[class=comicNav] a[rel=prev]')[0].get('href')
logging.error(xkcdSoup.select('ul[class=comicNav] a[rel=prev]')[0].g... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<h1>Show Report</h1>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
$this->notesRepo = $notesRepo;
}
public function all()
{
return $this->notesRepo->all();
}
public function create(StoreRequest $request)
{
$data = $this->data($request);
return $this->notesRepo->create($data);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[must_use]
pub(crate) struct OutputContext {
pub(crate) color: Color,
}
#[derive(Copy, Clone, Debug, PartialEq)]
#[must_use]
pub enum Color {
Auto,
Always,
Never,
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
./lp2dgf.py -f $file > $outputname
if [ $? -ne 0 ]; then
echo 'ERROR stopping...'
exit 1
fi
done
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Train Generator
# ---------------
# Train the generator Min - E[critic(fake)] ~ Max E[critic(fake)]
optimGen.zero_grad() # zero the gradient
fake_imgs = gen(z)
# Adversarial Loss
loss_G = -torch.mean(critic(fake_imgs))
loss_G.backward()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data=json_str)
return json.loads(response_send.text)['errmsg'] == 'ok'
def rsa_encrypt():
import rsa
(pubkey, privkey) = rsa.newkeys(1024)
print('pubkey >>>> {}'.format(pubkey))
print('privkey >>>> {}'.format(privkey))
with open('pub.pem', 'w') as f:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override IExpression This { get; set; }
public IEnumerable<IExpression> Values { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* 使得列值自增1
* @param id 分享评论id
* @param columnName 列名
* @return 更新列数
*/
int increase(@Param("id") Integer id, @Param("columnName") String columnName);
/**
* 使得列值自减1
* @param id 分享评论id
* @param columnName 列名
* @return 更新列数
*/
int decrease(@Param("... | ise-uiuc/Magicoder-OSS-Instruct-75K |
"example_specid":"2947691243863304192"
}
} | ise-uiuc/Magicoder-OSS-Instruct-75K |
node = self._make_node(singular, plural, variables, plural_expr,
bool(referenced),
num_called_num and have_plural)
node.set_lineno(lineno)
if plural_expr_assignment is not None:
return [plural_expr_assignment, node]
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
version of the kernel running on a remote system.
By default this function returns the kernel version string (e.g., "4.18.1-build0"), but if
'split' is 'True', this function returns the split kernel version (refer to 'split_kver()' for
the details).
"""
if not proc:
proc = Procs.Proc()... | ise-uiuc/Magicoder-OSS-Instruct-75K |
[0, 0, 0],
]]], [[[
[0, 0, 0],
[0, 5, 6],
[0, 7, 8],
], [
[0, 0, 0],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'''
if self._num_failed_tasks() > 0:
return self.suite.finish(failure_status)
return self.suite.finish(success_status)
def summary(self) -> int:
'''Print summary of the logged tasks.
Returns:
Number of failed (status is either `FAILURE` or `ERROR`) ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
use risc0_zkvm_circuit_sys::make_circuit;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let inc_dir = Path::new(&out_dir);
let out_dir = inc_dir.join("risc0").join("zkvm").join("circuit");
let out_path = out_dir.join("step.cpp.inc");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
*/
private ContentType contentType;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# => To Clean out ALL vim backup Files
find . -type f -name "*~" -delete
| ise-uiuc/Magicoder-OSS-Instruct-75K |
InvC = Inv_a + Inv_b * (V_tank_m3) ** Inv_c + (Inv_d + Inv_e * V_tank_m3) * log(V_tank_m3)
Capex_a = InvC * (Inv_IR) * (1 + Inv_IR) ** Inv_LT / ((1 + Inv_IR) ** Inv_LT - 1)
Opex_fixed = Capex_a * Inv_OM
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bio: Optional[str]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ans0 %= MOD
ans1 += dp[i-1][0] if i-1>=0 else 0
ans1 += dp[i-3][0] if i-3>=0 else 0
ans1 += dp[i-4][0] if i-4>=0 else 0
ans1 %= MOD
dp.append([ans0,ans1])
# print(dp)
return sum(dp[-1])%MOD
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dependencies = [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(void)x;
(void)y;
(void)z;
}
void Tile::renderTransparent(Buffer& buffer, float x, float y, float z) const {
(void)buffer;
(void)x;
(void)y;
(void)z;
}
void Tile::renderEditor(Buffer& buffer, float x, float y, float z) const {
render(buffer, x, y, z);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export { Field } from "./Field";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
restitution = rest;
}
physics3d::phys_props physics3d::static_props(float friction, float restitution)
{
return phys_props(0, friction, restitution);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// triggers refresh() after 1000ms.
var success = function(data) {
$(".field").html(data);
setTimeout(refresh, 1000);
}
// Starts processing when document is ready.
$(function() {
refresh();
});
</script>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for f,t in friend_towns:
if t in home_to_town_distances:
_d = home_to_town_distances[t]
if d == 0:
d += _d
last_d = _d
else:
d += math.sqrt(_d ** 2 - last_d ** 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.